Closed Bug 302321 Opened 20 years ago Closed 20 years ago

css: padding-top change the position of background-image and background-position

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

1.7 Branch
x86
Windows 2000
defect
Not set
trivial

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
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
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."
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
I fail to see what the difference in spacing that you're seeing has to do with the background image position.
Component: General → Layout: Images
Product: Firefox → Core
Version: unspecified → 1.7 Branch
Daniel, can you please explain what the issue is here please.
No response, resolving INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.