ladybird/Tests/LibWeb/Text/expected/canvas/fillStyle-serialization.txt
Andreas Kling 4590c081c2 LibWeb+LibGfx: Serialize HTML canvas fill/strokeStyle colors correctly
Before this change we were serializing them in a bogus 8-digit hex color
format that isn't actually recognized by HTML.

This code will need more work when we start supporting color spaces
other than sRGB.
2024-10-04 20:01:22 +02:00

5 lines
203 B
Text

`green` -> `#008000`
`rgba(128, 128, 128, 0.4)` -> `rgba(128, 128, 128, 0.4)`
`rgba(128, 128, 128, 0)` -> `rgba(128, 128, 128, 0)`
`rgba(128, 128, 128, 1)` -> `#808080`
`rgb(128, 128, 128)` -> `#808080`