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