Include margin in inline block intrinsic width. Fixes [edit] links on wikipedia.

This commit is contained in:
Glenn Watson 2014-09-18 15:57:38 +10:00
parent 787a683365
commit 6bc65f3b07
4 changed files with 65 additions and 3 deletions

View 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>