WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
170783
Safari does not update font-size: calc values that contain vw units and anything but percentages
https://bugs.webkit.org/show_bug.cgi?id=170783
Summary
Safari does not update font-size: calc values that contain vw units and anyth...
tech4him
Reported
2017-04-12 12:23:42 PDT
Here is an example:
http://codepen.io/tech4him1/pen/mmdMVX
If I set font-size to "calc(1.25em + 0.25vw)", it will calculate properly on page load, but after that it will not update if the page is resized. If I instead set font-size to "calc(125% + 0.25vw)", it works fine.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-04-12 22:44:05 PDT
<
rdar://problem/31599335
>
tech4him
Comment 2
2017-04-15 12:36:38 PDT
Bug 87846
fixed this for regular values, but not for all combinations in "calc()".
Ahmad Saleem
Comment 3
2022-10-01 15:04:35 PDT
I am not able to reproduce this issue in Safari 16 using CodePen from
Comment 0
and the resizing of window does not trigger any change in the font size and it is similar to Chrome Canary 108 and Firefox Nightly 107. Appreciate if someone else can confirm and mark this bug accordingly. Thanks!
Brent Fulgham
Comment 4
2024-01-22 15:24:08 PST
Closing based on Ahmad's testing.
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