Closed
Bug 1996832
Opened 4 months ago
Closed 4 months ago
Spec Compliance for Anchor Positioning Overflow Detection
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
146 Branch
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | fixed |
People
(Reporter: dshin, Assigned: dshin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [anchorpositioning:m2])
Attachments
(8 files)
|
707 bytes,
text/html
|
Details | |
|
1.59 KB,
text/html
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Scrollable containing block Bug 1989292
- Need to check margin rect of positioned frame
- Need to check against inset reduced containing block
- Need to ensure positioned rect is originated against abs containing block's padding edge (
GetRect()originates from border edge) - Need to use scrollable containing block, if default anchor is used and valid: Tracked in (Bug 1989292)
2 has interesting implications here:
- For
position-area, the containing block seems extended by the anchor frame. - For
anchor(),autoseems to be treated as0- If the default element hangs halfway off the containing block vertically, and an positioned element is anchored to it vertically, whether or not it overflows depends on if the vertical alignment is done throughtop: anchor(top)orbottom: anchor(bottom). Because the other inset isautoand therefore0, the positioned frame overflows the IMCB iftopis used. This is despite the used value of the other inset being negative to accommodate for the element.
The second part feels pretty counter-intuitive, but going with the used value would make positioned elements using anchor never overflow the IMCB.
| Assignee | ||
Comment 1•4 months ago
|
||
| Assignee | ||
Comment 2•4 months ago
|
||
Updated•4 months ago
|
Points: --- → 2
Whiteboard: [anchorpositioning:triage] → [anchorpositioning:m2]
| Assignee | ||
Comment 3•4 months ago
|
||
This gets confusing because insets are computed against the padding rect, but
we store all frame rect information w.r.t. border rect - Add documentation to
make that fact more explicit.
Updated•4 months ago
|
Assignee: nobody → dshin
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•4 months ago
|
||
| Assignee | ||
Comment 5•4 months ago
|
||
| Assignee | ||
Comment 6•4 months ago
|
||
| Assignee | ||
Comment 7•4 months ago
|
||
| Assignee | ||
Comment 8•4 months ago
|
||
Updated•4 months ago
|
Attachment #9525138 -
Attachment description: Bug 1996832: Take abs-cb being scrolled when testing abspos frame overflowing. r=#anchor-pos → Bug 1996832: Take abs-cb being scrolled into account when testing abspos frame overflowing. r=#anchor-pos
Pushed by dshin@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/cfcfba76dec6
https://hg.mozilla.org/integration/autoland/rev/1af8be116ab8
Pass in border-offset padding rect for abspos cb computation. r=layout-anchor-positioning-reviewers,layout-reviewers,emilio
https://github.com/mozilla-firefox/firefox/commit/d92b01bce062
https://hg.mozilla.org/integration/autoland/rev/f84810b06c0b
Check margin rect of abspos frame for overflowing. r=layout-anchor-positioning-reviewers,layout-reviewers,emilio
https://github.com/mozilla-firefox/firefox/commit/8e441104183c
https://hg.mozilla.org/integration/autoland/rev/f9cde34dfde1
Remove unused inset param for margin computation. r=layout-anchor-positioning-reviewers,layout-reviewers,emilio
https://github.com/mozilla-firefox/firefox/commit/c85f102c6f77
https://hg.mozilla.org/integration/autoland/rev/047b3e2888a9
Use inset modified containing block for abspos frame overflow check. r=layout-anchor-positioning-reviewers,layout-reviewers,emilio
https://github.com/mozilla-firefox/firefox/commit/022385323b3f
https://hg.mozilla.org/integration/autoland/rev/eb194dbd59c3
Take abs-cb being scrolled into account when testing abspos frame overflowing. r=layout-anchor-positioning-reviewers,layout-reviewers,emilio
https://github.com/mozilla-firefox/firefox/commit/3ad2b7912f23
https://hg.mozilla.org/integration/autoland/rev/aa0e49b48f62
Adjust WPT expectations. r=layout-anchor-positioning-reviewers,emilio
Comment 10•4 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1af8be116ab8
https://hg.mozilla.org/mozilla-central/rev/f84810b06c0b
https://hg.mozilla.org/mozilla-central/rev/f9cde34dfde1
https://hg.mozilla.org/mozilla-central/rev/047b3e2888a9
https://hg.mozilla.org/mozilla-central/rev/eb194dbd59c3
https://hg.mozilla.org/mozilla-central/rev/aa0e49b48f62
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
status-firefox146:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Updated•4 months ago
|
QA Whiteboard: [qa-triage-done-c147/b146]
You need to log in
before you can comment on or make changes to this bug.
Description
•