- From: Ilya Streltsyn via GitHub <sysbot+gh@w3.org>
- Date: Wed, 12 Feb 2020 15:22:23 +0000
- To: public-css-archive@w3.org
> Replaced elements replace all the content of the element, including ::before and ::after pseudo-elements, that's why it doesn't work on them. Shouldn't this great explanation be somewhere in the spec itself, probably near the definition of ::before and ::after in [css-pseudo-4]? The current situation, where CSS2.x just "doesn't fully define" the behavior of them with replaced elements, and the only place clearly disallowing them seems to be [the note](https://drafts.csswg.org/css-content-3/#typedef-content-content-replacement) in [css-content-3] in the section about a rather specific case of the replaced elements, is often confusing for authors. Also, there are still some inconsistencies between replaced element definitions in CSS and in HTML. For example, the HTML spec lists all form controls except `<input type="image">` among _non-replaced_ elements, but [css-images-3] contains a phrase "some types of replaced elements, such as form controls". I'm afraid that these inconsistencies still often lead to confusion about the status of the form controls (and whether they should support ::before/::after or not). -- GitHub Notification of comment by SelenIT Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/625#issuecomment-585257309 using your GitHub account
Received on Wednesday, 12 February 2020 15:22:34 UTC