ladybird/Libraries/LibWeb/CSS/Parser
Sam Atkins 9b8dc6b8d0 LibWeb/CSS: Parse media-feature values forgivingly
Instead of rejecting invalid media-feature values at parse time, we are
expected to parse them, and then treat them as Unknown when evaluating
their media query. To implement this, we first try to parse a valid
value as before. If that fails, or we have any trailing tokens that
could be part of a value, we then scoop up all the possible
ComponentValues and treat that as an "unknown"-type MediaFeatureValue.

This gets us 66 WPT passes.
2025-05-23 10:17:58 +01:00
..
ComponentValue.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
ComponentValue.h Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
DescriptorParsing.cpp LibWeb/CSS: Parse @page bleed, marks, page-orientation descriptors 2025-05-15 09:53:29 +01:00
Dimension.h LibWeb/CSS: Add Parser::Dimension::to_string() 2024-12-18 12:21:22 +00:00
GradientParsing.cpp LibWeb: Make storage of CSS::StyleValues const-correct 2025-04-16 10:41:44 -06:00
Helpers.cpp LibWeb/CSS: Make @page selector parsing accessible 2025-05-16 16:42:10 +01:00
MediaParsing.cpp LibWeb/CSS: Parse media-feature values forgivingly 2025-05-23 10:17:58 +01:00
Parser.cpp LibWeb/CSS: Allow empty trailing group when parsing comma-separated list 2025-05-17 07:53:24 +01:00
Parser.h LibWeb/CSS: Make @page selector parsing accessible 2025-05-16 16:42:10 +01:00
PropertyParsing.cpp LibWeb: Parse and propagate touch-action CSS property 2025-05-06 12:22:01 +01:00
RuleContext.cpp LibWeb/CSS: Add basic implementation of CSSMarginRule 2025-05-16 11:01:39 +01:00
RuleContext.h LibWeb/CSS: Add basic implementation of CSSMarginRule 2025-05-16 11:01:39 +01:00
RuleParsing.cpp LibWeb/CSS: Make @page selector parsing accessible 2025-05-16 16:42:10 +01:00
SelectorParsing.cpp LibWeb/CSS: Make debug messages in parse_simple_selector() more useful 2025-05-17 00:30:44 +02:00
Token.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Token.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Tokenizer.cpp LibWeb: Prefer using equals_ignoring_ascii_case 2025-05-21 13:45:02 +01:00
Tokenizer.h Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
TokenStream.h LibWeb/CSS: Make CSS Parser non-copyable/movable 2025-02-06 16:47:25 +00:00
Types.cpp LibWeb/CSS: Move functions for detecting var()/attr() into Token types 2025-03-28 09:15:02 +00:00
Types.h LibWeb/CSS: Move functions for detecting var()/attr() into Token types 2025-03-28 09:15:02 +00:00
ValueParsing.cpp LibWeb+Tests: Continue variable expansion if CSS-wide keyword is parsed 2025-05-19 16:32:07 +01:00