Closed Bug 195951 Opened 22 years ago Closed 22 years ago

Problem with -moz-border-radius and negative margin

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: marcoos, Assigned: dbaron)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030303 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030303 2003030308 build (and probably some others) doesn't show .posts:first-line in Daniel Glazman's weblog, while older builds do it properly. Glazman uses the following css code to push first line of his every blog entry left by 1 centimeter. .posts:first-line { font-weight: bold; margin-left: -1cm; background-color: rgb(160,160,210); -moz-border-radius: 27px; padding: 5px 25px; } Mozilla doesn't display the background of the "pushed" part. And it should! Reproducible: Always Steps to Reproduce: 1. Go to Daniel Glazman's weblog Actual Results: The background looks as if there were no :first-line css attached, but the text of the first line is a proof, that the style *is* applied. Expected Results: Display it the way previous builds did it.
1) There is no DOM manipulation here, so this should be in the Style System or Layout component (as it happens, this is Style System). 2) The bug is invalid. See <http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo>, in particular the part that says: Only the following properties apply to a :first-line pseudo-element: font properties, color properties, background properties, 'word-spacing', 'letter-spacing', 'text-decoration', 'vertical-align', 'text-transform', 'line-height', and 'clear'. Which means that padding and border properties do _not_ apply. This has gotten fixed recently (we used to apply all sorts of things to :first-line, incorrectly).
Assignee: jst → dbaron
Component: DOM Style → Style System
Marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Absolutely. I was using that bug in my blog to enhance the presentation. I'll modify my markup.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: