Closed Bug 2005214 Opened 1 month ago Closed 1 month ago

Fix position-area default self-alignment for different writing modes

Categories

(Core :: Layout: Positioned, defect)

defect

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox147 --- fixed
firefox148 --- fixed

People

(Reporter: jwatt, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

(Whiteboard: [wptsync upstream])

Attachments

(2 files)

I've been going over creating tests for bug 2004161, looking at the existing WPT tests, and talking to jfkthame. Seems like there's still work to do. One test that should pass is:

https://searchfox.org/firefox-main/source/testing/web-platform/tests/css/css-anchor-position/position-area-align-justify-wm-dir.html

Doing that will presumably fix bug 2003542.

I have a patch that makes all of position-area-align-justify-wm-dir.html pass locally; will post it after a bit more cleanup and adding some extra testcases.

Assignee: nobody → jfkthame
Blocks: 2003542
Whiteboard: [anchorpositioning:triage]

sideways-lr is mostly like vertical-lr but has the opposite inline direction,
so I think it's important to include test coverage for this mode as well.

Attachment #9532085 - Attachment description: Bug 2005214 - patch 2 - Fix PositionAreaKeyword::to_self_alignment() to resolve correctly for the containing block's writing mode. r=#layout → Bug 2005214 - patch 1 - Fix PositionAreaKeyword::to_self_alignment() to resolve correctly for the containing block's writing mode. r=#layout
Attachment #9532084 - Attachment description: Bug 2005214 - patch 1 - Add variants with sideways-lr writing mode to position-area-align-justify-wm-dir.html. r=#layout → Bug 2005214 - patch 2 - Remove failure annotations, and add variants with sideways-lr writing mode to position-area-align-justify-wm-dir.html. r=#layout
Pushed by jkew@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b9daf63e7c7b https://hg.mozilla.org/integration/autoland/rev/ed9b6344ed82 patch 1 - Fix PositionAreaKeyword::to_self_alignment() to resolve correctly for the containing block's writing mode. r=layout-reviewers,firefox-style-system-reviewers,jwatt,emilio https://github.com/mozilla-firefox/firefox/commit/5c64bd0e8e22 https://hg.mozilla.org/integration/autoland/rev/6287fb1e2110 patch 2 - Remove failure annotations, and add variants with sideways-lr writing mode to position-area-align-justify-wm-dir.html. r=layout-reviewers,emilio,jwatt
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56637 for changes under testing/web-platform/tests
Whiteboard: [anchorpositioning:triage] → [anchorpositioning:triage], [wptsync upstream]
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch

Comment on attachment 9532085 [details]
Bug 2005214 - patch 1 - Fix PositionAreaKeyword::to_self_alignment() to resolve correctly for the containing block's writing mode. r=#layout

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Needed for our Anchor Positioning release in v147.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce:
  • List of other uplifts needed: Bug 2004161
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Fixes known broken tests websites.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9532085 - Flags: approval-mozilla-beta?

Comment on attachment 9532084 [details]
Bug 2005214 - patch 2 - Remove failure annotations, and add variants with sideways-lr writing mode to position-area-align-justify-wm-dir.html. r=#layout

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Tests for the previous patch, which is needed for our Anchor Positioning release in v147.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce:
  • List of other uplifts needed: Bug 2004161
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): tests
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9532084 - Flags: approval-mozilla-beta?

Comment on attachment 9532084 [details]
Bug 2005214 - patch 2 - Remove failure annotations, and add variants with sideways-lr writing mode to position-area-align-justify-wm-dir.html. r=#layout

Approved for 147.0b3.

Attachment #9532084 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9532085 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: in-testsuite+
Whiteboard: [anchorpositioning:triage], [wptsync upstream] → [wptsync upstream]
Duplicate of this bug: 2003542
No longer blocks: 2003542
Upstream PR was closed without merging
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: