Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-contain/crashtests/contain-style-discarded-item.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<style>
.scope { contain: style }
.q::before { content: open-quote }
</style>
<div style="display:table"><div style="display:table-column-group"><span id="a" class="q scope"></span></div></div>
<div id="b" class="scope"><span id="before" class="q"></span></div>
<script>
function flush() { document.body.offsetHeight; }
onload = () => {
flush();
a.className = "q";
b.append(a);
flush();
a.remove();
flush();
before.remove();
flush();
};
</script>