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

Okay, pushed changes. The new text says:

> This value is treated as display: none on replaced elements, form controls (i.e. user interface elements whose element type can accept and/or submit user data, such as <input> and <button>), and (obviously) empty elements. The effect is exactly as if the UA style sheet had specified display: none !important on such elements, except that the computed style is still contents.
>
> Note: Replaced elements and form controls are included in this special case because their rendering requirements are often outside the scope of the CSS formatting model, and therefore removing only the element’s own generating box is a more-or-less undefined operation. As this behavior may be refined if use cases (and more precise rendering models) develop, authors should use display: none rather than display: contents on such elements for forward-compatibility.

Let me know if that looks good, or if anything should be changed.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/540#issuecomment-285214950 using your GitHub account

Received on Thursday, 9 March 2017 00:26:30 UTC