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

RE: font-051/052/053/054/055/056 invalid (system font keywords are ok font families)

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Fri, 15 Oct 2010 14:35:03 -0700
Message-ID: <8dc6366118635bd7d5be65b105530c6b.squirrel@cp3.shieldhost.com>
To: "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>

> On Friday, October 15, 2010 1:42 PM L. David Baron wrote:
>> These tests:
>> http://test.csswg.org/suites/css2.1/20101001/html4/font-051.htm
>> http://test.csswg.org/suites/css2.1/20101001/html4/font-052.htm
>> http://test.csswg.org/suites/css2.1/20101001/html4/font-053.htm
>> http://test.csswg.org/suites/css2.1/20101001/html4/font-054.htm
>> http://test.csswg.org/suites/css2.1/20101001/html4/font-055.htm
>> http://test.csswg.org/suites/css2.1/20101001/html4/font-056.htm
>> http://test.csswg.org/suites/css2.1/20101001/xhtml1/font-051.xht
>> http://test.csswg.org/suites/css2.1/20101001/xhtml1/font-052.xht
>> http://test.csswg.org/suites/css2.1/20101001/xhtml1/font-053.xht
>> http://test.csswg.org/suites/css2.1/20101001/xhtml1/font-054.xht
>> http://test.csswg.org/suites/css2.1/20101001/xhtml1/font-055.xht
>> http://test.csswg.org/suites/css2.1/20101001/xhtml1/font-056.xht
>> are invalid because the system font keywords are perfectly good family
>> names.  The declaration:
>>   font: 32px caption;
>> is equivalent to:
>>   font: initial;
>>   font-size: 32px;
>>   font-family: caption;
>> and is perfectly valid.  The 'caption' in this case is NOT a system
>> font keyword,
>> but it's perfectly legal.
>>
>> These tests should be reversed to test that the declaration is
>> allowed.
>
> According to section 15.8  of the CSS 2.1 spec it clearly identifies
> that the values for 'caption', 'icon', 'menu', 'message-box',
> 'small-caption' and 'status-bar' cannot be mixed with any other font
> values in the font shorthand. The shorthand clearly identifies this
> restriction by using a single bar '|' meaning 'or' and all the
> individual font properties are grouped by the [ ]. This would mean
> 'font: 32pt caption' is not valid and must be ignored.

The validator has a bug on this.

Bug 8529 - A system font value cannot mix with another subproperty value
when declaring a font shorthand
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8529

regards, Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (RC2; October 1st 2010):
http://test.csswg.org/suites/css2.1/20101001/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Friday, 15 October 2010 21:35:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 15 October 2010 21:35:45 GMT