Closed Bug 243972 Opened 20 years ago Closed 20 years ago

css1 vertical-align has incosistent behaviour for <img> inside <button> if img has an align attribute

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 50630

People

(Reporter: spiros_ioannou, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040517
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040517

css1 attribute vertical-align is ignored for the image inside the button if the
image has an "align" attribute, and has a strange placement below the text
regardless of the vertical-align value,depending if there is text before of the
image.


See the example. Correct behaviour is also shown.


Reproducible: Always
Steps to Reproduce:
Assignee: general → nobody
Component: Browser-General → Layout
QA Contact: general → core.layout
align="left" floats the image.  So it's no longer inline, and vertical alignment
doesn't affect its positioning with respect to the line box.

Based on your screenshots, it looks like IE just ignores "align" on the image...
which would be a bug in IE, no?

The fact that having text before the float pushes down the float is bug 50630

*** This bug has been marked as a duplicate of 50630 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.