ladybird/Libraries/LibWeb/CSS/Parser
Sam Atkins 8975fd7d06 LibWeb/CSS: Stop parsing media-features without parentheses
Our parsing code was treating `foo` and `foo: bar` as `<media-feature>`s
when really they need to be `(foo)` and `(foo: bar)` respectively. This
previously worked for the valid case because boolean expressions can
also have arbitrary `()` blocks. However, it meant we'd also allow them
without the parentheses which isn't valid.

So instead, parse and serialize the parentheses as part of the
`<media-feature>`. This gets us some WPT passes and fixes an Acid3
failure.
2026-02-05 12:22:58 +01:00
..
ArbitrarySubstitutionFunctions.cpp LibWeb/CSS: Parse number as a type in attr() 2025-12-17 11:53:08 +00:00
ArbitrarySubstitutionFunctions.h LibWeb: Reduce the number of headers CSS Parser.h is included in 2025-11-28 16:15:49 +00:00
ComponentValue.cpp LibWeb/CSS: Include guaranteed-invalid value in ComponentValue 2025-07-09 16:44:20 +01:00
ComponentValue.h LibWeb: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
DescriptorParsing.cpp LibWeb: Parse @counter-style additive-symbols descriptor 2026-02-03 09:58:47 +00:00
Dimension.h LibWeb/CSS: Add Parser::Dimension::to_string() 2024-12-18 12:21:22 +00:00
ErrorReporter.cpp WebContent+LibWeb/CSS: Add debug request to dump CSS errors 2025-08-04 10:50:09 +01:00
ErrorReporter.h LibWeb: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
GradientParsing.cpp LibWeb: Store ColorStopListElement::transition_hint as a RefPtr 2026-01-03 02:30:59 +01:00
Helpers.cpp LibWeb/CSS: Make CSSImportRule.media return its own MediaList 2025-12-08 13:30:53 +00:00
MediaParsing.cpp LibWeb/CSS: Stop parsing media-features without parentheses 2026-02-05 12:22:58 +01:00
Parser.cpp LibWeb: Parse and serialize @counter-style rule 2026-02-03 09:58:47 +00:00
Parser.h LibWeb: Parse @counter-style pad descriptor 2026-02-03 09:58:47 +00:00
PropertyParsing.cpp LibWeb: Support CSS font-optical-sizing property 2026-02-03 11:44:25 +00:00
RuleContext.cpp LibWeb: Parse and serialize @counter-style rule 2026-02-03 09:58:47 +00:00
RuleContext.h LibWeb: Parse and serialize @counter-style rule 2026-02-03 09:58:47 +00:00
RuleParsing.cpp LibWeb: Parse @counter-style speak-as descriptor 2026-02-03 09:58:47 +00:00
SelectorParsing.cpp LibWeb/CSS: Support legacy selector aliases for pseudo-classes 2025-12-18 14:50:27 +01:00
Syntax.cpp LibWeb: Include PropertyID.h in fewer header files 2025-10-27 14:50:54 +00:00
Syntax.h LibWeb: Include PropertyID.h in fewer header files 2025-10-27 14:50:54 +00:00
SyntaxParsing.cpp LibWeb: Include PropertyID.h in fewer header files 2025-10-27 14:50:54 +00:00
SyntaxParsing.h LibWeb: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
Token.cpp LibWeb/CSS: Construct all CSS Tokens in a consistent way 2025-07-09 15:04:57 +01:00
Token.h LibWeb: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
Tokenizer.cpp LibWeb: Include "url(" in the original source text of URL tokens 2025-12-10 20:50:02 +01:00
Tokenizer.h LibWeb: Include "url(" in the original source text of URL tokens 2025-12-10 20:50:02 +01:00
TokenStream.h LibWeb/CSS: Expose consumed tokens from TokenStream 2025-12-02 09:49:23 +00:00
Types.cpp LibWeb/CSS: Serialize Supports::Declaration as original representation 2025-12-02 09:49:23 +00:00
Types.h LibWeb/CSS: Serialize Supports::Declaration as original representation 2025-12-02 09:49:23 +00:00
ValueParsing.cpp LibWeb: Parse @counter-style pad descriptor 2026-02-03 09:58:47 +00:00