mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 10:18:51 +00:00
Meta: Add basic-shape
as a CSS property value type
This commit is contained in:
parent
120915048c
commit
0135af6e60
Notes:
sideshowbarker
2024-07-17 11:34:34 +09:00
Author: https://github.com/MacDue
Commit: 0135af6e60
Pull-request: https://github.com/SerenityOS/serenity/pull/24446
3 changed files with 10 additions and 1 deletions
|
@ -6587,6 +6587,11 @@ Optional<Parser::PropertyAndValue> Parser::parse_css_value_for_properties(Readon
|
|||
return PropertyAndValue { *property, maybe_position };
|
||||
}
|
||||
|
||||
if (auto property = any_property_accepts_type(property_ids, ValueType::BasicShape); property.has_value()) {
|
||||
if (auto maybe_basic_shape = parse_basic_shape_value(tokens))
|
||||
return PropertyAndValue { *property, maybe_basic_shape };
|
||||
}
|
||||
|
||||
if (auto property = any_property_accepts_type(property_ids, ValueType::Ratio); property.has_value()) {
|
||||
if (auto maybe_ratio = parse_ratio_value(tokens))
|
||||
return PropertyAndValue { *property, maybe_ratio };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue