[TIL] CSS :empty isn’t applicable on form fields

from blog XML-RSS Feed for Anselm Hannemann’s Writings, | ↗ original
Today I learned that the CSS :empty selector is implemented to look for child content (think of innerText/innerHTML). This means it reports empty for filled form elements which are self-closing elements. Findings :empty reports empty for all form input elements because they have their values as attributes, not as inner content :empty works for ...