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 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: Reduce recompilation from editing Enums.json 2026-02-19 11:27:06 +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: 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 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 font-variant-alternates functions 2026-02-20 22:01:44 +00:00