mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibWeb: Move check for CSS-wide keywords to ValueID.h
This feels like a better home for it. The new name better reflects the spec phrasing.
This commit is contained in:
parent
bf8aa33b68
commit
e9b58ff096
3 changed files with 10 additions and 10 deletions
|
@ -70,6 +70,14 @@ enum class ValueID {
|
|||
Optional<ValueID> value_id_from_string(StringView);
|
||||
StringView string_from_value_id(ValueID);
|
||||
|
||||
// https://www.w3.org/TR/css-values-4/#common-keywords
|
||||
inline bool is_css_wide_keyword(StringView name)
|
||||
{
|
||||
return name.equals_ignoring_ascii_case("inherit"sv)
|
||||
|| name.equals_ignoring_ascii_case("initial"sv)
|
||||
|| name.equals_ignoring_ascii_case("unset"sv);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
)~~~");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue