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

Unified Diff: LayoutTests/css3/flexbox/overflow-and-padding.html

Issue 134603002: Fix bottom padding on flex boxes with overflow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix layout test Created 6 years, 11 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/css3/flexbox/overflow-and-padding.html
diff --git a/LayoutTests/css3/flexbox/overflow-and-padding.html b/LayoutTests/css3/flexbox/overflow-and-padding.html
new file mode 100644
index 0000000000000000000000000000000000000000..d7cadd15106e85410cbfb5aa9f221d71309fb689
--- /dev/null
+++ b/LayoutTests/css3/flexbox/overflow-and-padding.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<style>
+#scrollable {
+ overflow: scroll;
+ background: pink;
+ height: 300px;
+ width: 300px;
+ box-sizing: border-box;
+ display: flex;
+ padding: 100px;
+}
+#item {
+ width: 300px;
+ height: 300px;
+ background: salmon;
+ flex-shrink: 0;
+}
+</style>
+Tests that padding bottom on a flexbox works in the face of overflowing content.
+Padding-right does not work. This matches the Blink/WebKit display:block behavior.
+Unfortunately, IE and Gecko both lose the padding bottom and the padding right.
+<div id="scrollable" data-expected-scroll-height=500 data-expected-scroll-width=400>
+ <div id="item"></div>
+</div>
+<script>
+checkLayout('#scrollable');
+</script>
« no previous file with comments | « LayoutTests/css3/flexbox/negative-overflow.html ('k') | LayoutTests/css3/flexbox/overflow-and-padding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698