W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

[csswg-drafts] [css-color] spec is confused about initial value of 'color'

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Oct 2017 19:15:36 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-263545358-1507317321-sysbot+gh@w3.org>
tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color] spec is confused about initial value of 'color' ==
[CSS 2.1](https://drafts.csswg.org/css2/colors.html#q1) says that the initial value of 'color' is UA-defined, and gives no further details.  [Color 3](https://drafts.csswg.org/css-color-3/#foreground) maintains this.

[Color 4](https://drafts.csswg.org/css-color/#the-color-property) keeps that wording in the "Initial Value" section, but then immediately says the initial value is "black" in the prose.  HTML also says it should be black.

This is confusing and weird? I presume that the UA dependence was initially to allow for a11y concerns (letting the UA default the canvas to a dark color and the text to a light color), right? (Or maybe to accommodate console browsers?)

Do we still need this, or can we just say that the initial value is `black`?

If we can't, we at least need to clean up the wording in Color 4, as it currently contradicts itself in a confusing manner.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1851 using your GitHub account
Received on Friday, 6 October 2017 19:15:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC