Custom Corner Shapes
Beyond `border-radius`, `corner-shape` offers `squircle`, `bevel`, `notch`, and `mixed` for unique element contours.
corner-shape: squircle;
Advanced Clip-Path
Define complex geometric clipping paths using SVG-like syntax within CSS's `clip-path`, enabling intricate shapes.
clip-path: polygon(evenodd, 50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
True Element Stretch
`width: stretch; height: stretch;` provides a genuine 100% fill of its container, respecting margins and padding.
width: stretch; height: stretch;
Precise Text Trimming
`text-box-trim` and its variants (`trim-start`, `trim-end`, `trim-both`) control whitespace around text for pixel-perfect alignment.
text-box-trim: trim-both cap text;
Sibling Index Function
The `sibling-index()` function returns an element's 1-indexed position among its siblings, enabling dynamic styling based on order.
width: calc(sibling-index() * 50px);
Scroll State Queries
Style elements based on a container's scroll state (`stuck`, `snapped`) using `@container (scroll-state: ...)` without JavaScript.
@container (scroll-state: stuck) { ... }
Custom CSS Functions
Define reusable CSS logic with `@function` to generate dynamic values and simplify complex calculations.
@function alpha($color, $opacity) { ... }
Conditional Styling (if())
The `if()` function enables conditional styling based on custom properties, media queries, or feature support.
if(supports('display: grid'), ..., ...)
Responsive Values
Create custom functions that adapt values across different breakpoints, simplifying responsive design.
font-size: narrow-wide(16px, 24px);
CSS Power Unleashed
These advancements empower developers to achieve complex UIs and interactions previously requiring JavaScript, boosting performance.
Explore. Innovate. Build.