Open Bug 605051 Opened 14 years ago Updated 2 years ago

should be allowed to float the root element

Categories

(Core :: Layout: Floats, defect)

defect

Tracking

()

People

(Reporter: dbaron, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: css2, testcase)

The root element should be allowed to be floated.  For example, in this test:
http://test.csswg.org/suites/css2.1/20100917/html4/page-container-004.htm
the root element should be on the right side of the page.
So doing this involves either breaking the dependency of floats on blocks or having a "block" outside the block generated by the root....  Perhaps the CanvasFrame should inherit from nsBlockFrame?
A floating root element can't really do anything interesting, can it?

Nothing can clear it or flow around it. I guess the only thing is that it shrink-wraps its width and then "float:left" gets put against the canvas left edge, and "float:right" gets put against the canvas right edge. Might be easiest to just hack that support directly into CanvasFrame.
I agree with roc. There's no need to make this complicated.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.