Open Bug 991874 Opened 7 years ago Updated 7 years ago

Pseudo element -moz-placeholder :before selector doesn't work

Categories

(Core :: CSS Parsing and Computation, enhancement)

31 Branch
x86_64
Linux
enhancement
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: mcweeney, Unassigned)

Details

Attachments

(2 files)

Attached image firefox-broken.png
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36

Steps to reproduce:

Running nightly build: version 31.0a1

Create a css selector:
input::-moz-placeholder:before {
}

I have created a jsfiddle for this as well: http://jsfiddle.net/mcdan/vT887/



Actual results:

The input::-moz-placeholder example works turning the placeholder blue but the :before does not work so you don't see the extra content.


Expected results:

Look at this in a webkit browser and you will see the "checkbox" unicode character before the placeholder. Also see attachments.
Attached image Working Chrome example
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
CSS syntax does not allow pseudo-elements on pseudo-elements.  It sounds like WebKit unilaterally implemented some sort of syntax extension there...
(In reply to Boris Zbarsky [:bz] from comment #2)
> CSS syntax does not allow pseudo-elements on pseudo-elements.  It sounds
> like WebKit unilaterally implemented some sort of syntax extension there...
So, does this mean it's not a bug ?
It means that deciding whether it's a bug is something the module owner needs to do, since it involves standards violations or changes to fix.
Severity: normal → enhancement
You need to log in before you can comment on or make changes to this bug.