TIL the @layer feature in CSS
POSTED ON:
With @layer
, the entry file can pre-define layers, and their order, ahead of time. Then, as styles load, are loaded or defined, they can be placed within a layer, allowing a preservation of style override importance but without the meticulously managed loading orchestration.
If you're big into Photoshop layers, it works just like that! No more micro-managing each piece!
Related TILs
Tagged: webdev