Re: [css3-multicol] spanning element with only block children

Le Lun 19 août 2013 11:03, "Gérard Talbot" a écrit :
>
> Le Lun 19 août 2013 4:31, Morten Stenshorne a écrit :
>> "Gérard Talbot" <www-style@gtalbot.org> writes:
>>
>>> I believe this
>>>
>>> http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/Opera/multicol-span-all-child-001-GT-ref.xht
>>>
>>> to be a correct reftest for this test:
>>>
>>> http://www.gtalbot.org/BrowserBugsSection/CSS3Multi-Columns/Opera/multicol-span-all-child-001-GT.xht
>>>
>>> Am I wrong? What am I missing?
>>>
>>> In my opinion, Chrome 28.0.1500.95 and Prince9 render the test
>>> correctly.
>>> In my opinion, Firefox 23, IE10, Opera 12.16 get it wrong.
>>
>> This one is tricky: http://www.w3.org/TR/css3-multicol/#column-span0
>>
>>         When space is limited, it may be impossible to find room for
>>         the spanning element. In these cases, user agents may treat the
>>         element as if ‘none’ had been specified on this property.
>>
>> I must say I wish this wasn't in the spec, though. It's hard to
>> implement correctly and adds no value.
>>
>> In other words, it is Firefox 23, IE10 and Opera 12.16 that get it
>> right. The reftest is invalid.
>
> Morten,
>
> Thank you for your response. I was puzzled ... and now I am confused :)
>
> The multi-column element (body element) has a set width to 10em and its
> 'overflow' is by default set to 'visible'. So, when or how could a
> multi-column with a spanning (column-span: all) element have limited
> space?
>
> In this test, body has a set width of 10em; width is auto for the
> column-spanning div. If 'width: auto' for a block is interpreted as "take
> as much horizontal space as you can", then why would such situation
> considered as limited (constraining) space? or even an "impossible to find
> room" situation?
>
> In any case, I see sufficient width to render all of the column-spanning
> div within the multi-column element.
>
> Is there a restriction to elements that can be column-spanning elements?
> Can a block of blocks be a column-spanning element?
>
> Gérard

In Example XXI, the column-spanning H2 element appears later in the
content, and the height of the multicol element is constrained (to
something like 6.5em). And so, the H2 element appears in the overflow and
there is not room to make the element spanning across all column boxes.
But none of these conditions are present in the
multicol-span-all-child-001-GT.xht test.

One last detail. The spec uses the "may" word in
"
In these cases, user agents may treat the element as if ‘none’ had been
specified on this property.
"

So, there may be more than 1 way to render example XXI. In fact, some UA
could render the H2 element across 2 column boxes, across the 2 column
boxes rendered in the overflow.

Gérard
Gérard

>
>>
>>> -------
>>>
>>> On the same subject, I believe this
>>>
>>> http://test.csswg.org/source/contributors/opera/submitted/multicol/multicol-span-all-child-ref.xht
>>>
>>> to be an _incorrect_ reftest for this test:
>>>
>>> http://test.csswg.org/source/contributors/opera/submitted/multicol/multicol-span-all-child-001.xht
>>
>> Unfortunately not. :) This test is valid, because of what I mentioned
>> above.
>>
>> --
>> ---- Morten Stenshorne, developer, Opera Software ASA ----
>> ------------------ http://www.opera.com/ -----------------
>>
>
>
> --
> CSS 2.1 Test suite RC6, March 23rd 2011
> http://test.csswg.org/suites/css2.1/20110323/html4/toc.html
>
> Contributions to CSS 2.1 test suite
> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/
>
> Web authors' contributions to CSS 2.1 test suite
> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
>
>
>


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

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Monday, 19 August 2013 15:24:24 UTC