Will-change prevents fixed positioning #3150
Labels
blocked
Waiting on a dependency, other feature, etc., first
solution found
A solution exists; just needs to be applied
tweak
Small, non-breaking change
Issue description
First of all, this is not a bug, this is a known collision from two CSS properties, and it does not affect the tool in a negative way in its purpose of creating printable documents.
That said, i've been trying to create a sort of sidebar for documents to be seen and shared as links, because i think they can be of use.
But the property
will-change: transform
breaksposition:fixed
, and renders fixed sidebars impossible to make. I hereby ask for that property to be removed, and an alternative to be considered, if there is one.Why is it there?
From the official documentation: "The will-change property provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element. This allows the user agent to perform ahead-of-time any optimizations necessary for rendering those changes smoothly, avoiding “jank” when the author does begin changing or animating that feature."
Other arguments to have in mind
Good practice, from MDN: "adding will-change directly in a stylesheet implies that the targeted elements are always a few moments away from changing and the browser will keep the optimizations for much longer time than it would have otherwise. So it is a good practice to switch will-change on and off using script code before and after the change occurs."
Last resort, from MDN:
will-change
is intended to be used as a last resort, in order to try to deal with existing performance problems. It should not be used to anticipate performance problems.The text was updated successfully, but these errors were encountered: