Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / getBBox-use.html
blobbec669e25589dc3034d8dd11a8d660645b48b71e
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>