Closed Bug 1272633 Opened 9 years ago Closed 8 years ago

Placeholder styling doesn't work on type=number

Categories

(Core :: Layout: Form Controls, defect)

46 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1004130

People

(Reporter: martijn, Unassigned)

References

(Blocks 1 open bug, )

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0 Build ID: 20160502172042 Steps to reproduce: <input type=number placeholder="Hit me"> <style> ::-moz-placeholder { color: green; } </style> Actual results: The placeholder will not be styled, unless I set type input type to "text". Expected results: Input placeholder styling should be applied regardless of input type.
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
I noticed this issue last week and came here to report it. I created a JSFiddle to demonstrate the issue: https://jsfiddle.net/d9yuxty6/
Blocks: number-input
I'd wager this issue was already crystal clear, and I suspect easy enough to fix for the dev team. But thanks anyway for the fiddle. Couldn't possibly be any clearer now :)
Please reopen this bug if it is something different from bug 1004130
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.