summaryrefslogtreecommitdiff
path: root/layout/style/nsCSSPseudoElementList.h
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-03-18 09:36:25 +0800
committerMoonchild <moonchild@palemoon.org>2023-03-23 12:17:59 +0100
commit5fc444a0b6e47fb3ab1168ad0cb49a95a38c9dfb (patch)
tree43eac09c4e676acf3e783fa423c2e15405cadba3 /layout/style/nsCSSPseudoElementList.h
parentd2be38e92b72b0cb53eb5c42acbde83a46e4a6b4 (diff)
downloaduxp-5fc444a0b6e47fb3ab1168ad0cb49a95a38c9dfb.tar.gz
Issue #1592 - Part 2: Parse ::slotted() pseudo-element as if it were a pseudo-class
- Block slot elements from being matched by ::slotted - Ensure ::slotted() is serialized as a pseudo-element - Add pref to control whether the pseudo-class is enabled
Diffstat (limited to 'layout/style/nsCSSPseudoElementList.h')
-rw-r--r--layout/style/nsCSSPseudoElementList.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/style/nsCSSPseudoElementList.h b/layout/style/nsCSSPseudoElementList.h
index b8393d3952..93ce44e788 100644
--- a/layout/style/nsCSSPseudoElementList.h
+++ b/layout/style/nsCSSPseudoElementList.h
@@ -28,6 +28,10 @@
CSS_PSEUDO_ELEMENT(after, ":after", CSS_PSEUDO_ELEMENT_IS_CSS2)
CSS_PSEUDO_ELEMENT(before, ":before", CSS_PSEUDO_ELEMENT_IS_CSS2)
+// XXX: ::slotted() is treated as if it were a pseudo-class, and
+// is never parsed as a pseudo-element.
+CSS_PSEUDO_ELEMENT(slotted, ":slotted", 0)
+
CSS_PSEUDO_ELEMENT(backdrop, ":backdrop", 0)
CSS_PSEUDO_ELEMENT(firstLetter, ":first-letter",