ladybird/Libraries/LibWeb/CSS/Parser
Sam Atkins 7d2f631d4c LibWeb/CSS: Handle whitespace better in font-language-override strings
The rules for strings here are:
- 4 ASCII characters long
- Shorter ones are right-padded with spaces before use
- Trailing whitespace is always removed when serializing

We previously always padded them during parsing, which was incorrect.
This commit flips it around so we trim trailing whitespace when parsing.

We don't yet actually use this property's value for anything. Once we do
so, maybe we'll care more about them being stored as 4 characters
always, but for now this avoids us needing a special step during
computation.
2025-11-18 17:22:03 +01: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/CSS: Expose method for parsing a type of StyleValue 2025-11-14 09:55:02 +00:00
MediaParsing.cpp LibWeb: Add method for whether tree-counting function is allowed 2025-10-20 16:12:08 +01:00
Parser.cpp LibWeb/CSS: Expose method for parsing a type of StyleValue 2025-11-14 09:55:02 +00:00
Parser.h LibWeb/CSS: Expose method for parsing a type of StyleValue 2025-11-14 09:55:02 +00:00
PropertyParsing.cpp LibWeb/CSS: Handle whitespace better in font-language-override strings 2025-11-18 17:22:03 +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: 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: Stop inserting whitespace in TokenStream::dump_string() 2025-11-17 19:11:48 +01:00
Types.cpp LibWeb/CSS: Stop inserting whitespace when serializing SimpleBlocks 2025-11-17 19:11:48 +01:00
Types.h LibWeb/CSS: Implement env() as an arbitrary substitution function 2025-08-07 16:38:29 +02:00
ValueParsing.cpp LibWeb/CSS: Resolve calc percentages as lengths in basic-shape functions 2025-11-14 09:55:09 +00:00