-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTML: test fieldset's legend and painting order
Part of whatwg/html#3934
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-painting-order-ref.html
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,10 @@ | ||
<!doctype html> | ||
<title>Reference for fieldset painting order</title> | ||
<style> | ||
div { width: 200px; height: 200px; } | ||
#a { background: green; } | ||
#b { background: lime; position: relative; top: -100px; left: 100px; } | ||
</style> | ||
<p>There should be no red.</p> | ||
<div id=a></div> | ||
<div id=b></div> |
17 changes: 17 additions & 0 deletions
17
html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-painting-order.html
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,17 @@ | ||
<!doctype html> | ||
<title>fieldset painting order</title> | ||
<link rel=match href=fieldset-painting-order-ref.html> | ||
<style> | ||
fieldset, legend { margin: 0; padding: 0; } | ||
fieldset { | ||
border: 100px solid red; | ||
width: 0; | ||
min-width: 0; | ||
height: 0; | ||
} | ||
legend { width: 200px; height: 200px; margin-left: -100px; background: green; } | ||
legend > span { float: right; margin-top: 100px; width: 100px; height: 100px; background: red; } | ||
fieldset > div { margin-top: -100px; background: lime; width: 200px; height: 200px; } | ||
</style> | ||
<p>There should be no red.</p> | ||
<fieldset><legend><span></span></legend><div></div></fieldset> |