1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:55:08 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 7c91fda088 LibWeb: Allow multiple text-decoration-lines
The spec grammar for `text-decoration-line` is:

`none | [ underline || overline || line-through || blink ]`

Which means that it's either `none`, or any combination of the other
values. This patch makes that parse for `text-decoration-line` and
`text-decoration`, stores the results as a Vector, and adjusts
`paint_text_decoration()` to run as a loop over all the values that are
provided.

As noted, storing a Vector of values is a bit wasteful, as they could be
stored as flags in a single `u8`. But I was getting too confused trying
to do that in a nice way.
2022-04-14 21:54:10 +02:00
..
Block.cpp LibWeb: Break friendship between CSS Block and Parser 2022-04-12 23:03:46 +02:00
Block.h LibWeb: Break friendship between CSS Block and Parser 2022-04-12 23:03:46 +02:00
ComponentValue.cpp LibWeb: Move/rename StyleBlockRule to Parser::Block 2022-04-12 23:03:46 +02:00
ComponentValue.h LibWeb: Add missing include to ComponentValue.h 2022-04-12 23:03:46 +02:00
Declaration.cpp LibWeb: Break friendship between CSS Declaration and Parser 2022-04-12 23:03:46 +02:00
Declaration.h LibWeb: Break friendship between CSS Declaration and Parser 2022-04-12 23:03:46 +02:00
DeclarationOrAtRule.cpp LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
DeclarationOrAtRule.h LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Function.cpp LibWeb: Break friendship between CSS Function and Parser 2022-04-12 23:03:46 +02:00
Function.h LibWeb: Break friendship between CSS Function and Parser 2022-04-12 23:03:46 +02:00
Parser.cpp LibWeb: Allow multiple text-decoration-lines 2022-04-14 21:54:10 +02:00
Parser.h LibWeb: Allow multiple text-decoration-lines 2022-04-14 21:54:10 +02:00
Rule.cpp LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Rule.h LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Token.cpp LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Token.h LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Tokenizer.cpp LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Tokenizer.h LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00