pref'ing off properties doesn't pref off their will-change support
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: dbaron, Assigned: emilio)
References
Details
Attachments
(1 file)
Assignee | ||
Comment 1•6 years ago
|
||
Comment hidden (mozreview-request) |
Comment 3•6 years ago
|
||
mozreview-review |
Assignee | ||
Comment 4•6 years ago
|
||
mozreview-review-reply |
Comment 5•6 years ago
|
||
mozreview-review-reply |
Comment 8•6 years ago
|
||
bugherder |
Comment 9•5 years ago
|
||
I was about to post a patch to remove the CSS Containment pref entirely (in bug 1626458), but I noticed this bug's reftest[1] depends on toggling that pref to false[2] (to be sure will-change
still works).
If I were to remove the CSS Containment pref, I assume this test would stop testing the codepath/conditions that it's intending to test. So for now, we can't remove that pref. (which is sort of fine, but perhaps not the best thing long-term)
How should we address this moving forward? Should we keep CSS Containment preffable, for the sake of this reftest & its code-coverage? Should we add a dummy pref that we can use for tests like this? Or just get rid of the test and cross our fingers that it doesn't regress? (probably not that one :) ) Something else?
[1] https://searchfox.org/mozilla-central/rev/fa2df28a49883612bd7af4dacd80cdfedcccd2f6/layout/reftests/bugs/1466008.html
[2] https://searchfox.org/mozilla-central/rev/fa2df28a49883612bd7af4dacd80cdfedcccd2f6/layout/reftests/bugs/reftest.list#2054
Updated•5 years ago
|
Reporter | ||
Comment 10•5 years ago
|
||
Just switch it to another pref-controlled property?
Assignee | ||
Comment 11•5 years ago
|
||
Yeah, so, that reftest relies on the observable effects of contain creating a fixed-pos containing block.
Other properties which are preffed with the same effect are the individual transform properties (layout.css.individual-transform.enabled
), or backdrop-filter
(layout.css.backdrop-filter.enabled
).
Using any of those instead would do.
Comment 12•5 years ago
•
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #11)
Yeah, so, that reftest relies on the observable effects of contain creating a fixed-pos containing block.
Other properties which are preffed with the same effect are the individual transform properties (
layout.css.individual-transform.enabled
)
This pref shipped as default-enabled in Firefox 72 (bug 1424900), and now we're up to having released Firefox 74, so it's kind of in the same boat as contain
in the sense that we're unlikely to un-ship it & we might as well remove its pref if possible. So, I'm hesitant to just kick the can over to this property.
or
backdrop-filter
(layout.css.backdrop-filter.enabled
).
That one might be a good fit, since it's complicated & will likely be webrender-dependent for the foreseeable future & hence we'll probably want to keep it preffable for a while.
Question: is it OK that the pref is off by default? (i.e. were you trying to exercise some condition where a default-enabled-property is dynamically preffed off, or is it sufficient for the property to simply be disabled, period [regardless of whether it's default-disabled or dynamically disabled]?)
Description
•