Closed
Bug 255584
Opened 20 years ago
Closed 20 years ago
Clicking on link in list causes item to shift position
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: nallen, Assigned: roc)
References
Details
(Keywords: regression, testcase)
Attachments
(3 files, 1 obsolete file)
585 bytes,
text/html
|
Details | |
501 bytes,
text/html
|
Details | |
3.92 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
FF 0813 trunk WinXP
Clicking on a link in a list causes the list to shift down on the screen and
does not activate the link. Clicking on the link a second time works normally.
It seems to take a combination of circumstances to hit this bug:
* link must be in the first item of the list
* list item has a text indent style
* page must be in standards mode
The type of list doesn't seem to matter.
This came from a real world page, I wasn't doing this just for fun. It looks
like this broke in the last few weeks but I don't have a firm date.
Test case to follow.
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
Broken back to at least 0727. I don't have any older trunk builds.
Comment 3•20 years ago
|
||
Regression occured 2004-07-16-05 -- 2004-07-17-06.
In that span, bug 151375 looks like the most likely culprit to me.
OS: Windows XP → All
Comment 4•20 years ago
|
||
Yes, I've been noticing this with the error pages for several weeks now...
Reporter | ||
Comment 5•20 years ago
|
||
It looks like bug 151375 is the culprit. This bug stops happening when the
focus outline is disabled with a user style.
Assignee: nobody → dbaron
Component: Layout → Style System (CSS)
QA Contact: core.layout → ian
Comment 6•20 years ago
|
||
Attachment #156081 -
Attachment is obsolete: true
Comment 7•20 years ago
|
||
A vertical scrollbar appears on the DIV when hovering the text.
(this did not occur before bug 151375)
Assignee | ||
Comment 8•20 years ago
|
||
Duplicate of bug 252920?
Comment 9•20 years ago
|
||
Probably. The testcases here does not involve tables though.
Assignee: dbaron → nobody
Component: Style System (CSS) → Layout: Block and Inline
Depends on: 252920
QA Contact: ian → core.layout.block-and-inline
Assignee | ||
Comment 10•20 years ago
|
||
Sorry, I don't believe this is a duplicate. The underlying problem here is that
when content extends above or to the left of the origin of an overflow:auto
element, we add a scrollbar even though it's useless.
Assignee | ||
Comment 11•20 years ago
|
||
nsBoxToBlockAdaptor and nsGfxScrollFrameInner do not currently handle
situations where there's overflow above or to the left of the origin. With this
patch, we just cut off that area so that you can't scroll there. It's not the
optimal solution but it's the simplest one. We can do a better fix after scroll
refactoring is done.
Assignee | ||
Updated•20 years ago
|
Assignee: nobody → roc
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Attachment #156310 -
Flags: superreview?(dbaron)
Attachment #156310 -
Flags: review?(dbaron)
Attachment #156310 -
Flags: superreview?(dbaron)
Attachment #156310 -
Flags: superreview+
Attachment #156310 -
Flags: review?(dbaron)
Attachment #156310 -
Flags: review+
Assignee | ||
Comment 12•20 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 13•20 years ago
|
||
Please note that this fix is believed to have caused regressions in bug 256436
and probably bug 256465.
Comment 14•20 years ago
|
||
Reopening - The patch was backed out; see bug 256436.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 15•20 years ago
|
||
The nsGfxScrollFrame patch was bogus ... the scrolled view's bounds' origin is
the (negative) scroll position, so taking the scrolled view's bounds' YMost() as
the scrollable height is completely wrong when the scroll position is not (0,0).
So when we clicked on a link, it got focused, outline change caused a reflow
which recomputed the scrollable height to be something completely wrong, and
then scrolled the page up to try to avoid displaying any area below the
purported scrollable height.
However, I still believe that the nsBoxToBlockAdapator patch is correct. As I
describe here:
http://bugzilla.mozilla.org/show_bug.cgi?id=256436#c24
my tests show that it's doing the right thing.
I'm going to reland it.
Assignee | ||
Comment 16•20 years ago
|
||
Relanded
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
Comment 17•20 years ago
|
||
Even though the test cases work fine, I still see this bug on this page:
http://white.sakura.ne.jp/~piro/xul/_tabextensions.html.en Try to click on
"download" for example, it shifts. Using Mozilla/5.0 (Windows; U; Windows NT
5.0; en-US; rv:1.8a3) Gecko/20040828 Firefox/0.9.1+ (BlueFyre)
Comment 18•20 years ago
|
||
Also, the "Try again" link from error pages jumps - I couldn't find another bug
on that one specifically and had hoped that this would fix it.
Assignee | ||
Comment 19•20 years ago
|
||
Hmm. Please file new bugs for those tests. It would really help if you can
minimize the test cases.
Comment 20•20 years ago
|
||
I filed bug 257612 on the error page "Try again" problem.
You need to log in
before you can comment on or make changes to this bug.
Description
•