Closed Bug 456484 Opened 17 years ago Closed 17 years ago

Inside block shrinkwraps when outside inline-block has scrollframe

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: bzbarsky)

References

Details

(Keywords: testcase)

Attachments

(3 files)

Attached file testcase
See testcase, I would expect it to render the same as the reference rendering (which I'm going to attach). The only difference between the two is the addition of overflow: auto in the testcase.
Attached file reference rendering
So the issue is that moz-scrolled-content inherits the display... Should we instead be unconditionally setting it to display:block? That wouldn't affect scrolled blocks, would improve scrolled inline-blocks. The only question is what would happen with scrolled table-row-groups, but I think that should be ok.
Attached patch Like soSplinter Review
Attachment #341404 - Flags: superreview?(roc)
Attachment #341404 - Flags: review?(roc)
Comment on attachment 341404 [details] [diff] [review] Like so You may wish to add a comment mentioning that this does not affect the type of frame created --- we always create the scrolled frame based on the real 'display' value of the element. So this is really just to satisfy code that checks whether the nsBlockFrame is inline-level.
Attachment #341404 - Flags: superreview?(roc)
Attachment #341404 - Flags: superreview+
Attachment #341404 - Flags: review?(roc)
Attachment #341404 - Flags: review+
Pushed changeset d28eb3aa049d with the comment change and the tests.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Depends on: 571281
Depends on: 614969
Assignee: nobody → bzbarsky
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: