mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
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:
committed by
Sam Atkins
parent
2672fe99b7
commit
d0be5a0cdf
Notes:
github-actions[bot]
2025-03-20 17:00:33 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/d0be5a0cdfd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4004 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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
|
||||
Reference in New Issue
Block a user