Closed
Bug 1431041
Opened 8 years ago
Closed 8 years ago
:placeholder-shown doesn't work for input type number
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla59
| Tracking | Status | |
|---|---|---|
| firefox59 | --- | fixed |
People
(Reporter: ntgdpl, Assigned: emilio)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20180104112904
Steps to reproduce:
Demo - https://codepen.io/anon/pen/eyPMrZ
1. create input with type number
2. set :placeholder-shown styles on number input
Actual results:
Placeholder is visible, :placeholder-shown styles haven't been applied.
Expected results:
:placeholder-shown styles should be applied.
Comment 1•8 years ago
|
||
Confirmed on latest nightly
Status: UNCONFIRMED → NEW
Component: Untriaged → CSS Parsing and Computation
Ever confirmed: true
Product: Firefox → Core
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 3•8 years ago
|
||
This is more like a DOM bug, but I'll take it anyway. Thanks for the report, and thanks Flore!
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → emilio
Component: CSS Parsing and Computation → DOM: Core & HTML
Updated•8 years ago
|
Priority: -- → P2
| Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8943245 [details]
Bug 1431041: Make placeholder apply to <input type="number">.
https://reviewboard.mozilla.org/r/213572/#review219338
And the placeholder is cleared correctly when some value is set to the input element?
Attachment #8943245 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Olli Pettay [:smaug] (please try to find other reviewers for non-web components patches) from comment #5)
> Comment on attachment 8943245 [details]
> Bug 1431041: Make placeholder apply to <input type="number">.
>
> https://reviewboard.mozilla.org/r/213572/#review219338
>
> And the placeholder is cleared correctly when some value is set to the input
> element?
Blerg, yeah, though I only tested it with valid values. Patch incoming...
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 11•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8943335 [details]
Bug 1431041: Fix placeholder-shown when the value of the input is invalid.
https://reviewboard.mozilla.org/r/213646/#review219514
Attachment #8943335 -
Flags: review?(bugs) → review+
Comment 12•8 years ago
|
||
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/7a4c3ab0ade8
Make placeholder apply to <input type="number">. r=smaug
https://hg.mozilla.org/integration/autoland/rev/57641ee7058f
Fix placeholder-shown when the value of the input is invalid. r=smaug
Comment 13•8 years ago
|
||
Backed out for failing dom/html/test/forms/test_input_number_placeholder_shown.html & reftests/css-placeholder/input/placeholdershown.html
Backout: https://hg.mozilla.org/integration/autoland/rev/13c36da892b2dc4b9ba9461d6038f5d78754d58f
push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=57641ee7058f016c28bbb67b6a224d45e1b7fb9e&selectedJob=157058538
failure logs:
https://treeherder.mozilla.org/logviewer.html#?job_id=157057598&repo=autoland&lineNumber=6525
https://treeherder.mozilla.org/logviewer.html#?job_id=157058538&repo=autoland&lineNumber=1960
Flags: needinfo?(emilio)
Comment 14•8 years ago
|
||
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/fbf8db3f65eb
Make placeholder apply to <input type="number">. r=smaug
https://hg.mozilla.org/integration/autoland/rev/b06e69e9a326
Fix placeholder-shown when the value of the input is invalid. r=smaug
| Assignee | ||
Comment 15•8 years ago
|
||
Thanks natalia, pushed with a fix and with a reftest splitted for android.
Flags: needinfo?(emilio)
Comment 16•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fbf8db3f65eb
https://hg.mozilla.org/mozilla-central/rev/b06e69e9a326
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•