Bug 224509 - `<meta name="theme-color" content="...">` should also support CSS `currentcolor`
Summary: `<meta name="theme-color" content="...">` should also support CSS `currentcolor`
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 220944
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-13 14:27 PDT by Devin Rousso
Modified: 2023-05-13 11:52 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2021-04-13 14:27:22 PDT
According to <https://html.spec.whatwg.org/multipage/semantics.html#meta-theme-color>, we need to parse `content` as a CSS `<color>` value <https://html.spec.whatwg.org/multipage/infrastructure.html#parsed-as-a-css-color-value>, which explicitly mentions `currentcolor`.
Comment 1 Devin Rousso 2021-04-13 14:27:52 PDT
<rdar://problem/74814749>
Comment 2 Roman Czerkies 2023-05-13 11:52:49 PDT
`<meta name="theme-color" content="...">` should also support CSS `hwb()`, `lch()`, and `oklch()` color functions (https://drafts.csswg.org/css-color/#typedef-color).