W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
Date: Mon, 30 Jul 2018 23:52:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-409048781-1532994752-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 9 October 2019 08:16:46 UTC