TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

CSS: Has a Parent Selector Now

36 点作者 saranshk超过 2 年前

5 条评论

pas超过 2 年前
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> )
1123581321超过 2 年前
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 未加载
CM30超过 2 年前
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.
johnthuss超过 2 年前
Sweet! I’ve been wanting this for a long time.
windows2020超过 2 年前
Anyone have a great example of something that this enables to be achieved more simply than with a class name?
评论 #33580460 未加载