Index: LayoutTests/fast/flexbox/stretch-align-svg.html |
diff --git a/LayoutTests/fast/flexbox/stretch-align-svg.html b/LayoutTests/fast/flexbox/stretch-align-svg.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a52179822072b3e4bdb564f516080ce56dc1b5bd |
--- /dev/null |
+++ b/LayoutTests/fast/flexbox/stretch-align-svg.html |
@@ -0,0 +1,36 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/run-after-display.js"></script> |
+<style> |
+#main { |
+ display: flex; |
+ height: 100%; |
+} |
+#graph { |
+ flex: 0 0 400px; |
+} |
+#spanner { |
+ height: 400px; |
+} |
+</style> |
+<div id="main"> |
+ <svg id="graph" style="background-color: red"> |
+ <rect width="100%" height="0%" fill="green"/> |
+ </svg> |
+ <div id="spanner"></div> |
+</div> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+runAfterDisplay(function() { |
+ document.body.appendChild(document.createElement('div')); |
+ document.body.offsetLeft; |
+ |
+ var c = document.querySelector('rect'); |
+ c.setAttribute('height', '100%'); |
+ c.getScreenCTM(); |
+ |
+ if (window.testRunner) |
+ testRunner.displayAsyncThen(function() { testRunner.notifyDone(); }); |
+}); |
+</script> |