Closed Bug 296999 Opened 20 years ago Closed 19 years ago

Problem involving percentage in relation to parent element's width

Categories

(Minimo Graveyard :: Minimo Front-End, defect)

PocketPC
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jbw22285, Assigned: dougt)

References

()

Details

(Keywords: css1)

Attachments

(1 file)

Using minimoCE_0.005:

When web page attempts to calculate a percentage of the width of a parent
element, this information (usually) doesn't affect elements the way it should.

This is demonstrated in the following CSS1 Test Suite tests:

http://www.w3.org/Style/CSS/Test/CSS1/current/sec5525c.htm (float on text
elements - I put this one first because the behavior I described can be seen in
the top paragraph)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5501.htm  (margin-top)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5502.htm  (margin-right)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5503.htm  (margin-bottom)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5505.htm  (margin)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5506.htm  (padding-top)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5507.htm  (padding-right)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5510.htm  (padding)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5523.htm  (width)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5525c.htm  (float elements in
series)


HOWEVER, there are exceptions. A few tests calculate the percentage of the width
of their parent element - and it works.

These tests are:

http://www.w3.org/Style/CSS/Test/CSS1/current/sec5504.htm  (margin-left)
http://www.w3.org/Style/CSS/Test/CSS1/current/sec5526c.htm  (clear/ float/ other
properties): the elements containing the words 'toggle' and 'the world ends' are
calculated using a percentage of the parent element's width.

I can't figure out why margin-left would work, but all the other margin tests
don't. The code looks the same.

For those unfamiliar with CSS testing: All tests explain what behavior they
should show. Also, there is not this percentage/width issue on Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050526 Firefox/1.0+, so
you can use that to see what the page should look like.
Core CSS problem.
Component: General → Style System (CSS)
Product: Minimo → Core
Version: PocketPC → Trunk
This bug has been fixed in Minimo build .006
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Only a minimo bug. Fixed in build .006
Status: RESOLVED → REOPENED
Component: Style System (CSS) → Minimo Front-End
Product: Core → Minimo
Resolution: FIXED → ---
Version: Trunk → PocketPC
Attached file unrelated upload test
marking fixed per comment.
Status: REOPENED → RESOLVED
Closed: 20 years ago19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: