mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
Previously we had two implementations for parsing `<color-interpolation-method>`, one for gradients and one for `color-mix()` - this commit adds another which will unify the existing ones in following commits. This implementation has a couple of advantages over the existing ones: - It is simpler in that it uses global CSS enums and their helper functions - It is spec compliant (unlike the `color-mix()` one which allows arbitrary idents) - It parses as a `StyleValue` which will be required once we support `<custom-color-space>` since that can be an `ident()` which isn't resolvable at parse time
14 KiB
14 KiB