LibWeb: Preserve unit when serializing time values

Previously, when serializing a time value, we would always convert it
to seconds. We now canonicalize the time value only when serializing
its computed value.
This commit is contained in:
Tim Ledbetter
2025-03-19 16:48:33 +00:00
committed by Sam Atkins
parent 2672fe99b7
commit d0be5a0cdf
Notes: github-actions[bot] 2025-03-20 17:00:33 +00:00
4 changed files with 35 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
Harness status: OK
Found 3 tests
2 Pass
1 Fail
Pass e.style['transition-duration'] = "0s" should set the property value
Pass e.style['transition-duration'] = "500ms" should set the property value
Fail e.style['transition-duration'] = "1s, 2s" should set the property value