-
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.
Ignore margins in the block-flow direction
- Loading branch information
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
11 changes: 5 additions & 6 deletions
11
html/rendering/non-replaced-elements/the-fieldset-element-0/legend-margin-block-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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<!doctype html> | ||
<title>legend and margin (block-flow direction)</title> | ||
<style> | ||
body, fieldset { margin: 0; } | ||
p { margin: 0; height: 50px; } | ||
fieldset { border: 20px solid green; background: lime; } | ||
div { margin-top: 100px; } | ||
* { margin: 0; padding: 0; } | ||
p { height: 50px; } | ||
fieldset { border: 20px solid green; background: lime; padding: 10px; } | ||
legend { height: 20px; } | ||
</style> | ||
<p>There should be no red.</p> | ||
<div></div> | ||
<fieldset><legend>margin-top</legend></fieldset> | ||
<fieldset><legend>margin-bottom</legend><div></div></fieldset> | ||
<fieldset><legend>margin-bottom</legend></fieldset> |
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