Skip to content

Commit

Permalink
Don't invalidate for nth-of without style data.
Browse files Browse the repository at this point in the history
We don't need to, and it trips assertions down the line when we try to
mark stuff as dirty.

Differential Revision: https://phabricator.services.mozilla.com/D238482

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1935785
gecko-commit: f9f51d3d7f2a3853eac05e7c05d16b8820eaca63
gecko-reviewers: jwatt
  • Loading branch information
emilio authored and moz-wptsync-bot committed Feb 18, 2025
1 parent 0103ba8 commit 01eb118
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions css/selectors/has-nth-of-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1935785">
<style>
*:has([e]),
:nth-last-child(n of:read-only[d=""][b=""] d){}
</style>
<script>
const func_1 = (e) => {
e.originalTarget.scrollTop = 2147483647
}
document.addEventListener("DOMContentLoaded", () => {
document.documentElement.setAttribute("contenteditable", true)
let a = document.createElementNS("http://www.w3.org/1999/xhtml", "a")
document.documentElement.appendChild(a)
document.documentElement.hidden = true
a.addEventListener("DOMAttrModified", func_1, true)
a.draggable = true
document.documentElement.removeAttribute("contenteditable")
a.setHTML("", { })
})
</script>
<marquee>

0 comments on commit 01eb118

Please sign in to comment.