Select html in CSS: Senior Dev Guide to Root Selectors
There are several ways to select the html element in CSS, each with different specificity levels. From the standard :root pseudo-class to modern :scope and structural hacks like :not(* > *), Ahmad Wael breaks down which selectors are best for performance and which are just technical curiosities.