Closed Bug 2085405 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 63998 - [css-color] guard against naive f32 implementations for `Lab` to `xyz` conversion

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Romain Menke <romainmenke@gmail.com> wrote:

[css-color] guard against naive f32 implementations for Lab to xyz conversion

After this comment I was wondering if there is a value that fails only on an incorrect f32 implementation, even if the powerless epsilon is implemented.

For naive f32 the computed saturation is 1.63e-5, while the powerless epsilon is 1e-5. So the hue is not powerless and the value serializes as: color(srgb 0.00143 0.00143 0.00143) Such implementations fail these new tests.

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 46 tests and 27 subtests

Status Summary

Firefox

OK : 2[GitHub] 46[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2001[GitHub] 11079[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 143[GitHub] 1077[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
PASS: 2110
FAIL: 34

Safari

OK : 2
PASS: 2137
FAIL: 7

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

  • /css/css-color/parsing/color-computed-color-mix-function.html [wpt.fyi]
    • Property color value 'color-mix(in hsl, hsl(none none none), hsl(none none none))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hsl, hsl(120deg 40% 40% / none), hsl(0deg 40% 40% / none))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hsl, hsl(120deg 10% 20%) 0%, hsl(30deg 30% 40%) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in hsl, hsl(120deg 10% 20% / .4) 0%, hsl(30deg 30% 40% / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in hwb, hwb(none none none), hwb(none none none))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hwb, hwb(120deg 10% 20% / none), hwb(30deg 30% 40% / none))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hwb, hwb(120deg 10% 20%) 0%, hwb(30deg 30% 40%) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in hwb, hwb(120deg 10% 20% / .4) 0%, hwb(30deg 30% 40% / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in lch, lch(10% 20 30deg) 0%, lch(50% 60 70deg) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in lch, lch(10% 20 30deg / .4) 0%, lch(50% 60 70deg / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in lch, lch(none 20 30deg) 0%, lch(none 60 70deg) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in oklch, oklch(10% 20 30deg) 0%, oklch(50% 60 70deg) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in oklch, oklch(10% 20 30deg / .4) 0%, oklch(50% 60 70deg / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in oklch, oklch(none 20 30deg) 0%, oklch(none 60 70deg) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in oklch, teal 0%, olive 0%)': FAIL linked bug:Bug 2070855
    • Property color value 'color-mix(in lab, lab(10% 20 30) 0%, lab(50% 60 70) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in lab, lab(10% 20 30 / .4) 0%, lab(50% 60 70 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in lab, lab(none 20 30) 0%, lab(none 60 70) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(oklab(10% 20 30) 0%, oklab(50% 60 70) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(oklab(10% 20 30 / .4) 0%, oklab(50% 60 70 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(oklab(none 20 30) 0%, oklab(none 60 70) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in oklab, oklab(10% 20 30) 0%, oklab(50% 60 70) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in oklab, oklab(10% 20 30 / .4) 0%, oklab(50% 60 70 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in oklab, oklab(none 20 30) 0%, oklab(none 60 70) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in srgb, color(srgb .1 .2 .3) 0%, color(srgb .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in srgb, color(srgb .1 .2 .3 / .4) 0%, color(srgb .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in srgb, color(srgb none .2 .3) 0%, color(srgb none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in srgb-linear, color(srgb-linear .1 .2 .3) 0%, color(srgb-linear .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in srgb-linear, color(srgb-linear .1 .2 .3 / .4) 0%, color(srgb-linear .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in srgb-linear, color(srgb-linear none .2 .3) 0%, color(srgb-linear none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in display-p3, color(display-p3 .1 .2 .3) 0%, color(display-p3 .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in display-p3, color(display-p3 .1 .2 .3 / .4) 0%, color(display-p3 .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in display-p3, color(display-p3 none .2 .3) 0%, color(display-p3 none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in display-p3-linear, color(display-p3-linear .1 .2 .3) 0%, color(display-p3-linear .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in display-p3-linear, color(display-p3-linear .1 .2 .3 / .4) 0%, color(display-p3-linear .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in display-p3-linear, color(display-p3-linear none .2 .3) 0%, color(display-p3-linear none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in a98-rgb, color(a98-rgb .1 .2 .3) 0%, color(a98-rgb .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in a98-rgb, color(a98-rgb .1 .2 .3 / .4) 0%, color(a98-rgb .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in a98-rgb, color(a98-rgb none .2 .3) 0%, color(a98-rgb none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in prophoto-rgb, color(prophoto-rgb .1 .2 .3) 0%, color(prophoto-rgb .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in prophoto-rgb, color(prophoto-rgb .1 .2 .3 / .4) 0%, color(prophoto-rgb .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in prophoto-rgb, color(prophoto-rgb none .2 .3) 0%, color(prophoto-rgb none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in rec2020, color(rec2020 .1 .2 .3) 0%, color(rec2020 .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in rec2020, color(rec2020 .1 .2 .3 / .4) 0%, color(rec2020 .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in rec2020, color(rec2020 none .2 .3) 0%, color(rec2020 none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in xyz, color(xyz .1 .2 .3) 0%, color(xyz .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in xyz, color(xyz .1 .2 .3 / .4) 0%, color(xyz .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in xyz, color(xyz none .2 .3) 0%, color(xyz none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in xyz-d50, color(xyz-d50 .1 .2 .3) 0%, color(xyz-d50 .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in xyz-d50, color(xyz-d50 .1 .2 .3 / .4) 0%, color(xyz-d50 .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in xyz-d50, color(xyz-d50 none .2 .3) 0%, color(xyz-d50 none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in xyz-d65, color(xyz-d65 .1 .2 .3) 0%, color(xyz-d65 .5 .6 .7) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in xyz-d65, color(xyz-d65 .1 .2 .3 / .4) 0%, color(xyz-d65 .5 .6 .7 / .8) 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in xyz-d65, color(xyz-d65 none .2 .3) 0%, color(xyz-d65 none .6 .7) 0%)': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in srgb, red 0%, blue 0%)': FAIL linked bug:Bug 2050548
    • Property color value 'color-mix(in srgb, red calc(0%), blue calc(0%))': FAIL linked bug:Bug 2070855
    • Property color value 'color-mix(in srgb, red calc(50% + (sign(100em - 1px) * 10%)), blue)': FAIL linked bug:Bug 1915985
    • Property color value 'color-mix(in oklch, oklab(0.1 none none), oklch(0.3 0.2 90deg))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in oklab, oklch(0.1 none none), oklab(0.3 0.2 0.4))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hsl, hwb(none none none), hsl(none 0.2 0.4))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hwb, hsl(none none none), hwb(none 0.2 0.4))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hsl, hwb(none 40% none), hsl(none 0.2 0.4))': FAIL linked bug:Bug 2063553
    • Property color value 'color-mix(in hwb, hsl(none none 20%), hwb(none 0.2 0.4))': FAIL linked bug:Bug 2063553
  • /css/css-color/parsing/color-computed-relative-color.html [wpt.fyi]
    • Property color value 'rgb(from rgb(none none none) r g b)': FAIL
    • Property color value 'rgb(from rgb(none none none / none) r g b / alpha)': FAIL
    • Property color value 'rgb(from rgb(20% none 60%) r g b)': FAIL
    • Property color value 'rgb(from rgb(20% 40% 60% / none) r g b / alpha)': FAIL
    • Property color value 'hsl(from hsl(none none none) h s l)': FAIL linked bug:Bug 1895330
    • Property color value 'hsl(from hsl(none none none / none) h s l / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'hsl(from hsl(120deg none 50% / .5) h s l)': FAIL linked bug:Bug 1895330
    • Property color value 'hsl(from hsl(120deg 20% 50% / none) h s l / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'hsl(from hsl(none 20% 50% / .5) h s l / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'hwb(from hwb(none none none) h w b)': FAIL linked bug:Bug 1895330
    • Property color value 'hwb(from hwb(none none none / none) h w b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'hwb(from hwb(120deg none 50% / .5) h w b)': FAIL linked bug:Bug 1895330
    • Property color value 'hwb(from hwb(120deg 20% 50% / none) h w b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'hwb(from hwb(none 20% 50% / .5) h w b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'lab(from lab(none none none) l a b)': FAIL linked bug:Bug 1895330
    • Property color value 'lab(from lab(none none none / none) l a b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'lab(from lab(25 none 50) l a b)': FAIL linked bug:Bug 1895330
    • Property color value 'lab(from lab(25 20 50 / none) l a b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'oklab(from oklab(none none none) l a b)': FAIL linked bug:Bug 1895330
    • Property color value 'oklab(from oklab(none none none / none) l a b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'oklab(from oklab(0.25 none 0.5) l a b)': FAIL linked bug:Bug 1895330
    • Property color value 'oklab(from oklab(0.25 0.2 0.5 / none) l a b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'lch(from color(display-p3 0 0 0) l c h / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'lch(from lch(none none none) l c h)': FAIL linked bug:Bug 1895330
    • Property color value 'lch(from lch(none none none / none) l c h / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'lch(from lch(0.7 none 30) l c h)': FAIL linked bug:Bug 1895330
    • Property color value 'lch(from lch(0.7 45 30 / none) l c h / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'oklch(from color(display-p3 0 0 0) l c h / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'oklch(from oklch(none none none) l c h)': FAIL linked bug:Bug 1895330
    • Property color value 'oklch(from oklch(none none none / none) l c h / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'oklch(from oklch(0.7 none 30) l c h)': FAIL linked bug:Bug 1895330
    • Property color value 'oklch(from oklch(0.7 0.45 30 / none) l c h / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb none none none) srgb r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb none none none / none) srgb r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb 0.7 none 0.3) srgb r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb 0.7 0.5 0.3 / none) srgb r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb-linear none none none) srgb-linear r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb-linear none none none / none) srgb-linear r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb-linear 0.7 none 0.3) srgb-linear r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(srgb-linear 0.7 0.5 0.3 / none) srgb-linear r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(a98-rgb none none none) a98-rgb r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(a98-rgb none none none / none) a98-rgb r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(a98-rgb 0.7 none 0.3) a98-rgb r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(a98-rgb 0.7 0.5 0.3 / none) a98-rgb r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(rec2020 none none none) rec2020 r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(rec2020 none none none / none) rec2020 r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(rec2020 0.7 none 0.3) rec2020 r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(rec2020 0.7 0.5 0.3 / none) rec2020 r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(prophoto-rgb none none none) prophoto-rgb r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(prophoto-rgb none none none / none) prophoto-rgb r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(prophoto-rgb 0.7 none 0.3) prophoto-rgb r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3 / none) prophoto-rgb r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(display-p3 none none none) display-p3 r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(display-p3 none none none / none) display-p3 r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(display-p3 0.7 none 0.3) display-p3 r g b)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(display-p3 0.7 0.5 0.3 / none) display-p3 r g b / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(display-p3-linear none none none) display-p3-linear r g b)': FAIL linked bug:Bug 1993644
    • Property color value 'color(from color(display-p3-linear none none none / none) display-p3-linear r g b / alpha)': FAIL linked bug:Bug 1993644
    • Property color value 'color(from color(display-p3-linear 0.7 none 0.3) display-p3-linear r g b)': FAIL linked bug:Bug 1993644
    • Property color value 'color(from color(display-p3-linear 0.7 0.5 0.3 / none) display-p3-linear r g b / alpha)': FAIL linked bug:Bug 1993644
    • Property color value 'color(from color(xyz none none none) xyz x y z)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz none none none / none) xyz x y z / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz 7 none 100) xyz x y z)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz 7 -20.5 100 / none) xyz x y z / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d50 none none none) xyz-d50 x y z)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d50 none none none / none) xyz-d50 x y z / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d50 7 none 100) xyz-d50 x y z)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d50 7 -20.5 100 / none) xyz-d50 x y z / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d65 none none none) xyz-d65 x y z)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d65 none none none / none) xyz-d65 x y z / alpha)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d65 7 none 100) xyz-d65 x y z)': FAIL linked bug:Bug 1895330
    • Property color value 'color(from color(xyz-d65 7 -20.5 100 / none) xyz-d65 x y z / alpha)': FAIL linked bug:Bug 1895330

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: