mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibWeb/CSS: Improve parsing of length percentage values for transforms
This commit is contained in:
parent
480cbd9126
commit
c994326d5a
4 changed files with 33 additions and 2 deletions
|
@ -426,7 +426,7 @@ Vector<CSS::Transformation> StyleProperties::transformations_for_style_value(Sty
|
|||
for (auto& transformation_value : transformation_style_value.values()) {
|
||||
if (transformation_value->is_calculated()) {
|
||||
auto& calculated = transformation_value->as_calculated();
|
||||
if (calculated.resolves_to_length()) {
|
||||
if (calculated.resolves_to_length_percentage()) {
|
||||
values.append(CSS::LengthPercentage { calculated });
|
||||
} else if (calculated.resolves_to_percentage()) {
|
||||
values.append({ calculated.resolve_percentage().value() });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue