[Webkit-unassigned] [Bug 224614] 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 14:10:08 PDT 2021


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

--- Comment #9 from Darin Adler <darin at apple.com> ---
It’s not about isCalculatedPercentageWithLength, I don’t think, although that may be a more obscure case.

It’s simply that a calculated length currently can’t answer the "has viewport units" question. So I see 3 options:

1) Call setHasViewportUnits for all of them, potentially making resizing unnecessarily slow on all websites that use calc() but not things that are viewport-dependent.

2) Add code in calculated value parsing to compute "is viewport dependent" as we go, and store that information in CalculationValue and CSSCalcValue objects.

3) Record whether a calculated value turned out to be viewport dependent as a side effect of performing a calculation and read that boolean out after calling computeLength. Could possibly be stored in CSSToLengthConversionData.

-- 
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/c24da446/attachment.htm>


More information about the webkit-unassigned mailing list