Closed
Bug 194119
Opened 22 years ago
Closed 18 years ago
{inc}Paragraph percentage padding based on line-wrapping (CSS padding-left values not recomputed correctly on window resize for block boxes with one and only one inline box child)
Categories
(Core :: Layout: Block and Inline, defect, P2)
Core
Layout: Block and Inline
Tracking
()
People
(Reporter: filter.bugzilla.gy, Unassigned)
References
Details
(Keywords: css1, Whiteboard: [reflow-refactor])
Attachments
(4 files)
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210
In the example given (to be attached) when paragraphs use the left percentage
padding and there is no line-wrapping the amount of padding will vary. The
padding applied appears to be determine by what the correct padding would if
the browser width was small enough to cause line-wrapping.
Reproducible: Always
Steps to Reproduce:
1.Create P ellemet style with left percentage padding
P
{
Padding: 0 0 0 10%;
}
2. Write a small paragraph with a couple of words that will not wrap, and one
large enough to wrap
3. Vary your browser width
Actual Results:
The none wrapping parragraphs have different padding than the wrapping ones.
Expected Results:
The none wrapping parragraph should have the same padding as the wrapping
ones.
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Reporter | ||
Updated•22 years ago
|
Summary: Pargraph percentage padding based on line-wrapping instead of containing element → Pargraph percentage padding based on line-wrapping
Summary: Pargraph percentage padding based on line-wrapping → Paragraph percentage padding based on line-wrapping
Comment 3•22 years ago
|
||
All the paragraphs have the same padding here (linux trunk build 2003-02-17-08).
Reporter | ||
Comment 4•22 years ago
|
||
bzbarsky@mit.edu said
> All the paragraphs have the same padding here (linux trunk build 2003-02-17-08).
I installed the 2003-02-22 nightly build my Redhat Linux 8.0
The bug was there as well. Although the initial rendering is correct, if you
change the browser width after this, the padding will be incorrect. Try opening
and closing the side panel.
Reporter | ||
Comment 5•22 years ago
|
||
Tested in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
Bug still exists.
Comment 6•22 years ago
|
||
Confirming, couldn't find a dupe.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401
Status: UNCONFIRMED → NEW
Ever confirmed: true
This is probably due to the resize reflow optimization in the block code (which
I think is basically bogus, for a number of reasons, since it doesn't do a deep
check of descendants, and which I'm tempted to remove).
Priority: -- → P2
Comment 8•21 years ago
|
||
Confirming with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5)
Gecko/20030925
Comment 10•20 years ago
|
||
Encountered a similar, if not identical, problem using FF-Win/20050202.
Attaching another testcase and including a possibly more precise summary.
Possible duplicate: Bug 263537.
Doesn't depend on Quirks/Standards. Works fine in IE 6 and Opera 7.54.
Keywords: css1
OS: Windows 2000 → All
Summary: Paragraph percentage padding based on line-wrapping → Paragraph percentage padding based on line-wrapping (CSS padding-left values not recomputed correctly on window resize for block boxes with one and only one inline box child)
Comment 11•20 years ago
|
||
*** Bug 263537 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Summary: Paragraph percentage padding based on line-wrapping (CSS padding-left values not recomputed correctly on window resize for block boxes with one and only one inline box child) → {inc}Paragraph percentage padding based on line-wrapping (CSS padding-left values not recomputed correctly on window resize for block boxes with one and only one inline box child)
Whiteboard: [reflow-refactor]
Comment 12•20 years ago
|
||
Also reproduced using Camino 0.8.2, so setting Hardware=All.
Hardware: PC → All
bug 263537 had a regression window
Comment 14•20 years ago
|
||
That regression window was becase of the "focusing link triggers reflow" steps
to reproduce. The range given is just the outline landing.
The "simpler testcase" given in this bug is broken with builds going back a long
ways.
Comment 15•20 years ago
|
||
There is a real live example of this bug on any page one the newly redesigned
http://www.sunrise.ch/-site (except the home page).
Note the footer, "Allgemeine Geschäftsbedingungen | Datenschutz | © TDC
Switzerland AG". It should always be aligned with the main content. The footer
has a padding-left of 19%, the same value as the navigation has for its width.
Now if you resize the browser window, the footer text gets out of sync with the
main content. An erratic window resize (sometimes) or a reload of the page
(without resize) makes the two elements align again.
Comment 16•20 years ago
|
||
I found this bug when I wanted to file it so I created a testcase that is
derived from the sunrise-site. It perhaps explains the problem better than the
previous two (but is also a bit more bloated…)
Comment 17•18 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20061208 Minefield/3.0a1 ID:2006120812 [cairo]
seems fixed by reflow branch landing
*** This bug has been marked as a duplicate of 30802 ***
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•