- 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>
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:42 UTC