Re: [csswg-drafts] [css-selectors] Proposal for allowing selectors that depend on layout (:stuck, :snap, :on-screen, etc) (#5979)

Also, I guess that there should be a child or descendant combinator (or pseudo-element?) after `:stuck`. `+` or `~` are not enough because if `:stuck` can impact later siblings, they can affect the size of the containing block, which can affect whether the element is stuck. Alternatively, the containing block should also have size containment.

And mixing with `:has()` should be invalid, or `:has(> :is(:stuck > *))` would bypass the restriction.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5979#issuecomment-778520893 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 13 February 2021 00:03:29 UTC