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

border-bottom-width-083/084 assume space in default font is 4px wide

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 14 Oct 2010 00:44:32 -0700
To: public-css-testsuite@w3.org
Message-ID: <20101014074432.GA20136@pickering.dbaron.org>
http://test.csswg.org/suites/css2.1/20101001/xhtml1/border-bottom-width-083.xht
http://test.csswg.org/suites/css2.1/20101001/xhtml1/border-bottom-width-084.xht
http://test.csswg.org/suites/css2.1/20101001/html4/border-bottom-width-083.htm
http://test.csswg.org/suites/css2.1/20101001/html4/border-bottom-width-084.htm

These tests assume that a space in the default font is 4 pixels
wide.  In Firefox on Linux, it appears to be 5 pixels wide, and
therefore the tests have a one-pixel-wide column of red at the left
edge.

To explain in a drop more detail, since it wasn't immediately
obvious:  the test consists of two 96px by 96px (really 1in by 1in,
and the test suite assumes 96dpi) inline-blocks, separated by a
space.  The second has margin-left: -100px to cause them to overlap,
but this only works if a space in the default font is 4px wide.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 14 October 2010 07:45:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 14 October 2010 07:45:07 GMT