Incorrect position of the box when using scrollbar-gutter on the root
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 1 open bug)
Details
(Whiteboard: [viewtransitions:m2])
Attachments
(2 files, 4 obsolete files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 1960755 - Replace pointer with reference in ViewportFrame::AdjustReflowInputAsContainingBlock().
48 bytes,
text/x-phabricator-request
|
Details | Review |
| Comment hidden (obsolete) |
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
Change to [viewtransition:m2] because this is still reproducible.
I will close this once other bugs fix this as well.
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
The testcase I uploaded is not reproducible.
However, I think we could change this bug title for this test failure:
snapshot-containing-block-includes-scrollbar-gutter.html
For more specifically, the rendering result looks like the position of this box is not correct. Perhaps it is due to the scrollbar-gutter (i.e. the user wants to reserve space for the scrollbar).
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 5•1 year ago
|
||
The interesting thing is, the rendering result is correct if I simply run it with mach run.
Comment 6•1 year ago
|
||
That's because wpt forces non-overlay scrollbars
| Assignee | ||
Comment 7•1 year ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #6)
That's because wpt forces non-overlay scrollbars
Right. I have to change my mac system setup to show the scrollbar always (i.e. non-overlay scrollbar I guess) to reproduce this test failure.
| Assignee | ||
Comment 8•1 year ago
|
||
So looks like this is a regression of my previous patch of snapshot containing block. It should include the scrollbar gutter.
| Assignee | ||
Comment 9•1 year ago
|
||
Setting the ua style with inset:0 may not be enough because the spec
expects us to include any scrollbar-gutters. So we dynamically set the
inset based on its scrollbar-gutter values.
| Assignee | ||
Comment 10•1 year ago
|
||
Per spec, snapshot containing block should include scrollbar-gutter, so
we shouldn't adjust its position and size by the scrollbar sizes.
However, for the rest of children of viewport frame still need this
adjustment, so we move all the calculation into
nsAbsoluteContainingBlock::Reflow(), and choose the proper ReflowInput
and containing block for different frames.
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 11•1 year ago
|
||
This function may be used outside ViewportFrame, and we expect its
parameter, ReflowInput, is non-null always, so use reference to avoid
any accidents.
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/83d337396839
https://hg.mozilla.org/mozilla-central/rev/625d9e32d01d
https://hg.mozilla.org/mozilla-central/rev/5d31a5f72a2e
Updated•1 year ago
|