Bug 1485896 [wpt PR 12665] - HTML: force layout in legend-dynamic-update.html, a=testonly

Automatic update from web-platform-testsHTML: force layout in legend-dynamic-update.html

--

wpt-commits: 1580d7706c8b19b79cfa9cfd465ef90d3394894f
wpt-pr: 12665
This commit is contained in:
Simon Pieters 2018-08-24 13:08:16 +00:00 committed by moz-wptsync-bot
parent cd8b1b2061
commit b5ddd28cb8
2 changed files with 11 additions and 2 deletions

View File

@ -597968,7 +597968,7 @@
"testharness"
],
"html/rendering/non-replaced-elements/the-fieldset-element-0/legend-dynamic-update.html": [
"8b49afdceb485614cba5b2da48b155618c6fedbf",
"5dc68244fe0f896388ce7a0ff9d8f49397395078",
"support"
],
"html/rendering/non-replaced-elements/the-fieldset-element-0/legend-float-abspos.html": [

View File

@ -1,4 +1,5 @@
<!DOCTYPE html>
<html class=reftest-wait>
<title>legend and dynamic update</title>
<link rel=fieldset-foo-ref.html>
<p>There should be a normal fieldset below with the legend "Foo".</p>
@ -6,5 +7,13 @@
<legend>F</legend>
</fieldset>
<script>
document.querySelector('legend').textContent += "oo";
const legend = document.querySelector('legend');
// force layout
legend.offsetTop;
requestAnimationFrame(() => {
legend.textContent += "oo";
requestAnimationFrame(() => {
document.documentElement.removeAttribute('class');
});
});
</script>