mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Implement the CSS all property
This sets all longhand values to one of initial, inherit, unset or revert. Note that revert is not supported yet, but will be soon.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/13d5d47b56 Pull-request: https://github.com/SerenityOS/serenity/pull/20253 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/AtkinsSJ
@@ -105,6 +105,7 @@ namespace Web::CSS {
|
||||
enum class PropertyID {
|
||||
Invalid,
|
||||
Custom,
|
||||
All,
|
||||
)~~~"));
|
||||
|
||||
Vector<DeprecatedString> shorthand_property_ids;
|
||||
@@ -361,6 +362,8 @@ Optional<PropertyID> property_id_from_camel_case_string(StringView string)
|
||||
|
||||
Optional<PropertyID> property_id_from_string(StringView string)
|
||||
{
|
||||
if (Infra::is_ascii_case_insensitive_match(string, "all"sv))
|
||||
return PropertyID::All;
|
||||
)~~~"));
|
||||
|
||||
TRY(properties.try_for_each_member([&](auto& name, auto& value) -> ErrorOr<void> {
|
||||
|
||||
Reference in New Issue
Block a user