Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For inline-block correctly use min-width
With inline-block elements set the width to max(min width, specified width) instead of only using the specified width.
- Loading branch information
Showing
4 changed files
with
59 additions
and
5 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
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,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
div { | ||
display: inline-block; | ||
min-width: 200px; | ||
width: 100px; | ||
height: 100px; | ||
} | ||
.red { | ||
background-color: red; | ||
} | ||
.green { | ||
background-color: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="red"></div><div class="green"></div> | ||
</body> | ||
</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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
div { | ||
display: inline-block; | ||
width: 200px; | ||
height: 100px; | ||
} | ||
.red { | ||
background-color: red; | ||
} | ||
.green { | ||
background-color: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="red"></div><div class="green"></div> | ||
</body> | ||
</html> |
a35ffe1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from jdm
at bjwbell@a35ffe1
a35ffe1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging bjwbell/servo/inline-block_fix_min-width = a35ffe1 into auto
a35ffe1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bjwbell/servo/inline-block_fix_min-width = a35ffe1 merged ok, testing candidate = 9d58c08
a35ffe1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://build.servo.org/builders/linux1/builds/925
success: http://build.servo.org/builders/linux2/builds/923
success: http://build.servo.org/builders/android/builds/961
success: http://build.servo.org/builders/mac1/builds/1140
success: http://build.servo.org/builders/mac2/builds/1140
success: http://build.servo.org/builders/gonk/builds/111
a35ffe1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 9d58c08