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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/fixedpos-in-transform-at-column-boundary.html

Issue 1426443003: Never paginate fixed-positioned objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test for fixed positioned inside transform inside multicol. Created 5 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 | third_party/WebKit/LayoutTests/fast/multicol/fixedpos-in-transform-at-column-boundary-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/multicol/fixedpos-in-transform-at-column-boundary.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/fixedpos-in-transform-at-column-boundary.html b/third_party/WebKit/LayoutTests/fast/multicol/fixedpos-in-transform-at-column-boundary.html
new file mode 100644
index 0000000000000000000000000000000000000000..175ac37106fcf6e890cc9a2a2e6afc2ef303a5f9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/fixedpos-in-transform-at-column-boundary.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+ body { margin:0; }
+</style>
+<script src="../../resources/check-layout.js"></script>
+<!-- This test is a bit clunky, so that it actually would fail without the code changes that land
+ together with his test. There's a translation bug for fixed positioneds inside transforms in
+ the LayoutState class (there's even a FIXME). Prior to the code changes, it would accidentally
+ disable pagination inside fixed positioneds in many cases, so without some weirdness in the
+ test, it would also pass accidentally without the fix. -->
+<div style="position:absolute;">
+ <p>Test that a fixed positioned object inside a transform inside a multicol isn't paginated.</p>
+ <p>The word "YO" should be seen below, with large letter spacing.</p>
+</div>
+<div id="multicol" style="-webkit-columns:2; -webkit-column-gap:0; column-fill:auto; width:2em; height:200px; line-height:50px;">
+ <div style="position:relative; transform:translateX(0); height:350px;">
+ <div style="position:fixed;">
+ <div style="height:150px;"></div>
+ <div style="white-space:nowrap;" data-offset-y="150">
+ <span style="vertical-align:top;">Y</span>
+ <span style="line-height:80px;"> </span>
+ </div>
+ </div>
+ </div>
+ O
+</div>
+<script>
+ checkLayout("#multicol");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/fixedpos-in-transform-at-column-boundary-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698