3 ms·
> This is a declaration where the value of --foo is literally one space character. I don't know if this is technically accurate though it leads to the same res
by junon 6y ago
> This is a declaration where the value of --foo is literally one space character.
I don't know if this is technically accurate though it leads to the same result. Whitespace in such languages is generally ignored - I believe this would just result in an empty property under the hood.
EDIT: also why the off-kilter background shapes for the code blocks. It made me dizzy reading the article.
- chrismorgan 6y agoSpeaking bluntly: you don’t know what you’re talking about here (you’re talking in generalities without specific knowledge of how CSS is implemented), and Lea does (she’s very expert in this area).
- junon 6y agoYou don't know me or my background; please do not act like you do. I write parsers and compilers for fun, often. https://www.w3.org/TR/css-syntax-3/#parse-rule https://www.w3.org/TR/css-syntax-3/#parse-rule Whitespace tokens are skipped, as I suspected. There is no whitespace value. As I mentioned before, the result of what the author describes is the same, but the explanation isn't entirely accurate. It's harmless errata. Perhaps it is /you/ that doesn't know what they're talking about.