Elektrine lite

← Feed

@ollicle@mastodon.social

Post #1188594

2026-04-14 11:51 UTC

Chrome has added the `revert-rule` CSS property making it a universal implementation. https://bcd-watch.igalia.com/weekly-completed/2026-04-13.html Had to look it up. The spec example uses `revert-rule` as a fallback value in an `if()`. This may obscure its usefulness as a simple custom property fallback e.g.: ``` .featured { color: var(--featured-color, revert-rule); } ``` Here `color` is only assigned if `--featured-color` is defined! Useful when we want to fallback to a color defined by another class (rather than inherited).

Replies (0)

No replies.