Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-flexbox/flex-order-last-baseline-multiple.html
<!DOCTYPE html> <html> <head> <title>CSS Test: flex last baseline with multiple order values</title> <link rel="author" title="WebKit" href="https://webkit.org"> <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#order-property"> <link rel="help" href="https://www.w3.org/TR/css-align-3/#baseline-values"> <link rel="match" href="flex-order-last-baseline-multiple-ref.html"> <meta name="assert" content="The last baseline of a flex container with multiple order values should come from the item with the highest order value."> <style> .outer { display: flex; align-items: last baseline; height: 100px; border: 1px solid black; } .flex { display: flex; flex-wrap: wrap; width: 60px; } .flex > div { width: 60px; align-self: baseline; } .a { order: 1; font-size: 10px; background: lightblue; } .b { order: 2; font-size: 20px; background: lightyellow; } .c { order: 3; font-size: 30px; background: lightgreen; } </style> </head> <body> <p>Test passes if "Ref" is aligned to the baseline of "C" (the large green text).</p> <div class="outer"> <div class="flex"> <div class="a">A</div> <div class="b">B</div> <div class="c">C</div> </div> <div>Ref</div> </div> </body> </html>
/css/css-flexbox/flex-order-last-baseline-multiple-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Test Reference: flex last baseline with multiple order values</title> <style> .outer { display: flex; align-items: last baseline; height: 100px; border: 1px solid black; } .flex { display: flex; flex-wrap: wrap; width: 60px; } .flex > div { width: 60px; } .a { font-size: 10px; background: lightblue; } .b { font-size: 20px; background: lightyellow; } .c { font-size: 30px; background: lightgreen; } </style> </head> <body> <p>Test passes if "Ref" is aligned to the baseline of "C" (the large green text).</p> <div class="outer"> <div class="flex"> <div class="a">A</div> <div class="b">B</div> <div class="c">C</div> </div> <div>Ref</div> </div> </body> </html>