How to Get Web Components Right
A set of browser standards for building reusable interface elements: custom elements, the shadow DOM for encapsulated markup and styles, and HTML templates with...
2013 articles with this tag
A set of browser standards for building reusable interface elements: custom elements, the shadow DOM for encapsulated markup and styles, and HTML templates with...
The choice of where and when a page's HTML is produced: on the server for each request, at build time as static files, or in the browser by JavaScript. At a gla...
Variables defined in CSS, such as --brand-color, that can be reused across a stylesheet and changed at runtime, often used to implement design tokens and themes...
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...
Showing 1,668 of 2,013