Chrome 的一些新特性

只挑出个人感兴趣的部分予以记录。

1 个赞

Chrome 111 支持 :nth-child(an + b of S) 了

Extend :nth-child(an + b) to take a selector, and the same with :nth-last-child. So e.g. :nth-child(3 of .c) is the third .c under a given parent. (This is not the same as .c:nth-child(3), which is a .c that must also be the third element under a given parent.)
1 个赞

Chrome 112 开始支持 CSS Nesting

Add the ability to nest CSS style rules inside other style rules, combining selectors from the outer with the inner rule for increasing modularity and maintainability of style sheets.

https://www.w3.org/TR/css-nesting-1/

你这是指chrome支持的css特性???