OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Logical Properties: {max-,min-}inline-size</title> |
| 4 <link rel="help" href="https://drafts.csswg.org/css-logical-props/"> |
| 5 <link rel="help" href="https://drafts.csswg.org/css-writing-modes/#logical-to-ph
ysical"> |
| 6 |
| 7 <style> |
| 8 table { |
| 9 border: 1px solid #000; |
| 10 display: table; |
| 11 } |
| 12 #table1_column { |
| 13 width: 40px; |
| 14 min-width: 50px; |
| 15 max-width: 100px; |
| 16 height: 100px; |
| 17 background-color: red; |
| 18 display: table-cell; |
| 19 } |
| 20 #table2_column { |
| 21 width: 100px; |
| 22 min-width: 50px; |
| 23 max-width: 100px; |
| 24 height: 100px; |
| 25 background-color: blue; |
| 26 display: table-cell; |
| 27 } |
| 28 #table3_column { |
| 29 width: 120px; |
| 30 min-width: 50px; |
| 31 max-width: 100px; |
| 32 height: 100px; |
| 33 background-color: green; |
| 34 display: table-cell; |
| 35 } |
| 36 |
| 37 #div1 { |
| 38 width: 40px; |
| 39 min-width: 50px; |
| 40 max-width: 100px; |
| 41 border: 1px solid #000; |
| 42 } |
| 43 #div2 { |
| 44 width: 100px; |
| 45 min-width: 50px; |
| 46 max-width: 100px; |
| 47 border: 1px solid #000; |
| 48 } |
| 49 #div3 { |
| 50 width: 120px; |
| 51 min-width: 50px; |
| 52 max-width: 100px; |
| 53 border: 1px solid #000; |
| 54 } |
| 55 |
| 56 p { |
| 57 border: 1px solid #000; |
| 58 } |
| 59 #p1 { |
| 60 width: 50px; |
| 61 } |
| 62 #p2 { |
| 63 width: 100px; |
| 64 } |
| 65 </style> |
| 66 |
| 67 <div id="table1"> |
| 68 <div id="table1_column"></div> |
| 69 </div> |
| 70 <div id="table2"> |
| 71 <div id="table2_column"></div> |
| 72 </div> |
| 73 <div id="table3"> |
| 74 <div id="table3_column"></div> |
| 75 </div> |
| 76 |
| 77 <div id="div1">Hello, this is a test</div> |
| 78 <div id="div2">Hello, this is a test</div> |
| 79 <div id="div3">Hello, this is a test</div> |
| 80 |
| 81 <p id="p1">Hello, this is a test</div> |
| 82 <p id="p2">Hello, this is a test</div> |
OLD | NEW |