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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/check-layout.js"></script>
3 <style>
4 #scrollable {
5 overflow: scroll;
6 background: pink;
7 height: 300px;
8 width: 300px;
9 box-sizing: border-box;
10 display: flex;
11 padding: 100px;
12 }
13 #item {
14 width: 300px;
15 height: 300px;
16 background: salmon;
17 flex-shrink: 0;
18 }
19 </style>
20 Tests that padding bottom on a flexbox works in the face of overflowing content.
21 Padding-right does not work. This matches the Blink/WebKit display:block behavio r.
22 Unfortunately, IE and Gecko both lose the padding bottom and the padding right.
23 <div id="scrollable" data-expected-scroll-height=500 data-expected-scroll-width= 400>
24 <div id="item"></div>
25 </div>
26 <script>
27 checkLayout('#scrollable');
28 </script>
OLDNEW
« 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