Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-page/margin-boxes/dimensions-002-print.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <link rel="help" href="https://drafts.csswg.org/css-page-3/#margin-dimension"> <meta name="assert" content="Test combinations of auto lengths, fixed lengths and percentage lengths. No corners or middle/center boxes."> <link rel="match" href="dimensions-002-print-ref.html"> <style> @page { margin: 100px; size: 500px 400px; @top-left { text-align: left; vertical-align: top; border: solid; width: 20%; height: 20%; content: "20%"; } @top-right { text-align: left; vertical-align: top; border: solid; content: "auto"; } @right-top { text-align: left; vertical-align: top; border: solid; content: "auto"; } @right-bottom { text-align: left; vertical-align: top; border: solid; width: 70%; height: 70%; content: "70%"; } @bottom-right { text-align: left; vertical-align: top; border: solid; width: 70px; height: 70px; content: "70px"; } @bottom-left { text-align: left; vertical-align: top; border: solid; content: "auto"; } @left-bottom { text-align: left; vertical-align: top; border: solid; content: "auto"; } @left-top { text-align: left; vertical-align: top; border: solid; width: 70px; height: 70px; content: "70px"; } } </style>
/css/css-page/margin-boxes/dimensions-002-print-ref.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <style> @page { margin: 0; size: 500px 400px; } body { margin: 0; } </style> <div style="display:flex; margin:0 100px; height:100px;"> <div style="border:solid; width:20%; height:20%; align-self:flex-end;">20%</div> <div style="border:solid; flex:1;">auto</div> </div> <div style="display:flex; height:200px;"> <div style="display:flex; flex-flow:column; width:100px;"> <div style="width:70px; height:70px; border:solid; margin-left:auto;">70px</div> <div style="flex:1; border:solid;">auto</div> </div> <div style="flex:1;"></div> <div style="display:flex; flex-flow:column; width:100px;"> <div style="flex:1; border:solid;">auto</div> <div style="width:70%; height:70%; border:solid;">70%</div> </div> </div> <div style="display:flex; margin:0 100px; height:100px;"> <div style="border:solid; flex:1;">auto</div> <div style="border:solid; width:70px; height:70px;">70px</div> </div>