Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-tables/crashtests/transition-table-row-group-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Crash when transitioning on a table-row-group element with pending substitution</title>
<style>
optgroup {
display: contents;
writing-mode: vertical-lr;
}
option {
display: table-row-group;
transition: color 1s;
--p: 2px;
padding-inline: var(--p);
}
</style>
<select>
<optgroup>
<option id="opt"></option>
</optgroup>
</select>
<script>
opt.offsetTop;
opt.style.setProperty("color", "red");
opt.offsetTop;
</script>