On Wednesday 2009-01-07 12:44 -0800, Jon wrote: > I'm I misreading the specs or is there any reason why you can't use > the pseudo-elements :after and :before on input elements?
Input elements are replaced elements, which means they don't display their contents. (For example, if an input element has a p child, or a text node child, that child won't show up.) :before and :after add contents to the element (like an extra first or last child), which isn't meaningful for elements that don't display their contents. See also: # Note. This specification does not fully define the interaction # of :before and :after with replaced elements (such as IMG in # HTML). This will be defined in more detail in a future # specification. in http://www.w3.org/TR/CSS21/generate.html -David -- L. David Baron http://dbaron.org/ Mozilla Corporation http://www.mozilla.com/ _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

