WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
139414
Small rounding error in SVG color transformation
https://bugs.webkit.org/show_bug.cgi?id=139414
Summary
Small rounding error in SVG color transformation
Said Abou-Hallawa
Reported
2014-12-08 14:51:38 PST
Created
attachment 242848
[details]
Test case Open the attached test case and compare it with the expected file. Result: With naked eyes, the two will look very similar. But if a comparison tool is used, the result will be they are different. Expected: The test case and the expected file should exactly the same. The test case has the following filter effect: <feColorMatrix type="matrix" values="0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0.5 0" ...> This filter effect is applied to the following target element: <rect x="0" y="0" width="100" height="100" fill="#123456" filter="url(#f1)"/> The resulting color should be equal to: r=0x34, g=0x56, b=0x12 and alpha=0.5 The expected file has only the following element: <rect x="10" y="10" width="80" height="80" fill="#345612" fill-opacity="0.5"/> With closer look at the test case, one can see a difference of 1/256 in every color component when it is compared with the expected file. NOTE: We may end up not fixing this bug. But we need to investigate to understand where the rounding happens. And based on this investigation we will decided if it is worthy fixing or not. NOTE: The attached test case is imported from Mozilla SVG test suite.
Attachments
Test case
(448 bytes, image/svg+xml)
2014-12-08 14:51 PST
,
Said Abou-Hallawa
no flags
Details
Expected file
(129 bytes, image/svg+xml)
2014-12-08 14:52 PST
,
Said Abou-Hallawa
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2014-12-08 14:52:05 PST
Created
attachment 242849
[details]
Expected file
Radar WebKit Bug Importer
Comment 2
2014-12-08 14:52:56 PST
<
rdar://problem/19182146
>
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