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

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

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Mar 2017 00:26:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-285214950-1489019182-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:30 UTC