summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/hidden-html-auto-body.html
diff options
context:
space:
mode:
authormstensho@opera.com <mstensho@opera.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2014-02-11 13:20:21 +0000
committermstensho@opera.com <mstensho@opera.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2014-02-11 13:20:21 +0000
commit9c2ad79fe5dd98ec4f793bb490d6e9d30655f01a (patch)
tree503ab43500846ca3fd0e6642017a7e6a598c727b /third_party/WebKit/LayoutTests/fast/overflow/hidden-html-auto-body.html
parent6115fb2072effa365a4a8004c8911f594da2c7ea (diff)
downloadchromium_src-9c2ad79fe5dd98ec4f793bb490d6e9d30655f01a.zip
chromium_src-9c2ad79fe5dd98ec4f793bb490d6e9d30655f01a.tar.gz
chromium_src-9c2ad79fe5dd98ec4f793bb490d6e9d30655f01a.tar.bz2
Remove the Pagination struct, clean up viewport scroll policy propagation.
The Pagination struct no longer served a purpose, now that the internal setPagination() API is gone. Without any purpose in its own, all it did was complicate the code (some unnecessary translations back and forth involving writing mode, text direction and column progression direction). Added a bunch of tests for paged overflow, to test every combination of writing mode, text direction, overflow direction, and whether it's set on the viewport or on a regular DIV. DIV tests for paged-y are omitted, since there's no vertical scrollbar then (which is an old bug that could be fixed separately). Also added tests for dynamically switching between paged and non-paged. Since this work required some changes regarding how overflow from BODY or root is propagated to the viewport, I cleaned up this a bit. There used to be 2 places with duplicated logic (picking the right element for propagation; root or BODY). With my changes that would easily become 3. Reduced it to 1 instead. :) Added some tests for overflow policy propagation as well. No behavioral changes are intended with this patch, except: it is now possible to make the BODY renderer itself paginated - if it is the root element that got its overflow properties propagated to the viewport (e.g. <html style="overflow:hidden;"><body style="overflow:-webkit-paged-x;">...) BUG= Review URL: https://codereview.chromium.org/157553002 git-svn-id: svn://svn.chromium.org/blink/trunk@166923 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/overflow/hidden-html-auto-body.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/hidden-html-auto-body.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/hidden-html-auto-body.html b/third_party/WebKit/LayoutTests/fast/overflow/hidden-html-auto-body.html
new file mode 100644
index 0000000..a2e4eed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/hidden-html-auto-body.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html style="overflow:hidden; background:white; color:black;">
+ <head>
+ <title>Hidden overflow on HTML, hidden overflow on BODY</title>
+ </head>
+ <body style="overflow-y:auto; overflow-x:hidden; width:20em; height:20em; background:cyan;">
+ <p>This text should be inside a vertically scrollable cyan box.</p>
+ <p>The viewport should not have scrollbars.</p>
+ <div style="width:300vw; height:300vh;"></div>
+ </body>
+</html>