WordPress Developer Ukraine, Kyiv
CSS @supports: Progressive Enhancement and Feature Detection

CSS @supports: Progressive Enhancement and Feature Detection

@supports: progressive enhancement for new CSS in a theme A theme that uses new CSS features faces the same question again and again: what do visitors with an older browser see? @supports answers it explicitly. The basic layout works everywhere, and the enhanced version applies only where the browser understands the feature, tested by a…
CSS Reading Flow: Logical Order for Grid and Flex Layouts

CSS Reading Flow: Logical Order for Grid and Flex Layouts

reading-flow: keyboard order that follows a grid or flex layout Grid and flexbox make it easy to place items visually in a different order than in the HTML: order, grid-area, flex-direction: row-reverse, dense packing. Keyboard and screen reader users still move through the HTML order, so the focus jumps around the screen. The CSS property…
CSS if() Function: Inline Conditionals in Custom Properties

CSS if() Function: Inline Conditionals in Custom Properties

The CSS if() function: conditional values inside a declaration Until now, CSS chose between values only through selectors and at-rules: a class, a media query, an @supports block, each repeating the property. The if() function puts the condition into the value itself. A component can switch a value based on a custom property, a media…