Skip to content
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

Allow percentages in fill-opacity, stroke-opacity, & stop-opacity, to match CSS WG changes #205

Closed
AmeliaBR opened this issue Jul 13, 2016 · 2 comments

Comments

@AmeliaBR
Copy link
Contributor

The CSS WG has resolved to allow percentages interchangeable with decimals in the opacity property and in all color functions that take an alpha value. I don't have the details yet, but I'm sure this was mostly to match with author expectations. opacity: 50% is just easier for many people to grok, compared to opacity: 0.5.

It would therefore expect that, to keep author expectations met, we would want to update fill-opacity, stroke-opacity, and stop-opacity to also allow <number>|<percentage>, with percentages relative to 1.

@AmeliaBR
Copy link
Contributor Author

@tabatkins
Copy link
Member

👍

(The change was actually well over a year old; I made it when I first started editting Color 4. We might have even resolved on it back then. But hey, nothing wrong with repeating the repetition.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants