Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-dynamic-pseudo.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<!--
Chrome had a crash bug in a case of dynamic addition of pseudo elements.
crbug.com/1242229
-->
<html class="reftest-wait">
<head>
<link rel="match" href="fieldset-dynamic-pseudo-ref.html">
<style>
*::after { content:"after text"; border:3px solid black;}
*::before { content:"before text"; border:3px solid black; }
</style>
</head>
<body>
<fieldset><legend>Legend</legend></fielset>
<script>
document.styleSheets[0].disabled = true;
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.styleSheets[0].disabled = false;
document.documentElement.className = '';
});
});
</script>
</body>
</html>