1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-overflow-horiz-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- This testcase checks that we honor "align-items" on a horizontal 1.10 + flex container that has "overflow: hidden". We use a huge border on 1.11 + one of the flex items, large enough that it overflows the container, 1.12 + to be sure that "overflow: hidden" is actually applying. --> 1.13 +<html> 1.14 +<head> 1.15 + <title>CSS Test: Testing 'overflow' property on a horizontal flex container, with 'align-items: center'</title> 1.16 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.17 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-containers"> 1.18 + <link rel="match" href="flexbox-overflow-horiz-2-ref.html"> 1.19 + <style> 1.20 + .flexContainer { 1.21 + background: purple; 1.22 + display: flex; 1.23 + align-items: center; 1.24 + width: 70px; 1.25 + height: 70px; 1.26 + float: left; 1.27 + margin-right: 5px; 1.28 + } 1.29 + .bigItem { 1.30 + background: blue; 1.31 + height: 10px; 1.32 + /* Tall border (taller than our container): */ 1.33 + border: solid coral; 1.34 + border-width: 50px 2px; 1.35 + flex: 3; 1.36 + } 1.37 + .smallItem { 1.38 + background: teal; 1.39 + height: 20px; 1.40 + flex: 1; 1.41 + } 1.42 + .hidden { overflow: hidden } 1.43 + </style> 1.44 +</head> 1.45 +<body> 1.46 + <div class="flexContainer"><!-- (overflow un-set) --> 1.47 + <div class="bigItem"></div> 1.48 + <div class="smallItem"></div> 1.49 + </div> 1.50 + <div class="flexContainer hidden"> 1.51 + <div class="bigItem"></div> 1.52 + <div class="smallItem"></div> 1.53 + </div> 1.54 +</body> 1.55 +</html>