mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-09 10:31:51 +00:00
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.
5 lines
203 B
Text
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`
|