mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb/CSS: Use double in CSSHWB::to_color()
See previous the commit description for more details about the floating points operations. The hwb test cases in `css-color-functions` are now rendered identically to what firefox does (I haven't checked the others tests, but they aren't affected by this commit).
This commit is contained in:
parent
d1120e1809
commit
a1687854ab
Notes:
github-actions[bot]
2024-11-21 12:00:42 +00:00
Author: https://github.com/LucasChollet
Commit: a1687854ab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2390
Reviewed-by: https://github.com/gmta
5 changed files with 29 additions and 6 deletions
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Color 4: CSS Color 4: hwb</title>
|
||||
<style>
|
||||
.test { background-color: rgb(20% 70% 20%); width: 12em; height: 12em; } /* hwb(120 20% 30%) converted to sRGB */
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if you see a single square, and not two rectangles of different colors.</p>
|
||||
<div class="test"></div>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue