W3C home > Mailing lists > Public > www-style@w3.org > April 2019

color parsing from web manifest spec

From: Marcos Caceres <marcos@marcosc.com>
Date: Thu, 18 Apr 2019 15:06:49 +1000
Message-Id: <D29EBF1C-E695-466D-B05C-2CE1920D1C1D@marcosc.com>
To: www-style <www-style@w3.org>
Hi CSS WG,

Folks working on the web manifest spec are seeking guidance on how to correctly process a CSS Color value from outside the context of a stylesheet.

The Web Manifest spec defines members like:

```JSON
{
  "theme_color": "aliceblue",
  "background_color": "rgb(200,2,23)",
}
```

To process those members, we'd like to send them into the CSS parsing/processing machinery and get back either a parsing error or possibly a value in a canonical form (e.g., in Gecko, we convert to these members to hex value to pass to the Android subsystem). We could use some guidance on the appropriate entry points and the kinds of normalization's we should do on those values, if any. 

Happy to discuss here or on GitHub:
https://github.com/w3c/manifest/issues/760
Received on Thursday, 18 April 2019 05:07:15 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 18 April 2019 05:07:16 UTC