Closed Bug 208283 Opened 22 years ago Closed 22 years ago

css border-style using the parent A:link details rather than image descendant selector

Categories

(Core :: Web Painting, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: neil.walker, Assigned: roc)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818) Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-GB; rv:1.3.1) Gecko/20030425 If I set 'A:link' (and others) border-style to be, say, dotted, then set 'A:link IMG' to have no border-style and (assuming the image is transparent) the border-style is taken from A:link and not 'A:link IMG' Reproducible: Always Steps to Reproduce: 1. create some HTML as in the attachment 2 [details] [diff] [review]. 3. Expected Results: not shown the border-style
This also happens in Opera 7. I'm sure it should not be happening as otherwise how can you apply a border-style?
One thing I have noticed though, is on traversing the DOM using the Mozilla tree it said that the A element had a border style of dotted and then the image had a border style of none.
This is what is supposed to happen. The IMG is not "taking style" from the A tag. The A tag has its border (which you've defined) and the IMG its own (which you've defined as none). They are two completely separate things and are being separately styled. The A tag is not somehow going to inherit the style of tags contained within it (which is completely backwards as to the direction of inheritance in CSS anyway). Invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
*** Bug 308477 has been marked as a duplicate of this bug. ***
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: