-
Notifications
You must be signed in to change notification settings - Fork 715
[css-color-3] opacity should use <<number>> not <<alphavalue>> “which is syntactically a <<number>>” #3139
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
I think that comment also applies to CSS Color 4 definition of opacity This would be an erratum on Color 3, but an editorial change on Color 4. |
I'm fine with killing |
Note that SVG 2 currently references the But I do agree that, since the limits on the value are not enforced by the parser, it is grammatically simpler to just use the raw data types. The benefit of having a designated type really only comes in when you start trying to parse the syntax for the color functions, where it helps explain the meaning of the value. |
Yes, I thought that was the point. I hadn't realized it would somehow affect the animation spec (and don't understand why it would). |
It seems desirable (for readability, for cross-spec linking and consistency) to say that something is an |
ping @fantasai @tabatkins @AmeliaBR do we:
I'd like to close off this issue, get Color 4 updated and Color 3 errata'ed. |
re-ping @fantasai @tabatkins @AmeliaBR |
I don't see any problem with continuing to define The fact that it is now a union of two types makes it much more useful to continue to have a shorthand syntax. |
Agreed; I think it's useful to leave it as a production to ensure consistency. Animation isn't an issue; animations drill down to the base values of any production to figure out how to animate if needed. Note, tho, that you can't animate between |
I think that's already handled by saying the percentages compute to numbers, isn't it? |
Ah, I missed that. Yes, we're cool then. |
The value of
opacity
looks and behaves exactly as a<<number>>
. It should be defined as actually being a<<number>>
, so that it's clear. This will hook into future specs like Animations more correctly.This should just be an editorial change.
The text was updated successfully, but these errors were encountered: