Bug 256888 - [CSS] Color value should be rounded to +inf
Summary: [CSS] Color value should be rounded to +inf
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-05-17 05:04 PDT by Matthieu Dubet
Modified: 2023-09-08 15:36 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Dubet 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
Comment 1 Radar WebKit Bug Importer 2023-05-17 05:05:12 PDT
<rdar://problem/109454170>
Comment 2 Ahmad Saleem 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'.