ladybird/Libraries/LibWeb/CSS/Parser
Adam Colvin d2f10c76fd LibWeb: Reject invalid alt text values in CSS content property parsing
The CSS content property's alt text (after `/`) was incorrectly
accepting any content value. Per the CSS Content Module Level 3 spec,
alt text only accepts <string>, <counter>, and <attr()> values. This
change adds type validation in the alt text parsing branch to reject
URLs, quote keywords, images, and other non-alt-text value types.

This fixes 64 subtests in the content-invalid WPT test.
2026-02-22 13:55:22 -05:00
..
ArbitrarySubstitutionFunctions.cpp LibWeb/CSS: Parse number as a type in attr() 2025-12-17 11:53:08 +00:00
ArbitrarySubstitutionFunctions.h
ComponentValue.cpp
ComponentValue.h
DescriptorParsing.cpp LibWeb: Reduce recompilation from editing Enums.json 2026-02-19 11:27:06 +00:00
Dimension.h
ErrorReporter.cpp
ErrorReporter.h
GradientParsing.cpp LibWeb: Reduce recompilation from editing Enums.json 2026-02-19 11:27:06 +00: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 @font-feature-values at-rule 2026-02-17 12:25:27 +00:00
Parser.h LibWeb: Parse @font-feature-values at-rule 2026-02-17 12:25:27 +00:00
PropertyParsing.cpp LibWeb: Reject invalid alt text values in CSS content property parsing 2026-02-22 13:55:22 -05:00
RuleContext.cpp LibWeb: Parse @font-feature-values at-rule 2026-02-17 12:25:27 +00:00
RuleContext.h LibWeb: Parse @font-feature-values at-rule 2026-02-17 12:25:27 +00:00
RuleParsing.cpp LibWeb: Parse @font-feature-values at-rule 2026-02-17 12:25:27 +00:00
SelectorParsing.cpp LibWeb/CSS: Support legacy selector aliases for pseudo-classes 2025-12-18 14:50:27 +01:00
Syntax.cpp
Syntax.h
SyntaxParsing.cpp
SyntaxParsing.h
Token.cpp
Token.h
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
Types.cpp
Types.h
ValueParsing.cpp LibWeb: Parse font-variant-alternates functions 2026-02-20 22:01:44 +00:00