Closed Bug 861174 Opened 11 years ago Closed 11 years ago

Transition calculated erroneously when scrollbars are present

Categories

(Core :: CSS Parsing and Computation, defect)

20 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: Makkes, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(1 file)

Attached file transition.html
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0
Build ID: 20130329030832

Steps to reproduce:

I built a simple test page to reproduce the bug:

1. Open the page in Firefox. Be sure to make the window small enough so that a vertical scroll bar is shown on the right.
2. Click on the red square
3. Click on the red square again


Actual results:

The DIV on the right is shown but not completely, some part is covered by the browser scroll bar. When you look at the computed style you'll see that the CSS property "right" is set to "-263px" after first click and to "-13px" after the second click despite the fact that the CSS definitions mandate setting "right" to "-250px" and "0" respectively.


Expected results:

The DIV should be completely visible after the second click.
Summary: Transition calculated erroneous when scrollbars are present → Transition calculated erroneously when scrollbars are present
Attachment #736791 - Attachment mime type: text/plain → text/html
I confirm this on nightly 23.0a1 (2013-04-11) Win 7 x64.
Status: UNCONFIRMED → NEW
Component: Untriaged → Style System (CSS)
Ever confirmed: true
Product: Firefox → Core
Depends on: 844178
Regression window(m-c)
Good:
http://hg.mozilla.org/mozilla-central/rev/c29b842c4159
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0a1 ID:20120606221720
Bad:
http://hg.mozilla.org/mozilla-central/rev/3933384d8315
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0a1 ID:20120607023619
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c29b842c4159&tochange=3933384d8315



Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/f5a441d6929f
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0a1 ID:20120605210720
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/df6702c41ddd
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0a1 ID:20120605215419
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=f5a441d6929f&tochange=df6702c41ddd

Triggered by:
 Bug 157681
Sounds like Bug 844178 indeed.
I just fetched the fix for Bug 844178 from m-c and built Firefox. This bug doesn't appear on that build anymore. So it's most probably resolved IMHO.
I'll give it a try as soon as the today's nightly comes out.
I confirm it's fixed in 23.0a1 (2013-04-25) by bug 844178.
Thanks for the notice Max.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: