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

Re: RC1 : 1st preliminary review report: table-anonymous-objects-0xx

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sat, 25 Sep 2010 13:41:53 -0700
Message-ID: <4a888c9227a1e56afcaf996b7289a1d6.squirrel@cp3.shieldhost.com>
To: "Boris Zbarsky" <bzbarsky@MIT.EDU>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
> On 9/24/10 4:59 PM, "Gérard Talbot" wrote:
>> 14- (Boris Zbarsky) A few table-anonymous-objects-0xx testcases use


>> - Inline style is formally discouraged:
> Yes, I know.  Rewriting these test to not use inline style would
actually make them significantly less readable.

It's helpful to people trying to understand the test if you use
meaningful class and ID names

> If someone does want to
> do that, for some reason, feel free.

>From your


<div style="position: relative; font-size: 2em;">
<div style="position: relative; z-index: 1; color: red; padding: 1px;">

  <span style="display: block">
    <span style="display: table-cell">a</span>
    <span style="display: table-cell; white-space: pre"> </span>
    <span style="display: table-cell;" id="t">bc</span>

    <span style="display: table-cell; white-space: pre"> </span>
    <span style="display: table-cell">d</span>
<div style="position: absolute; z-index: 2; top: 0; color: green;
padding: 1px;">

    a bc d

could become

  <div id="rel-pos-wrapper">
    <div id="rel-pos-red-overlapped">

      <span id="enclosing-block">
        <span class="table-cell">a</span>
        <span class="preserve-spaces"> </span>
        <span class="table-cell" id="test">bc</span>

        <span class="preserve-spaces"> </span>
        <span class="table-cell">d</span>

    <div id="abs-pos-green-overlapping">

    a bc d

Uploaded example:


Consider this as a suggestion.

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

CSS 2.1 test suite (RC1; September 17th 2010):

CSS 2.1 test suite contributors:
Received on Saturday, 25 September 2010 20:42:28 UTC

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