mirror of
https://github.com/servo/servo.git
synced 2025-08-29 00:58:20 +01:00
layout: Support block-direction margins for inline-blocks.
Improves linux.com.
This commit is contained in:
parent
885068207f
commit
3875c9db4a
5 changed files with 61 additions and 5 deletions
25
tests/ref/inline_block_block_direction_margins_ref.html
Normal file
25
tests/ref/inline_block_block_direction_margins_ref.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
}
|
||||
div {
|
||||
padding-top: 100px;
|
||||
padding-bottom: 100px;
|
||||
background: steelblue;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>Four <span>score</span> and seven years ago</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue