Closed Bug 246682 Opened 20 years ago Closed 20 years ago

"display: list-item;" element should not be shrinked by floating element

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 57882

People

(Reporter: masayuki, Unassigned)

References

()

Details

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

The "display: list-item;" element's box is shrinked by floating box.
In CSS2/CSS3-WD, this is invalid rendering.

> The marker box is horizontally aligned with the start of the line box. Thus if
> a float intersects the element, moving the line box start, the marker box is
> moved as well. It is the responsibility of the author to ensure that sufficient 
> margins are provided to prevent marker boxes overlapping with the floats. If
> the marker box is generating the line box, then it is aligned with the content
> area's start edge. The box model defines the properties 'float-displace' and
> 'indent-edge-reset' to control how far line boxes are moved in the presence of
> floats.
(http://www.w3.org/TR/css3-lists/#markers)

Reproducible: Always
Steps to Reproduce:
1. See the URL(http://bugzilla.mozilla.gr.jp/attachment.cgi?id=2278&action=view).
2.
3.

Actual Results:  
The list-item box is shrinked by floating box.

Expected Results:  
The list-item box should not be shrinked by floating box.

This testcase, Opera can render correctly.

*** This bug has been marked as a duplicate of 57882 ***
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.