CSS Sticky is supported by all modern browsers.
However, we currently need sticky events to toggle a stuck/unstuck class.
Sticky events are currently implemented using 'top' and 'bottom' helpers, before and after the sticky node.
To be able to do that and keep html editor compatibility, one has to place them in a "shadow root":
CSS Sticky is supported by all modern browsers. However, we currently need sticky events to toggle a stuck/unstuck class.
Sticky events are currently implemented using 'top' and 'bottom' helpers, before and after the sticky node. To be able to do that and keep html editor compatibility, one has to place them in a "shadow root":
The custom element here wouldn't carry the sticky class, only the block-content would: this is a breaking change for CSS.