Direct link to the article Platform News: Prefers Contrast, MathML, :is(), and CSS Background Initial Values

Platform News: Prefers Contrast, MathML, :is(), and CSS Background Initial Values

In this week’s round-up, prefers-contrast lands in Safari, MathML gets some attention, :is() is actually quite forgiving, more ADA-related lawsuits, inconsistent initial values for CSS Backgrounds properties can lead to unwanted — but sorta neat — patterns.…

Avatar of Šime Vidas
Šime Vidas on (Updated on )

:is

The pseudo-select :is() in CSS allows you to write compound selectors more tersely. For example, rather than writing:

ul li,
ol li {}

We could write:

:is(ul, ol) li {}
Avatar of Geoff Graham
Geoff Graham on (Updated on )