W3C home > Mailing lists > Public > public-css-testsuite@w3.org > March 2011

[RC5, pre-RC6] font-systemfont-rule-003 inaccurate/incorrect

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 23 Mar 2011 09:53:01 -0700
Message-ID: <1df775024dece9129f97772107a8fed3.squirrel@cp3.shieldhost.com>
To: "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>





Relevant code is:
                font: UnknownFont;

Font shorthand requires at minimum 2 font subproperties (unless
resorting to a system font): font-size and font-family.

    Value:  	[ [ <'font-style'> || <'font-variant'> || <'font-weight'>
]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption
| icon | menu | message-box | small-caption | status-bar | inherit


    * A bar (|) separates two or more alternatives: exactly one of them
must occur.
    * A double bar (||) separates two or more options: one or more of
them must occur, in any order.
    * Brackets ([ ]) are for grouping.
    * A question mark (?) indicates that the preceding type, word, or
group is optional.

Otherwise the declaration is treated as invalid:


So, the user agent should not even attempt to fetch UnknownFont. The
test may actually end up doing what the testcase assertion predict but,
in all fairness, for the wrong reasons: invalid font shorthand

Proposed modification:

line 10:    #test
line 11:    {
line 12:    font: 16px UnknownFont;
line 13:    }


One other detail about the testcase. Everywhere it says "font unknown",
I would be tempted to replace it with "not installed font" as a better
and more precise description. A font may be known but not fetchable by
the os, not retrievable by the os for some reasons[1] or, ultimately,
not installed on the os.

[1] Under Linux KDE, it is possible to disable a font without
uninstalling it.

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

CSS 2.1 test suite (RC5; January 11th 2011):

CSS 2.1 test suite contributors:
Received on Wednesday, 23 March 2011 16:53:38 UTC

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