mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Don't serialize scale
z value if it is 1
This commit is contained in:
parent
094c2bbc89
commit
d804f1311c
Notes:
github-actions[bot]
2025-04-30 17:38:02 +00:00
Author: https://github.com/tcl3
Commit: d804f1311c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4528
3 changed files with 15 additions and 17 deletions
|
@ -130,7 +130,7 @@ String TransformationStyleValue::to_string(SerializationMode mode) const
|
|||
auto x_value = resolve_to_string(m_properties.values[0]);
|
||||
auto y_value = resolve_to_string(m_properties.values[1]);
|
||||
Optional<String> z_value;
|
||||
if (m_properties.values.size() == 3)
|
||||
if (m_properties.values.size() == 3 && (!m_properties.values[2]->is_number() || m_properties.values[2]->as_number().number() != 1))
|
||||
z_value = resolve_to_string(m_properties.values[2]);
|
||||
|
||||
StringBuilder builder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue