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

[RC5, pre-RC6] font-family-rule-002: pass conditions, line-height and assert text

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sat, 26 Feb 2011 10:50:05 -0800
Message-ID: <d38de1a0598b0f334c331dab079e531b.squirrel@cp3.shieldhost.com>
To: "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Arron,


http://test.csswg.org/suites/css2.1/20110111/html4/font-family-rule-002.htm

http://test.csswg.org/suites/css2.1/nightly-unstable/html4/font-family-rule-002.htm

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_15/font-family-rule-002.htm

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_15/font-family-rule-002.xht




        <meta name="assert" content="Font names containing any white
space need to be quoted. It is also recognized if it is not
quoted.">
        <style type="text/css">
            #div1
            {
                font-family: "White Space";
            }
            #div2
            {
                font-family: White Space;
            }
        </style>

<p>Test passes if there is at least one box below. It is ok to have one
letter "X".</p>
        <div id="div1">X</div>
        <div id="div2">X</div>


It is *not* ok to have one letter "X". The rule for converting an
unquoted font-family with one or many blank white spaces separating its
strings are defined in the spec (although maybe not in the most
easy+clear way to understand, IMO).

font-family: White Space;

should be parsed and converted into

font-family: "White Space";



font-family: White       Space;

should be parsed and converted into

font-family: "White Space";

In the test, there should be 2 small filled black squares vertically
lined up and there can be a tiny white line separating them as
line-height has not been specified explicitly. We know that
'line-height: normal' can be and could be rendered as 1.1 or 1.2 ...
which is the case (1.2) in Firefox 3.6+.

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

CSS 2.1 test suite (RC5; January 11th 2011):
http://test.csswg.org/suites/css2.1/20110111/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Saturday, 26 February 2011 18:50:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 26 February 2011 18:50:53 GMT