Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
layout: Fix intrinsic inline size calculating of inline blocks
When calculating intrinsic inline sizes of an inline block, take its nested inline parents into account.
- Loading branch information
Showing
4 changed files
with
74 additions
and
24 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
15 changes: 15 additions & 0 deletions
15
tests/wpt/mozilla/tests/css/inline_block_nested_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,15 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<link rel="match" href="inline_block_nested_margin_ref.html"> | ||
<style> | ||
#outer { | ||
margin: 0 50px; | ||
} | ||
#inner { | ||
display: inline-block; | ||
width: 200px; | ||
height: 40px; | ||
background: orange; | ||
} | ||
</style> | ||
<span id="outer"><span id="inner"></span></span> |
12 changes: 12 additions & 0 deletions
12
tests/wpt/mozilla/tests/css/inline_block_nested_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,12 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<style> | ||
#inner { | ||
display: inline-block; | ||
width: 200px; | ||
height: 40px; | ||
background: orange; | ||
margin: 0 50px; | ||
} | ||
</style> | ||
<span id="inner"></span> |