Closed Bug 502447 Opened 11 years ago Closed 11 years ago
.overflow="hidden" followed by style .overflow="" fails to reshow scrollbars
See attached testcase. The first button sets the root element's style.overflow to "hidden", the second one to "". The scrollbar should reappear but doesn't, although the computed style correctly says "overflow: visible". Works as expected on 1.9.1.
works: http://hg.mozilla.org/mozilla-central/rev/ff250122fa99 fails: http://hg.mozilla.org/mozilla-central/rev/ed38105c9c2a range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=ff250122fa99&tochange=ed38105c9c2a
Note to self: the problem is that PropagateScrollToViewport sets the viewport's style override to the style of the frame we propagate from, but it happens when constructing frames for the <body>(!), except in debug builds (where it also happens in ConstructDocElementFrame, but after we did the scrollframe setup). This causes us to pick up the override style of "hidden" when constructing the scrollframe after the second button click, and hence not create any scrollbar frames.
Attachment #390057 - Flags: review?(roc) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P2
This landed before the 1.9.2 branchpoint.
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.