[Webkit-unassigned] [Bug 217564] New: Dominant-baseline doesn't work properly when viewBox attribute is present

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 10 16:11:02 PDT 2020


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

            Bug ID: 217564
           Summary: Dominant-baseline doesn't work properly when viewBox
                    attribute is present
           Product: WebKit
           Version: Safari 14
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gusanmaz at gmail.com
                CC: zimmermann at kde.org

Created attachment 411022

  --> https://bugs.webkit.org/attachment.cgi?id=411022&action=review

Page without using viewBox (normal.html) and with viewBox (buggy.html)

When viewBox attribute is used for an SVG element and text elements are present as child of the SVG element, dominant-baseline attribute doesn't behave correctly.

Check two links below. First page contains an SVG element and doesn't use viewbox attribute. In contrast second page has an SVG element with viewbox attribute. Both pages should render similar pages. This is the case for Chrome and Firefox on Android and Linux platforms but not the case for Safari on MacOs or IOS. As can be seen from pages dominant-baseline="central" rule couldn't achieve to center text on blue square. Changing attribute value of dominant-baseline also seems to have no apparent effect on second page (buggy.html).

https://repl.it/@GuvencUsanmaz/WebkitSVGDBaseline1#normal.html
https://repl.it/@GuvencUsanmaz/WebkitSVGDBaseline1#buggy.html

In case links for these two pages go stale contents of these two pages are attached.

-- 
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/20201010/70785192/attachment-0001.htm>


More information about the webkit-unassigned mailing list