mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
cd8b1b2061
commit
b5ddd28cb8
@ -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": [
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user