Bug 256888

Summary: [CSS] Color value should be rounded to +inf
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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'.