Bug 259013

Summary: [CSS Math Functions] Implement use-time handling of relative units
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://wpt.fyi/results/css/css-values/signs-abs-computed.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2023-mathfunctions

Description Tim Nguyen (:ntim) 2023-07-08 03:17:11 PDT
sign(10px - 1em) should return 0 if font-size is 10px, right now it returns 1px, which is incorrect.

See failures in https://wpt.fyi/results/css/css-values/signs-abs-computed.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2023-mathfunctions
Comment 1 Radar WebKit Bug Importer 2023-07-08 03:17:20 PDT
<rdar://problem/111949502>
Comment 2 Tim Nguyen (:ntim) 2023-07-08 03:17:58 PDT
ditto for sign(10px - 2em), that should be -1 with font-size 10px.
Comment 3 Tim Nguyen (:ntim) 2023-07-08 13:11:16 PDT
round/mod/rem have similar failures with percentage lengths