Closed Bug 274270 Opened 20 years ago Closed 20 years ago

Centered text not repositioned when size of image known

Categories

(Core :: Layout: Floats, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: steven, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

In the page at http://www.ecrips.co.uk/test.html the credit "Photo: xxx" line
should be centered below the image. On the first load because the picture takes
a while to load (a PHP script ensures this so it's reproduceable) the text is
displayed on the left and then not moved when the size of the image is known.
Forcing the page to redraw (by resizing or refreshing) causes the text to
correctly render centered under the image.

Reproducible: Always
Steps to Reproduce:
1. Load the test page http://www.ecrips.co.uk/test.html
2. Wait for the image to load (there's a delay of 5 seconds)
3. Observe that the text is aligned left under the image
4. Resize the window and observe that the text is then center aligned
Actual Results:  
Text is incorrectly aligned after page load.

Expected Results:  
Text should be center aligned after page load.

Vertical positioning errors can also occur due to image size not being known
early enough. However this is harder to make a test case for.
http://www.christis.org.uk/ can sometimes incorrectly render the left column
over the top menu bar because of this.
WFM, Mozilla 2004-12-10-06 trunk Linux. (bug occurs in Mozilla 1.8a5 and FF1.0)
WORKSFORME with Mozilla 1.8a6 build 2004121104 under XP Pro SP2.
Steven, please reopen this bug if you can reproduce it with a current build:
ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest-trunk/

-> WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.