[Webkit-unassigned] [Bug 209116] New: Issue 1061714: Quirky / SVG lengths parse number expressions in calc() like length, and behave oddly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 14 15:02:42 PDT 2020


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

            Bug ID: 209116
           Summary: Issue 1061714: Quirky / SVG lengths parse number
                    expressions in calc() like length, and behave oddly
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: emilio at crisal.io

See also:

 * https://bugzilla.mozilla.org/show_bug.cgi?id=1258270#c5
 * https://bugs.chromium.org/p/chromium/issues/detail?id=1061714

1. data:text/html,<!doctype html><div id=a style="stroke-width: calc(2 * 2)"></div><div id=b style="stroke-width: calc(2px * 2)"></div>
2. getComputedStyle(a).strokeWidth
3. getComputedStyle(b).strokeWidth

On WebKit, I get the right result for b, as I'd expect, but I get 0px for a, which looks very odd.

It seems like numbers are a bit ambiguous in calc() for these properties, and we should probably allow just <length-percentage> for them...

-- 
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/20200314/a886c5da/attachment-0001.htm>


More information about the webkit-unassigned mailing list