mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Include margin in inline block intrinsic width. Fixes [edit] links on wikipedia.
This commit is contained in:
parent
787a683365
commit
6bc65f3b07
4 changed files with 65 additions and 3 deletions
30
tests/ref/inline_block_with_margin_ref.html
Normal file
30
tests/ref/inline_block_with_margin_ref.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
.block0 {
|
||||
position: absolute;
|
||||
background-color: yellow;
|
||||
left: 50px;
|
||||
top: 0px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
.block1 {
|
||||
position: absolute;
|
||||
background-color: yellow;
|
||||
left: 250px;
|
||||
top: 0px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="block0"></div>
|
||||
<div class="block1"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue