The :moz-selection selector does not appear to work in textareas. Specifically, an attempt to change the background color of the selection fails.
*** Bug 211883 has been marked as a duplicate of this bug. ***
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.
OS: Windows XP → All
Hardware: PC → All
Summary: ::moz-selection does not work in textarea → ::-moz-selection does not work in textarea
Includes some form elements and contenteditable one, form elements fails.
Summary: ::-moz-selection does not work in textarea → ::-moz-selection does not work in form controls
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
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)
9 years ago
Assignee: nobody → masayuki
I think that nsTextFrame should refer the binding parent's style if the content is in anonymous sub tree.
fix a nit
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+
Status: ASSIGNED → RESOLVED
Last Resolved: 9 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.