[Webkit-unassigned] [Bug 42815] getBoundingClientRect Broken for SVG Elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 22 14:45:59 PDT 2010


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


Cosmin Truta <ctruta at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #67181|0                           |1
        is obsolete|                            |
  Attachment #67182|0                           |1
        is obsolete|                            |




--- Comment #18 from Cosmin Truta <ctruta at chromium.org>  2010-09-22 14:45:58 PST ---
Created an attachment (id=68445)
 --> (https://bugs.webkit.org/attachment.cgi?id=68445)
Test case: getBoundingClientRect does not work correctly with zooming

I am attaching a simpler test case, that I wrote using the "zoom" attribute.

The dimensions of <svg> elements are shown correctly, and are the same, regardless whether the page is zoomed (either zoomed in or zoomed out).

The dimensions of <rect> elements are shown incorrectly, and are changing, depending on how the page is being zoomed.

As of latest dev version, this is the output, unzoomed:

PASS svg1.width is 100
PASS svg1.height is 50
FAIL r1.width should be 100. Was 200.
FAIL r1.height should be 50. Was 100.

PASS svg2.width is 200
PASS svg2.height is 100
FAIL r2.width should be 200. Was 100.
FAIL r2.height should be 100. Was 50.

And this is the output, zoomed-in twice (in Chromium on Linux):

PASS svg1.width is 100
PASS svg1.height is 50
FAIL r1.width should be 100. Was 288.
FAIL r1.height should be 50. Was 144.

PASS svg2.width is 200
PASS svg2.height is 100
FAIL r2.width should be 200. Was 144.
FAIL r2.height should be 100. Was 72.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list