TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CSS: Has a Parent Selector Now

36 pointsby saranshkover 2 years ago

5 comments

pasover 2 years ago
anyone interested in what &quot;CSS is up to&quot; these days should look at the &quot;State of CSS 2022&quot; post&#x2F;comments: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33287471" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33287471</a> (beware, it&#x27;s <i>looong</i>, and mentions :has <a href="https:&#x2F;&#x2F;web.dev&#x2F;state-of-css-2022&#x2F;#has" rel="nofollow">https:&#x2F;&#x2F;web.dev&#x2F;state-of-css-2022&#x2F;#has</a> )
1123581321over 2 years ago
What’s holding up the Firefox implementation? Parent select is one feature that xpath would’ve provided earlier than the adopted selector spec. Glad to see it coming over.
评论 #33578771 未加载
评论 #33578920 未加载
CM30over 2 years ago
Have to say, I&#x27;m very excited to see all the new additions CSS is getting lately. Things like this and the has: selector are going to make web development way better than before.
johnthussover 2 years ago
Sweet! I’ve been wanting this for a long time.
windows2020over 2 years ago
Anyone have a great example of something that this enables to be achieved more simply than with a class name?
评论 #33580460 未加载