Bug 241785 - Allow calc division to use units in the denominator
Summary: Allow calc division to use units in the denominator
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-20 09:16 PDT by Simon Fraser (smfr)
Modified: 2022-06-27 09:17 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2022-06-20 09:16:06 PDT
We should follow the rules described in https://drafts.csswg.org/css-values/#determine-the-type-of-a-calculation, which would calc(10px / 2px) to produce a <number>

See this thread: https://twitter.com/tabatkins/status/1538918074631344131
Comment 1 Radar WebKit Bug Importer 2022-06-27 09:17:13 PDT
<rdar://problem/95983014>