summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/shadow-dom/invalidate-sibling-different-slots.html
blob: 0846389a9e5a2c7b414a8c1346cfe3511a5a3bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<title>Invalidation works properly across siblings on different slots</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1794720">
<link rel="match" href="invalidate-sibling-different-slots-ref.html">
<style>
.x { display: table-header-group; }
.x + * { color: green }
</style>
<details open="">
  <summary id="a">Main summary</summary>
  <summary>Should be green</summary>
</details>
<script>
onload = function() {
  let a = document.getElementById("a");
  a.getBoundingClientRect();
  a.setAttribute("class", "x")
  a.getBoundingClientRect();
};
</script>