W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2010

Re: Mozilla small-caps test

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 1 Jul 2010 09:35:30 +1200
Message-ID: <AANLkTilctqKbwZDNDLcG8zt12PGMkN0s7dYt4DvlMWMT@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>, John Daggett <jdaggett@mozilla.com>
On Thu, Jul 1, 2010 at 8:20 AM, fantasai <fantasai.lists@inkedblade.net>wrote:

> John Daggett can correct me if I'm wrong, but I believe the
> small-caps test submitted by Mozilla
>
> http://test.csswg.org/source/contributors/mozilla/incoming/reftests/text-transform/
>
> http://mxr.mozilla.org/mozilla-central/source/layout/reftests/text-transform/
> is invalid. It assumes that a small-caps lower-case "a" has
> the same rendering as a capital "A" at 80% of the font size.
>
> This assertion is both unsupported by the specification (nowhere
> does it require 80% scaling) and, if I understand correctly,
> a completely wrong test for fonts that have true small caps.
>
> I'm removing this from Mozilla's submission. I'm surprised the
> reftest has not caused noticeable failures.
>

That's because we currently implement small-caps by uppercasing and scaling
by 80%. Indeed, that test should be removed. In our tree, it could be
replaced by a != test to at least ensure that small-caps does *something*.
Or we could replace it with a test that uses a font we know doesn't have
small-caps features.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Wednesday, 30 June 2010 21:35:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:52:02 GMT