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/marker-gcs-after-disconnect-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Don't crash during getComputedStyle which removes ::marker</title>
<style>
#container {
width: 100px;
height: 100px;
container-type: size;
}
@container (width) {
span { color: green; }
}
</style>
<ul>
<li id="target"></li>
</ul>
<div id=container>
<span>PASS if no crash</span>
</div>
<script>
let li = document.querySelector('li');
getComputedStyle(target, '::marker').width;
li.style.listStyleType = 'none';
getComputedStyle(target, '::marker').width;
</script>