Chrome 的一些新特性


1 Like

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 Like

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.