Re: [csswg-drafts] [css-pseudo-4] new generated content pseudo :between/:separator

I don't think @Loirooriol's example cover's the 2nd point laid out by @hfhchan where `::between` could make it so hit-testing is on the actual children items. The example might just need to alter `ul.recycler + ul.recycler::before` to `ul.recycler li + ul.recycler li::before`, adding in the `li` to the selectors? But still don't think that fully covers that point. Say, if it's not a `ul` with `li` inside, and instead just a `div` with `a` tags inside, I think forcing the use of `::before` would make styling `a:hover` cumbersome, instead having to style `a::contents:hover` as well as clicking on the `::before` would execute the link, unless it had `pointer-events: none` set?

All in all, I'm a huge fan of the `::contents` proposal and am more excited to see that land. But it doesn't seem to cover the possibility of generated content being truly between siblings.

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

Received on Monday, 30 July 2018 23:52:41 UTC