Closed
Bug 98223
Opened 23 years ago
Closed 18 years ago
Percentage padding-left omitted when placing Abs Pos element.
Categories
(Core :: Layout: Positioned, defect)
Core
Layout: Positioned
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: val, Assigned: MatsPalmgren_bugz)
Details
(Keywords: css2, testcase)
Attachments
(6 files)
1.25 KB,
text/html
|
Details | |
902 bytes,
text/html
|
Details | |
2.77 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
2.17 KB,
patch
|
Details | Diff | Splinter Review | |
947 bytes,
text/html
|
Details | |
5.73 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (Win98; I) BuildID: 2001080110 If an Abs Pos element has an 'auto' value for 'left', then the calculated value for 'left' should be "the distance from the left edge of the containing block to the left margin edge of a hypothetical box that would have been the first box of the element if its 'position' property had been 'static'." [1] (Forthcoming changes to CSS2 probably won't significantly alter this, but merely specify that in this case, if 'left' and 'right' are 'auto', 'left' should be treated as 'static-position'.) This is being done correctly, except when the containing block has a percentage value for 'padding-left' (shorthand or otherwise), in which case the left padding is being omitted. Reproducible: Always Steps to Reproduce: The attached testcase illustrates this problem. [1]<http://www.w3.org/TR/REC-CSS2/visudet.html#abs-non-replaced-width>
Comment 2•23 years ago
|
||
Looks good enough for me to confirm. No obvious dupes, either. Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5+) Gecko/20011019
Status: UNCONFIRMED → NEW
Ever confirmed: true
not table specific bug, reassigning to core owner!
Assignee: karnaze → attinasi
Updated•23 years ago
|
Target Milestone: --- → Future
Reconfirmed using FizzillaCFM/2002071208. Setting All/All.
OS: Windows 98 → All
Hardware: PC → All
Comment 5•21 years ago
|
||
.
Assignee: attinasi → position
Component: Layout → Layout: R & A Pos
QA Contact: cpetersen0953 → ian
Target Milestone: Future → ---
Assignee | ||
Comment 6•21 years ago
|
||
Assignee | ||
Comment 7•21 years ago
|
||
Assignee: core.layout.r-and-a-pos → mats.palmgren
Status: NEW → ASSIGNED
Assignee | ||
Updated•21 years ago
|
Attachment #142610 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 8•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Summary: Percentage padding-left omitted when placing Abs Pos element. → [FIX] Percentage padding-left omitted when placing Abs Pos element.
Comment 9•21 years ago
|
||
This testcase isn't fixed by that patch (since in this case the nearest block is not the containing block but has padding). Similar issues would arise if the containing block were a rel pos inline sitting inside a percent-padding block. The patch does make the specific case when the nearest block is also the containing block and has percent padding better... I can still go ahead and review it if you want (it looks fine), but we should really work out a way to solve this in general...
Comment 10•21 years ago
|
||
Comment on attachment 142610 [details] [diff] [review] Patch rev. 1 This does fix the original testcase in this bug... Like I said in comment 9, it's not a fix in general, and I'm not sure whether we want to do the partial wallpapering...
Attachment #142610 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 11•18 years ago
|
||
Appears to have been fixed between 2006-12-17-04 -- 2006-12-18-04. Possibly bug 363637. -> WORKSFORME
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
Summary: [FIX] Percentage padding-left omitted when placing Abs Pos element. → Percentage padding-left omitted when placing Abs Pos element.
Assignee | ||
Comment 12•18 years ago
|
||
Attachment #256260 -
Flags: superreview?(bzbarsky)
Attachment #256260 -
Flags: review?(bzbarsky)
Comment 13•18 years ago
|
||
Comment on attachment 256260 [details] [diff] [review] Reftests derived from "Testcase #2" and "Another testcase" Looks good.
Attachment #256260 -
Flags: superreview?(bzbarsky)
Attachment #256260 -
Flags: superreview+
Attachment #256260 -
Flags: review?(bzbarsky)
Attachment #256260 -
Flags: review+
Assignee | ||
Comment 14•18 years ago
|
||
Comment on attachment 256260 [details] [diff] [review] Reftests derived from "Testcase #2" and "Another testcase" Reftests checked in on trunk at 2007-02-26 22:17 PST
Assignee | ||
Updated•18 years ago
|
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•