background-position with png is messy

RESOLVED WORKSFORME

Status

()

Core
Layout: Images
RESOLVED WORKSFORME
16 years ago
16 years ago

People

(Reporter: Kjetil Wikestad, Assigned: dcone (gone))

Tracking

({pp})

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
Try create a div with the following style:
div{
  background-image: url(image.png);
  background-repeat: no-repeat;
  background-position: left center; 
 }

This will not result in any positioning, and the picture gets positioned in the
upper left corner despite every attempt to put it somewhere else. But this
stubborn behavior vanishes if I uses image.gif. 
I also get a bad image behavior if I try to resize the div dynamically. Then I
get multiple instances of the image and displacement. I have some simillary
problems with the image.gif. 

My build: 2002042606
ccing dcone

Kjetil, any chance of a testcase?  this is almost certainly Windows-only, but....
(Reporter)

Comment 2

16 years ago
Created attachment 81248 [details]
Testpage showing how Mozilla handles gif and png positioning
(Assignee)

Comment 3

16 years ago
This is mine.. probably fixed with some of the latest changes I put in.
Assignee: pavlov → dcone
Yeah, this worksforme on Linux...
Keywords: pp
(Assignee)

Comment 5

16 years ago
Re-test this on windows.. this is probably cleared up with the latest checkins.
(Reporter)

Comment 6

16 years ago
Confirmed. WFM on 2002042908
Kjetil, thanks!
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.