Improper centering of spaced text
[email protected] (Kenneth A. Wedin)
| Newsgroups | gmane.comp.mozilla.devel.layout.cvs |
|---|---|
| Organization | http://groups.google.com/ |
| Message-ID | <[email protected]> |
All Gecko engine browsers (including Chimera, Netscape, and Mozilla)
appear to have the following problem. Centering of spaced text is
offset toward the left and thus not centered. Import the following
elements into a more fully encoded page to test the problem yourself.
--------------------------------------------------------------------------------
<head>
<style type="text/css">
<!--
h1 {
font-size : 12pt;
font-variant : small-caps;
letter-spacing : 1em;
margin-left : auto;
margin-right : auto;
text-align : center;
word-spacing : 1em;
}
p {
font-size : 12pt;
letter-spacing : 0em;
margin-left : auto;
margin-right : auto;
text-align : center;
word-spacing : 0em;
}
-->
</style>
</head>
<body>
<h1>Centering of Spaced Text</h1>
<p>This is a test to see how well various browsers center text with
letter-spacing and word-spacing!</p>
</body>
--------------------------------------------------------------------------------
You will notice that h1 is offset to the left, even when the
"smallcaps" designation is removed.
Interestingly, this is even a problem for non-Gecko browsers such as
Internet Explorer, which gets even more severely messed up with the
smallcaps designation than any other available Macintosh browser.