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)
 author L. David Baron Tue, 15 Jul 2008 14:31:36 -0700 changeset 15954 61f90cca8c3c036f112f97a14135c4c35390aa9f parent 15953 7b209553f0b5f5b56145157a33de0d79fad20c92 child 15955 c0eaa1f9d904d39eebaaec2e9ea8cae3d4af6f70 push id unknown push user unknown push date unknown bugs 363706 milestone 1.9.1a1pre
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)
```--- a/layout/reftests/bugs/391979-ref.html
+++ b/layout/reftests/bugs/391979-ref.html
@@ -3,17 +3,17 @@
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Testcase for bug 391979</title>
<style type="text/css">

html,body {
}

-        div { background:green; width:20ch; height:2ch; }
+        div { background:green; width:20ch; height:4ch; }
</style>
<body>
<div>green</div>
<div>green</div>
<div>green</div>
<div>green</div>
</body>```
```--- a/layout/reftests/bugs/391979.html
+++ b/layout/reftests/bugs/391979.html
@@ -4,35 +4,35 @@
<title>Testcase for bug 391979</title>
<style type="text/css">

html,body {
}

.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; }
</style>
<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>
</div>

<div class="float">
<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>```