Bug 1840116 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

**Steps to reproduce**
1. Navigate to `data:text/html,<meta charset=utf8><h1>Hello</h1><script>const s = new CSSStyleSheet();s.replaceSync(`body {h1 { color: red }}`);document.adoptedStyleSheets.push(s);</script>`
1. Inspect the `Hello` element
1. There should be a `h1` selector above the rule, modify it to `h2`

**Expected results**

The selector updates to `h2`

**Actual results**

The selector does not update and stays `h1`

---
**Steps to reproduce**
1. Navigate to `data:text/html,<meta charset=utf8><h1>Hello</h1><script>const s = new CSSStyleSheet();s.replaceSync("body {h1 { color: red }}");document.adoptedStyleSheets.push(s);</script>`
1. Inspect the `Hello` element
1. There should be a `h1` selector above the rule, modify it to `h2`

**Expected results**

The selector updates to `h2`

**Actual results**

The selector does not update and stays `h1`

---

Back to Bug 1840116 Comment 0