mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb/CSS: Improve parsing of length percentage values for transforms
This commit is contained in:
parent
480cbd9126
commit
c994326d5a
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/implicitfield
Commit: c994326d5a
Pull-request: https://github.com/SerenityOS/serenity/pull/22668
Issue: https://github.com/SerenityOS/serenity/issues/22666
Reviewed-by: https://github.com/AtkinsSJ
4 changed files with 33 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue