WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
218299
Incorrect calc percent values in SVG
https://bugs.webkit.org/show_bug.cgi?id=218299
Summary
Incorrect calc percent values in SVG
Zach Bjornson
Reported
2020-10-28 11:31:39 PDT
https://jsfiddle.net/u4kp7jLx/2/
In this example, the two circles differ only in the value of --t1: --t1: calc(100% - 4px); /* bug */ --t1: calc(100px - 4px); /* okay */ That's applied to an SVG element with width=100 height=100, so 100% == 100px. This works correctly in Firefox and Chrome. (Safari 13.1.2)
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-10-28 19:23:22 PDT
<
rdar://problem/70791325
>
Ahmad Saleem
Comment 2
2022-08-29 04:19:02 PDT
I am able to reproduce this bug in Safari Technology Preview 152 on macOS 12.5.1 using test case from
Comment 0
. *** Safari Technology Preview 151 *** First box - Full Blue Circle inside <<<---------- BUG Second box - Semi blue circle *** Firefox Nightly 106 & Chrome Canary 107 *** Both boxes - Semi blue circle _____________ Just wanted to share updated testing results. Thanks!
Ahmad Saleem
Comment 3
2025-12-20 23:31:41 PST
It seems to work fine now with Safari Technology Preview 234 and Safari 26.3 Beta, so this seems to be fixed. Marking this as `RESOLVED Configuration Changed`.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug