Make less restrictive assumptions about how big a 'ch' unit is relative to the line-height (assuming 4ch greater than the line height, rather than assuming 2ch is). (Bug 363706)

This commit is contained in:
L. David Baron 2008-07-15 14:31:36 -07:00
Родитель 21b6cefe1f
Коммит 2545f37591
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -8,7 +8,7 @@
color:black; background-color:white; font-size:16px; padding:0; margin:0;
}
div { background:green; width:20ch; height:2ch; }
div { background:green; width:20ch; height:4ch; }
</style>
</head>
<body>

Просмотреть файл

@ -9,9 +9,9 @@
}
.float { float:left; clear:both; }
.t1 { -moz-column-count:2; -moz-column-width: 9ch; -moz-column-gap: 2ch; background:red; height:2ch; }
.t1 { -moz-column-count:2; -moz-column-width: 9ch; -moz-column-gap: 2ch; background:red; height:4ch; }
.abs { position:absolute; width:20ch; height:2ch; }
.abs { position:absolute; width:20ch; height:4ch; }
.red { background:red; }
.green { background:green; }
@ -19,9 +19,9 @@
</head>
<body>
<div class="abs green" style="left:0; top:0;">green</div>
<div class="abs red" style="left:0; top:2ch; z-index:-1;">green</div>
<div class="abs green" style="left:0; top:4ch; z-index:2;">green</div>
<div class="abs red" style="left:0; top:6ch;">green</div>
<div class="abs red" style="left:0; top:4ch; z-index:-1;">green</div>
<div class="abs green" style="left:0; top:8ch; z-index:2;">green</div>
<div class="abs red" style="left:0; top:12ch;">green</div>
<div class="float">
<div class="t1 red">green</div>
@ -31,8 +31,8 @@
<div class="t1 green">green</div>
</div>
<div class="t1" style="position: absolute; top:4ch; ">green</div>
<div class="t1 green" style="position: absolute; top:6ch; z-index:2;">green</div>
<div class="t1" style="position: absolute; top:8ch; ">green</div>
<div class="t1 green" style="position: absolute; top:12ch; z-index:2;">green</div>
</body>
</html>