Closed Bug 379654 Opened 16 years ago Closed 12 years ago

spacer doesn't handle many types of width/height values

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dbaron, Unassigned)

References

Details

nsSpacerFrame, used to implement HTML spacer elements, doesn't handle many types of values for CSS 'width' and 'height' properties, and also doesn't handle min-width and max-width.  See the XXX comments I'm adding to nsSpacerFrame as part of bug 311415.

(Not sure if spacer really needs its own frame class.  It could perhaps be block / inline-block depending on type.)
It also doesn't use the correct basis for percentage widths and heights.
(And, in fact, for percentage heights, it does math on NS_UNCONSTRAINEDSIZE.)
Though the simplest fix here is probably to just use mComputedWidth / mComputedHeight when applicable.
Depends on: 531030
(In reply to comment #3)
> Though the simplest fix here is probably to just use mComputedWidth /
> mComputedHeight when applicable.

Even simpler than that would be to remove the support for this element (bug 531030)!
spacer is dead.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.