mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
Notes:
sideshowbarker
2024-07-17 01:06:10 +09:00
Author: https://github.com/shannonbooth
Commit: bc54560e59
Pull-request: https://github.com/SerenityOS/serenity/pull/19099
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