Closed
Bug 302321
Opened 19 years ago
Closed 19 years ago
css: padding-top change the position of background-image and background-position
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: t-bird, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 First, sry for my bad english ... In Firefox, the "padding-top" css-attribute changes the position of the background-image. I think the image must be independent of padding-top. The values of "background-position" will ignored. Test this site (http://www.sparkasse-re.de/content/rlmmenu/rlmmenu.php) in Firefox, Opera and IE, then you can see the problem. Reproducible: Always
Comment 1•19 years ago
|
||
That page looks the same in all 3 browsers to me. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050726 Firefox/1.0+ ID:2005072606
Comment 2•19 years ago
|
||
looks identical in firefox trunk 20050721 and Opera 8.01 on linux. I'm not sure what you mean by your description, but check against <http://www.w3.org/TR/CSS21/box.html#box-model>, e.g. "All borders are drawn on top of the box's background."
Comment 3•19 years ago
|
||
The question is where the background position attribute should be relative to. According to http://www.w3.org/TR/CSS21/colors.html#propdef-background-position it should be relative to the boxes padding edge, not the content edge. Reporter, can you clarify if what you are seeing is other than this and provide a test case that demonstrates it?
You can see the difference here http://www.sparkasse-re.de/content/rlmmenu/demo.gif Firefox on left, IE on right side
Comment 5•19 years ago
|
||
I fail to see what the difference in spacing that you're seeing has to do with the background image position.
Updated•19 years ago
|
Component: General → Layout: Images
Product: Firefox → Core
Version: unspecified → 1.7 Branch
Comment 7•19 years ago
|
||
No response, resolving INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•