Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /shadow-dom/invalidate-sibling-different-slots.html - WPT Dashboard Interop Dashboard
 
 
<!doctype html>
<title>Invalidation works properly across siblings on different slots</title>
<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>