[Webkit-unassigned] [Bug 224614] New: font-size with viewport units in custom properties doesn't change when viewport resizes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 15 10:59:05 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224614

            Bug ID: 224614
           Summary: font-size with viewport units in custom properties
                    doesn't change when viewport resizes
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sara.soueidan at gmail.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Note: this bug is identical to the Issue #124331 which is currently closed and marked as fixed. So I am borrowing parts of the description from that issue.

What steps will reproduce the problem?
1. Set font-size on h1 to any value using a viewport unit inside a custom property.
2. resize browser window
3. font size doesn't change along with new viewport width, you have to refresh page.

What is the expected result?
The font should resize in response to the viewport width change

What happens instead?
The font doesn't resize

Live reduced test case: https://codepen.io/ausi/pen/WNRyOrY
The reduced test case includes a fix using -webkit-marquee-increment: 0vw;
The issue can also be worked around using `min-height: 1vw` on the element itself or a container of that element (such as the body element).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210415/dd78f384/attachment.htm>


More information about the webkit-unassigned mailing list