-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more fixtures for box sizing (#1702)
Summary: Pull Request resolved: #1702 tsia Reviewed By: jorge-cab Differential Revision: D63151874
- Loading branch information
1 parent
886979b
commit a3a483a
Showing
4 changed files
with
4,972 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,145 @@ | ||
<div data-disabled="true" id="box_sizing_content_box" | ||
style="width: 100px; height: 100px; padding: 5px; border-width: 10px; box-sizing: content-box"> | ||
</div> | ||
|
||
<div id="box_sizing_border_box" | ||
style="width: 100px; height: 100px; padding: 5px; border-width: 10px; box-sizing: border-box"> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_padding_only" | ||
style="width: 100px; height: 100px; padding: 5px; box-sizing: content-box"> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_padding_only" | ||
style="width: 100px; height: 100px; padding: 5px; box-sizing: border-box"> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_border_only" | ||
style="width: 100px; height: 100px; border-width: 10px; box-sizing: content-box"> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_border_only" | ||
style="width: 100px; height: 100px; border-width: 10px; box-sizing: border-box"> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_no_padding_no_border" | ||
style="width: 100px; height: 100px; box-sizing: content-box"> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_no_padding_no_border" | ||
style="width: 100px; height: 100px; box-sizing: border-box"> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_children" | ||
style="width: 100px; height: 100px; padding: 5px; border-width: 10px; box-sizing: content-box"> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_children" | ||
style="width: 100px; height: 100px; padding: 5px; border-width: 10px; box-sizing: border-box"> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_siblings" style="width: 100px; height: 100px;"> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px; box-sizing: content-box; padding: 10px; border-width: 10px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_siblings" style="width: 100px; height: 100px;"> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px; box-sizing: border-box; padding: 10px; border-width: 10px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_max_width" style="width: 100px; height: 100px;"> | ||
<div style="max-width: 50px; height: 25px; box-sizing: content-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_max_width" style="width: 100px; height: 100px;"> | ||
<div style="max-width: 50px; height: 25px; box-sizing: border-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_max_height" style="width: 100px; height: 100px;"> | ||
<div style="width: 50px; max-height: 50px; box-sizing: content-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_max_height" style="width: 100px; height: 100px;"> | ||
<div style="width: 50px; max-height: 50px; box-sizing: border-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_min_width" style="width: 100px; height: 100px;"> | ||
<div style="min-width: 50px; height: 25px; box-sizing: content-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_min_width" style="width: 100px; height: 100px;"> | ||
<div style="min-width: 50px; height: 25px; box-sizing: border-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_min_height" style="width: 100px; height: 100px;"> | ||
<div style="width: 50px; min-height: 50px; box-sizing: content-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_min_height" style="width: 100px; height: 100px;"> | ||
<div style="width: 50px; min-height: 50px; box-sizing: border-box; padding: 5px; border-width: 15px"></div> | ||
<div style="width: 25px; height: 25px"></div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_no_height_no_width" style="width: 100px; height: 100px;"> | ||
<div style="box-sizing: content-box; padding: 2px; border-width: 7px"> | ||
</div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_no_height_no_width" style="width: 100px; height: 100px;"> | ||
<div style="box-sizing: border-box; padding: 2px; border-width: 7px"> | ||
</div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_nested" | ||
style="width: 100px; height: 100px; box-sizing: content-box; padding: 15px; border-width: 3px;"> | ||
<div style="width: 20px; height: 20px; box-sizing: content-box; padding: 2px; border-width: 7px"> | ||
<div style="width: 10px; height: 5px; box-sizing: content-box; padding: 1px; border-width: 2px"></div> | ||
</div> | ||
</div> | ||
|
||
<div id="box_sizing_border_box_nested" | ||
style="width: 100px; height: 100px; box-sizing: border-box; padding: 15px; border-width: 3px;"> | ||
<div style="width: 20px; height: 20px; box-sizing: border-box; padding: 2px; border-width: 7px"> | ||
<div style="width: 10px; height: 5px; box-sizing: border-box; padding: 1px; border-width: 2px"></div> | ||
</div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_content_box_nested_alternating" | ||
style="width: 100px; height: 100px; box-sizing: content-box; padding: 3px; border-width: 2px;"> | ||
<div style="width: 40px; height: 40px; box-sizing: border-box; padding: 8px; border-width: 2px"> | ||
<div style="width: 20px; height: 25px; box-sizing: content-box; padding: 3px; border-width: 6px"> | ||
<div style="width: 10px; height: 5px; box-sizing: border-box; padding: 1px; border-width: 1px"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div data-disabled="true" id="box_sizing_border_box_nested_alternating" | ||
style="width: 100px; height: 100px; box-sizing: border-box; padding: 3px; border-width: 2px;"> | ||
<div style="width: 40px; height: 40px; box-sizing: content-box; padding: 8px; border-width: 2px"> | ||
<div style="width: 20px; height: 25px; box-sizing: border-box; padding: 3px; border-width: 6px"> | ||
<div style="width: 10px; height: 5px; box-sizing: content-box; padding: 1px; border-width: 1px"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.