As someone who primarily uses British English, the fact that CSS does not accept colour as a valid property is rather irksome, especially when it accepts grey (and its deviations) as valid values. Why would CSS allow for British English in values, not but in properties?
According to the W3 CSS color specification, the official spelling for the CSS color value is gray:
However, it also accepts grey (and its deviations) just fine:
.gray {
color: gray;
}
.grey {
color: grey;
}
<span class="gray">gray</span>
<span class="grey">grey</span>
This also makes sense, given that the X11 color names (which CSS Colors Level 3 adapted from) list the grey spellings as valid alternatives.
But why then, does CSS Colors Level 3 not allow for colour as a property?
.color {
color: red;
}
.colour {
colour: red;
}
<span class="color">color</span>
<span class="colour">colour</span>
Is there a specific reason that the creators of the specification would allow for alternatives to values but not properties?
