Problem involving percentage in relation to parent element's width

RESOLVED FIXED

Status

Minimo
Minimo Front-End
RESOLVED FIXED
13 years ago
12 years ago

People

(Reporter: Jackie, Assigned: dougt)

Tracking

({css1})

PocketPC
x86
Windows XP

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
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.
(Assignee)

Comment 1

13 years ago
Core CSS problem.
Component: General → Style System (CSS)
Product: Minimo → Core
Version: PocketPC → Trunk
(Reporter)

Comment 2

13 years ago
This bug has been fixed in Minimo build .006
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

13 years ago
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
(Assignee)

Comment 4

13 years ago
Created attachment 203895 [details]
unrelated upload test
(Assignee)

Comment 5

12 years ago
marking fixed per comment.
Status: REOPENED → RESOLVED
Last Resolved: 13 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.