For most of the web’s history, anything clever on a page needed JavaScript. A tooltip that stays next to its button, a card that rearranges itself, a smooth fade between two screens: all of it meant a script, and often a whole library.
That has changed faster than most site owners noticed. A wave of modern CSS features now handles these jobs inside the browser itself, with a few lines of styling and no script at all.
This matters even if you never write code. Less JavaScript means lighter pages, fewer things that break after an update, and a site that feels quicker on a cheap phone. Here are six features worth knowing in 2026, what each one replaces, and which ones are safe to rely on today.
Why modern CSS features matter for your site
Every script a page loads has to be downloaded, read and run before it can do anything. On a mid-range phone, that work competes with scrolling and tapping, which is why script-heavy pages feel sticky.
CSS is different. The browser handles it natively, usually off the main thread for animations, and it fails gently. If a browser does not understand a new CSS rule, it skips that rule and the page still works. A broken script can take a whole section down with it.
So each time a job moves from JavaScript to CSS, you get three wins: less code to load, smoother motion, and fewer support headaches.
A quick word on “Baseline”
You will see the word Baseline a lot below. It is a shared label from the browser makers that tells you how safe a feature is to use.
- Newly available means the feature works in the latest versions of Chrome, Edge, Firefox and Safari.
- Widely available means 30 months have passed since then, so nearly every visitor has it.
- Limited availability means at least one major browser still lacks it.
It is the simplest way to answer the question “can I use this yet?”
The 6 features at a glance
| Feature | What it replaces | Status in 2026 |
|---|---|---|
| Container queries | Resize scripts, extra breakpoints | Baseline since 2023, safe everywhere |
| :has() selector | Scripts that toggle parent classes | Baseline since December 2023, safe everywhere |
| CSS nesting | Sass and build tools for basic nesting | Baseline since 2023, safe everywhere |
| View transitions | Page transition and animation libraries | Baseline Newly available since October 14, 2025 |
| Anchor positioning | Tooltip and dropdown positioning libraries | Baseline Newly available since January 2026 |
| Scroll-driven animations | Scroll listener scripts and scroll libraries | Limited availability, use as an extra |
1. Container queries: components that adapt to their space
Classic responsive design asks one question: how wide is the screen? That breaks down quickly. The same pricing card might sit in a wide hero on one page and a narrow sidebar on another, on the same screen size.
Container queries ask a better question: how wide is the box this element lives in? A card can switch from a stacked layout to a side by side layout based on its own space, wherever you drop it.
This became Baseline in 2023, with support in Chrome and Edge 105, Firefox 110 and Safari 16. It has now passed the 30 month mark, so you can treat it as standard.
2. The :has() selector: the parent selector we waited 20 years for
CSS could always style a child based on its parent. It could never do the reverse. If you wanted a form row to turn red when the input inside it was invalid, you needed a script to add a class.
The :has() selector fixes that. You can style a card differently if it contains an image, highlight a menu item that has a dropdown, or dim the rest of a grid while one item is hovered. No script, no class juggling.
Firefox 121 completed the set in December 2023, so this one is safe across all major browsers too.
3. CSS nesting: tidier stylesheets with no build step
Nesting lets you write related rules inside each other, so the styles for a card, its title and its button live together in one block. Developers used tools like Sass for years mainly to get this.
Native nesting reached Baseline in 2023. For site owners the benefit is indirect but real: themes and plugins can ship cleaner CSS without an extra build process, and custom CSS you add to your own site is easier to read six months later.
4. View transitions: app-like page changes
When you tap a product in a good mobile app, the picture glides into its new position. On most websites, the page simply blinks and redraws.
The View Transitions API closes that gap. The browser takes a snapshot of the old state and the new state, then animates between them. A filter change, a tab switch or a gallery reshuffle can all move smoothly with very little code.
Same-document view transitions became Baseline Newly available on October 14, 2025, when Firefox 144 joined Chrome and Safari. Because the feature is still new, treat it as a polish layer. Visitors on older browsers simply see the normal instant change, which is perfectly fine.
5. Anchor positioning: tooltips and menus that stay put
Pinning one element to another sounds easy and never was. Tooltips, dropdowns and popovers have to follow their trigger, flip when they hit the edge of the screen, and stay aligned while the page scrolls. Sites loaded positioning libraries just for this.
CSS anchor positioning lets you name an element as an anchor and tether another element to it, including fallback positions for when space runs out. It pairs neatly with the built-in popover attribute for menus and hints.
It became Baseline Newly available in January 2026, when Firefox 147 shipped support. It is the newest fully supported feature on this list, so keep a sensible default position for visitors who have not updated their browser yet.
6. Scroll-driven animations: motion without scroll scripts
Progress bars that fill as you read, images that fade in as they enter the screen, headers that shrink as you scroll down. These effects usually rely on scripts that watch the scroll position many times per second, which is exactly the kind of work that makes pages stutter.
Scroll-driven animations link a normal CSS animation to scroll progress instead of a clock. The browser does the tracking, so the motion stays smooth.
This is the one to be careful with. Chrome and Edge have supported it since version 115, and Safari added it in Safari 26, but MDN still lists it as limited availability because it is not on by default in every major browser. Use it only for decoration. If the animation does not run, the content should still be visible and readable.
What this means for WordPress and Elementor sites
You do not need to rewrite anything. The shift happens mostly inside the tools you already use, as themes, builders and addons replace scripts with native browser features. A few practical habits help you benefit sooner:
- Keep everything updated. Newer versions of your theme, builder and addons are where the lighter code arrives.
- Audit your effects. If a plugin exists only to add one scroll effect or one tooltip, check whether your builder now covers it.
- Prefer widgets that load only what they use. A well built widget should not load scripts on pages where it does not appear.
- Test on a real phone. Smooth on a desktop tells you very little.
- Treat new features as enhancement. The page must work without them, and look better with them.
This is also how we think about building Bright Addons widgets: lean markup, CSS first, and scripts only where a feature truly needs them. If you want to see how a widget behaves before using it, the documentation walks through each one.
Frequently asked questions
Will modern CSS features replace JavaScript completely?
No. JavaScript is still the right tool for real logic, such as carts, form validation rules, search and anything that talks to a server. What is changing is that layout, positioning and animation no longer need it. Expect less JavaScript on good sites, not none.
Are these CSS features safe to use on a live site in 2026?
Container queries, :has() and nesting are safe everywhere. View transitions and anchor positioning work in all current major browsers, so use them with a simple fallback. Scroll-driven animations still have limited availability and should stay decorative.
Do I need to know how to code to benefit?
No. Most of the gain arrives through updates to your theme, page builder and addons. Knowing what the features do simply helps you choose lighter tools and avoid installing a plugin for something the browser now does on its own.
Will using more CSS and less JavaScript make my site faster?
Usually, yes. Less script means less to download and less work for the phone, which helps responsiveness scores. It is one part of the picture, though. Image sizes, hosting and caching still matter just as much.
The bottom line
The browser has become a far more capable design tool than it was even three years ago. These six modern CSS features take over work that once needed scripts and libraries, and five of them now work in every major browser.
You do not have to chase every new property. Keep your stack updated, remove plugins that duplicate what the browser already does, and choose tools that stay light by design. If you are building with Elementor, you can start with the 20 free Bright Addons widgets, and the Pro plans start at $19 per year when you need the full set of 60+.


