ladybird/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 79a30c209d LibWeb: Add SVG-presentation-attribute-parsing mode to CSS parser
When parsing these, <number> is allowed anywhere that would usually
allow a <length>, <length-percentage>, or <angle>. The spec is not
clear on exactly how this should work
(see https://github.com/w3c/svgwg/issues/792 ) so I'm using some
artistic license until things are clearer:
- If we expected a <length>, treat the <number> as pixels.
- If we expected an <angle>, treat the <number> as degrees.
- Only allow direct <number> tokens, not calc() or other functions.

From what I can tell this is what the spec *intended* but I may be very
wrong. In any case, telling the ParsingContext whether we're parsing
one of these attributes is a cleaner approach and more correct than
temporarily enabling quirks mode, which we did previously.
2023-09-26 20:01:55 +02: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: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
DeclarationOrAtRule.cpp LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
DeclarationOrAtRule.h LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
Dimension.h LibWeb: Move CSS::Parser::Dimension class to a separate file 2023-08-17 19:39:10 +02: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: Expose Parser::Function name as FlyString const& 2023-09-05 14:27:23 +02:00
Helpers.cpp LibWeb: Make external StyleValue-parsing methods infallible 2023-08-19 17:34:22 +02:00
MediaParsing.cpp LibWeb: Move media-query parsing code to separate file 2023-08-17 19:39:10 +02:00
Parser.cpp LibWeb: Add SVG-presentation-attribute-parsing mode to CSS parser 2023-09-26 20:01:55 +02:00
Parser.h LibWeb: Replace GridTrackPlacementShorthandStyleValue with ShorthandSV 2023-09-25 00:46:21 +01:00
ParsingContext.cpp LibWeb: Add SVG-presentation-attribute-parsing mode to CSS parser 2023-09-26 20:01:55 +02:00
ParsingContext.h LibWeb: Add SVG-presentation-attribute-parsing mode to CSS parser 2023-09-26 20:01:55 +02:00
Rule.cpp LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
Rule.h LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
SelectorParsing.cpp LibWeb: Add support for pseudo-class functions that take an ident param 2023-08-21 13:51:56 +02:00
Token.cpp LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
Token.h LibWeb: Add more CSS Token factory methods 2023-09-05 14:27:23 +02:00
Tokenizer.cpp LibWeb: Tokenize CSS numbers as doubles 2023-08-20 14:25:18 +01:00
Tokenizer.h LibWeb: Tokenize CSS numbers as doubles 2023-08-20 14:25:18 +01:00
TokenStream.h LibWeb: Add preliminary support for CSS animations 2023-05-29 05:35:41 +02:00