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

Re: Proposed improvements to c414-flt-ln-002

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Mon, 6 Dec 2010 12:13:17 -0800
Message-ID: <ab2fe866781dfa44d5d299a0a9d98ede.squirrel@cp3.shieldhost.com>
To: "fantasai" <fantasai.lists@inkedblade.net>
Cc: "Řyvind Stenhaug" <oyvinds@opera.com>, "Geoffrey Sneddon" <gsneddon@opera.com>, "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>

Le Lun 6 décembre 2010 0:53, fantasai a écrit :
> On 10/06/2010 04:15 PM, "Gérard Talbot" wrote:
>> Řyvind and Geoffrey,
>> http://test.csswg.org/suites/css2.1/20101001/html4/c414-flt-ln-002.htm
>> We discussed the c414-flt-ln-002 test before.
> I've altered the test to make it easier to determine the pass/fail
> conditions:
>    http://test.csswg.org/source/approved/css2.1/src/css1/c414-flt-ln-002.xht
> Let me know if this addresses the problem.
> ~fantasai

If unstyled body text uses the default font-size of 16px, then the
following values can and may well cause fractional pixel issues:

   .test { position: relative; font: 1em/1.4 serif;
           border: 5px solid gray; margin: 1em; color: silver; }

   .test p, .test span { color: white; border: solid 0.2em; }

line-height: 1.4 will be resolved as 16px mult 1.4 == 22.4px

border-width: 0.2em will be resolved as 16px mult 0.2 == 3.2px

There are several ways to workaround this.

I used line-height: 1.25 (resolved as 20px, which creates the usual and
normal 2px half-leading for a normal <p>)

or you may even set the font-size to 20px for .test making all tenths of
value giving whole integer pixel values.

I forgot to say in my previous email that the testcase should even
invite users to not only resize viewport width but increase/decrease
text size as well, too.

regards, Gérard
Contributions to the CSS 2.1 test suite:

CSS 2.1 test suite (RC3; October 27th 2010):

CSS 2.1 test suite contributors:
Received on Monday, 6 December 2010 20:13:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:22 UTC