At most x children

PHOTO EMBED

Fri Nov 25 2022 23:52:19 GMT+0000 (Coordinated Universal Time)

Saved by @danlourenco #css

/* At most 3 (3 or less, excluding 0) children */
ul:has(> :nth-child(-n+3):last-child) {
	outline: 1px solid red;
}
content_copyCOPY

https://www.bram.us/