Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-writing-modes/wm-propagation-body-dynamic-change-001.html
<!DOCTYPE html> <html> <meta charset="utf-8"> <title>CSS-Writing Modes Test: propagation of the writing-mode property from body to root</title> <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> <link rel=help href="https://drafts.csswg.org/css-writing-modes-3/#principal-flow"> <link rel="match" href="block-flow-direction-025-ref.xht"> <meta name=assert content="The writing mode of the body must be propagated to the root with the dynamic change."> <script> function runTest() { document.body.offsetHeight; document.body.style.writingMode = "vertical-rl"; } </script> <style> div { background-color: blue; height: 100px; width: 100px; } </style> <body onload="runTest();"> <div></div> <p><img src="support/block-flow-direction-025-exp-res.png" width="359" height="36" alt="Image download support must be enabled"></p> <!-- The image says: Test passes if there is a blue square in the <strong>upper-right corner</strong> of the page. --> </body> </html>
/css/css-writing-modes/block-flow-direction-025-ref.xht
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CSS Reftest Reference</title> <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <meta content="image" name="flags" /> <style type="text/css"><![CDATA[ p { margin: 0px; } img { float: right; padding-left: 16px; } ]]></style> </head> <body> <p><img src="support/swatch-blue.png" width="100" height="100" alt="Image download support must be enabled" /><img src="support/block-flow-direction-025-exp-res.png" width="359" height="36" alt="Image download support must be enabled" /></p> <!-- The image says: Test passes if there is a blue square in the <strong>upper-right corner</strong> of the page. --> </body> </html>