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

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