Index: LayoutTests/svg/custom/rounded-rect-update-to-empty.html |
diff --git a/LayoutTests/svg/custom/rounded-rect-update-to-empty.html b/LayoutTests/svg/custom/rounded-rect-update-to-empty.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3fda0cb27310b650b97121214659ccb6c20a6c24 |
--- /dev/null |
+++ b/LayoutTests/svg/custom/rounded-rect-update-to-empty.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/run-after-display.js"></script> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+runAfterDisplay(function() { |
+ document.getElementById('rr1').setAttribute('width', 0); |
+ document.getElementById('rr2').setAttribute('width', -100); |
+ |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+}); |
+</script> |
+<svg width="200" height="100"> |
+ <rect width="200" height="100" fill="green"/> |
+ <rect id="rr1" width="100" height="100" rx="8" stroke="red" fill="red"/> |
+ <rect id="rr2" width="100" height="100" rx="8" stroke="red" fill="red" x="100"/> |
+</svg> |