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

Unified Diff: LayoutTests/fast/flexbox/stretch-align-svg.html

Issue 423133002: Ensure logical height is overridden for stretch-aligned flex-box children (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/flexbox/stretch-align-svg-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/flexbox/stretch-align-svg-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698