Remove about:config prefs for :has and :has-slotted that we've been shipping on-by-default for a while
| Tracking | Status | |
|---|---|---|
| firefox142 | --- | fixed |
| Assignee | |
Description•11 months ago
|
We've been shipping with layout.css.has-slotted-selector.enabled set to true since 136 (bug 1940691). Let's remove that pref, and a few others that are similarly removable.
| Assignee | |
Comment 1•11 months ago
|
Notes:
-
The selector_parser.rs change here will make 'HasSlotted' fall down
to a general case that returns true (matching what we currently do when the
pref is enabled) unless the PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME flag
is present. And that flag is not present for this pseudo-class, so we're good. -
There are a surprising number of failures annotated in
parse-has-slotted.tentative.html.ini, but we fail all the same subtests as
Chrome there (and nearly the same subtests as Safari) so I don't think we need
to worry about those. (Not sure whether that test is invalid vs. testing some
hypothetical not-shipped-anywhere changes to the feature, but in any case it
doesn't look like our failures are problematic.)
Updated•11 months ago
|
| Assignee | |
Comment 2•11 months ago
|
We shipped this default-enabled in Firefox 121, so it's probably not useful for it to be preffable at this point.
| Assignee | |
Comment 3•11 months ago
|
A few more that I intend to remove here or in a followup (going AFK in a few minutes so I'll add them later):
- layout.css.intrinsic-size-first-letter.enabled -- added as an escape-hatch in case of regressions (per bug 385615 comment 80), not needed anymore at this point.
- layout.css.motion-path-url.enabled -- default-enabled for ~2 years.
- layout.css.hyphenate-limit-chars.enabled -- default-enabled since 137 (5 releases now) in bug 1947183
| Assignee | |
Comment 4•11 months ago
|
(For now I'll land these patches as-is and file a followup on comment 3.)
https://hg.mozilla.org/mozilla-central/rev/43b53698b2b1
https://hg.mozilla.org/mozilla-central/rev/3d130958f3f2
Updated•10 months ago
|
