Closed Bug 1886454 Opened 11 months ago Closed 11 months ago

[wpt-sync] Sync PR 45218 - [anchor] Support try-tactic flips for self-alignment properties

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 45218 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/45218
Details from upstream follow.

Anders Hartvoll Ruud <andruud@chromium.org> wrote:

[anchor] Support try-tactic flips for self-alignment properties

The self-alignment properties are a bit different from the other
properties that require adjustment.

For insets and sizes, a value transformation (e.g. anchor(right)
becoming anchor(left)) is always accompanied by a corresponding property
transformation (e.g. left becoming right), but for self-alignment
properties we need value transformation within the same property.
E.g. justify-self:start under flip-start becomes justify-self:start
(no change in property). Therefore these properties are always present
in the try-tactics layer.

Also, it's worth noting that justify-self accepts the 'left' and
'right' keywords, but align-self does not. This means we can't
just naively grab-and-flip the value of the other property for
flip-start: we need to convert left/right to logical to avoid
giving align-self an invalid value. Since the exact details of
what left/right should become in this case is non-obvious
(and not specified), I've avoided this case in the WPT for now.

Bug: 40279608
Change-Id: I8fa675a0be3f3c50ca73b4b628583765e252b032
Reviewed-on: https://chromium-review.googlesource.com/5383077
WPT-Export-Revision: 3b8b66faaf81200f132f6ebe6fe8a17b2fb6bb54

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 39 subtests

Status Summary

Firefox

OK : 1
PASS: 13
FAIL: 26

Chrome

OK : 1
PASS: 13
FAIL: 26

Safari

OK : 1
PASS: 13
FAIL: 26

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-anchor-position/try-tactic-alignment.html [wpt.fyi]
    • , justify-self:start: FAIL (Chrome: PASS, Safari: FAIL)
    • , justify-self:end: FAIL (Chrome: PASS, Safari: FAIL)
    • , justify-self:self-start: FAIL (Chrome: PASS, Safari: FAIL)
    • , justify-self:self-end: FAIL (Chrome: PASS, Safari: FAIL)
    • , justify-self:flex-start: FAIL (Chrome: PASS, Safari: FAIL)
    • , justify-self:flex-end: FAIL (Chrome: PASS, Safari: FAIL)
    • , align-self:start: FAIL (Chrome: PASS, Safari: FAIL)
    • , align-self:end: FAIL (Chrome: PASS, Safari: FAIL)
    • , align-self:self-start: FAIL (Chrome: PASS, Safari: FAIL)
    • , align-self:self-end: FAIL (Chrome: PASS, Safari: FAIL)
    • , align-self:flex-start: FAIL (Chrome: PASS, Safari: FAIL)
    • , align-self:flex-end: FAIL (Chrome: PASS, Safari: FAIL)
    • flip-inline, justify-self:start: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-inline, justify-self:end: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-inline, justify-self:self-start: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-inline, justify-self:self-end: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-inline, justify-self:flex-start: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-inline, justify-self:flex-end: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-inline, justify-self:left: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-inline, justify-self:right: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-block, align-self:start: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-block, align-self:end: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-block, align-self:self-start: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-block, align-self:self-end: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-block, align-self:flex-start: FAIL (Chrome: FAIL, Safari: FAIL)
    • flip-block, align-self:flex-end: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/358750d68853 [wpt PR 45218] - [anchor] Support try-tactic flips for self-alignment properties, a=testonly https://hg.mozilla.org/integration/autoland/rev/7367a8478f29 [wpt PR 45218] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.