LibWeb: Correctly round non-integer z-indexes

Previously we would just cast to an int.

Gains us 3 WPT tests.
This commit is contained in:
Callum Law
2025-08-01 15:07:07 +12:00
committed by Tim Ledbetter
parent 9a5b740da1
commit 15cee5cc15
Notes: github-actions[bot] 2025-08-05 05:39:02 +00:00
3 changed files with 73 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
Harness status: OK
Found 6 tests
6 Pass
Pass testing z-index: calc(2.5 / 2)
Pass testing z-index: calc(3 / 2)
Pass testing z-index: calc(3.5 / 2)
Pass testing z-index: calc(-2.5 / 2)
Pass testing z-index: calc(-3 / 2)
Pass testing z-index: calc(-3.5 / 2)