Closed Bug 54657 Opened 26 years ago Closed 24 years ago

overflow:scroll on HTML stops background propagation

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: ian, Assigned: attinasi)

References

()

Details

(Keywords: css2, Whiteboard: need smaller testcase (py8ieh: file related bug with position:fixed breaking background too))

It appears that the HTML->canvas background propagation fails when the HTML element has overflow:scroll. See http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/htmlbodyrendering6.html ACTUAL RESULTS: Outer background colour is white (Window), not green. EXPECTED RESULTS: Outer background colour should be the same as the background colour the other side of the outer border. Which, unless I am colour blind, is green. There are other bugs with this page, filed separately.
QA Contact: petersen → py8ieh=bugzilla
Whiteboard: need smaller testcase
Target Milestone: --- → Future
Marc, there are interesting comments about frame hierarchy in nsCSSFrameConstructor::BuildScrollFrame(), but you must know that already.
Not fixed by the new view manager.
The BodyFixupRule is assuming that the parent of the HTML frame is the canvas frame. This is not the case when the HTML is scrolled, in which case the parent of the HTML element is the ScrollPortFrame, who's parent is the GfxScroll, who's parent is the canvas. The logic in the BodyFixupRule needs to change to handle more than the simple frame hierarchy for BODY -> HTML -> canvas. Specifically, we either need to search for the canvas frame in a more generalized fashion (walking frames up) or we could cache it. Either way, the FrameManager probably should get involved. Accepting bug, thanks Ian.
Status: NEW → ASSIGNED
Whiteboard: need smaller testcase → need smaller testcase (py8ieh: file related bug with position:fixed breaking background too)
Keywords: mozilla1.0
Keywords: qawanted
Fixed by checkin of bug 116161 at 2002-01-07 15:45/46 PST.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.