This repository was archived by the owner on Dec 18, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < meta charset ="utf-8 ">
3+ < title > CSS Flexbox Test: flex-shrink - less than one</ title >
4+ < link rel ="author " title ="Geoffrey Sneddon " href ="mailto:me@gsnedders.com ">
5+ < link rel ="help " title ="7.3.1. The 'flex-shrink' property " href ="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-shrink ">
6+ < link rel ="match " href ="../reference/ref-filled-green-100px-square.xht ">
7+ < meta name ="flags " content ="">
8+ < meta name ="assert " content ="Test checks that remaining free space is calculated from 'flex-shrink' set to positive number less than one. ">
9+ < style >
10+ .container {
11+ background : red;
12+ height : 50px ;
13+ width : 100px ;
14+ }
15+ # test1 , # test2 {
16+ display : flex;
17+ width : 50px ;
18+ }
19+ # test1 > div , # test2 > div {
20+ background : green;
21+ height : 50px ;
22+ }
23+ # test1 > div {
24+ flex-shrink : 0.9 ;
25+ width : 550px ;
26+ }
27+ # test2 > div {
28+ flex-shrink : 0.25 ;
29+ width : 75px ;
30+ }
31+ </ style >
32+ < body >
33+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
34+ < div class ="container ">
35+ < div id ="test1 ">
36+ < div > </ div >
37+ </ div >
38+ </ div >
39+ < div class ="container ">
40+ < div id ="test2 ">
41+ < div > </ div >
42+ < div > </ div >
43+ </ div >
44+ </ div >
45+ </ body >
You can’t perform that action at this time.
0 commit comments