Bug 1449089 part 3 - Remove pref layout.css.scope-pseudo.enabled. r?emilio
It was never effective in Stylo anyway.
MozReview-Commit-ID: EF7NnS6uxOO
--- a/dom/base/test/file_bug416317.xhtml
+++ b/dom/base/test/file_bug416317.xhtml
@@ -222,23 +222,17 @@
::select { background: red; }
..test { background: red; color: yellow; }
.foo..quux { background: red; color: yellow; }
.bar. { background: red; color: yellow; }
</span>
<script><![CDATA[
window.onload = function() {
- if (window.parent && window.parent.SpecialPowers) {
- window.parent.SpecialPowers.pushPrefEnv(
- { 'set': [[ "layout.css.scope-pseudo.enabled", true]] },
- doTest);
- } else {
- doTest();
- }
+ doTest();
}
function doTest(){
if ( !window.location.hash.includes("target") )
window.location.hash = "#target";
var root = document.getElementById("root");
var root2 = document.getElementById("root2");
--- a/layout/style/nsCSSPseudoClassList.h
+++ b/layout/style/nsCSSPseudoClassList.h
@@ -120,17 +120,17 @@ CSS_PSEUDO_CLASS(mozTableBorderNonzero,
CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS, "")
// Matches HTML frame/iframe elements which are mozbrowser.
CSS_PSEUDO_CLASS(mozBrowserFrame, ":-moz-browser-frame",
CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME, "")
// Matches whatever the contextual reference elements are for the
// matching operation.
-CSS_PSEUDO_CLASS(scope, ":scope", 0, "layout.css.scope-pseudo.enabled")
+CSS_PSEUDO_CLASS(scope, ":scope", 0, "")
// :not needs to come at the end of the non-bit pseudo-class list, since
// it doesn't actually get directly matched on in SelectorMatches.
CSS_PSEUDO_CLASS(negation, ":not", 0, "")
// :dir(ltr) and :dir(rtl) match elements whose resolved
// directionality in the markup language is ltr or rtl respectively.
CSS_STATE_DEPENDENT_PSEUDO_CLASS(dir, ":dir", 0, "",
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -3106,19 +3106,16 @@ pref("layout.css.prefixes.gradients", tr
// Are webkit-prefixed properties & property-values supported?
pref("layout.css.prefixes.webkit", true);
// Are "-webkit-{min|max}-device-pixel-ratio" media queries supported?
// (Note: this pref has no effect if the master 'layout.css.prefixes.webkit'
// pref is set to false.)
pref("layout.css.prefixes.device-pixel-ratio-webkit", false);
-// Is support for the :scope selector enabled?
-pref("layout.css.scope-pseudo.enabled", true);
-
// Is support for background-blend-mode enabled?
pref("layout.css.background-blend-mode.enabled", true);
// Is support for CSS text-combine-upright (tate-chu-yoko) enabled?
pref("layout.css.text-combine-upright.enabled", true);
// Is support for CSS text-combine-upright: digits 2-4 enabled?
pref("layout.css.text-combine-upright-digits.enabled", false);