4 ms·
Sorry, this isn't correct. Red is a perfectly valid color value. This is not about property expansion. This is because the source uses curly quotes, which ar
by JohnHaugeland 13y ago
Sorry, this isn't correct. Red is a perfectly valid color value. This is not about property expansion.
This is because the source uses curly quotes, which are not recognized as a parameter bracketing, and so the curly quotes are trying to be interpreted as part of the value.
Change the quotes to actual quotes and it starts working as expected.
- ender7 13y agoNo, the OP is correct. You're right that <red> is a valid CSS color keyword, but <”red”> is not. Because of this, the CSS spec treats it as a "legacy color value" and attempts to interpret it as a string of characters (including the quotes) rather than a keyword.
- beyti 13y agoyeap
- supermatt 13y agoThe quotes in my explanation are the 'curly' quotes. They just display differently on HN.