Bug 189363
| Summary: | Implement css-values toggle() notation | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simeon Vincent <svincent> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Enhancement | CC: | bfulgham, bugs.webkit.org, koivisto, nicolas, sam, sebastianzartner, simon.fraser |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Simeon Vincent
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Brent Fulgham
This doesn't appear to be on track to be implemented by any other browsers at present.