Bug 1876262 [wpt PR 44162] - [text-autospace][text-spacing-trim] Update `text-spacing...
commitf7f9b73ee919b7c02141f4c1f9dfdfe374de17b5
authorKoji Ishii <kojii@chromium.org>
Sat, 27 Jan 2024 10:49:29 +0000 (27 10:49 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 28 Jan 2024 09:59:32 +0000 (28 09:59 +0000)
tree42875e9a1038aa29f5255159fee1a8ac58fd47f0
parenta084e390afa3c1c252dcd527211c7ea8f8a816f1
Bug 1876262 [wpt PR 44162] - [text-autospace][text-spacing-trim] Update `text-spacing` shorthand, a=testonly

Automatic update from web-platform-tests
[text-autospace][text-spacing-trim] Update `text-spacing` shorthand

This patch updates the `text-spacing` shorthand parsing:
1. Update the initial value and supported values as per the
   resolution at:
   https://github.com/w3c/csswg-drafts/issues/9511
2. Change the logic to handle `normal` as both properties
   accept `normal` after the spec change above.
3. Fix the canonical order to match the [spec] (`spacing-trim`
   comes first).

Current supported values of longhands are:
* `text-autospace`:    `normal`, `no-autospace`.
* `text-spacing-trim`: `normal`, `trim-start`, `space-all`,
                       `space-first`.

The `text-spacing` shorthands support values above and `none`.

[spec]: https://drafts.csswg.org/css-text-4/#text-spacing-property

Bug: 14638901463891
Change-Id: I8a047f4b87ba728e2f577301b5a1fc3ce824341e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5232448
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1251995}

--

wpt-commits: 2036f94ae33f010be2e3c994961d902dd56f47e5
wpt-pr: 44162
testing/web-platform/tests/css/css-text/parsing/text-spacing-computed.html
testing/web-platform/tests/css/css-text/parsing/text-spacing-invalid.html
testing/web-platform/tests/css/css-text/parsing/text-spacing-valid.html