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

Unified Diff: LayoutTests/fast/regions/region-content-flown-into-region.html

Issue 15027005: [CSS Regions] Elements in a region should be assignable to a named flow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Integrates all feedback. One of the tests causes an ASSERT in ContentShell because of Region Ranges. Created 7 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/fast/regions/region-content-flown-into-region.html
diff --git a/LayoutTests/fast/regions/region-content-flown-into-region.html b/LayoutTests/fast/regions/region-content-flown-into-region.html
new file mode 100644
index 0000000000000000000000000000000000000000..9f85b182d3366114fa594ed8ce741e30166b714d
--- /dev/null
+++ b/LayoutTests/fast/regions/region-content-flown-into-region.html
@@ -0,0 +1,106 @@
+<!doctype html>
+<html>
+ <head>
+ <title>74144 - [CSS Regions] Elements in a region should be assignable to a named flow</title>
+ <style>
+ div {
+ padding: 1px;
+ }
+ .content {
+ -webkit-flow-into: flow;
+ }
+ .region {
+ -webkit-flow-from: flow;
+ border:solid 1px #bbb;
+ }
+
+ .redirectContent {
+ -webkit-flow-into: redirectFlow;
+ }
+ .redirectRegion {
+ -webkit-flow-from: redirectFlow;
+ border:solid 1px #bbb;
+ }
+
+ .redirectContent2 {
+ -webkit-flow-into: redirectFlow2;
+ }
+ .redirectRegion2 {
+ -webkit-flow-from: redirectFlow2;
+ border:solid 1px #bbb;
+ }
+
+ .redirectContentToNowhere {
+ -webkit-flow-into: redirectToNowhere;
+ }
+ </style>
+ <template class="content">PASS r0: content that goes in the region.</template>
+ </head>
+
+ <body>
+ <p><a href="https://bugs.webkit.org/show_bug.cgi?id=74144">Bug 74144</a> - [CSS Regions] Elements in a region should be assignable to a named flow</p>
+ <div class="region">
+ FAIL: this should not be visible 1.
+
+ <span class="redirectContentToNowhere">FAIL: this should not be visible (redirected to nowhere) 1.</span>
+
+ <div class="redirectContent">PASS r1: content in the region that has flow-into. 1.</div>
+
+ FAIL: this should not be visible 2.
+
+ <div>
+ FAIL: this should not be visible 3.
+
+ <div class="redirectContent">PASS r1: (enclosed in a div) content in the region that has flow-into. 2.
+ <div class="redirectContentToNowhere">FAIL: this should not be visible (redirected to nowhere) 2.</div>
+ <b>PASS r1: (enclosed in a div) content in the region that has flow-into. 3.</b>.
+ </div>
+
+ FAIL: this should not be visible 4.
+ </div>
+
+ <div>
+ FAIL: this should not be visible 5.
+
+ <div class="redirectContent">PASS r1: (enclosed in a div) content in the region that has flow-into. 4
+ <span class="redirectContent2">PASS r2: content that is already in a flow goes to another flow
+ <span class="redirectContentToNowhere">FAIL: this should not be visible (redirected to nowhere) 3.</span>.
+ </span>
+ .
+ </div>
+
+ FAIL: this should not be visible 7.
+ </div>
+
+ FAIL: this should not be visible 8.
+
+ <span class="redirectContentToNowhere">FAIL: this should not be visible (redirected to nowhere) 4.</span>
+
+ <div class="redirectContent">PASS r1: content in the region that has flow-into. 5.</div>
+
+ FAIL: this should not be visible 9.
+
+ <div>
+ FAIL: this should not be visible 10.
+
+ <svg class="redirectContent" xmlns="http://www.w3.org/2000/svg" version="1.1" height="70">
+ <text x="0" y="15">PASS: SVG text</text>
+ <text x="0" y="30" class="redirectContentToNowhere">PASS: SVG text redirected to a flow without regions. only svg root elements are directly collected by a render flow thread.</text>
+ <text x="0" y="45" class="redirectContent2">PASS: SVG text redirected to a flow with regions. only svg root elements are directly collected by a render flow thread.</text>
+ </svg>
+
+ FAIL: this should not be visible 11.
+ </div>
+ </div>
+
+ <div class="redirectRegion">
+ FAIL: this should not be visible 12.
+ </div>
+
+ <div class="redirectRegion2">
+ FAIL: this should not be visible 13.
+ </div>
+
+ <p><a href="https://bugs.webkit.org/show_bug.cgi?id=74144">Bug 74144</a> - [CSS Regions] Elements in a region should be assignable to a named flow</p>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698