Closed
Bug 183646
Opened 22 years ago
Closed 15 years ago
::-moz-selection does not work in form controls (input[type=text], input[type=password], textarea)
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a4
People
(Reporter: john, Assigned: masayuki)
References
(Blocks 2 open bugs)
Details
(Keywords: css-moz, css3, testcase, Whiteboard: [Hixie-P5])
Attachments
(3 files, 2 obsolete files)
The :moz-selection selector does not appear to work in textareas. Specifically,
an attempt to change the background color of the selection fails.
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
See also bug 167068 comment 27 and bug 167068 comment 28.
*** Bug 211883 has been marked as a duplicate of this bug. ***
Blocks: 68206
Comment 5•21 years ago
|
||
Current test case doesn't work at all in Moz1.5RC1. Probably because
:-moz-selection is used instead of ::-moz-selection. This test case does work
(selected text turns yellow), but the bug for the textarea still exists.
Hixie,
Since it is now :-moz-selection your test cases don't work either.
Comment 6•21 years ago
|
||
testcases updated
Updated•21 years ago
|
Attachment #108311 -
Attachment is obsolete: true
Updated•21 years ago
|
Updated•21 years ago
|
OS: Windows XP → All
Hardware: PC → All
Summary: ::moz-selection does not work in textarea → ::-moz-selection does not work in textarea
QA Contact: ian → style-system
Comment 8•15 years ago
|
||
Includes some form elements and contenteditable one, form elements fails.
Updated•15 years ago
|
Summary: ::-moz-selection does not work in textarea → ::-moz-selection does not work in form controls
Assignee | ||
Comment 9•15 years ago
|
||
I'll post a patch for input/textarea element. This blocks bug 556694's reftest...
Please file some new bugs for other elements, selection is rendered by each element if the element doesn't use nsTextFrame (e.g., <img>, <select>).
Assignee: daniel → nobody
Blocks: 556694
Status: NEW → ASSIGNED
Component: Style System (CSS) → Layout: Text
QA Contact: style-system → layout.fonts-and-text
Summary: ::-moz-selection does not work in form controls → ::-moz-selection does not work in form controls (input[type=text], input[type=password], textarea)
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → masayuki
Assignee | ||
Comment 10•15 years ago
|
||
I think that nsTextFrame should refer the binding parent's style if the content is in anonymous sub tree.
Attachment #436736 -
Flags: review?(dbaron)
Assignee | ||
Comment 11•15 years ago
|
||
fix a nit
Attachment #436736 -
Attachment is obsolete: true
Attachment #436819 -
Flags: review?(dbaron)
Attachment #436736 -
Flags: review?(dbaron)
Comment on attachment 436819 [details] [diff] [review]
Patch v1.0.1
r=dbaron, though I think in the longer term we should redesign ::-moz-selection to work one of the ways I described in http://lists.w3.org/Archives/Public/www-style/2008Oct/0268.html
Attachment #436819 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 13•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a4
You need to log in
before you can comment on or make changes to this bug.
Description
•