Bug 193038 - Correctly round-trip alpha=0.3 through rgb() colors
Summary: Correctly round-trip alpha=0.3 through rgb() colors
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:
Depends on:
Blocks:
 
Reported: 2018-12-26 12:06 PST by Simon Fraser (smfr)
Modified: 2023-05-27 09:58 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.