Re: [csswg-drafts] [fill-stroke] [filter-effects] [css-color] percentage opacity (#3342)

> Should specified opacity serialize as a number for backwards compat, or as a percentage?
> 
> They always serialize as numbers in colors, IIRC.

Yes, Blink/Firefox serialize them as numbers in specified colors.

[CSS OM](https://drafts.csswg.org/cssom/#serializing-css-values) specifies that alphavalue serializes as a number (with specific rounding rules).

Note 1. This is an argument against https://github.com/w3c/csswg-drafts/issues/3139, at least in the context of Color 4

Note 2. We should have consistency: `<alphavalue>` in CSSOM, `<alpha-value>` in CSS Color 4.


-- 
GitHub Notification of comment by ewilligers
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3342#issuecomment-496048630 using your GitHub account

Received on Monday, 27 May 2019 01:20:17 UTC