ladybird/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 7abfb18656 LibWeb: Implement CSS color parsing from Tokens
This was broken when we switched away from using StringStyleValues.
While I was at it, I have implemented hsl/a() and the percentage
syntax for rgb/a().

As a bonus, added `colors.html` as a test page for the various CSS
color syntaxes, since nothing was testing rgb() or rgba() before.

Much of the parsing code in LibGFX/Color.h seems to be centered
around CSS color values, but this is not used by the new Parser.
(And can't be used, because it requires a String value and we have
a list of Tokens of some kind instead.) Maybe that should be removed
from there when the new CSS parser is operational.
2021-07-22 23:09:01 +02:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
DeprecatedCSSParser.cpp LibWeb: Use Selectors instead of a String for :not() selectors 2021-07-14 13:31:00 +02:00
DeprecatedCSSParser.h LibWeb: Make CSS::Selector reference counted 2021-07-14 13:31:00 +02:00
Parser.cpp LibWeb: Implement CSS color parsing from Tokens 2021-07-22 23:09:01 +02:00
Parser.h LibWeb: Expose StyleValue parsing method in CSS Parser 2021-07-22 23:09:01 +02:00
StyleBlockRule.h LibWeb: Give CSS Token and StyleComponentValueRule matching is() funcs 2021-07-11 23:19:56 +02:00
StyleComponentValueRule.h LibWeb: Increase clarity with CSS token debug logging 2021-07-11 23:19:56 +02:00
StyleDeclarationRule.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
StyleFunctionRule.h LibWeb: Use Selectors instead of a String for :not() selectors 2021-07-14 13:31:00 +02:00
StyleRule.h LibWeb: Merge CSS Parser's QualifiedStyleRule and AtStyleRule 2021-07-11 23:19:56 +02:00
StyleRules.cpp LibWeb: Convert StyleFunctionRule.m_values to ComponentValues 2021-07-11 23:19:56 +02:00
Token.cpp LibWeb: Increase clarity with CSS token debug logging 2021-07-11 23:19:56 +02:00
Token.h LibWeb: Implement CSS color parsing from Tokens 2021-07-22 23:09:01 +02:00
Tokenizer.cpp LibWeb: Correct escape handling in CSS Tokenizer 2021-07-11 23:19:56 +02:00
Tokenizer.h LibWeb: Correct escape handling in CSS Tokenizer 2021-07-11 23:19:56 +02:00