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
"
http://wiki.csswg.org/test/css2.1/format#body-content


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


>From your

http://test.csswg.org/suites/css2.1/20100917/html4/table-anonymous-objects-011.htm


<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>
</span></div>
<div style="position: absolute; z-index: 2; top: 0; color: green;
padding: 1px;">

    a bc d
  </div>
</div>


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>
      </span>
    </div>

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

    a bc d
    </div>
  </div>

Uploaded example:

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/table-anonymous-objects-011.htm

Consider this as a suggestion.

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

CSS 2.1 test suite (RC1; September 17th 2010):
http://test.csswg.org/suites/css2.1/20100917/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Saturday, 25 September 2010 20:42:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 25 September 2010 20:42:33 GMT