Bug 1588734 [wpt PR 19692] - [css-writing-modes] Fix bug in wm-propagation-body-044.html, a=testonly

Automatic update from web-platform-tests
[css-writing-modes] Fix bug in wm-propagation-body-044.html

--

wpt-commits: 5804c2f857c5bbcd08441e997ab4d3d9f5f5086e
wpt-pr: 19692
This commit is contained in:
Florian Rivoal 2019-10-22 09:45:23 +00:00 коммит произвёл James Graham
Родитель 3e1e8f63d7
Коммит 576424c33d
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -13,6 +13,11 @@
padding-right: 16px;
vertical-align: top;
}
div
{
margin-left: -8px;
writing-mode: vertical-rl;
}
</style>
@ -24,4 +29,4 @@
in the <strong>upper-left corner</strong> of the page.
-->
<div style=margin-left:-8px>This text must be written horizontally.</div>
<div>This text must be written vertically, below the orange square.</div>

Просмотреть файл

@ -14,7 +14,7 @@
<link rel="match" href="wm-propagation-body-044-ref.html">
<meta name="flags" content="">
<meta name="assert" content="This test checks that when the root element has a &lt;body&gt; child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation. Finally, in order to make sure that the principal writing mode is indeed 'horizontal-tb', the test checks that a generated text's inline axis is indeed horizontal and not vertical.">
<meta name="assert" content="This test checks that when the root element has a &lt;body&gt; child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation. We also check that the computed value is unaffected by inheriting it into a pseudo element.">
<!--
Tests 032 to 035: html's writing-mode is not specified
@ -38,7 +38,7 @@
html::after
{
content: "This text must be written horizontally.";
content: "This text must be written vertically, below the orange square.";
display: block;
}