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

Re: [css3-multicol] multicol-span-all-child-002 review: proposed replacement

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sun, 1 Sep 2013 13:39:47 -0400
Message-ID: <a8edaa866acab9a94c9e163a2a580c24.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Håkon Wium Lie" <howcome@opera.com>
Cc: "Public css-testsuite mailing list" <public-css-testsuite@w3.org>

Le Dim 1 septembre 2013 12:21, Håkon Wium Lie a écrit :
> Also sprach "Gérard Talbot":
>
>  > > Small point: perhaps we should replace the lime background with a
> white
>  > > background (in case somone tries to print these documents :)
>  >
>  > I agree.
>  >
>  > I just changed lime for white in the test and then white for black.
>
> Good.
>
>  > > I'm a little unsure what the test tries to do. It's clear that the
> <div>
>  > > element is too big to fit, and that implementations *may* therefore
>  > > ignore 'column-span: all'. In which case, the <div> is laid out in
> two
>  > > columns. If so, however, how can you fit three of the <span>
> elements in
>  > > the first column?
>  >
>  > The <span> color is black but its background is transparent. And
> there
>  > is a soft (unforced) column break affecting the 3rd <span> element.
> The
>  > 3rd <span> element is broken across 2 column boxes.
>
> Implementations may treat the <span> as unbreakable, I believe.
> Probably not a good idea, but not illegal, either -- and in any case
> not something we should test here.

Those 5 <span> elements are styled as blocks:

  span
  {
  color: black;
  display: block;
  height: 4em;
  width: 5em;
  }

>
>  > > The height of the div is 10em, and each span is 4em
>  > > high. Shouldn't there only be four <span> elements, two for each
> column?
>  >
>  > 4 <span> elements instead of 5 will also work. But 5 <span> elements
>  > should also work.
>
> So I suggest reducing the elements to 4.


4 <span> elements instead of 5 will *not* work.

  ************************
  |FAIL       |FAIL      |
  |           |          |
  |           |          |
  |           |          |
  |FAIL       |FAIL      |
  |           |          |
  |           |          |
  |           |          |
  |           |          |
  |abc deg    |ghk mno   |
  ************************

The 4 <span> elements occupy the first top 8ems of body, leaving just
enough height for the spanning-all <p>abc deg ghk mno</p> (which has a
margin-top of 1em in the rendered layout) to fit inside <body>.





5 <span> elements should work

  ************************
  |FAIL       |          |abc deg
  |           |          |ghk mno
  |           |FAIL      |
  |           |          |
  |FAIL       |          |
  |           |          |
  |           |FAIL      |
  |           |          |
  |FAIL       |          |
  |           |          |
  ************************

Here, there is not sufficient space for the p to be rendered inside the
body and as a column-span: all element.

Another idea would be to set the height of body from 10em to 8em: then 4
FAIL instead of 5 would work. This is what I've done. I've added
margin-top: 0 to the <p>.

http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/Opera/multicol-span-all-child-002-GT.xht

http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/Opera/multicol-span-all-child-002-GT-ref.xht


  Expected results:

  ************************
  |FAIL       |FAIL      |abc deg
  |           |          |ghk mno
  |           |          |
  |           |          |
  |FAIL       |FAIL      |
  |           |          |
  |           |          |
  |           |          |
  ************************

  The test presumes, postulates that
  "abc deg" occupies not more than 5em.


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

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Sunday, 1 September 2013 17:40:18 UTC

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