Bug
1831413 [wpt PR 39852] - Add epsilon for color rounding., a=testonly
Automatic update from web-platform-tests
Add epsilon for color rounding.
Colors that have a channel value of exactly 0.5 were getting incorrectly
serialized as having an integer value of 127 (as opposed to 128) due
to float arithmetic problems.
This change also gets Red(), Green() and Blue() out of CSS
serializations, and instead uses the underlying float values which
should make things more robust.
Eventually my goal is to remove Red(), Green() and Blue() entirely.
Bug:
1425856,
1434423
Change-Id: I437070969f546b6fd3e9a6c1a965627d6a17b958
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
4507865
Commit-Queue: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#
1142378}
--
wpt-commits:
e88c468b191d67e7c5333a40c713b45fd7a80957
wpt-pr: 39852