ladybird/Libraries/LibWeb/CSS/Parser
Sam Atkins 6d38ad32cb LibWeb/CSS: Let Properties.json specify whether to strip whitespace
Removing all whitespace before parsing StyleValues seemed like a good
idea back when I did it, but causes issues. Serialization cares about
whether there was whitespace or not, and we also weren't removing
whitespace from inside blocks and functions so it was inconsistent
whether we needed to deal with whitespace or not.

So currently, some parsing code is conscious of whitespace, some isn't,
and some tries to be but is incorrect. Rather than try to fix all of
this in a single large, messy change, this commit introduces
a "strip-whitespace" flag to Properties.json. We can then disable
whitespace-stripping a few properties at a time and debug any issues
more easily. Eventually (hopefully soon), this will go away entirely.
2025-11-03 11:23:21 +00:00
..
ArbitrarySubstitutionFunctions.cpp LibWeb/CSS: Use dimension_for_unit() when we don't need the exact unit 2025-09-11 17:06:44 +01:00
ArbitrarySubstitutionFunctions.h LibWeb/CSS: Implement env() as an arbitrary substitution function 2025-08-07 16:38:29 +02: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/CSS: Replace resolve_percentage_deprecated() with undeprecated 2025-09-24 16:33:53 +01: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: Support '<zero>' in '<color-stop-angle>` 2025-10-17 08:37:18 +01:00
Helpers.cpp LibWeb: Implement CSS decode bytes algo 2025-10-16 16:44:42 +02:00
MediaParsing.cpp LibWeb: Add method for whether tree-counting function is allowed 2025-10-20 16:12:08 +01:00
Parser.cpp LibWeb: Allow whitespace in not after a boolean-expr-group 2025-10-28 21:54:48 -07:00
Parser.h LibWeb/CSS: Implement and use ValueType::DashedIdent 2025-10-30 11:33:45 +00:00
PropertyParsing.cpp LibWeb/CSS: Let Properties.json specify whether to strip whitespace 2025-11-03 11:23:21 +00: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: Avoid dereferencing a null pointer to document 2025-09-10 16:57:36 +01:00
SelectorParsing.cpp LibWeb: Throw parsing error if ::slotted() argument is not 1 compound 2025-09-04 13:55:20 +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/CSS: Stop converting at-rule names to lowercase 2025-07-09 15:04:57 +01:00
Tokenizer.h LibWeb: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
TokenStream.h LibWeb/CSS: Add dump_string() method to TokenStream 2025-08-04 10:50:09 +01:00
Types.cpp LibWeb/CSS: Implement env() as an arbitrary substitution function 2025-08-07 16:38:29 +02:00
Types.h LibWeb/CSS: Implement env() as an arbitrary substitution function 2025-08-07 16:38:29 +02:00
ValueParsing.cpp LibWeb/CSS: Implement and use ValueType::DashedIdent 2025-10-30 11:33:45 +00:00