CSS Cascade Layers: What Actually Works
The @layer rule, which lets developers group styles into named layers with an explicit order of precedence, independent of selector specificity. Where most proj...
Category · 251 articles
Websites and web products that load fast, read clearly and hold up under maintenance.
The @layer rule, which lets developers group styles into named layers with an explicit order of precedence, independent of selector specificity. Where most proj...
A relational pseudo-class that selects an element based on what it contains or what follows it, such as a card that contains an image or a form field with an in...
Native CSS support for writing rules inside other rules, similar to preprocessors like Sass, so related styles for a component can be grouped together. At a gla...
CSS properties that describe layout in terms of the text flow, such as margin-inline-start and padding-block, rather than physical directions like left and top....
Setting font sizes that scale smoothly with the viewport between a minimum and maximum, using the CSS clamp() function. The key figures Function clamp(minimum,...
CSS that makes a scroll container settle on defined positions, used for carousels, galleries and full-screen sections without JavaScript. Where most projects go...
A browser API that animates between two states of a page, or between pages, by capturing snapshots and cross-fading or morphing elements. Why does it matter? It...
A native HTML element for modal and non-modal dialogs, with built-in focus handling, a backdrop and closing with the Escape key. At a glance Modal opened with s...
Native HTML elements that create an expandable disclosure widget, where the summary is always visible and the rest of the content toggles open and closed. What...
An HTML element that lets a page offer different image files for different screen sizes, formats or conditions, such as a tighter crop on phones or an AVIF vers...
Embedding third-party content such as maps, videos, forms and widgets with iframes, and the attributes that limit what embedded content can do. Where most proje...
How websites store small pieces of data in the browser, and the attributes such as Secure, HttpOnly and SameSite that control how cookies are sent and accessed....
Showing 72 of 251
The work behind this topic, and what it costs.