-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] add some comparison testing for flex box
- Loading branch information
Showing
3 changed files
with
146 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<test name="flex box"> | ||
<container> | ||
<html lang="en"> | ||
<head> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
div.flex { | ||
display: flex; | ||
} | ||
.red { | ||
background-color: red; | ||
} | ||
.green { | ||
background-color: green; | ||
} | ||
div.ref div { | ||
width: 50%; | ||
float: left; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<slot/> | ||
</body> | ||
</html> | ||
</container> | ||
|
||
<rendering> | ||
<div class="ref"> | ||
<div class="ref red"></div> | ||
<div class="ref green"></div> | ||
</div> | ||
</rendering> | ||
|
||
<rendering> | ||
<div class="flex"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
</div> | ||
</rendering> | ||
|
||
<rendering> | ||
<div style="display: flex;"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
</div> | ||
</rendering> | ||
|
||
<rendering> | ||
<div style="display: flex; flex-flow: nowrap;"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
</div> | ||
</rendering> | ||
|
||
<rendering> | ||
<div style="display: flex; flex-flow: inherit;"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
</div> | ||
</rendering> | ||
|
||
<rendering> | ||
<div style="display: flex; flex-flow: initial;"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
</div> | ||
</rendering> | ||
|
||
<rendering> | ||
<div style="display: flex; flex-flow: row;"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
</div> | ||
</rendering> | ||
|
||
<rendering> | ||
<div style="display: flex; flex-flow: row-reverse;"> | ||
<div class="green"></div> | ||
<div class="red"></div> | ||
</div> | ||
</rendering> | ||
</test> | ||
|