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

Unified Diff: LayoutTests/svg/custom/non-scaling-stroke-on-empty-shapes.html

Issue 307643003: Don't render empty shapes with non-scaling-stroke (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TEs. Created 6 years, 7 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/non-scaling-stroke-on-empty-shapes.html
diff --git a/LayoutTests/svg/custom/non-scaling-stroke-on-empty-shapes.html b/LayoutTests/svg/custom/non-scaling-stroke-on-empty-shapes.html
new file mode 100644
index 0000000000000000000000000000000000000000..c2e14921a69ae5266b7be341cd9363b6c33a0dc0
--- /dev/null
+++ b/LayoutTests/svg/custom/non-scaling-stroke-on-empty-shapes.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<style>
+rect, circle, ellipse {
+ vector-effect: non-scaling-stroke;
+ stroke: red;
+ fill: red;
+}
+</style>
+<svg width="100" height="200" style="background-color: lime">
+ <!-- Neither of these should render. -->
+ <rect x="10" y="20" width="0" height="10"/>
+ <rect x="10" y="40" rx="1" width="0" height="10"/>
+ <rect x="10" y="60" ry="1" width="0" height="10"/>
+ <circle cx="10" cy="80" r="0"/>
+ <ellipse cx="10" cy="100" rx="0" ry="5"/>
+ <ellipse cx="10" cy="120" rx="5" ry="0"/>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698