Closed Bug 183472 Opened 23 years ago Closed 23 years ago

td whitespace doesn't trigger hover or mouseover for cell children or parent elements.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jetifi, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130 The CSS ":hover" dynamic pseudo-class is not applied to child elements of table cells unless you move the mouse over the child element text or cell text. The JavaScript event "onmouseover" can only be fired in the same manner. Ex.: Using CSS to display an "a" link element as a block ("a{display:block;}") within a table cell should cause the ":hover" style for that element to be applied whenever the mouse is moved over the link element whitespace. The "onmouseover" event should also fire when the mouse is moved over the link element whitespace. Instead, the mouse must be moved over the link text for the ":hover" style to be applied, or for the "onmouseover" event to be fired. The border for the link element includes the whitespace that should also trigger the application of the ":hover" style and fire the "onmouseover" event. :hover styles applied to parent elements, or "onmouseover" events tried to parent elements are not applied or triggered in the same manner. Reproducible: Always Steps to Reproduce: 1. Load attached HTML file in Mozilla 1.2.1 (my build is 20021130) 2. Move the mouse cursor over the whitespace in the cells of the two tables under the heading "Unexpected behaviour". Actual Results: The "onmouseover" event is not fired and the ":hover" pseudo-class is not applied. Expected Results: Fired the "onmouseover" event and applied the ":hover" pseudo-class. (Just about to upload the HTML file)
worksforme, linux trunk build 2002-12-04-05. This was probably fixed by the big events rewrite that landed after 1.2 branched...
WFM, current Windows trunk.
Marking worksforme based on above comments and my own testing. If this doesn't work for you in 1.3alpha or later, please reopen the bug with a more detailed description of the problem.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Component: Layout: Block & Inline → Event Handling
Resolution: --- → WORKSFORME
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: