Closed Bug 276204 Opened 20 years ago Closed 20 years ago

percentage values of width and height isn't applied to xul elements

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: surkov, Unassigned)

References

Details

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

In instance I try:

<box style="border: thin solid black; width: 30%; height: 30%"/>

Box is flexed in width and has height 0px.

Reproducible: Always

Steps to Reproduce:
Assignee: dbaron → nobody
Component: Style System (CSS) → XP Toolkit/Widgets: XUL
QA Contact: ian
from http://www.mozilla.org/xpfe/xulref/boxref.html

When an element does have some flexibility, the width is understood to be the
minimum width, past which the element flexes into the containing space.
Yes. I agree flexible element should flex. In our case it is right for width but
it is not correct for height.

What do you mean by minimum width? Is it min-width attribute or something else?
It flexes into the remaining space in the parent box direction.  In the
perpendicular direction, it just uses whatever the computed value is (in this
case, most likely 30% of auto, so auto, so 0.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
I'm not even sure we support percentage dimensions in XUL (except 0% of course).
Hmm... right you are.  Percent sizes are treated as auto (except 0%, as you said).

So the bug is valid (dup?) if we plan to change that, wontfix otherwise.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.