summaryrefslogtreecommitdiffstats
path: root/layout/style/nsCSSPseudoElementList.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-10-19 19:35:03 +0000
committerMoonchild <moonchild@palemoon.org>2020-10-20 09:49:51 +0000
commit5072843ee383bd8ae42e50aac304a33f803c0e6a (patch)
treef09f4243b691c447df8d5f26c683df645d9113d8 /layout/style/nsCSSPseudoElementList.h
parent87c4c77ad79f346d9104d9586c9928f30a500632 (diff)
downloadUXP-5072843ee383bd8ae42e50aac304a33f803c0e6a.tar
UXP-5072843ee383bd8ae42e50aac304a33f803c0e6a.tar.gz
UXP-5072843ee383bd8ae42e50aac304a33f803c0e6a.tar.lz
UXP-5072843ee383bd8ae42e50aac304a33f803c0e6a.tar.xz
UXP-5072843ee383bd8ae42e50aac304a33f803c0e6a.zip
Issue #1671 - Unprefix ::-moz-selection
This actually keeps both pseudo-elements for now, since the prefixed version is still used internally, but we need the unprefixed version for web compat. Note: while unprefixing a non-spec-compliant pseudo here, it's exactly in line with what other browsers do. Nobody is following the spec here and at least we'll be doing what everyone else is with our unprefixed version.
Diffstat (limited to 'layout/style/nsCSSPseudoElementList.h')
-rw-r--r--layout/style/nsCSSPseudoElementList.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/style/nsCSSPseudoElementList.h b/layout/style/nsCSSPseudoElementList.h
index 552c76734..b8393d395 100644
--- a/layout/style/nsCSSPseudoElementList.h
+++ b/layout/style/nsCSSPseudoElementList.h
@@ -37,6 +37,9 @@ CSS_PSEUDO_ELEMENT(firstLine, ":first-line",
CSS_PSEUDO_ELEMENT_IS_CSS2 |
CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
+CSS_PSEUDO_ELEMENT(selection, ":selection",
+ CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
+// Keep the prefixed version for now.
CSS_PSEUDO_ELEMENT(mozSelection, ":-moz-selection",
CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)