| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/width-keyword-classes.css" rel="stylesheet"> |
| 3 <style> |
| 4 .block { |
| 5 width: 0px; |
| 6 font: 10px/1 Ahem; |
| 7 } |
| 8 |
| 9 .flex { |
| 10 display: flex; |
| 11 } |
| 12 |
| 13 .grid { |
| 14 display: grid; |
| 15 grid-template-columns: 0px; |
| 16 } |
| 17 |
| 18 .item { |
| 19 border: 5px solid magenta; |
| 20 background: cyan; |
| 21 } |
| 22 </style> |
| 23 |
| 24 <p>Checking out that 'min-width' as 'fill-available' respects border and padding
sizes when container size is 0px, behaving like min-width: auto.</p> |
| 25 |
| 26 <h2>block</h2> |
| 27 |
| 28 <div class="block"> |
| 29 <div class="item min-width-fill-available">item</div> |
| 30 </div> |
| 31 |
| 32 <hr> |
| 33 |
| 34 <h2>flex</h2> |
| 35 |
| 36 <div class="block flex"> |
| 37 <div class="item min-width-fill-available">item</div> |
| 38 </div> |
| 39 |
| 40 <hr> |
| 41 |
| 42 <h2>grid</h2> |
| 43 |
| 44 <div class="block grid"> |
| 45 <div class="item min-width-fill-available">item</div> |
| 46 </div> |
| OLD | NEW |