Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/crashtests/chrome-bug-372358471-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>::first-letter text crash during size query change</title>
<style>
body {
&::first-letter { color: green; }
&::before { content: "."; }
}
canvas {
float: left;
container-type: inline-size;
&::first-line {
color: pink;
}
}
:first-of-type {}
</style>
<body> <canvas></canvas><span id="id_1"></span><span>x</span>
<script>
document.body.offsetTop;
id_1.remove();
document.body.offsetTop;
</script>