On 7 Jan., 21:56, "L. David Baron" <[email protected]> wrote:
> 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.
> inhttp://www.w3.org/TR/CSS21/generate.html
>
> -David
>
> --
> L. David Baron                                http://dbaron.org/
> Mozilla Corporation                      http://www.mozilla.com/

Thanks, it make sense.
I was trying to invent a way to use gradient, variable width styling
for input type submit, but am now looking into the button element.

Missing some documentation unforturnately...
https://developer.mozilla.org/en/HTML/Element/button
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to