HSL color demo spends large time in nested grid reflow, when you drag a slider to adjust a color
Categories
(Core :: Layout: Grid, defect)
Tracking
()
Performance Impact | low |
People
(Reporter: mayankleoboy1, Unassigned)
References
Details
(Keywords: perf:responsiveness)
go to https://codepen.io/thebabydino/pen/RwoOMOZ
Drag the sliders in the demo
ER: Smoothness
AR : Janky updates
Comment 1•4 years ago
|
||
Thanks for the testcase and the profile!
Looks like the testcase has CSS grids ~6 levels deep, and we're spinning our wheels in grid reflow (remeasuring content, etc).
Really, nothing in the testcase seems to change size or position when I drag the slider (other than the slider itself), so I hope that we could optimize away most of the reflowing/remeasuring here.
For archival/posterity, here's a fork of the current demo (just in case the original one happens to change in a way that makes the issue harder to reproduce):
https://codepen.io/dholbert/pen/abpmLzZ
Updated•4 years ago
|
Comment 2•3 years ago
|
||
with the layout.css.grid-item-baxis-measurement.enabled
pref turned on (default on for Nightly), I can no longer reproduce the jankyness for dragging the slider.
Reporter | ||
Comment 3•3 years ago
|
||
Agree. We can close this bug as resolved.
Thanks!
Updated•3 years ago
|
Description
•