By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Google’s “What’s New in Web UI” Talk: Less Custom Component JavaScript, More Web Standards
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Google’s “What’s New in Web UI” Talk: Less Custom Component JavaScript, More Web Standards
News

Google’s “What’s New in Web UI” Talk: Less Custom Component JavaScript, More Web Standards

News Room
Last updated: 2025/06/07 at 11:25 PM
News Room Published 7 June 2025
Share
SHARE

Una Kravets recently presented in a talk recent developments in Web UI supported by the Chrome team. Some common UI patterns that currently require a significant amount of JavaScript may soon be implemented in a declarative manner with new features of HTML and CSS, with less custom JavaScript, and with built-in accessibility.

The talk focuses on three particularly tricky UI patterns: customizable select menus, carousels, and hover cards. All three UI patterns are commonly found in design systems, with many lines of JavaScript to implement custom styling, presentation, layout, interaction, or accessibility patterns. With browser vendors evolving web standards to incorporate those patterns away from userland into the browsers themselves, developers may have less work to do in the future and simply rely on the platform. Less custom JavaScript also benefits users in the shape of increased performance. The proposed declarative APIs have already shipped in at least one stable browser engine.

The first pattern discussed is the customizable select menu. The native <select> element’s internal structure has been historically difficult to style consistently across browsers:

A common frustration for developers who try to work with the browser’s built-in form controls (<select> and various <input> types) is that they cannot customize the appearance of these controls to fit their site’s design or user experience. In a survey of web developers about form controls and components, the top reason that devs rewrite their own versions of these controls is the inability to sufficiently customize the appearance of the native controls.

The building blocks for a customizable select are the Popover API and Anchor Positioning.

The Popover API handles the floating list of options, ensuring it appears above other UI elements, is easy to dismiss, and manages focus. Popover has reached baseline status and is now available in all browsers.

Command invokers (command and commandfor attributes) provide a declarative HTML solution similar to popovertarget for connecting button clicks to actions (e.g., opening a dialog), reducing the need for boilerplate JavaScript.

Anchor Positioning is a CSS API that lets developers position elements relative to other elements, known as anchors. This API simplifies complex layout requirements for many interface features like menus and submenus, tooltips, selects, labels, cards, settings dialogs, and many more. Anchor Positioning is part of Interop 2025, meaning that it should land in all browsers by the end of the year.

The improved select element anatomy showcases two parts, a button, and a popover anchored to that button, all with corresponding selectors for targeting and styling:

Styles can be applied to the popover through the selector ::picker(select). An example of custom styling is as follows:


select,
::picker(select) {
  appearance: base-select;
}


::select-fallback-button {
  background: gold;
  font-family: fantasy;
  font-size: 1.2rem;
}


::picker(select) {
  border-radius: 1rem;
}


option {
  font-family: monospace;
  padding: 0.5rem 1rem 0.5rem 0;
  font-size: 1.2rem;
}


option:checked {
  background: powderblue;
}


option:hover,
option:focus-visible {
  background-color: pink;
}


option::before {
  content: '';
  font-size: 80%;
  margin: 0.5rem;
}


body {
  padding: 2rem;
}

Developers are encouraged to review the full talk for additional technical details, demos, and explanations. The talk additionally explains how recent features from the CSS Overflow 5 specification, namely scroll buttons and scroll markers, enable scroll-driven animations (e.g., carousels) purely in CSS.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Nintendo Switch 2 launches in China with over 400,000 pre-orders on JD.com · TechNode
Next Article Linux 6.16 Lands Support For EcoNet MIPS Platforms
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

In the 50 we decided to bombard food cans with huge amounts of radiation. Thus we discover a new bacteria: ‘D. Radiodurans’
Mobile
Video game releases: 2025 or 2026?
Mobile
The Routing Enhancements for Go 1.22 That You Have to Know About | HackerNoon
Computing
Today's NYT Mini Crossword Answers for June 8 – CNET
News

You Might also Like

News

Today's NYT Mini Crossword Answers for June 8 – CNET

2 Min Read
News

Review: ELO Vagabond is a great full-size game controller for your iPhone or iPad mini – 9to5Mac

3 Min Read
News

Michigan Unemployment Insurance Software Revision entangled in delays, cost overruns

0 Min Read
News

You Don’t Have to Pay Dropbox Every Month Thanks to Internxt

3 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?