1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Userland
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
..
Applets Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Applications Base+Maps: Add manpage for Maps 2023-09-25 16:20:20 +01:00
BuggieBox checksum: Add support for BLAKE2b 2023-09-17 16:49:35 +03:30
Demos Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
DevTools Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
DynamicLoader CMake: Use CMAKE_POSITION_INDEPENDENT_CODE instead of explicit -fpic 2023-09-18 10:26:42 +02:00
Games Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
Libraries LibWeb: Add SVG-presentation-attribute-parsing mode to CSS parser 2023-09-26 20:01:55 +02:00
Services LibWeb: Make Element attribute getters take a StringView 2023-09-25 15:39:29 +02:00
Shell Shell: Allow the user to set the prompt using PROMPT() 2023-09-07 11:52:37 -06:00
Utilities ls: Add the -p option to append a trailing slash to directories 2023-09-26 07:19:02 +02:00
CMakeLists.txt