@supports
@property
:has()
:where()
image-set()
image()
@scope
nth-child of S
@supports (display: table-cell) and (display: list-item) { //... }
@property --property-name { syntax: "<color>"; inherits: false; initial-value: #c0ffee; }
a:has(> img) { border: 2px solid grey; }
:where(header, main, footer) p:hover { color: red; cursor: pointer; }
@layer layer-name {rules}
.parent { color: blue; .child { color: red; } }
.box { background-image: image-set( url("small-balloons.jpg") 1x, url("large-balloons.jpg") 2x); }
.foo { background-image: image("myimage.webp#xywh=0,20,40,60"); }
@scope (.card) { :scope { padding: 1rem; } .title { font-size: 1.2rem; } }
Pre-filter a set of child elements before applying nth-child to it.
nth-child
:nth-child(2 of .highlight) border: 2px red solid; }