Meta: Add basic-shape as a CSS property value type

This commit is contained in:
MacDue 2024-05-26 00:20:52 +01:00 committed by Andreas Kling
parent 120915048c
commit 0135af6e60
Notes: sideshowbarker 2024-07-17 11:34:34 +09:00
3 changed files with 10 additions and 1 deletions

View file

@ -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 };