W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

Re: [csswg-drafts] [css-display] Define interaction of display:contents and replaced elements

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 May 2017 21:00:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-301914055-1494968428-sysbot+gh@w3.org>
Oh, ok.

If the behavior of `display: contents` were to act like `display: none` when `object` is a replaced element but render the children when `object` is showing fallback, then the end result would depend on which happens first: loading of the resource vs. applying the style. If it's first loaded, then the end result would be display: none. If the style is applied first, then the `object` element doesn't generate a box, so it's not "being rendered", and thus doesn't load anything, but continues to render the children.

 http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5186 for object first
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5187 for style first

GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/540#issuecomment-301914055 using your GitHub account
Received on Tuesday, 16 May 2017 21:00:36 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:12 UTC