Multiple <SELECT> with display:block is incorrectly offset from floated neighbour

RESOLVED WORKSFORME

Status

()

Core
Layout: Floats
RESOLVED WORKSFORME
11 years ago
11 years ago

People

(Reporter: Stuart Campbell, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

A multiple <SELECT> element with display: block and a left margin will be offset from any left-floated neighbour, instead of the parent element as expected. The problem does not occur with single-<SELECT> boxes.

See test case attachment for a better explanation.

Reproducible: Always

Steps to Reproduce:
1. Float an element to the left of a multiple <SELECT> box
2. Set display: block and a margin-left on the <SELECT>
Actual Results:  
Left margin is calculated from right edge of left-floated element.

Expected Results:  
Left margin should be calculated from left edge of parent element.
(Reporter)

Comment 1

11 years ago
Created attachment 269787 [details]
Test case
The rendering is correct now: both are replaced elements and treated as such.

Note that this means that the combobox now behaves like the listbox.

See also bug 342531.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Depends on: 342531
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.