Bug 1578653 [wpt PR 18826] - Add dynamic tests for ElementCSSInlineStyle, a=testonly

Automatic update from web-platform-tests
Add dynamic tests for ElementCSSInlineStyle (#18826)

Add dynamic tests for ElementCSSInlineStyle

--

wpt-commits: 791d506b4946c726f8b423de48eb68911322b6fd
wpt-pr: 18826
This commit is contained in:
Rob Buis 2019-09-05 14:48:02 +00:00 коммит произвёл James Graham
Родитель a4148c4b7b
Коммит 68fe8c8407
2 изменённых файлов: 50 добавлений и 0 удалений

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

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>MathML 'ElementCSSInlineStyle` Dynamic Tests</title>
</head>
<body>
<span>This tests that `ElementCSSInlineStyle` interface changes update rendering.</span>
<div>
<math style="background-color: green"><mspace width="50px" height="100px"/><mspace width="50px" height="100px"/></math>
</div>
</body>
</html>

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

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="utf-8" />
<title>MathML 'ElementCSSInlineStyle` Dynamic Tests</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dom-and-javascript"/>
<link rel="match" href="css-inline-style-dynamic.tentative-ref.html"/>
<style>
#hidden {
visibility: hidden;
background-color: green;
}
#red {
background-color: red;
}
</style>
<meta
name="assert"
content="MathMLElements ElementCSSInlineStyle interface changes update rendering"
/>
<script type="text/javascript">
function test()
{
document.body.offsetTop; // Update layout
document.getElementById("hidden").style.visibility = "visible";
document.getElementById("red").style.backgroundColor = "green";
document.documentElement.className = "";
}
</script>
</head>
<body onload="test()">
<span>This tests that `ElementCSSInlineStyle` interface changes update rendering.</span>
<div>
<math><mspace width="50px" height="100px" id="hidden"/><mspace width="50px" height="100px" id="red"/></math>
</div>
</body>
</html>