Closed
Bug 41819
Opened 25 years ago
Closed 23 years ago
:hover not working for text/password/textarea in content area
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
VERIFIED
FIXED
Future
People
(Reporter: jameslariviere, Assigned: hyatt)
References
()
Details
(Keywords: css2, html4, testcase, Whiteboard: [HTML4-17.7])
Attachments
(3 files)
DESCRIPTION:
Clicking an input[type="text"] puts it permanently into a state that nearly
matches the :hover pseudo declared in CSS until the page is reloaded.
STEPS TO REPRODUCE:
1. Move cursor over any input[type="text"] to see the :hover styling markup.
2. Click one input[type="text"] and it now has the styling markup of :hover.
3. Click to another object.
ACTUAL RESULTS:
The once "focused" field renders with white text and a red background-color.
However, the white border-color does not render as declared in :hover, instead
the border-color remains navy.
EXPECTED RESULTS:
The once "focused" field should return to the default style declared in the
stylesheet: cream background-color, blue text, and navy border-color.
DOES NOT WORK CORRECTLY ON:
Win98 build 200060520 (6-5-00 nightly build I think)
Note: I'll provide a second test case that shows that if you declare a input
[type="text"]:focus state that it renders its border correctly green but then
uses the :hover background-color and text color instead of the one declared
in :focus.
THis bug might be related to one I just posted (#41815)
Reporter | ||
Comment 1•25 years ago
|
||
Reporter | ||
Comment 2•25 years ago
|
||
Comment 3•25 years ago
|
||
Confirmed on Linux build 2000060908; someone should change the platform
to "All".
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 4•25 years ago
|
||
Now in build 60908 the bug is different from my first bug description so
disregard it.
My first test case still shows this bug. Disregard my second test case as
the :focus problems have been fixed in bug #41815.
Here is the revised bug report for build 2000060908:
DESCRIPTION:
input[type="text"]:hover does not stay "hovered" with the mouse over a field.
STEPS TO REPRODUCE:
move you cursor over a input[type="text"]
ACTUAL RESULTS:
The input[type="text"] field and the :hover renders for a split second but then
goes back to the default styled rendering.
EXPECTED RESULTS:
The input[type="text"] that has the cursor over it should render with a red
background-color and white text and border-color until the cursor is no longer
over the field.
DOES NOT WORK CORRECTLY ON:
Win98 build 200060908 (6-9-00 nightly build I think)
Comment 5•25 years ago
|
||
It appear to work when the cursor is over the border, but when it is over the
inside contents is doesn't do the right thing. Somehow the internal content
isn't inheriting the hover style
reassigning
Assignee: rods → beppe
Comment 7•25 years ago
|
||
This is likey a problem with XBL styles.
Status: NEW → ASSIGNED
Target Milestone: --- → M18
Comment 8•25 years ago
|
||
Problem also applies to other control types. Changed subject. FYI, :hover on
textarea's has no effect at all.
Summary: input[type="text"] style problems with :hover → input[type="text"], input[type=password] style problems with :hover
Updated•25 years ago
|
Summary: input[type="text"], input[type=password] style problems with :hover → input[type="text"], input[type=password], textarea style problems with :hover
Comment 9•25 years ago
|
||
Oops. That was a bit too fast. Textarea has the same problem, but there seems to
be an additional bug. (Can't change the border in :hover).
Comment 10•25 years ago
|
||
Because of that comment "Problem also applies to other control types", this bug
should be owned by someone who works on HTML form widgets.
Assignee: sfraser → evaughan
Status: ASSIGNED → NEW
Comment 11•25 years ago
|
||
moving evaughan non-nsbeta3+ bugs to Future milestone, per xptoolkit triage.
Target Milestone: M18 → Future
Reporter | ||
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
This looks like a anonymous content bug or something. When you move into the
inner block frame inside the textfield it thinks it has left the textfield or
something.
Assignee: evaughan → hyatt
Comment 14•24 years ago
|
||
This was probably fixed by the fix to 5693.
WORKSFORME on Win2K comm bits 2000091805, Linux comm bits 2000091806.
Comment 16•24 years ago
|
||
This is still a problem here (Windows 98 o.g., 2000/9/27/11), viewing the third
test case indeed displays the ACTUAL RESULTS described in the bug. Hovering over
the text fields only lights the text field red when hovering over the border.
Suggesting reopen.
Reopening based on above comment to get back on radar.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Reporter | ||
Comment 18•24 years ago
|
||
David,
This is a [regression] over the last day (sept 27 nightly). The only styling
part (normal, :focus, :hover) that was wrong as of yesterday was for the input
type=file, as newly reported in bug 52813.
I think that this [regression] has something to do with work being done on your
old bug 5693. But right now almost any element :hover is completely broken in
mozilla!
Reporter | ||
Comment 19•24 years ago
|
||
Since this seems this regression caused by bug 5693, I think we should add it to
the depends. Strangely though it seems that the :hover select and button
elements work. go figure.
Depends on: 5693
Reporter | ||
Comment 20•24 years ago
|
||
The work on bug 5693 did not help this bug. I still wonder why the select,
checkbox, radio, and button work fine with :hover (check test case 3) while for
textboxes and text inputs the :hover only works on the "border" and not in the
content area of these html form controls.
Reporter | ||
Comment 21•24 years ago
|
||
I'm adding a professional site url to a real functional form (not just a lab
test case) that chokes on this bug. This bug is so noticeable (on any of our
site's pages) and a recent REGRESSION, our site will have to take :hover for
form elements off entirely.
It is too bad we have to disable this feature since most form elements (button,
checkbox, radio, select) handle :hover correctly.
Reporter | ||
Comment 22•24 years ago
|
||
Rewriting summary to distinguish between this report and bug 62428.
Sorry for the SPAM.
Keywords: verifyme
Summary: input[type="text"], input[type=password], textarea style problems with :hover → :hover not working for text/password/textarea in content area
Reporter | ||
Comment 24•23 years ago
|
||
Comment on attachment 12896 [details]
new test case for :hover & :focus for all form elements
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html lang="en"><head><title></title>
>
><style type="text/css">
><!--
>body {
> color: #ff0;
> background-color: #000;
> font-family: "MS Sans Serif", sans-serif;
> margin: 0;
> padding: 1em;
> }
>input[type="text"],
>input[type="password"],
>input[type="file"],
>input[type="radio"],
>input[type="checkbox"],
>input[type="button"],
>input[type="submit"],
>input[type="reset"],
>button,
>select,
>textarea {
> background-color: #333;
> color: #f2a204;
> border-color: #ff0;
> }
>input[type="text"]:hover,
>input[type="password"]:hover,
>input[type="file"]:hover,
>input[type="radio"]:hover,
>input[type="checkbox"]:hover,
>input[type="button"]:hover,
>input[type="submit"]:hover,
>input[type="reset"]:hover,
>button:hover,
>select:hover,
>textarea:hover {
> background-color: #f00;
> color: #ff0;
> border-color: #f2a204;
> }
>input[type="text"]:focus,
>input[type="password"]:focus,
>input[type="file"]:focus,
>input[type="radio"]:focus,
>input[type="checkbox"]:focus,
>input[type="button"]:focus,
>input[type="submit"]:focus,
>input[type="reset"]:focus,
>button:focus,
>select:focus,
>textarea:focus {
> background-color: #f2a204;
> color: #000;
> border-color: #ff0;
> }
>-->
></style></head>
>
>
><body>
>
><p>Why doesn't the Mozilla.org website use any CSS for presentation?</p>
>
><form>
>
><table border="1">
>
><tbody><tr>
><td width="800"><input type="text" value="this is a text input"/></td>
></tr>
><tr>
><td><input type="text" value="this is a text input"/></td>
></tr>
><tr>
><td><input type="password" value="this is a password input"/></td>
></tr>
><tr>
><td><input type="password" value="this is a password input"/></td>
></tr>
><tr>
><td><input type="file"/></td>
></tr>
><tr>
><td><input type="file"/></td>
></tr>
><tr>
><td><input type="radio" name="group"/> <input type="radio" name="group" checked="checked"/> <input type="radio" name="group"/> <input type="radio" name="group"/> <input type="radio" name="group"/></td>
></tr>
><tr>
><td><input type="checkbox"/> <input type="checkbox" checked="checked"/> <input type="checkbox"/> <input type="checkbox"/> <input type="checkbox"/></td>
></tr>
><tr>
><td><input type="button" value="input button1"/> <input type="button" value="input button2"/> <input type="button" value="input button3"/></td>
></tr>
><tr>
><td><input type="submit" value="submit1"/> <input type="submit" value="submit2"/> <input type="submit" value="submit3"/></td>
></tr>
><tr>
><td><input type="reset" value="reset1"/> <input type="reset" value="reset2"/> <input type="reset" value="reset3"/></td>
></tr>
><tr>
><td><button type="submit">Button 1</button> <button type="submit">Button 2</button> <button type="submit">Button 3</button></td>
></tr>
><tr>
><td><select><option _moz-option-selected="">one line select</option><option>2</option><option>3</option></select> <select><option _moz-option-selected="">one line select</option><option>2</option><option>3</option></select></td>
></tr>
><tr>
><td><textarea defaultvalue="THis is a textarea" value="THis is a textarea"/> <textarea defaultvalue="THis is a textarea" value="THis is a textarea"/></td>
></tr>
>
></tbody></table>
>
></form>
>
></body></html>
Reporter | ||
Comment 25•23 years ago
|
||
sorry for the SPAM I thought I could edit my attachment. again sorry.
Comment 26•23 years ago
|
||
with build 2001122703 win32 trunk
the first testcase (the one with only :hover declared) triggers the hover when
the mouse cursor is over the border *and* ... when something is typed into the
<input> box.
This happens regardless of the position of the mouse cursor (meaning that the
mouse does not need to be over the input box). And when this happens, if one
moves the mouse cursor within the page (if it is not in the page nothing
happens) it goes back to normal (even if the mouse is over the input box).
Seems to me that :hover somehow gets tied to the text cursor rather than the
mouse cursor in an input box (note that I've tested this with password and
textarea with the same results).
Another test is to tab to the input box rather than using the mouse. When an
input box gain focus it triggers the hover ! Note that this does not happen when
the focus before the tab is not in the page.
Updated•23 years ago
|
Comment 27•23 years ago
|
||
With the changes from 5693, all of the testcases work 100% as expected, with the
exception of the file picker - it doesn't get the :focus style as expected (but
:hover works).
If the file testcase could be fixed, this bug could be closed.
Comment 28•23 years ago
|
||
All form elements in the third testcase react to :hover, so this WorksForMe
using FizzillaCFM/2002071208. Since this bug specifies :hover rather than
:focus, the remaining issue of :focus not working on the file picker should
probably be filed as a new bug and this one resolved.
Reporter | ||
Comment 29•23 years ago
|
||
yep agree that it has been fixed (prob because of bug 5693).
marking.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•