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,25 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@font-face {
font-family: 'ahem';
src: url(fonts/ahem/ahem.ttf);
}
body {
margin: 0;
font-family: 'ahem';
font-size: 100px;
line-height: 1;
}
span {
display: inline-block;
color: yellow;
margin-left: 50px;
}
</style>
</head>
<body>
<div><span>X X</span></div>
</body>
</html>