modern
.css
Search
⌘K
Snippets
123
Articles
Cheatsheet
Atlas
New
CSS
Reference
Units
What's new
History of CSS
Interop
Quiz
Build
CSS audit
Modern web
Baseline tracker
Tools
AI
Community
X (Twitter)
RSS feed
modern
.css
Audit your CSS
Log in
Sign up
Modern Architecture CSS Techniques
3 old vs modern architecture CSS techniques, side by side.
3
Widely available
0
Newly available
0
Limited availability
All
123
Layout
44
Animation
19
Typography
13
Selectors
12
Workflow
12
HTML
11
Colors
8
Architecture
3
Accessibility
1
Browser compatibility:
All
Widely available
Newly available
Limited availability
Organize CSS without specificity wars
Old approach: stack selectors, raise specificity, throw !important. Cascade layers let you declare a priority order once, then write clean CSS.
@layer
Widely available
Prevent z-index from escaping containers
Child elements with z-index normally overflow and overlap elements outside their container, like fixed headers or floating sidebars. The isolation property creates a new stacking context, keeping z-index values contained within the element and its descendants.
isolation
Widely available
Windows High Contrast support without broken UI
Windows High Contrast and similar forced-color modes ignore most of your CSS. Custom backgrounds are replaced, drop shadows disappear and border colours are swapped for system colours. <code>forced-colors</code> lets you opt back in with system colors that the OS guarantees will be readable.
forced-colors
Widely available