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>





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

<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+.

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 Saturday, 26 February 2011 18:50:43 UTC

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