WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
256888
[CSS] Color value should be rounded to +inf
https://bugs.webkit.org/show_bug.cgi?id=256888
Summary
[CSS] Color value should be rounded to +inf
Matthieu Dubet
Reported
2023-05-17 05:04:35 PDT
Currently, taking 0.5 of a RBG value in the range [0,255] gives 127. We should round it to 128.
https://github.com/web-platform-tests/wpt/pull/36668#issuecomment-1534794021
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-05-17 05:05:12 PDT
<
rdar://problem/109454170
>
Ahmad Saleem
Comment 2
2023-09-08 15:36:24 PDT
https://jsfiddle.net/6yfqnLhs/
^ Test case for reference (took from GitHub) Adding 'BrowserCompat' since only Safari / WebKit is different while Chrome Canary 118 and Firefox Nightly 118 are same and show '128'.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug