[csswg-drafts] [css-scroll-anchoring-1] Opting out of suppression (ie. opting into *more* anchoring) (#4317)

stuartpb has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scroll-anchoring-1] Opting out of suppression (ie. opting into *more* anchoring) ==
The spec defines the `overflow-anchor: none` and `auto` properites, but it also defines [a couple of edge cases that aren't handle by default, due to their poor interactions with legacy content](https://drafts.csswg.org/css-scroll-anchoring/#suppression-triggers).

Would it be possible for page authors to include some kind of opt-in rules to say "my content plays nicely with scroll anchoring", so that they may reap its benefits even when they're taking the kinds of operations that normally suppress it?

For changes to layout-affecting properties (ie. [SANACLAP](https://github.com/WICG/ScrollAnchoring/blob/master/explainer.md#sanaclap), maybe there could be a property like `overflow-anchor-reflow` that allows the element to change its layout, so long as whatever element being anchored has the same layout (or maybe even a more descriptive property to articulate how the anchor should be interpreted if its own layout changes)?

For changes to `position`, maybe there could be an opt-out-of-suppression if the element whose `position` is being adjusted also has a computed `overflow-anchor: none` (signalling that it was authored with awareness that it could have otherwise treated as an anchor).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4317 using your GitHub account

Received on Tuesday, 17 September 2019 00:47:45 UTC