Closed Bug 637473 Opened 14 years ago Closed 14 years ago

The 'outline' property causes a border around each line in multiline inline elements

Categories

(Core :: CSS Parsing and Computation, defect)

x86_64
All
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 266122

People

(Reporter: xn--mlform-iua, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 For inline elements, the CSS outline property is, in contrast to Firefox3.x/Webkit/Opera/IE, not implemented correctly in Firefox 4. The error only becomes visible when the inline element covers more tha one line. Then, instead of *only* outlining the outermost border of the inline element, it outlines each line inside the element. Because of this bug, if the outline width is thick this bug can cause that outline hides (read: covers) rather than outlines the text. Reproducible: Always Steps to Reproduce: 1. Create/Visit a page with an inline element (such as anchor element) which foldes above more than one line; 2. Add - or make sure - the inline element has the outline property set - for example: .inline{outline:9px double red}; 3. Reload the page to check how Firefox 4 renders it. Actual Results: The line of the outline wraps around each line that the inline element covers. Depending on the width of the outline, this can make the text unreadable. Expected Results: That the outline would outline only the outermost (upper-most, left-most, bottom-most and right-most) borders of the inline element.
Attached file Test case for this bug (deleted) —
Attachment #515752 - Attachment mime type: text/plain → text/html
I can reproduced on Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110228 Firefox/4.0b13pre ID:20110228030400
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
(In reply to comment #0) > For inline elements, the CSS outline property is, in contrast to > Firefox3.x/Webkit/Opera/IE, not implemented correctly in Firefox 4. Just wanted to correct myself: This bug is in Firefox3 too ... (I won't bore you with why I failed to see that ...)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: