Chromium Code Reviews

Side by Side Diff: LayoutTests/svg/custom/getBBox-use.html

Issue 1310873004: Include additional translation in getBBox for SVGUseElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <svg height="0">
5 <rect id="r" width="300" height="400"/>
6 <use xlink:href="#r" x="100" y="200"/>
7 </svg>
8 <script>
9 test(function() {
10 var useBBox = document.querySelector('use').getBBox();
11 assert_equals(useBBox.x, 100);
12 assert_equals(useBBox.y, 200);
13 assert_equals(useBBox.width, 300);
14 assert_equals(useBBox.height, 400);
15 }, 'Additional translation affects bounding box of <use>');
16 </script>
OLDNEW

Powered by Google App Engine