[Webkit-unassigned] [Bug 42815] getBoundingClientRect Broken for SVG Elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 10 01:02:18 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=42815
--- Comment #9 from Nikolas Zimmermann <zimmermann at kde.org> 2010-09-10 01:02:18 PST ---
(In reply to comment #8)
> Created an attachment (id=67155)
--> (https://bugs.webkit.org/attachment.cgi?id=67155) [details]
> Fix and layout test, take 3
>
> Niko,
> Here is the old patch with new tests, as you suggested. The test include an unstretched and a stretched rectangle, as well as two overflown rectangles (a hidden one, and a scrolled one).
Good job.
> I did not know how to test zooming. When I added tests for getBoundingClientRect to an existing SVG zooming test, I was still getting the initial rectangle coordinates, before zooming. The getBoundingClientRect function does work correctly, for example, when I run that test in the browser, I zoom then I click the refresh button, the coordinates are scaled as expected.
What do you mean by refreshing, reloading the page?
> However, when zooming using testPageZoom.js, without hitting the refresh button or doing other sorts of UI interaction, the rectangle coordinates are not scaled. If you wish, I can show you the example that I'm using.
Please attach the example here. I expected that you'd run into trouble with zooming :-)
>
> And there is another thing: getBoundingClientRect works well on various SVG elements that I tried, except <text>. (In comparison, getBBox does work on <text> under Chromium, and both getBBox and getBoundingClientRect work well on <text> under Firefox.) Would it be possible to have my patch accepted, and allow me to work on the remaining issue, separately, so that I keep the code chunks separate and reasonably small?
If you're commited to work on the remaining issues, it's just fine with me!
--
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