You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good one. I've never liked that behavior. It's the only thing that behaves like that, and what actually happens when things are substituted isn't clear either.
exactly as specified by the author". That's what Blink does
Sidenote: No, Blink serializes tokens. So it has both the problem in this issue, and also it does the normalization stuff 4.1. Serializing Custom Properties wants to avoid. (Yay.)
Yeah, we should close open constructs, since the parser doesn't see that the construct isn't properly ended in that case anyway.
The problem is that we do need to exactly preserve things like long strings of digits.
and what actually happens when things are substituted isn't clear either.
That actually is clear if you're following the spec - the substitution is done with tokens, not characters, and in this example the --a property contains a single <function-token>, so it'll substitute that. When you later serialize the substituted result you should get a(), since you can't tell whether or not the ending token was supplied to a function token.
(To what extent browsers exactly follow the spec here is, uh, up for discussion.)
Consider this code:
The spec says "Specified values of custom properties must be serialized exactly as specified by the author". That's what Blink does, but it's bad!
I think Firefox is better, since it round-trips:
The text was updated successfully, but these errors were encountered: