mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 17:08:13 +00:00
LibWeb: Add Web::HTML::parse_legacy_color_value
This function follows the "rules for parsing a legacy color value" which is used in some legacy attributes, such as 'bgcolor' in the body element.
This commit is contained in:
parent
15151d7a4c
commit
bc54560e59
2 changed files with 143 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/HTML/Parser/HTMLTokenizer.h>
|
||||
|
@ -200,5 +201,6 @@ private:
|
|||
|
||||
RefPtr<CSS::StyleValue> parse_dimension_value(StringView);
|
||||
RefPtr<CSS::StyleValue> parse_nonzero_dimension_value(StringView);
|
||||
Optional<Color> parse_legacy_color_value(DeprecatedString input);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue