Closed
Bug 853833
Opened 13 years ago
Closed 2 years ago
Changing computed box-shadow causes reflow
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1194480
People
(Reporter: ttaubert, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
|
3.15 KB,
application/xhtml+xml
|
Details |
I'm currently trying to move about:newtab (the newtab page) from XUL flexbox to CSS3 flexbox. After re-writing most of the styles and opening the new page I noticed that the box-shadow style applied to .site:hover is quite unresponsive (esp. in the original layout, not really bad in the minimized example) when hovering the elements.
Looking at the profiler it seems that every time I'm entering and leaving one of the .site elements we do a reflow. Those reflows seem to go away when removing the .site:hover rule or removing the span.thumb elements in .link (which is quite weird because they have no styles at all).
http://people.mozilla.com/~bgirard/cleopatra/#report=2ae6b0f8335f3ba5379acfb0b9323916ed792371
I tried to minimize the test case as much as possible so that reflows are still there. The lag itself is not that noticeable on a fast machine.
| Reporter | ||
Updated•13 years ago
|
Attachment #728193 -
Attachment mime type: text/html → application/xhtml+xml
Comment 1•13 years ago
|
||
Changes in box-shadow trigger a reflow. See CalcShadowDifference in nsStyleStruct.cpp.
See also bug 719177 which attempted to fix this and got backed out... Mats, is there a plan to reland it?
Depends on: 719177
Flags: needinfo?(matspal)
Summary: Hovering flexbox elements with box-shadows causes reflows → Changing computed box-shadow causes reflow
Comment 2•11 years ago
|
||
I don't plan to work on that, no. I think it might even have been fixed
by others now.
Flags: needinfo?(mats)
Not fixed yet, but bug 984226 did most of the prerequisite work needed.
Updated•3 years ago
|
Severity: normal → S3
Comment 4•2 years ago
|
||
Hmm, the test case seems to perform well now. Do you think bug 1194480 fixed this case?
Flags: needinfo?(dholbert)
Comment 5•2 years ago
|
||
I think so, yeah. Thanks!
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1194480
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•