Bug 227025

Summary: Safari floors calc(100% - 0px)
Product: WebKit Reporter: Rado <rado>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: All   
OS: All   

Description Rado 2021-06-15 07:01:36 PDT
Hi, Safari floors calc(100% - 0px), but it should return the original floating point value. Discovered it with a CSS variable which defaults to 0px, so there is a legit need for this. Please fix it. Thanks.
Demo: https://nativecarousel.com/safari-calc(100%25%20-%200px).html
Comment 1 Radar WebKit Bug Importer 2021-06-22 07:02:16 PDT
<rdar://problem/79612174>
Comment 2 Simon Fraser (smfr) 2021-06-22 11:03:32 PDT
This was fixed in https://trac.webkit.org/changeset/277738/webkit/trunk

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