Bug 193038

Summary: Correctly round-trip alpha=0.3 through rgb() colors
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=192321
https://bugs.webkit.org/show_bug.cgi?id=193039

Description Simon Fraser (smfr) 2018-12-26 12:06:42 PST
We have failures like this:

+FAIL Valid percentages should be parsed: rgba(42%, 3%, 50%, 0.3) assert_equals: expected "rgba(107, 8, 128, 0.3)" but got "rgba(107, 8, 128, 0.298039)"

We need to round-trip fractional values correctly.
Comment 1 Ahmad Saleem 2023-05-27 09:58:54 PDT
(In reply to Simon Fraser (smfr) from comment #0)
> We have failures like this:
> 
> +FAIL Valid percentages should be parsed: rgba(42%, 3%, 50%, 0.3)
> assert_equals: expected "rgba(107, 8, 128, 0.3)" but got "rgba(107, 8, 128,
> 0.298039)"
> 
> We need to round-trip fractional values correctly.

I tried to search 'Valid percentages should be parsed:' text in WebKit using SearchFox and I was not able to find this text or related test.