1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

LibWeb/CSS: Improve parsing of length percentage values for transforms

This commit is contained in:
implicitfield 2024-01-09 12:39:17 +04:00 committed by Andreas Kling
parent 480cbd9126
commit c994326d5a
4 changed files with 33 additions and 2 deletions

View file

@ -5095,7 +5095,7 @@ RefPtr<StyleValue> Parser::parse_transform_value(TokenStream<ComponentValue>& to
break;
}
case TransformFunctionParameterType::LengthPercentage: {
if (maybe_calc_value && maybe_calc_value->resolves_to_length()) {
if (maybe_calc_value && maybe_calc_value->resolves_to_length_percentage()) {
values.append(maybe_calc_value.release_nonnull());
} else {
auto dimension_value = parse_dimension_value(value);