Anonymous style caching doesn't work as it should on mac by default.
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
People
(Reporter: emilio, Unassigned)
References
Details
For disabled and inactive scrollbars (scrollbars when there's no scroll range), this CSS rule breaks scrollbar caching for all the scrollbar elements, unless I'm missing something.
The scrollbar caching code seems very error-prone... :(
| Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
In the comment I originally added I wrote regarding non-initial visibility values "don't bother adding this state to the AnonymousContentKey, since it's not so common", but if that's not true, then we can add a bit to handle visibility: hidden on the AnonymousContentKey.
Comment 2•6 years ago
|
||
Wouldn't be the visibility property we add to the key, but the active / disabled attributes I guess.
Comment 3•6 years ago
|
||
I'm curious though why the assertions don't fire given that rule?
Comment 4•6 years ago
|
||
Oh it's because it's the top-level scrollbar element that has its visibility set, not some element inside the tree.
Comment 5•6 years ago
|
||
Another thing to note is that this whole scroll part style caching mechanism helps with the initial styling (after frame construction), and doesn't kick in when we restyle the scroll parts as their attributes change. And given the way that we do the opacity animations, we can't really handle restyles. So given that, we shouldn't need to look at active (that's only set in response to activity).
Comment 6•6 years ago
|
||
Although (and apologies for the stream of consciousness comments!) we also never have disabled set at the time we do the initial styling of scrollbars, since we only set that in ScrollFrameHelper::FinishReflowForScrollbar.
Comment 7•6 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)
| Reporter | ||
Comment 8•4 years ago
|
||
Bug 1730503 will fix this.
Description
•