mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibGfx: Round values in Color::with_opacity()
`svg-gradient-userSpaceOnUse` is now rendered to something closer to what firefox does, so it is at least some progress.
This commit is contained in:
parent
b4ba65c6e5
commit
248e4bb517
Notes:
github-actions[bot]
2024-11-21 12:00:54 +00:00
Author: https://github.com/LucasChollet
Commit: 248e4bb517
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2390
Reviewed-by: https://github.com/gmta
4 changed files with 3 additions and 2 deletions
|
@ -25,5 +25,6 @@ TEST_CASE(all_green)
|
|||
TEST_CASE(hsv)
|
||||
{
|
||||
EXPECT_EQ(Color(51, 179, 51), Color::from_hsv(120, 0.714285714, .7));
|
||||
EXPECT_EQ(Color(51, 179, 51, 128), Color::from_hsv(120, 0.714285714, .7).with_opacity(0.5));
|
||||
EXPECT_EQ(Color(87, 128, 77), Color::from_hsv(108, 0.4, .5));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue