Closed Bug 2089413 Opened 18 days ago Closed 9 days ago

[wpt-sync] Sync PR 64437 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=320944

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=320944

WebKit export from bug: text-<!---->align:<!---->justify shouldn'<!---->t justify the last line

<pre>
[block-in-inline] text-align:justify shouldn't justify the last line

<div style="text-align: justify; width: 200px">
<span>xx xx xx xx xx xx<div>item</div>yy yy</span>
</div>

The line right before the <div> should be start aligned. Instead it was justified, stretched out to the full 200px.

A block level box inside an inline box starts a block, and CSS Text 3 counts
the start of a block as a forced line break, so the line before it is the last
line before a forced line break and follows text-align-last.

The justify check now treats ForcedLineBreakByBlockContent as a forced line break too, mirroring layoutInlineContent.
This also lets text-align-last: justify justify the line before the block, which it used to skip.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=320944">https://bugs.webkit.org/show_bug.cgi?id=320944</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/318562@main">https://commits.webkit.org/318562@main</a>
</pre>

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 96 tests and 1 subtests

Status Summary

Firefox

OK : 4
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 2[GitHub] 129[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 214[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 43[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 49[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

PASS: 2

Safari

PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-text/text-align/text-align-justifyall-001.html [wpt.fyi]: FAIL
  • /css/css-text/text-align/text-align-justifyall-002.html [wpt.fyi]: FAIL
  • /css/css-text/text-align/text-align-justifyall-003.html [wpt.fyi]: FAIL
  • /css/css-text/text-align/text-align-justifyall-004.html [wpt.fyi]: FAIL
  • /css/css-text/text-align/text-align-justifyall-005.html [wpt.fyi]: FAIL
  • /css/css-text/text-align/text-align-justifyall-006.html [wpt.fyi]: FAIL
  • /css/css-text/text-align/text-align-last-empty-inline.html [wpt.fyi]
    • content that cannot be justified should be centered when text-align-last is justify: FAIL
  • /css/css-text/text-align/text-align-last-interpolation.html [wpt.fyi]
    • CSS Transitions with transition-behavior:allow-discrete: property <text-align-last> from [end] to [match-parent] at (-0.3) should be [end]: FAIL
    • CSS Transitions with transition-behavior:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0) should be [end]: FAIL
    • CSS Transitions with transition-behavior:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0.3) should be [end]: FAIL
    • CSS Transitions with transition-behavior:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0.5) should be [match-parent]: FAIL
    • CSS Transitions with transition-behavior:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0.6) should be [match-parent]: FAIL
    • CSS Transitions with transition-behavior:allow-discrete: property <text-align-last> from [end] to [match-parent] at (1) should be [match-parent]: FAIL
    • CSS Transitions with transition-behavior:allow-discrete: property <text-align-last> from [end] to [match-parent] at (1.5) should be [match-parent]: FAIL
    • CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-align-last> from [end] to [match-parent] at (-0.3) should be [end]: FAIL
    • CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0) should be [end]: FAIL
    • CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0.3) should be [end]: FAIL
    • CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0.5) should be [match-parent]: FAIL
    • CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-align-last> from [end] to [match-parent] at (0.6) should be [match-parent]: FAIL
    • CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-align-last> from [end] to [match-parent] at (1) should be [match-parent]: FAIL
    • CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-align-last> from [end] to [match-parent] at (1.5) should be [match-parent]: FAIL
    • CSS Transitions: property <text-align-last> from [end] to [match-parent] at (-0.3) should be [match-parent]: FAIL
    • CSS Transitions: property <text-align-last> from [end] to [match-parent] at (0) should be [match-parent]: FAIL
    • CSS Transitions: property <text-align-last> from [end] to [match-parent] at (0.3) should be [match-parent]: FAIL
    • CSS Transitions: property <text-align-last> from [end] to [match-parent] at (0.5) should be [match-parent]: FAIL
    • CSS Transitions: property <text-align-last> from [end] to [match-parent] at (0.6) should be [match-parent]: FAIL
    • CSS Transitions: property <text-align-last> from [end] to [match-parent] at (1) should be [match-parent]: FAIL
    • CSS Transitions: property <text-align-last> from [end] to [match-parent] at (1.5) should be [match-parent]: FAIL
    • CSS Transitions with transition: all: property <text-align-last> from [end] to [match-parent] at (-0.3) should be [match-parent]: FAIL
    • CSS Transitions with transition: all: property <text-align-last> from [end] to [match-parent] at (0) should be [match-parent]: FAIL
    • CSS Transitions with transition: all: property <text-align-last> from [end] to [match-parent] at (0.3) should be [match-parent]: FAIL
    • CSS Transitions with transition: all: property <text-align-last> from [end] to [match-parent] at (0.5) should be [match-parent]: FAIL
    • CSS Transitions with transition: all: property <text-align-last> from [end] to [match-parent] at (0.6) should be [match-parent]: FAIL
    • CSS Transitions with transition: all: property <text-align-last> from [end] to [match-parent] at (1) should be [match-parent]: FAIL
    • CSS Transitions with transition: all: property <text-align-last> from [end] to [match-parent] at (1.5) should be [match-parent]: FAIL
    • CSS Animations: property <text-align-last> from [end] to [match-parent] at (-0.3) should be [end]: FAIL
    • CSS Animations: property <text-align-last> from [end] to [match-parent] at (0) should be [end]: FAIL
    • CSS Animations: property <text-align-last> from [end] to [match-parent] at (0.3) should be [end]: FAIL
    • CSS Animations: property <text-align-last> from [end] to [match-parent] at (0.5) should be [match-parent]: FAIL
    • CSS Animations: property <text-align-last> from [end] to [match-parent] at (0.6) should be [match-parent]: FAIL
    • CSS Animations: property <text-align-last> from [end] to [match-parent] at (1) should be [match-parent]: FAIL
    • CSS Animations: property <text-align-last> from [end] to [match-parent] at (1.5) should be [match-parent]: FAIL
    • Web Animations: property <text-align-last> from [end] to [match-parent] at (-0.3) should be [end]: FAIL
    • Web Animations: property <text-align-last> from [end] to [match-parent] at (0) should be [end]: FAIL
    • Web Animations: property <text-align-last> from [end] to [match-parent] at (0.3) should be [end]: FAIL
    • Web Animations: property <text-align-last> from [end] to [match-parent] at (0.5) should be [match-parent]: FAIL
    • Web Animations: property <text-align-last> from [end] to [match-parent] at (0.6) should be [match-parent]: FAIL
    • Web Animations: property <text-align-last> from [end] to [match-parent] at (1) should be [match-parent]: FAIL
    • Web Animations: property <text-align-last> from [end] to [match-parent] at (1.5) should be [match-parent]: FAIL
Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.