ladybird/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins fdcece2e88 LibWeb/CSS: Implement legacy name aliases for properties
When a property is a "legacy name alias", any time it is used in CSS or
via the CSSOM its aliased name is used instead.
(See https://drafts.csswg.org/css-cascade-5/#legacy-name-alias)

This means we only care about the alias when parsing a string as a
PropertyID - and we can just return the PropertyID it is an alias for.
No need for a distinct PropertyID for it, and no need for LibWeb to
care about it at all.

Previously, we had a bunch of these properties, which misused our code
for "logical aliases", some of which I've discovered were not even
fully implemented. But with this change, all that code can go away, and
making a legacy alias is just a case of putting it in the JSON. This
also shrinks `StyleProperties` as it doesn't need to contain data for
these aliases, and removes a whole load of `-webkit-*` spam from the
style inspector.
2024-09-27 17:16:23 +01:00
..
Block.cpp LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
Block.h LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
ComponentValue.cpp LibWeb: Add ComponentValue::is_function(name) and is_ident(name) helpers 2023-09-11 17:03:22 +01:00
ComponentValue.h LibWeb: Add ComponentValue::is_function(name) and is_ident(name) helpers 2023-09-11 17:03:22 +01:00
Declaration.cpp LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
Declaration.h LibWeb: Port custom properties to FlyString 2023-11-07 11:33:41 +01:00
DeclarationOrAtRule.cpp
DeclarationOrAtRule.h
Dimension.h LibWeb: Implement Flex and FlexStyleValue types 2023-09-28 20:33:20 +01:00
Function.cpp LibWeb: Stop adding extra whitespace when serializing CSS Functions 2023-09-20 18:29:37 +02:00
Function.h LibWeb: Expose Parser::Function name as FlyString const& 2023-09-05 14:27:23 +02:00
GradientParsing.cpp LibWeb: Rename StyleValue -> CSSStyleValue 2024-08-15 13:58:38 +01:00
Helpers.cpp LibWeb/CSS: Store the style sheet's source text on the CSSStyleSheet 2024-09-03 10:12:07 +01:00
MediaParsing.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
Parser.cpp LibWeb/CSS: Implement legacy name aliases for properties 2024-09-27 17:16:23 +01:00
Parser.h LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
ParsingContext.cpp LibWeb: Add CSS ParsingContext constructor with a realm and URL 2024-05-16 08:02:43 +02:00
ParsingContext.h LibWeb: Add CSS ParsingContext constructor with a realm and URL 2024-05-16 08:02:43 +02:00
Rule.cpp
Rule.h
SelectorParsing.cpp LibWeb: Match attribute selectors case insensitively in XML documents 2024-08-19 09:03:22 +02:00
Token.cpp LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
Token.h LibWeb: Use code_points helper for getting delim CSS token codepoint 2023-12-11 16:54:59 +01:00
Tokenizer.cpp LibWeb/CSS: Remove tiny-oom propagation from CSS Tokenizer 2024-07-26 17:29:20 +02:00
Tokenizer.h LibWeb/CSS: Remove tiny-oom propagation from CSS Tokenizer 2024-07-26 17:29:20 +02:00
TokenStream.h LibWeb: Allow creating a TokenStream from a single token 2023-12-30 20:11:24 +01:00