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/force-sibling-style-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>getComputedStyle on sibling of style-dirty container</title>
<div id=ancestor style="--x:foo">
<div id=container style="container-type:size;width:100px;">
<span>Test</span>
</div>
<div id=target></div>
</div>
<script>
ancestor.offsetTop;
ancestor.style.setProperty('--x', 'bar');
container.style.width = '200px';
getComputedStyle(target).getPropertyValue('--x');
</script>