Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: LayoutTests/svg/custom/getBBox-perpendicular-polygon.svg

Issue 355813004: [SVG2] Elements that don't render shouldn't contribute to ancestor bboxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix nit Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/custom/getBBox-perpendicular-polygon.svg
diff --git a/LayoutTests/svg/custom/getBBox-perpendicular-path.svg b/LayoutTests/svg/custom/getBBox-perpendicular-polygon.svg
similarity index 70%
copy from LayoutTests/svg/custom/getBBox-perpendicular-path.svg
copy to LayoutTests/svg/custom/getBBox-perpendicular-polygon.svg
index 8c5d5e8d08b729f2538e7a5989c07c4559044ddc..f57358d82a862f98e486bbeec00a43c5b10aa621 100644
--- a/LayoutTests/svg/custom/getBBox-perpendicular-path.svg
+++ b/LayoutTests/svg/custom/getBBox-perpendicular-polygon.svg
@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Test the bounding box calculated for two perpendicular lines of length 100px -->
+<!-- Test the bounding box calculated for two perpendicular lines of length 100px created with the polygon element -->
<!-- If the bounding box is 100x100, we consider this test passing. -->
<svg xmlns="http://www.w3.org/2000/svg" onload="init()">
<script type="text/javascript">
@@ -19,8 +18,8 @@
]]>
</script>
<g id="shape">
- <path stroke="#666666" stroke-width="2.0" stroke-linejoin="round" stroke-linecap="butt" d="M5 5L5 105" fill-rule="nonzero"></path>
- <path stroke="#666666" stroke-width="2.0" stroke-linejoin="round" stroke-linecap="butt" d="M5 5L105 5" fill-rule="nonzero"></path>
+ <polygon stroke="#666666" stroke-width="2.0" stroke-linejoin="round" stroke-linecap="butt" points="5,5 5,105" fill-rule="nonzero" />
+ <polygon stroke="#666666" stroke-width="2.0" stroke-linejoin="round" stroke-linecap="butt" points="5,5 105,5" fill-rule="nonzero" />
</g>
<text id="text" x="50" y="50" />
</svg>

Powered by Google App Engine
This is Rietveld 408576698