-
Notifications
You must be signed in to change notification settings - Fork 765
Closed
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-variables-1Current WorkCurrent Work
Description
Today, these things are invalid syntax per spec:
--a:;width: var(--b,);width: var(--c,/**/);
However these are valid:
--a: ;width: var(--a, );
As per #774 (comment), we're supposed to trim whitespace from declaration values. I was looking at implementing this in Gecko (while I was going through CSS variables failures) and I think we should make the former examples also valid, if we want to keep the resolution in #774.
We should also consider trimming whitespace from the fallback value, too...
For reference, this contains the test changes: https://phabricator.services.mozilla.com/D116459
Metadata
Metadata
Assignees
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-variables-1Current WorkCurrent Work