1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-12 02:30:30 +09:00
ladybird/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 3af6a69f1e LibWeb: Introduce color-function-specific style values
Instead of CSSColorValue holding a Gfx::Color, make it an abstract class
with subclasses for each different color function, to match the Typed-OM
spec. This means moving the color calculations from the parsing code to
the `to_color()` method on the style value.

This lets us have calc() inside a color function, instead of having to
fully resolve the color at parse time. The canvas fillStyle tests have
been updated to reflect this.

The other test change is Screenshot/css-color-functions.html: previously
we produced slightly different colors for an alpha of 0.5 and one of
50%, and this incorrect behavior was baked into the test. So now it's
more correct. :^)
2024-08-21 10:51:48 +01:00
..
Block.cpp
Block.h
ComponentValue.cpp
ComponentValue.h
Declaration.cpp
Declaration.h
DeclarationOrAtRule.cpp
DeclarationOrAtRule.h
Dimension.h
Function.cpp
Function.h
GradientParsing.cpp LibWeb: Rename StyleValue -> CSSStyleValue 2024-08-15 13:58:38 +01:00
Helpers.cpp LibWeb: Rename StyleValue -> CSSStyleValue 2024-08-15 13:58:38 +01:00
MediaParsing.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
Parser.cpp LibWeb: Introduce color-function-specific style values 2024-08-21 10:51:48 +01:00
Parser.h LibWeb: Introduce color-function-specific style values 2024-08-21 10:51:48 +01:00
ParsingContext.cpp LibWeb: Add CSS ParsingContext constructor with a realm and URL 2024-05-16 08:02:43 +02:00
ParsingContext.h LibWeb: Add CSS ParsingContext constructor with a realm and URL 2024-05-16 08:02:43 +02:00
Rule.cpp
Rule.h
SelectorParsing.cpp LibWeb: Match attribute selectors case insensitively in XML documents 2024-08-19 09:03:22 +02:00
Token.cpp
Token.h
Tokenizer.cpp LibWeb/CSS: Remove tiny-oom propagation from CSS Tokenizer 2024-07-26 17:29:20 +02:00
Tokenizer.h LibWeb/CSS: Remove tiny-oom propagation from CSS Tokenizer 2024-07-26 17:29:20 +02:00
TokenStream.h