W3C home > Mailing lists > Public > public-css-testsuite@w3.org > September 2015

Re: 'medium' font-size computes to 16px: uncommon, unreliable assumption

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 09 Sep 2015 00:06:25 -0400
To: fantasai <fantasai.lists@inkedblade.net>, 塩澤 元 (Shiozawa, Hajime) <hajime.shiozawa@gmail.com>
Cc: Public CSS Test suite mailing list <public-css-testsuite@w3.org>
Message-ID: <19d2db979fb98548fa9d89efe1c993b0@gtalbot.org>
Le 2015-09-07 22:28, fantasai a écrit :
> On 09/05/2015 09:52 PM, Gérard Talbot wrote:
>> Hello,
>> "
>> The 'medium' font-size computes to 16px.
>> "
>> should be considered as an uncommon assumption which should not be 
>> relied upon in all test suites. I wish this would change. I
>> wish all test suites would make the 'medium' font-size of document 
>> root element computed to 16px a *_formal requirement_*
>> before taking tests or test suite and not make it an uncommon 
>> assumption. Especially when automatically checking thousands of
>> tests with dedicated computers.
>> I am open to discussion here.
> The test suite should not make assumptions that don't hold true
> if the user has adjusted commonly-available preferences.
> Therefore I disagree with changing the policy and the number of
> tests that rely on this assumption should be kept to a minimum.

There are now many CSS2.1 tests relying on such assumption, 

> Furthermore, there is no benefit to making this assumption.
> Tests are equally, if not more, readable and reliable by using
> units that do not rely on the font size.


> Please be clear that we are not authoring web pages here.
> We are authoring tests. Good practices for tests are not always
> good practices for web pages, and vice versa.
> ~fantasai

1.25em -> 20px
committed changeset 7804:e0b61ffb0e60
70 files changes

3.75em -> 60px
committed changeset 7805:fea778cbdbcf
34 files modified

** To Hajime **

I have modified your writing-modes tests which have

font: 3.75em/1 Ahem; /* computes to 60px/60px */


font: 60px/1 Ahem; /* computes to 60px/60px */


font: 3.75em/1.5 Ahem; /* computes to 60px/90px */


font: 60px/1.5 Ahem; /* computes to 60px/90px */


font: 3.75em/3 Ahem; /* computes to 60px/180px */


font: 60px/3 Ahem; /* computes to 60px/180px */

because this was my error. If your tests had been already reviewed and 
approved and are now "resubmitted for review", then I will re-approve 
your tests accordingly.

6.25em -> 100px
committed changeset 7806:2e089610b7fa
35 files modified

3.125em -> 50px
committed changeset 7807:7a9ff29cfbc1

Test Format Guidelines

Test Style Guidelines

Test Templates

CSS Naming Guidelines

Test Review Checklist

CSS Metadata
Received on Wednesday, 9 September 2015 04:06:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:21 UTC