Closed
Bug 385858
Opened 17 years ago
Closed 17 years ago
Multiple <SELECT> with display:block is incorrectly offset from floated neighbour
Categories
(Core :: Layout: Floats, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: stuart.campbell, Unassigned)
References
Details
Attachments
(1 file)
1.06 KB,
text/html
|
Details |
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•17 years ago
|
||
Comment 2•17 years ago
|
||
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.
You need to log in
before you can comment on or make changes to this bug.
Description
•