Perhaps, but in practice, it's not enough.  Here's an ahem pixel test that
is slightly different on Mac and Chromium Linux:
http://trac.webkit.org/browser/trunk/LayoutTests/platform/mac/fast/block/basic/010-expected.png
http://trac.webkit.org/browser/trunk/LayoutTests/platform/chromium-linux/fast/block/basic/010-expected.png

Also, I think it would be hard to tell by examining the HTML if a test uses
another font.  For example, the line height of an empty block might depend
on the default font that isn't specified (does <pre></pre> render the same
height on all platforms?).

On Thu, Jun 2, 2011 at 10:44 AM, Adam Barth <[email protected]> wrote:

> I thought the whole point of Ahem was to avoid those problems.
>
> Adam
>
>
> On Thu, Jun 2, 2011 at 1:29 AM, Hao Zheng <[email protected]> wrote:
> > Actually, even the same Ahem font will be rendered differently on
> > different platform, depending on the font drawing library, the
> > anti-aliasing algorithm, subpixel, tiny float-point calculation diff
> > on different arch.
> >
> > On Thu, Jun 2, 2011 at 3:30 AM, Eric Seidel <[email protected]> wrote:
> >> I know that Ahem is safe to use across multiple platforms (the font
> metrics
> >> will be the same).  Do we know if there are any other fonts for which
> this
> >> is true?
> >> I'd like to make the style-bot yell at people when they use pixel tests
> with
> >> non-safe fonts.  Right now that list would only include ahem.
> >> -eric
> >> _______________________________________________
> >> webkit-dev mailing list
> >> [email protected]
> >> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> >>
> >>
> > _______________________________________________
> > webkit-dev mailing list
> > [email protected]
> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> >
> _______________________________________________
> webkit-dev mailing list
> [email protected]
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to