Bug 227025 - Safari floors calc(100% - 0px)
Summary: Safari floors calc(100% - 0px)
Status: RESOLVED DUPLICATE of bug 225962
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 14
Hardware: All All
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-15 07:01 PDT by Rado
Modified: 2021-06-22 11:03 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***