Invoker Commands: Additional Ways to Work With Dialog, Popover… and More?

Web browsers are experimenting with two HTML attributes — technically, they’re called “invoker commands” — that are designed to invoke popovers, dialogs, and further down the line, all kinds of actions without writing JavaScript. Although, if you do reach for JavaScript, the new attributes come with some new events that we can listen for.


Invoker Commands: Additional Ways to Work With Dialog, Popover… and More? originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

https://css-tricks.com/invoker-commands-additional-ways-to-work-with-dialog-popover-and-more/

Created 1mo | Nov 20, 2024, 4:40:30 PM


Login to add comment

Other posts in this group

A CSS Wishlist for 2025

2024 has been one of the greatest years for CSS: cross-document view transitions,

Dec 23, 2024, 3:10:04 PM | CSS tricks
The Little Triangle in the Tooltip

Today, I want to focus on what I'll call the little triangle in the tooltip. It receives minimal attention but it amazes you by how many ways there are to make them. Let's start with the simplest a

Dec 20, 2024, 5:30:19 PM | CSS tricks
How to Create Multi-Step Forms With Vanilla JavaScript and CSS

When was the last time you developed a multi-step form? There’s so much to think about and so many moving pieces that need to be managed. But doing it by hand can be a good exercise and a great way

Dec 18, 2024, 4:50:11 PM | CSS tricks
What ELSE is on your CSS wishlist?

What else do we want or need CSS to do? Chris kept a CSS wishlist, going back as far as 2013 and following back up on it in 2019. We all have things we'd like to see CSS do and we always will no ma

Dec 17, 2024, 8:10:04 PM | CSS tricks
Fluid Superscripts and Subscripts

How much attention do you pay to the alignments of your subscripts and superscripts? Lorenz Wöehr has you covered with a recipe for fluid scaling.


Dec 11, 2024, 8:30:05 PM | CSS tricks
Smashing Meets Product Design

I had the pleasure of hosting a recent Smashing Magazine workshop on product design, subbing for Vitaly Friedman who usual

Dec 10, 2024, 4:30:21 PM | CSS tricks
CSSWG Minutes Telecon (2024-12-04): Just Use Grid vs. Display: Masonry

The CSSWG met to try and finally squash a debate that has been going on for five years: whether Masonry should be a part of Grid or a separate system. We've got coverage of both presentations for y

Dec 10, 2024, 4:30:19 PM | CSS tricks