Re: [css-color] Exposing browser color parsing to JS

08.07.2014, 03:31, "Tab Atkins Jr." <jackalmage@gmail.com>:
> Given that most/all of this machinery already exists in the browser,
> it's kinda sad that people have to keep reinventing it. šWhat would
> y'all think about introducing a bit of a helper for this kind of
> thing, that exposes all of the parsing and serialization the browser
> does, and is easily extensible so authors can use it as the basis for
> their own color-using code?

Definitely a right idea.

It would also be nice to have native APIs to parse CSS declarations, rules, and entire stylesheets for the same reason.

Received on Tuesday, 8 July 2014 00:59:25 UTC