Bug 189363 - Implement css-values toggle() notation
Summary: Implement css-values toggle() notation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-06 12:12 PDT by Simeon Vincent
Modified: 2023-05-01 15:02 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Vincent 2018-09-06 12:12:58 PDT
Please implement the CSS Values specification's Toggle notation as defined in CSS Values 4 (working draft) https://drafts.csswg.org/css-values-4/#toggle-notation. The following summary and example come form that document:

The toggle() expression allows descendant elements to cycle over a list of values instead of inheriting the same value.

The following example makes <em> elements italic in general, but makes them normal if they’re inside something that’s italic:

> em { font-style: toggle(italic, normal); }

---

Issues in other browser vendor bug trackers

https://bugs.chromium.org/p/chromium/issues/detail?id=715070
https://bugzilla.mozilla.org/show_bug.cgi?id=363250
Comment 1 Brent Fulgham 2022-07-01 16:59:00 PDT
This doesn't appear to be on track to be implemented by any other browsers at present.