Closed Bug 557306 Opened 15 years ago Closed 15 years ago

css content set on INPUT pseudo-classes (like :after) do not render

Categories

(Core :: CSS Parsing and Computation, defect)

1.9.2 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 241985

People

(Reporter: bugzilla, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 An INPUT element will not render content supplied in the style-sheet's :after or :before pseudo-class for the element. <html><head><style>#test:before {content:"before"} #test:after {content:"after"}</style></head><body><form><input id="test" type="text"></form></body></html> Of Chrome, IE8, Firefox, and Opera, only Opera rendered the "before" and "after" text as expected. Reproducible: Always Steps to Reproduce: 1. Create an INPUT element 2. Try to add style-sheet content via a :before or :after pseudo-class Actual Results: The pseudo-class content is not rendered. Expected Results: The pseudo-class content should be rendered. http://www.w3.org/TR/CSS2/selector.html#before-and-after http://www.w3.org/TR/CSS2/generate.html
Component: General → Style System (CSS)
Product: Firefox → Core
Version: unspecified → 1.9.2 Branch
QA Contact: general → style-system
This isn't supposed to work; :before and :after create new first/last children, and input doesn't display its children.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.