blob: 093a01b809d97b00f797c3be14706cbb4d742ede (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<title>getComputedStyle on sibling of style-dirty container</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#size-container">
<link rel="help" href="https://crbug.com/1306385">
<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>
|