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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/collapsing-class-a-breakpoints.html

Issue 1856373002: Only allow forced fragmentainer breaks at class A break points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Woho! LayoutTests/printing/css2.1/page-break-after-003.html now passes. Created 4 years, 8 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: third_party/WebKit/LayoutTests/fragmentation/collapsing-class-a-breakpoints.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/collapsing-class-a-breakpoints.html b/third_party/WebKit/LayoutTests/fragmentation/collapsing-class-a-breakpoints.html
new file mode 100644
index 0000000000000000000000000000000000000000..9f5194d6743f519a8b648f6b45e77736e8a472c5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/collapsing-class-a-breakpoints.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script src="../resources/check-layout.js"></script>
+<style>
+ #multicol { position:relative; overflow:auto; columns:2; column-gap:0; column-fill:auto; width:200px; height:200px; }
+ .outerChild { width:50px; padding:5px; background:hotpink; }
+ .middleChild { border:5px solid black; }
+ .innerChild { height:40px; }
+ .breakAfter { break-after:column; column-break-after:always; }
+ .breakBefore { break-before:column; column-break-before:always; }
+</style>
+<p>There's only one class A break point inside this multicol container, and it's between the
+ two hotpink boxes.</p>
+<p>Below there should be two filled hotpink squares beside each other. Each square should contain a
+ slightly smaller and perfectly center/middle aligned unfilled black square. There should be no
+ scrollbars.</p>
+<div id="multicol">
+ <div data-offset-x="0" data-offset-y="0" data-expected-width="60" data-expected-height="60" class="outerChild breakAfter">
+ <div class="middleChild breakAfter">
+ <div class="innerChild breakAfter"></div>
+ </div>
+ </div>
+ <div data-offset-x="100" data-offset-y="0" data-expected-width="60" data-expected-height="60" class="outerChild breakBefore">
+ <div class="middleChild breakBefore">
+ <div class="innerChild breakBefore"></div>
+ </div>
+ </div>
+</div>
+<script>
+ checkLayout("#multicol");
+</script>

Powered by Google App Engine
This is Rietveld 408576698