Bug 259013 - [CSS Math Functions] Implement use-time handling of relative units
Summary: [CSS Math Functions] Implement use-time handling of relative units
Status: RESOLVED DUPLICATE of bug 278244
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://wpt.fyi/results/css/css-value...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-08 03:17 PDT by Tim Nguyen (:ntim)
Modified: 2024-09-18 23:08 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 4 Tim Nguyen (:ntim) 2024-09-18 23:08:04 PDT
Fixed by bug 278244

*** This bug has been marked as a duplicate of bug 278244 ***