CSS @layer: Managing Cascade Layers in WordPress Themes
CSS cascade layers (@layer) in a WordPress theme In a WordPress page, the CSS comes from many places: core block styles, global styles from theme.json, the theme, every plugin. Which rule wins depends on specificity and order, and themes end up with long selectors or !important to beat a plugin. @layer adds a new step…
Details