OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <link href="resources/flexbox.css" rel="stylesheet"> |
| 4 <style> |
| 5 .flexbox { |
| 6 background: green; |
| 7 position: relative; |
| 8 padding: 10px; |
| 9 border: 2px solid red; |
| 10 } |
| 11 |
| 12 .flexbox > div { |
| 13 background: yellow; |
| 14 } |
| 15 |
| 16 .verticalWritingMode { |
| 17 -webkit-writing-mode: vertical-rl; |
| 18 } |
| 19 </style> |
| 20 <script src="../../resources/check-layout.js"></script> |
| 21 <body onload="checkLayout('.flexbox')"> |
| 22 <div class="flexbox" style="height:100px"> |
| 23 <div data-expected-padding-top="10" data-expected-padding-bottom="10" style=
"padding:10%"></div> |
| 24 </div> |
| 25 |
| 26 <div class="flexbox" style="height:30%"> |
| 27 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p
adding:20%"></div> |
| 28 </div> |
| 29 |
| 30 <div class="flexbox"> |
| 31 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p
adding:30%"></div> |
| 32 </div> |
| 33 |
| 34 <div style="height:200px;"> |
| 35 <div class="flexbox" style="height:30%"> |
| 36 <div data-expected-padding-top="12" data-expected-padding-bottom="12
" style="padding:20%"></div> |
| 37 </div> |
| 38 </div> |
| 39 |
| 40 <div style="height:200px"> |
| 41 <div style="height:40%"> |
| 42 <div class="flexbox" style="height:30%"> |
| 43 <div data-expected-padding-top="12" data-expected-padding-bottom
="12" style="padding:50%"></div> |
| 44 </div> |
| 45 </div> |
| 46 </div> |
| 47 |
| 48 <div class="flexbox" style="height:min-content"> |
| 49 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p
adding:10%"></div> |
| 50 </div> |
| 51 |
| 52 <div class="flexbox" style="height:max-content"> |
| 53 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p
adding:10%"></div> |
| 54 </div> |
| 55 |
| 56 <div class="flexbox" style="height:fit-content"> |
| 57 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p
adding:10%"></div> |
| 58 </div> |
| 59 |
| 60 <div class="flexbox" style="min-height:100px; max-height:100px"> |
| 61 <div data-expected-padding-top="0" data-expected-padding-bottom="0" style="p
adding:10%"></div> |
| 62 </div> |
| 63 |
| 64 <div class="flexbox verticalWritingMode" style="width:200px;" > |
| 65 <div data-expected-padding-top="40" data-expected-padding-bottom="40" style=
"padding: 20%"></div> |
| 66 </div> |
| 67 |
| 68 <div style="width:500px;"> |
| 69 <div class="flexbox verticalWritingMode" style="width:20%;"> |
| 70 <div data-expected-padding-top="20" data-expected-padding-bottom="20" style=
"padding: 20%"></div> |
| 71 </div> |
| 72 </div> |
| 73 </body> |
| 74 </html> |
OLD | NEW |