惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
J
Java Code Geeks
S
SegmentFault 最新的问题
L
LangChain Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
H
Help Net Security
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 叶小钗
美团技术团队
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
New Features Added to the Web Platform in May 2026
Homayoun Mohammadi · 2026-06-03 · via DEV Community

The web platform keeps evolving every month, and May 2026 introduced several surprisingly useful improvements across modern browsers.

New releases from:

  • Chrome 148
  • Firefox 151
  • Safari 26.5

brought better CSS capabilities, improved performance APIs, and new browser features that can make web apps feel more modern and efficient.

Here are some of the most interesting updates developers should know about.

1. The :open CSS pseudo-class is finally fully supported

One of the most practical CSS improvements this month is the :open pseudo-class becoming Baseline supported across major browsers.

This lets developers style elements based on whether they are open or closed.

Examples:

  • <details>
  • <dialog>
  • date pickers
  • color pickers
  • <select> dropdowns

Before this, developers often used attributes like:

details[open]

Enter fullscreen mode Exit fullscreen mode

Now we can simply use:

:open

Enter fullscreen mode Exit fullscreen mode

which is cleaner, easier to read, and more semantic.

This may look like a small change, but it improves maintainability in larger UI systems.

2. Container queries just became much easier to use

Container queries continue getting better.

Previously, developers had to define both:

  • a container name
  • and a container type

just to query a container.

Now browsers support name-only container queries.

Example:

#container {
  container-name: --sidebar;
}

@container --sidebar {
  .content {
    padding: 2rem;
  }
}

Enter fullscreen mode Exit fullscreen mode

This removes extra setup and makes responsive component-based design much simpler.

For frontend developers working with design systems, this is a very welcome improvement.

3. CSS style queries are now supported everywhere

Firefox 151 added support for style queries using custom properties.

This means developers can now apply styles depending on CSS variables defined on parent containers.

Example:

@container style(--theme: dark) {
  .card {
    background: #1a1a1a;
    color: white;
  }
}

Enter fullscreen mode Exit fullscreen mode

This opens the door for much smarter theming systems and reusable UI components.

Instead of relying heavily on JavaScript, many dynamic styling behaviors can now be handled directly in CSS.

4. Native lazy loading for video and audio

Chrome 148 introduced lazy loading support for:

  • <video>
  • <audio>

using:

loading="lazy"

Enter fullscreen mode Exit fullscreen mode

This works similarly to lazy loading images.

Media files will only load when they are close to entering the viewport.

Benefits:

  • faster page loads
  • reduced bandwidth usage
  • better performance on mobile devices

For content-heavy websites, this can make a noticeable difference.

5. Firefox now supports the Document Picture-in-Picture API

This is one of the most interesting additions this month.

Unlike traditional Picture-in-Picture that only works for videos, the Document Picture-in-Picture API allows developers to open an always-on-top floating window containing custom HTML content.

Possible use cases:

  • floating music players
  • meeting controls
  • timers
  • stock trackers
  • productivity widgets

This creates opportunities for much richer multitasking experiences on the web.

6. The Web Serial API is expanding

Firefox 151 added support for the Web Serial API on desktop, while Chrome 148 added Android support.

This API allows websites to communicate with hardware devices like:

  • microcontrollers
  • Arduino boards
  • 3D printers
  • embedded systems

The web platform continues moving beyond traditional websites and becoming more capable as an application platform.

Beta Features Worth Watching

Some exciting features also appeared in beta browser releases.

Chrome 149 Beta

Includes:

  • CSS gap decorations
  • improved shape-outside
  • Promise-based smooth scrolling APIs
  • better BFCache support for WebSockets

Firefox 152 Beta

Includes:

  • full support for field-sizing
  • improved Notifications API
  • better animation APIs

These features are not fully stable yet, but they show where modern frontend development is heading.

Final Thoughts

What makes these updates interesting is not just the number of new features.

It’s how much the web platform is improving developer experience.

Many things that previously required:

  • JavaScript workarounds
  • heavy frameworks
  • custom hacks

can now be done directly with modern CSS and native browser APIs.

The web keeps becoming more powerful, more performant, and more capable every month.