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> |