ladybird/Libraries/LibWeb/CSS/Parser
Sam Atkins 5cda2ac961 LibWeb/CSS: Remove illegal <number-percentage> type
Various places in the spec allow for `<number> | <percentage>`, but this
is either/or, and they are not allowed to be combined like dimensions
and percentages are. (For example, `calc(12 + 50%)` is never valid.)

User code generally doesn't need to care about this distinction, but it
does now need to check if a calculation resolves to a number, or to a
percentage, instead of a single call.

The existing parse_number_percentage[_value]() methods have been kept
for simplicity, but updated to check for number/percentage separately.
2025-01-08 14:28:54 +00:00
..
ComponentValue.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
ComponentValue.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Dimension.h LibWeb/CSS: Add Parser::Dimension::to_string() 2024-12-18 12:21:22 +00:00
GradientParsing.cpp LibWeb/CSS: Parse gradient color stop positions directly 2025-01-08 14:28:54 +00:00
Helpers.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
MediaParsing.cpp LibGC: Rename MarkedVector => RootVector 2024-12-26 19:10:44 +01:00
Parser.cpp LibWeb/CSS: Remove illegal <number-percentage> type 2025-01-08 14:28:54 +00:00
Parser.h LibWeb/CSS: Parse gradient color stop positions directly 2025-01-08 14:28:54 +00:00
ParsingContext.cpp LibWeb/CSS: Make ParsingContext's Realm optional 2024-12-05 19:59:57 +01:00
ParsingContext.h LibWeb/CSS: Make ParsingContext's Realm optional 2024-12-05 19:59:57 +01:00
RuleParsing.cpp LibGC: Rename MarkedVector => RootVector 2024-12-26 19:10:44 +01:00
SelectorParsing.cpp LibWeb: Require CSS combinators to be followed by a simple selector 2024-11-23 09:49:33 +01:00
Token.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Token.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Tokenizer.cpp LibWeb: Move CSS character type definitions to new header 2024-12-02 16:19:47 +00:00
Tokenizer.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
TokenStream.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Types.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Types.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00