File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < link rel ="help " href ="https://drafts.csswg.org/css-flexbox-2/ ">
3+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
4+ < style >
5+ # flex {
6+ display : flex;
7+ flex-wrap : balance;
8+ width : 150px ;
9+ flex-line-count : 3 ;
10+ }
11+ # flex > div {
12+ width : 50px ;
13+ height : 50px ;
14+ background : green;
15+ }
16+ </ style >
17+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
18+ < div id ="flex ">
19+ < div > </ div >
20+ < div > </ div >
21+ < div > </ div >
22+ < div > </ div >
23+ </ div >
24+ < script >
25+ document . body . offsetTop ;
26+ document . getElementById ( 'flex' ) . style . flexLineCount = '2' ;
27+ </ script >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < link rel ="help " href ="https://drafts.csswg.org/css-flexbox-2/ ">
3+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
4+ < style >
5+ # flex {
6+ display : flex;
7+ flex-wrap : balance;
8+ width : 200px ;
9+ }
10+ # flex > div {
11+ width : 50px ;
12+ height : 50px ;
13+ background : green;
14+ }
15+ </ style >
16+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
17+ < div id ="flex ">
18+ < div > </ div >
19+ < div > </ div >
20+ < div > </ div >
21+ < div > </ div >
22+ </ div >
23+ < script >
24+ document . body . offsetTop ;
25+ document . getElementById ( 'flex' ) . style . flexLineCount = '2' ;
26+ </ script >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < link rel ="help " href ="https://drafts.csswg.org/css-flexbox-2/ ">
3+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
4+ < style >
5+ # flex {
6+ display : flex;
7+ flex-wrap : balance;
8+ width : 120px ;
9+ flex-line-count : 3 ;
10+ }
11+ # flex > div {
12+ width : 50px ;
13+ height : 50px ;
14+ background : green;
15+ }
16+ </ style >
17+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
18+ < div id ="flex ">
19+ < div > </ div >
20+ < div > </ div >
21+ < div > </ div >
22+ < div > </ div >
23+ </ div >
24+ < script >
25+ document . body . offsetTop ;
26+ // Reset to the initial value.
27+ document . getElementById ( 'flex' ) . style . flexLineCount = '1' ;
28+ </ script >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < link rel ="help " href ="https://drafts.csswg.org/css-flexbox-2/ ">
3+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
4+ < style >
5+ # flex {
6+ display : flex;
7+ width : 150px ;
8+ flex-line-count : 2 ;
9+ }
10+ # flex > div {
11+ width : 50px ;
12+ height : 50px ;
13+ background : green;
14+ }
15+ </ style >
16+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
17+ < div id ="flex ">
18+ < div > </ div >
19+ < div > </ div >
20+ < div > </ div >
21+ < div > </ div >
22+ </ div >
23+ < script >
24+ document . body . offsetTop ;
25+ document . getElementById ( 'flex' ) . style . flexWrap = 'balance' ;
26+ </ script >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < link rel ="help " href ="https://drafts.csswg.org/css-flexbox-2/ ">
3+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
4+ < style >
5+ # flex {
6+ display : flex;
7+ flex-wrap : balance;
8+ width : 100px ;
9+ flex-line-count : 3 ;
10+ }
11+ # flex > div {
12+ width : 50px ;
13+ height : 50px ;
14+ background : green;
15+ }
16+ </ style >
17+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
18+ < div id ="flex ">
19+ < div > </ div >
20+ < div > </ div >
21+ < div > </ div >
22+ < div > </ div >
23+ </ div >
24+ < script >
25+ document . body . offsetTop ;
26+ document . getElementById ( 'flex' ) . style . flexWrap = 'wrap' ;
27+ </ script >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < link rel ="help " href ="https://drafts.csswg.org/css-flexbox-2/ ">
3+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
4+ < style >
5+ # flex {
6+ display : flex;
7+ flex-wrap : balance;
8+ width : 150px ;
9+ }
10+ # flex > div {
11+ width : 50px ;
12+ height : 50px ;
13+ background : green;
14+ }
15+ </ style >
16+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
17+ < div id ="flex ">
18+ < div id ="target " style ="width: 0px; "> </ div >
19+ < div > </ div >
20+ < div > </ div >
21+ < div > </ div >
22+ </ div >
23+ < script >
24+ document . body . offsetTop ;
25+ document . getElementById ( 'target' ) . style . width = '50px' ;
26+ </ script >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < link rel ="help " href ="https://drafts.csswg.org/css-flexbox-2/ ">
3+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
4+ < style >
5+ # flex {
6+ display : flex;
7+ flex-wrap : balance;
8+ width : 150px ;
9+ }
10+ # flex > div {
11+ width : 50px ;
12+ height : 50px ;
13+ background : green;
14+ }
15+ </ style >
16+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
17+ < div id ="flex ">
18+ < div > </ div >
19+ < div > </ div >
20+ < div > </ div >
21+ </ div >
22+ < script >
23+ document . body . offsetTop ;
24+ document . getElementById ( 'flex' ) . appendChild ( document . createElement ( 'div' ) ) ;
25+ </ script >
You can’t perform that action at this time.
0 commit comments