Closed
Bug 891018
Opened 11 years ago
Closed 11 years ago
CSS cursor property does not work properly on disabled inputs
Categories
(Core :: Layout: Form Controls, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: hmcgonig, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: regression, Whiteboard: [good first verify])
Attachments
(1 file)
786 bytes,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36 Steps to reproduce: Apply any cursor style to a disabled input. I used cursor: not-allowed; JS fiddle for an example: http://jsfiddle.net/MGxqP/1/ Actual results: The cursor style only shows while hovering over the disabled input's padding, not while inside the actual input. Expected results: The whole input should display the new cursor style when hovered.
This seems to be a regression, I just tried this in FF 19 and it works just fine.
OS: Mac OS X → All
Basic testcase: data:text/html,<input disabled style="cursor: not-allowed"> The regression range is Last good nightly: 2013-02-16 First bad nightly: 2013-02-17 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7bd555e2acfa&tochange=c4de6de47382
Bug 841828 is the obvious one...
Updated•11 years ago
|
Assignee: nobody → mounir
Blocks: 841828
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Updated•11 years ago
|
Assignee | ||
Comment 6•11 years ago
|
||
Mounir, repeating my question from duped bug 929988: Why do we need the "> .anonymous-div" in those selectors? Wouldn't this be sufficient: input:disabled, textarea:disabled { cursor: default; }
Flags: needinfo?(mounir)
Priority: -- → P2
Comment 7•11 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #6) > Mounir, repeating my question from duped bug 929988: > > Why do we need the "> .anonymous-div" in those selectors? > Wouldn't this be sufficient: > > input:disabled, textarea:disabled { > cursor: default; > } I honestly can't remember if there is a reason why the rule is using "> .anonymous-div".
Flags: needinfo?(mounir)
Assignee | ||
Comment 8•11 years ago
|
||
OK, this seems to work as expected for data:text/html,<input disabled style="cursor: not-allowed"> and data:text/html,<input disabled>
Assignee: mounir → matspal
Attachment #826066 -
Flags: review?(bzbarsky)
Comment 9•11 years ago
|
||
Comment on attachment 826066 [details] [diff] [review] fix r=me
Attachment #826066 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2721917a1b53
Flags: in-testsuite?
https://hg.mozilla.org/mozilla-central/rev/2721917a1b53
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 12•11 years ago
|
||
Verified on x86_64 Win7 using the latest nightly build and found it is fixed.
Comment 13•11 years ago
|
||
This bug still exists on Firefox 26.0. Can be recreated by initial comment's JS Fiddle.
Comment 14•11 years ago
|
||
This definitely isn't resolved in Firefox 26.0. I noticed it when trying to use Amazon's login page. They use that feature to disable their password field if you select New Account. I confirmed this works fine in Chrome 31 and IE11 but not FF26.
Comment 15•11 years ago
|
||
> This definitely isn't resolved in Firefox 26.0.
Sure. That's why the target milestone field says "Firefox 28", which is where it's resolved.
Updated•10 years ago
|
Whiteboard: [good first verify]
You need to log in
before you can comment on or make changes to this bug.
Description
•