-
Notifications
You must be signed in to change notification settings - Fork 719
[css-values] Parsing " | " or " | "
#489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It doesn't matter which it parses as; both end up with an identical effect and serialize the same way. Tho, hm, I guess the Typed OM would want to make a distinction. I'm inclined to have it parse as integer/number, and would be happy to clarify that as a general rule in V&U. |
It seems to me zero |
I define a CSS:Zero for 0 as a subtype of CSS:Integer in my engine which implemented in a typed language(There also is a CSS:Flzero for 0.0). Then I can easily handle these two special number types when a dimension type is required. |
Agenda+ to ask if we should add a general rule to V&U that these ambiguous cases parse as |
The CSS Working Group just discussed
The full IRC log of that discussion |
Specify that 0 parses as aif it's ambiguous whether it's a or . Fixes w3c/csswg-drafts#489 . w3c/csswg-drafts@b6b1b24b6cf0440adafd78ff5b9f1 b65ecd26d7c Remove ability for percentages to resolve against numbers. Fixes w3c/csswg-drafts#1463 . w3c/csswg-drafts@f2b85b3b1d655b03c137ca2ce31a4 cbcf1c1fdf2
I think I noticed the ambiguity with |
I think the discussion the working group had related to the Or, to put it another way, when parsing However, the cases that are ambiguous, and thus affected by the resolution above, are parsing |
Oh, you are right, backtracking should handle it. Thanks for the reply. CSS Value is not 100% precise on this custom priority.
|
From #460 I noticed that
tab-size
's syntax is |
, and I was confused on how0
should be handled in this case, since0
is valid as both
and
. It seems the same issue applies to
, whichline-height
uses.I do not find the answer whether for whether
0
should be parsed as
or
in this case from css-values spec. Am I missing something, or probably the spec should say something about this case?cc @fantasai @tabatkins
The text was updated successfully, but these errors were encountered: