DescriptionFix RGBA alpha parsing and serialization to adhere to W3 standard.
Specifically, a 2.55 multiplication factor should be used, and
serialization should be to two or three digits according to section
<alphavalue> in https://drafts.csswg.org/cssom/#serializing-css-values
This fixes test case "background-color: rgba(5, 7, 10, 0.5)" in
https://w3c-test.org/cssom/serialize-values.html
Note a large number of tests need to be fixed, many of them are because
an alpha value of 0.5 was previously 127 but should have been 128.
BUG=453414
Patch Set 1 #Patch Set 2 : fix blending #
Total comments: 12
Patch Set 3 : fixes to address reviewer comments #Messages
Total messages: 19 (13 generated)
|