Closed
Bug 169078
Opened 22 years ago
Closed 22 years ago
.class:hover should be ignored for non-links in quirks mode
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Core
CSS Parsing and Computation
Tracking
()
VERIFIED
FIXED
mozilla1.3beta
People
(Reporter: stephend, Assigned: dbaron)
References
()
Details
(Whiteboard: [technote-needed][patch])
Attachments
(1 file)
1.17 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Build ID: 2002-09-16-08, All OSs.
Summary: On http://search.netscape.com/nscp_index.adp, all of the sub-categories
Steps to Reproduce:
1. Load http://search.netscape.com/nscp_index.adp.
2. Mouseover any element under a bolded heading (eg. 'Video Games' under 'Games'
category).
Expected Results:
In NS 7.0 RTM and Opera/IE 6 for Windows, this is correct (each element gets
TEXT-DECORATION: underline applied on :hover)
Actual Results:
Using the trunk Mozilla/Netscape 7.x builds, we apply TEXT-DECORATION: underline
to all of the elements when you're only mousing over one.
From http://search.netscape.com/search.css, here are the style rules:
.odpcat {FONT: 12px arial,geneva; TEXT-DECORATION: none}
.odpcat:hover {TEXT-DECORATION: underline}
Here are the table elements:
<td class=odpcat width=25%>
<a href="nscp_browse.adp?gn=gwd/Top/Arts&source=NSCPIndex"
class=size2b>Arts</a><br> <a
href="nscp_browse.adp?gn=gwd/Top/Arts/Movies&source=NSCPIndex"
class=odpcat>Movies</a><br>
<a href="nscp_browse.adp?gn=gwd/Top/Arts/Television&source=NSCPIndex"
class=odpcat>Television</a><br>
<a href="nscp_browse.adp?gn=gwd/Top/Arts/Music&source=NSCPIndex"
class=odpcat>Music</a><br>
</td>
Updated•22 years ago
|
Blocks: 118291
Summary: Sub-categories shouldn't be underlined on mouseover → netscape.com - Sub-categories shouldn't be underlined on mouseover
Comment 1•22 years ago
|
||
Eric - regression or css coding issue?
Comment 2•22 years ago
|
||
Coding issue. The rules should be:
a.odpcat {FONT: 12px arial,geneva; TEXT-DECORATION: none}
a.odpcat:hover {TEXT-DECORATION: underline}
...or else:
.odpcat a {FONT: 12px arial,geneva; TEXT-DECORATION: none}
.odpcat a:hover {TEXT-DECORATION: underline}
As written, the hover styles are being applied to the 'td' cell (since it has a
class of 'odpcat'), and thus getting pixked up by the entire content of the
cell. This is another case of "hover applies to more than links" surprising a
designer. I have an action item to write a DevEdge piece on the topic.
Comment 3•22 years ago
|
||
I don't see this in a 11/4 branch build (rv:1.0.2). Eric do you have an old
branch you can try this on?
Assignee: aruner → doron
Whiteboard: [technote-needed]
Comment 4•22 years ago
|
||
All my back versions are trunk builds. My Windows version of Netscape 7.01
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120]
doesn't show the reported behavior, but trunk builds from before 11/20 do.
I still believe this to be a site-design error, because the text is content of
the 'td' element and so should be affected by 'text-decoration' changes to their
parent. However, I'm cc:ing David Baron and Ian Hickson on this in case I'm
wrong about how text decoration is supposed to be applied to inline elements of
a 'table-cell' element, and this is a bug after all.
Assignee | ||
Comment 5•22 years ago
|
||
I suspect the change that triggered this was a change to our :hover behavior --
allowing hover to apply to non-links in more cases (we have some quirks to
prevent :hover from applying to non-links in quirks mode). I weakened them with
the fix to bug 96984, and I'm hesitant to readd quirks just for one site that
could, one hopes, be easily convinced to change (perhaps with a change as small
as changing ".odpcat:hover" to "a.odpcat:hover").
Comment 6•22 years ago
|
||
This works for me on 11/20 branch (Netscape 7.01).
Comment 7•22 years ago
|
||
Given the number of sites (small but noticeable) that will have one of the
following two:
:hover {color: red;}
.class:hover {color: red;}
...it would make a lot of sense to change quirks mode so that selectors of the
above two forms are applied only to hyperlinks. In other words, a hover
selector by itself, or in conjunction with a class value but no element, should
not be applied to non-links. In standards mode and almost-standards we should
continue applying :hover to everything, of course.
I'd like to formally request this behavior, so where would you prefer it go-- a
reopened 96984, a new bug, or right here?
Assignee | ||
Comment 8•22 years ago
|
||
We already have a quirk for the former, and if you want one for the latter,
reassigning this bug seems fine.
Comment 9•22 years ago
|
||
Per comment 8, reassigning bug and changing summary. See comment 7 for the
proposed change in quirks mode.
Component: US Ecommerce → Style System
OS: Windows 2000 → All
Product: Tech Evangelism → Browser
Hardware: PC → All
Summary: netscape.com - Sub-categories shouldn't be underlined on mouseover → .class:hover should be ignored for non-links in quirks mode
Version: unspecified → Trunk
Assignee | ||
Comment 10•22 years ago
|
||
Assignee | ||
Comment 11•22 years ago
|
||
Really reassigning.
Assignee: doron → dbaron
Severity: major → normal
Priority: -- → P2
QA Contact: bclary → ian
Whiteboard: [technote-needed] → [technote-needed][patch]
Target Milestone: --- → mozilla1.3beta
Assignee | ||
Updated•22 years ago
|
Attachment #111503 -
Flags: superreview?(bzbarsky)
Attachment #111503 -
Flags: review?(bzbarsky)
Comment 12•22 years ago
|
||
Comment on attachment 111503 [details] [diff] [review]
patch
yeah.... we have far too many evang bugs on this issue...
Attachment #111503 -
Flags: superreview?(bzbarsky)
Attachment #111503 -
Flags: superreview+
Attachment #111503 -
Flags: review?(bzbarsky)
Attachment #111503 -
Flags: review+
Assignee | ||
Comment 13•22 years ago
|
||
Fix checked in to trunk, 2003-01-14 13:50 PDT.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 14•22 years ago
|
||
*** Bug 189507 has been marked as a duplicate of this bug. ***
Comment 15•22 years ago
|
||
*** Bug 191772 has been marked as a duplicate of this bug. ***
Comment 16•22 years ago
|
||
*** Bug 159720 has been marked as a duplicate of this bug. ***
Comment 17•22 years ago
|
||
*** Bug 192678 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 19•22 years ago
|
||
...mac, win32?
Comment 20•22 years ago
|
||
A bug was just filed which seems like it should have been taken care of by this
bug (at least from the description of this bug).
Bug 199584 notes a page in quirks mode which uses .class:hover. The :hover
style is still being applied to things like textareas and submit buttons.
You need to log in
before you can comment on or make changes to this bug.
Description
•