force-sibling-style-crash.html (549B)
1 <!DOCTYPE html> 2 <title>getComputedStyle on sibling of style-dirty container</title> 3 <link rel="help" href="https://drafts.csswg.org/css-conditional-5/#size-container"> 4 <link rel="help" href="https://crbug.com/1306385"> 5 <div id=ancestor style="--x:foo"> 6 <div id=container style="container-type:size;width:100px;"> 7 <span>Test</span> 8 </div> 9 <div id=target></div> 10 </div> 11 <script> 12 ancestor.offsetTop; 13 ancestor.style.setProperty('--x', 'bar'); 14 container.style.width = '200px'; 15 getComputedStyle(target).getPropertyValue('--x'); 16 </script>