Closed Bug 1753895 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 32711 - Upstream additions to css/css-color/parsing from WebKit

Categories

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

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Sam Weinig <weinig@apple.com> wrote:

Upstream additions to css/css-color/parsing from WebKit

This upstreams a few changes made to css/css-color/parsing in WebKit repository while implementing more of CSS Color 4 and 5. It includes additions for:

  • Testing parsing and serialization of 'none' in colors including valid and invalid forms.
  • Testing interpolation of colors with 'none' components using color-mix().
  • Updating results of serialization to no longer clamp between 0 and 1 for color() with RGB types (e.g. color(srgb 400% 0 0) serializes as color(srgb 4 0 0) not color(srgb 1 0 0).
  • Correct gamut mapping using the CSS gamut mapping algorithm for out of gamut colors when using relative color syntax with rgb(), hsl() or hwb() or color-mix() with the hsl or hwb interpolation methods.
  • Testing that hsla(from ...) and rgba(from ...) are not valid in the relative color syntax (but rgb(from ...) and hsl(from ...) are). Would like confirmation that this is correct
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a21f76a38d5a [wpt PR 32711] - Upstream additions to css/css-color/parsing from WebKit, a=testonly https://hg.mozilla.org/integration/autoland/rev/acefe9aae4ff [wpt PR 32711] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b87a86f857be [wpt PR 32711] - Upstream additions to css/css-color/parsing from WebKit, a=testonly https://hg.mozilla.org/integration/autoland/rev/1525247947a4 [wpt PR 32711] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.