Css baseline 2021
Overview of 2021 baseline css features
All the features are Widely available because they all passed 36 months since being newly available.
:where()
:where()
takes a selector list as its argument, and matches any element that can be selected by one of the selectors in that list.
:not()
:not()
matches elements that do not match the selectors in its arguments
:is()
:is()
Clip Path
clip-path
sets the visible area of an element using coordinates.
Flexbox Gap
The very useful gap from grid layout gap column-gap row-gap
is now also available for flex containers.
File Selector Button
::file-selector-button
selects the button part of a <input type="file>
|
|
Font Family System
font-family: system-ui
uses the operating system default font for text.
Just as this website does.
Fit Content
fit-content
expands a box as needed to fit its contents until the maximum size is reached, preserving aspect ratio.
Logical Properties
Borders, padding, margin and size relative to the writing mode. border-left:
becomes border-inline-start:
Aspect Ratio
Some examples
|
|