Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the margin box of an inline block when computing the inline size
When computing the inline size of an inline block in inline formating context, use the margin box of the underling block.
- Loading branch information
Showing
4 changed files
with
57 additions
and
4 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
16 changes: 16 additions & 0 deletions
16
tests/wpt/mozilla/tests/css/inline_block_percentage_margin.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,16 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<link rel="match" href="inline_block_percentage_margin_ref.html"> | ||
<style> | ||
body { | ||
width: 500px; | ||
} | ||
span { | ||
display: inline-block; | ||
width: 100px; | ||
height: 30px; | ||
background: orange; | ||
margin: 0 10%; | ||
} | ||
</style> | ||
<span></span> |
15 changes: 15 additions & 0 deletions
15
tests/wpt/mozilla/tests/css/inline_block_percentage_margin_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,15 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<style> | ||
body { | ||
width: 500px; | ||
} | ||
span { | ||
display: inline-block; | ||
width: 100px; | ||
height: 30px; | ||
background: orange; | ||
margin: 0 50px; | ||
} | ||
</style> | ||
<span></span> |