Skip to content

Commit

Permalink
Bug 1485896 [wpt PR 12665] - HTML: force layout in legend-dynamic-upd…
Browse files Browse the repository at this point in the history
…ate.html, a=testonly

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

--

wpt-commits: 1580d7706c8b19b79cfa9cfd465ef90d3394894f
wpt-pr: 12665
  • Loading branch information
zcorpan authored and moz-wptsync-bot committed Aug 29, 2018
1 parent cd8b1b2 commit b5ddd28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testing/web-platform/meta/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
<!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>
<fieldset>
<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>

0 comments on commit b5ddd28

Please sign in to comment.