wpt / css / css-writing-modes / direction-propagation-body-contain-root.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-writing-modes/direction-propagation-body-contain-root.html

<!doctype html>
<meta charset="utf-8">
<title>CSS Writing Modes Test: Do not propagate direction from body when html root is contained</title>
<link rel="help" href="https://drafts.csswg.org/css-writing-modes/#principal-flow">
<link rel="match" href="direction-propagation-body-contain-root-ref.html">
<style>
  html { contain: paint; }
  body { direction: rtl; display: inline; }
</style>
<body></body>
<script>
  document.documentElement.insertBefore(document.createTextNode("This text should be left aligned."), document.body);
</script>

/css/css-writing-modes/direction-propagation-body-contain-root-ref.html

<!doctype html>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<body style="margin:0">This text should be left aligned.</body>