W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

Re: [csswg-drafts] [selectors] sibling and ::after selector in one

From: SelenIT via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Dec 2017 07:17:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-350640697-1512976633-sysbot+gh@w3.org>
And since it would be not usable in stylesheets, and JS devs would use more interoperable solutions (though probably 2-liners insteas of 1-liner) to check if a selected element has a certain element inside, browser vendors would have little interest in adding extra complexity to their CSS parsing engines for this very specific case only.

What web devs constantly ask for (and what can become a good competitive point for the browser vendors) is the ability to style things depending on the contents, even with more limitations than `:has()` in a dynamic profile would have in theory (something like `:has-children()` in the dynamic profile would be great!).

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2094#issuecomment-350640697 using your GitHub account
Received on Monday, 11 December 2017 07:17:18 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:21 UTC