W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2016

Re: [whatwg] [css-display] CSS Display Review

From: Mats Palmgren <mats@mozilla.com>
Date: Tue, 20 Sep 2016 02:46:06 +0200
To: "www-style@w3.org" <www-style@w3.org>, Boris Zbarsky <bzbarsky@mit.edu>, WHAT Working Group <whatwg@whatwg.org>
Message-ID: <508eabca-8a32-5138-e695-448618811593@mozilla.com>
On 09/20/2016 12:53 AM, fantasai wrote:
>>   <fieldset>
>>     <div style="display:contents">
>>       <legend>legend</legend>
>>     </div>
>>   </fieldset>
>>
>> and what about:
>>
>>   <details>
>>     <div style="display:contents">
>>       <summary>details</summary>
>>       Text.
>>     </div>
>>   </details>

Assuming that the above are the final DOM trees, then they should
create exactly the same CSS boxes as if the <div> element is replaced
by its (DOM) children.  (The only difference is that when the <div>
exists, its children inherits style from it.)
That's how display:contents is implemented in Gecko, and we support
display:contents pretty much everywhere, including tables, shadow DOM
and whatnot.

>> Note that in Gecko the answer is different for those two cases,
>> more or less by accident.

That's just a bug IMO.  I've filed:
https://bugzilla.mozilla.org/show_bug.cgi?id=1303906

/Mats
Received on Tuesday, 20 September 2016 00:46:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:39 UTC