Bug 1889133 - Parse the `from <color>` part of the relative color syntax. r=layout-reviewers,emilio

All color functions support a from keyword as part of the relative color
syntax.

https://drafts.csswg.org/css-color-5/#relative-colors

This patch adds a pref layout.css.relative-color-syntax.enabled that is
off by default.

We start passing tests that only check for the validity of the `from`
keyword in different color functions.

Differential Revision: https://phabricator.services.mozilla.com/D206374
This commit is contained in:
Tiaan Louw 2024-04-08 15:26:25 +00:00
Родитель 17acc6cd4d
Коммит 5fdf075a6d
5 изменённых файлов: 59 добавлений и 701 удалений

Просмотреть файл

@ -8839,6 +8839,13 @@
value: false
mirror: always
# Enable relative color syntax: https://drafts.csswg.org/css-color-5/#relative-colors
- name: layout.css.relative-color-syntax.enabled
type: RelaxedAtomicBool
value: false
mirror: always
rust: true
# Is CSS error reporting enabled?
- name: layout.css.report_errors
type: bool

Просмотреть файл

@ -16,6 +16,11 @@ use cssparser::{match_ignore_ascii_case, CowRcStr, Parser, Token};
use std::str::FromStr;
use style_traits::{ParseError, StyleParseErrorKind};
#[inline]
fn rcs_enabled() -> bool {
static_prefs::pref!("layout.css.relative-color-syntax.enabled")
}
impl From<u8> for ColorComponent<u8> {
#[inline]
fn from(value: u8) -> Self {
@ -157,6 +162,31 @@ impl ColorComponent<NumberOrPercentage> {
}
}
/// Parse the relative color syntax "from" syntax `from <color>`.
fn parse_origin_color<'i, 't, P>(
color_parser: &P,
arguments: &mut Parser<'i, 't>,
) -> Result<Option<P::Output>, ParseError<'i>>
where
P: ColorParser<'i>,
{
if !rcs_enabled() {
return Ok(None);
}
// Not finding the from keyword is not an error, it just means we don't
// have an origin color.
if arguments
.try_parse(|p| p.expect_ident_matching("from"))
.is_err()
{
return Ok(None);
}
// We still fail if we can't parse the origin color.
parse_color_with(color_parser, arguments).map(|color| Some(color))
}
#[inline]
fn parse_rgb<'i, 't, P>(
color_parser: &P,
@ -165,14 +195,18 @@ fn parse_rgb<'i, 't, P>(
where
P: ColorParser<'i>,
{
let origin_color = parse_origin_color(color_parser, arguments)?;
let location = arguments.current_source_location();
let maybe_red = color_parser.parse_number_or_percentage(arguments, true)?;
// If the first component is not "none" and is followed by a comma, then we
// are parsing the legacy syntax.
let is_legacy_syntax =
!maybe_red.is_none() && arguments.try_parse(|p| p.expect_comma()).is_ok();
// are parsing the legacy syntax. Legacy syntax also doesn't support an
// origin color.
let is_legacy_syntax = origin_color.is_none()
&& !maybe_red.is_none()
&& arguments.try_parse(|p| p.expect_comma()).is_ok();
let (red, green, blue, alpha) = if is_legacy_syntax {
let Ok(is_percentage) = maybe_red.is_percentage() else {
@ -231,11 +265,15 @@ fn parse_hsl<'i, 't, P>(
where
P: ColorParser<'i>,
{
let origin_color = parse_origin_color(color_parser, arguments)?;
let hue = color_parser.parse_number_or_angle(arguments, true)?;
// If the hue is not "none" and is followed by a comma, then we are parsing
// the legacy syntax.
let is_legacy_syntax = !hue.is_none() && arguments.try_parse(|p| p.expect_comma()).is_ok();
// the legacy syntax. Legacy syntax also doesn't support an origin color.
let is_legacy_syntax = origin_color.is_none()
&& !hue.is_none()
&& arguments.try_parse(|p| p.expect_comma()).is_ok();
let (saturation, lightness, alpha) = if is_legacy_syntax {
let saturation = color_parser
@ -274,6 +312,8 @@ fn parse_hwb<'i, 't, P>(
where
P: ColorParser<'i>,
{
let _origin_color = parse_origin_color(color_parser, arguments)?;
let (hue, whiteness, blackness, alpha) = parse_components(
color_parser,
arguments,
@ -301,6 +341,8 @@ fn parse_lab_like<'i, 't, P>(
where
P: ColorParser<'i>,
{
let _origin_color = parse_origin_color(color_parser, arguments)?;
let (lightness, a, b, alpha) = parse_components(
color_parser,
arguments,
@ -328,6 +370,8 @@ fn parse_lch_like<'i, 't, P>(
where
P: ColorParser<'i>,
{
let _origin_color = parse_origin_color(color_parser, arguments)?;
let (lightness, chroma, hue, alpha) = parse_components(
color_parser,
arguments,
@ -348,6 +392,8 @@ fn parse_color_with_color_space<'i, 't, P>(
where
P: ColorParser<'i>,
{
let _origin_color = parse_origin_color(color_parser, arguments)?;
let color_space = {
let location = arguments.current_source_location();

Просмотреть файл

@ -0,0 +1 @@
prefs: [layout.css.relative-color-syntax.enabled:true]

Просмотреть файл

@ -542,12 +542,6 @@
[Property color value 'lab(from color(display-p3 0 0 0) l a b / alpha)']
expected: FAIL
[Property color value 'lab(from lab(25 20 50) 0 0 0)']
expected: FAIL
[Property color value 'lab(from lab(25 20 50) 0 0 0 / 0)']
expected: FAIL
[Property color value 'lab(from lab(25 20 50) 0 a b / alpha)']
expected: FAIL
@ -596,12 +590,6 @@
[Property color value 'lab(from lab(25 20 50 / 40%) l a b / .35)']
expected: FAIL
[Property color value 'lab(from lab(0.7 45 30 / 40%) 200 300 400 / 500)']
expected: FAIL
[Property color value 'lab(from lab(0.7 45 30 / 40%) -200 -300 -400 / -500)']
expected: FAIL
[Property color value 'lab(from lab(25 20 50) l b a)']
expected: FAIL
@ -620,12 +608,6 @@
[Property color value 'lab(from lab(25 20 50 / 40%) calc(l) calc(a) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'lab(from lab(25 20 50) none none none)']
expected: FAIL
[Property color value 'lab(from lab(25 20 50) none none none / none)']
expected: FAIL
[Property color value 'lab(from lab(25 20 50) l a none)']
expected: FAIL
@ -686,18 +668,6 @@
[Property color value 'lch(from lab(0.7 45 30) l c h / alpha)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) 0 0 0)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) 0 0 0deg)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) 0 0 0 / 0)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) 0 0 0deg / 0)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) 0 c h / alpha)']
expected: FAIL
@ -758,18 +728,6 @@
[Property color value 'lch(from lch(0.7 45 30 / 40%) l c h / .25)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30 / 40%) 200 300 400 / 500)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30 / 40%) -200 -300 -400 / -500)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30 / 40%) 50 120 400deg / 500)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30 / 40%) 50 120 -400deg / -500)']
expected: FAIL
[Property color value 'lch(from lch(.7 45 30) l c c / alpha)']
expected: FAIL
@ -782,12 +740,6 @@
[Property color value 'lch(from lch(0.7 45 30 / 40%) calc(l) calc(c) calc(h) / calc(alpha))']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) none none none)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) none none none / none)']
expected: FAIL
[Property color value 'lch(from lch(0.7 45 30) l c none)']
expected: FAIL
@ -845,12 +797,6 @@
[Property color value 'color(from color(from color(srgb 0.7 0.5 0.3) srgb r g b) srgb r g b)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb 0 0 0)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb 0 g b / alpha)']
expected: FAIL
@ -923,30 +869,6 @@
[Property color value 'color(from color(srgb 0.7 0.5 0.3 / 40%) srgb r g b / 20%)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb 2 3 4)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb 2 3 4 / 5)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb -2 -3 -4)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb -2 -3 -4 / -5)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb 200% 300% 400%)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb 200% 300% 400% / 500%)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb -200% -300% -400%)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb -200% -300% -400% / -500%)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb g b r)']
expected: FAIL
@ -1001,12 +923,6 @@
[Property color value 'color(from color(srgb 0.7 0.5 0.3 / 40%) srgb calc(r) calc(g) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb none none none)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb none none none / none)']
expected: FAIL
[Property color value 'color(from color(srgb 0.7 0.5 0.3) srgb r g none)']
expected: FAIL
@ -1049,12 +965,6 @@
[Property color value 'color(from color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear r g b) srgb-linear r g b)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 0 0 0)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 0 g b / alpha)']
expected: FAIL
@ -1127,30 +1037,6 @@
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3 / 40%) srgb-linear r g b / 20%)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 2 3 4)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 2 3 4 / 5)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -2 -3 -4)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -2 -3 -4 / -5)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 200% 300% 400%)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 200% 300% 400% / 500%)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -200% -300% -400%)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -200% -300% -400% / -500%)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear g b r)']
expected: FAIL
@ -1205,12 +1091,6 @@
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3 / 40%) srgb-linear calc(r) calc(g) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear none none none)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear none none none / none)']
expected: FAIL
[Property color value 'color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear r g none)']
expected: FAIL
@ -1253,12 +1133,6 @@
[Property color value 'color(from color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb r g b) a98-rgb r g b)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 0 0 0)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 0 g b / alpha)']
expected: FAIL
@ -1331,30 +1205,6 @@
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3 / 40%) a98-rgb r g b / 20%)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 2 3 4)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 2 3 4 / 5)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -2 -3 -4)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -2 -3 -4 / -5)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 200% 300% 400%)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 200% 300% 400% / 500%)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -200% -300% -400%)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -200% -300% -400% / -500%)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb g b r)']
expected: FAIL
@ -1409,12 +1259,6 @@
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3 / 40%) a98-rgb calc(r) calc(g) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb none none none)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb none none none / none)']
expected: FAIL
[Property color value 'color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb r g none)']
expected: FAIL
@ -1457,12 +1301,6 @@
[Property color value 'color(from color(from color(rec2020 0.7 0.5 0.3) rec2020 r g b) rec2020 r g b)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 0 0 0)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 0 g b / alpha)']
expected: FAIL
@ -1535,30 +1373,6 @@
[Property color value 'color(from color(rec2020 0.7 0.5 0.3 / 40%) rec2020 r g b / 20%)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 2 3 4)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 2 3 4 / 5)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 -2 -3 -4)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 -2 -3 -4 / -5)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 200% 300% 400%)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 200% 300% 400% / 500%)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 -200% -300% -400%)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 -200% -300% -400% / -500%)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 g b r)']
expected: FAIL
@ -1613,12 +1427,6 @@
[Property color value 'color(from color(rec2020 0.7 0.5 0.3 / 40%) rec2020 calc(r) calc(g) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 none none none)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 none none none / none)']
expected: FAIL
[Property color value 'color(from color(rec2020 0.7 0.5 0.3) rec2020 r g none)']
expected: FAIL
@ -1661,12 +1469,6 @@
[Property color value 'color(from color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb r g b) prophoto-rgb r g b)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 0 0 0)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 0 g b / alpha)']
expected: FAIL
@ -1739,30 +1541,6 @@
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3 / 40%) prophoto-rgb r g b / 20%)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 2 3 4)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 2 3 4 / 5)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -2 -3 -4)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -2 -3 -4 / -5)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 200% 300% 400%)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 200% 300% 400% / 500%)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -200% -300% -400%)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -200% -300% -400% / -500%)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb g b r)']
expected: FAIL
@ -1817,12 +1595,6 @@
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3 / 40%) prophoto-rgb calc(r) calc(g) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb none none none)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb none none none / none)']
expected: FAIL
[Property color value 'color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb r g none)']
expected: FAIL
@ -1865,12 +1637,6 @@
[Property color value 'color(from color(from color(display-p3 0.7 0.5 0.3) display-p3 r g b) display-p3 r g b)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 0 0 0)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 0 g b / alpha)']
expected: FAIL
@ -1943,30 +1709,6 @@
[Property color value 'color(from color(display-p3 0.7 0.5 0.3 / 40%) display-p3 r g b / 20%)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 2 3 4)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 2 3 4 / 5)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 -2 -3 -4)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 -2 -3 -4 / -5)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 200% 300% 400%)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 200% 300% 400% / 500%)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 -200% -300% -400%)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 -200% -300% -400% / -500%)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 g b r)']
expected: FAIL
@ -2021,12 +1763,6 @@
[Property color value 'color(from color(display-p3 0.7 0.5 0.3 / 40%) display-p3 calc(r) calc(g) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 none none none)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 none none none / none)']
expected: FAIL
[Property color value 'color(from color(display-p3 0.7 0.5 0.3) display-p3 r g none)']
expected: FAIL
@ -2069,12 +1805,6 @@
[Property color value 'color(from color(from color(xyz 7 -20.5 100) xyz x y z) xyz x y z)']
expected: FAIL
[Property color value 'color(from color(xyz 7 -20.5 100) xyz 0 0 0)']
expected: FAIL
[Property color value 'color(from color(xyz 7 -20.5 100) xyz 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(xyz 7 -20.5 100) xyz 0 y z / alpha)']
expected: FAIL
@ -2144,12 +1874,6 @@
[Property color value 'color(from color(xyz 7 -20.5 100 / 40%) xyz calc(x) calc(y) calc(z) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(xyz 7 -20.5 100) xyz none none none)']
expected: FAIL
[Property color value 'color(from color(xyz 7 -20.5 100) xyz none none none / none)']
expected: FAIL
[Property color value 'color(from color(xyz 7 -20.5 100) xyz x y none)']
expected: FAIL
@ -2192,12 +1916,6 @@
[Property color value 'color(from color(from color(xyz-d50 7 -20.5 100) xyz-d50 x y z) xyz-d50 x y z)']
expected: FAIL
[Property color value 'color(from color(xyz-d50 7 -20.5 100) xyz-d50 0 0 0)']
expected: FAIL
[Property color value 'color(from color(xyz-d50 7 -20.5 100) xyz-d50 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(xyz-d50 7 -20.5 100) xyz-d50 0 y z / alpha)']
expected: FAIL
@ -2267,12 +1985,6 @@
[Property color value 'color(from color(xyz-d50 7 -20.5 100 / 40%) xyz-d50 calc(x) calc(y) calc(z) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(xyz-d50 7 -20.5 100) xyz-d50 none none none)']
expected: FAIL
[Property color value 'color(from color(xyz-d50 7 -20.5 100) xyz-d50 none none none / none)']
expected: FAIL
[Property color value 'color(from color(xyz-d50 7 -20.5 100) xyz-d50 x y none)']
expected: FAIL
@ -2315,12 +2027,6 @@
[Property color value 'color(from color(from color(xyz-d65 7 -20.5 100) xyz-d65 x y z) xyz-d65 x y z)']
expected: FAIL
[Property color value 'color(from color(xyz-d65 7 -20.5 100) xyz-d65 0 0 0)']
expected: FAIL
[Property color value 'color(from color(xyz-d65 7 -20.5 100) xyz-d65 0 0 0 / 0)']
expected: FAIL
[Property color value 'color(from color(xyz-d65 7 -20.5 100) xyz-d65 0 y z / alpha)']
expected: FAIL
@ -2390,12 +2096,6 @@
[Property color value 'color(from color(xyz-d65 7 -20.5 100 / 40%) xyz-d65 calc(x) calc(y) calc(z) / calc(alpha))']
expected: FAIL
[Property color value 'color(from color(xyz-d65 7 -20.5 100) xyz-d65 none none none)']
expected: FAIL
[Property color value 'color(from color(xyz-d65 7 -20.5 100) xyz-d65 none none none / none)']
expected: FAIL
[Property color value 'color(from color(xyz-d65 7 -20.5 100) xyz-d65 x y none)']
expected: FAIL
@ -2477,12 +2177,6 @@
[Property color value 'oklab(from oklab(from oklab(0.25 0.2 0.5) l a b) l a b)']
expected: FAIL
[Property color value 'oklab(from oklab(0.25 0.2 0.5) 0 0 0)']
expected: FAIL
[Property color value 'oklab(from oklab(0.25 0.2 0.5) 0 0 0 / 0)']
expected: FAIL
[Property color value 'oklab(from oklab(0.25 0.2 0.5) 0 a b / alpha)']
expected: FAIL
@ -2531,12 +2225,6 @@
[Property color value 'oklab(from oklab(0.25 0.2 0.5 / 40%) l a b / .35)']
expected: FAIL
[Property color value 'oklab(from oklab(0.7 0.45 0.3 / 40%) 2 3 4 / 500)']
expected: FAIL
[Property color value 'oklab(from oklab(0.7 0.45 0.3 / 40%) -2 -3 -4 / -500)']
expected: FAIL
[Property color value 'oklab(from oklab(0.25 0.2 0.5) l b a)']
expected: FAIL
@ -2555,12 +2243,6 @@
[Property color value 'oklab(from oklab(0.25 0.2 0.5 / 40%) calc(l) calc(a) calc(b) / calc(alpha))']
expected: FAIL
[Property color value 'oklab(from oklab(0.25 0.2 0.5) none none none)']
expected: FAIL
[Property color value 'oklab(from oklab(0.25 0.2 0.5) none none none / none)']
expected: FAIL
[Property color value 'oklab(from oklab(0.25 0.2 0.5) l a none)']
expected: FAIL
@ -2600,18 +2282,6 @@
[Property color value 'oklch(from oklch(from oklch(0.7 0.45 30) l c h) l c h)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) 0 0 0)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) 0 0 0deg)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) 0 0 0 / 0)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) 0 0 0deg / 0)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) 0 c h / alpha)']
expected: FAIL
@ -2672,18 +2342,6 @@
[Property color value 'oklch(from oklch(0.7 0.45 30 / 40%) l c h / .25)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30 / 40%) 2 3 400 / 500)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30 / 40%) -2 -3 -400 / -500)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30 / 40%) 0.5 1.2 400deg / 500)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30 / 40%) 0.5 1.2 -400deg / -500)']
expected: FAIL
[Property color value 'oklch(from oklch(.7 0.45 30) l c c / alpha)']
expected: FAIL
@ -2696,12 +2354,6 @@
[Property color value 'oklch(from oklch(0.7 0.45 30 / 40%) calc(l) calc(c) calc(h) / calc(alpha))']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) none none none)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) none none none / none)']
expected: FAIL
[Property color value 'oklch(from oklch(0.7 0.45 30) l c none)']
expected: FAIL

Просмотреть файл

@ -542,12 +542,6 @@
[e.style['color'\] = "lab(from color(display-p3 0 0 0) l a b / alpha)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(25 20 50) 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(25 20 50) 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(25 20 50) 0 a b / alpha)" should set the property value]
expected: FAIL
@ -596,12 +590,6 @@
[e.style['color'\] = "lab(from lab(25 20 50 / 40%) l a b / .35)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(0.7 45 30 / 40%) 200 300 400 / 500)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(0.7 45 30 / 40%) -200 -300 -400 / -500)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(25 20 50) l b a)" should set the property value]
expected: FAIL
@ -620,12 +608,6 @@
[e.style['color'\] = "lab(from lab(25 20 50 / 40%) calc(l) calc(a) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(25 20 50) none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(25 20 50) none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(from lab(25 20 50) l a none)" should set the property value]
expected: FAIL
@ -686,18 +668,6 @@
[e.style['color'\] = "lch(from lab(0.7 45 30) l c h / alpha)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) 0 0 0deg)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) 0 0 0deg / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) 0 c h / alpha)" should set the property value]
expected: FAIL
@ -758,18 +728,6 @@
[e.style['color'\] = "lch(from lch(0.7 45 30 / 40%) l c h / .25)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30 / 40%) 200 300 400 / 500)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30 / 40%) -200 -300 -400 / -500)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30 / 40%) 50 120 400deg / 500)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30 / 40%) 50 120 -400deg / -500)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(.7 45 30) l c c / alpha)" should set the property value]
expected: FAIL
@ -782,12 +740,6 @@
[e.style['color'\] = "lch(from lch(0.7 45 30 / 40%) calc(l) calc(c) calc(h) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(from lch(0.7 45 30) l c none)" should set the property value]
expected: FAIL
@ -845,12 +797,6 @@
[e.style['color'\] = "color(from color(from color(srgb 0.7 0.5 0.3) srgb r g b) srgb r g b)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb 0 g b / alpha)" should set the property value]
expected: FAIL
@ -923,30 +869,6 @@
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3 / 40%) srgb r g b / 20%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb 2 3 4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb 2 3 4 / 5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb -2 -3 -4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb -2 -3 -4 / -5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb 200% 300% 400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb 200% 300% 400% / 500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb -200% -300% -400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb -200% -300% -400% / -500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb g b r)" should set the property value]
expected: FAIL
@ -1001,12 +923,6 @@
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3 / 40%) srgb calc(r) calc(g) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb 0.7 0.5 0.3) srgb r g none)" should set the property value]
expected: FAIL
@ -1049,12 +965,6 @@
[e.style['color'\] = "color(from color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear r g b) srgb-linear r g b)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 0 g b / alpha)" should set the property value]
expected: FAIL
@ -1127,30 +1037,6 @@
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3 / 40%) srgb-linear r g b / 20%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 2 3 4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 2 3 4 / 5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -2 -3 -4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -2 -3 -4 / -5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 200% 300% 400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear 200% 300% 400% / 500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -200% -300% -400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear -200% -300% -400% / -500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear g b r)" should set the property value]
expected: FAIL
@ -1205,12 +1091,6 @@
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3 / 40%) srgb-linear calc(r) calc(g) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(srgb-linear 0.7 0.5 0.3) srgb-linear r g none)" should set the property value]
expected: FAIL
@ -1253,12 +1133,6 @@
[e.style['color'\] = "color(from color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb r g b) a98-rgb r g b)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 0 g b / alpha)" should set the property value]
expected: FAIL
@ -1331,30 +1205,6 @@
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3 / 40%) a98-rgb r g b / 20%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 2 3 4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 2 3 4 / 5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -2 -3 -4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -2 -3 -4 / -5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 200% 300% 400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb 200% 300% 400% / 500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -200% -300% -400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb -200% -300% -400% / -500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb g b r)" should set the property value]
expected: FAIL
@ -1409,12 +1259,6 @@
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3 / 40%) a98-rgb calc(r) calc(g) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(a98-rgb 0.7 0.5 0.3) a98-rgb r g none)" should set the property value]
expected: FAIL
@ -1457,12 +1301,6 @@
[e.style['color'\] = "color(from color(from color(rec2020 0.7 0.5 0.3) rec2020 r g b) rec2020 r g b)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 0 g b / alpha)" should set the property value]
expected: FAIL
@ -1535,30 +1373,6 @@
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3 / 40%) rec2020 r g b / 20%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 2 3 4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 2 3 4 / 5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 -2 -3 -4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 -2 -3 -4 / -5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 200% 300% 400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 200% 300% 400% / 500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 -200% -300% -400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 -200% -300% -400% / -500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 g b r)" should set the property value]
expected: FAIL
@ -1613,12 +1427,6 @@
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3 / 40%) rec2020 calc(r) calc(g) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(rec2020 0.7 0.5 0.3) rec2020 r g none)" should set the property value]
expected: FAIL
@ -1661,12 +1469,6 @@
[e.style['color'\] = "color(from color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb r g b) prophoto-rgb r g b)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 0 g b / alpha)" should set the property value]
expected: FAIL
@ -1739,30 +1541,6 @@
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3 / 40%) prophoto-rgb r g b / 20%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 2 3 4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 2 3 4 / 5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -2 -3 -4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -2 -3 -4 / -5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 200% 300% 400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb 200% 300% 400% / 500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -200% -300% -400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb -200% -300% -400% / -500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb g b r)" should set the property value]
expected: FAIL
@ -1817,12 +1595,6 @@
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3 / 40%) prophoto-rgb calc(r) calc(g) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(prophoto-rgb 0.7 0.5 0.3) prophoto-rgb r g none)" should set the property value]
expected: FAIL
@ -1865,12 +1637,6 @@
[e.style['color'\] = "color(from color(from color(display-p3 0.7 0.5 0.3) display-p3 r g b) display-p3 r g b)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 0 g b / alpha)" should set the property value]
expected: FAIL
@ -1943,30 +1709,6 @@
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3 / 40%) display-p3 r g b / 20%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 2 3 4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 2 3 4 / 5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 -2 -3 -4)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 -2 -3 -4 / -5)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 200% 300% 400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 200% 300% 400% / 500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 -200% -300% -400%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 -200% -300% -400% / -500%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 g b r)" should set the property value]
expected: FAIL
@ -2021,12 +1763,6 @@
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3 / 40%) display-p3 calc(r) calc(g) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(display-p3 0.7 0.5 0.3) display-p3 r g none)" should set the property value]
expected: FAIL
@ -2069,12 +1805,6 @@
[e.style['color'\] = "color(from color(from color(xyz 7 -20.5 100) xyz x y z) xyz x y z)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz 7 -20.5 100) xyz 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz 7 -20.5 100) xyz 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz 7 -20.5 100) xyz 0 y z / alpha)" should set the property value]
expected: FAIL
@ -2144,12 +1874,6 @@
[e.style['color'\] = "color(from color(xyz 7 -20.5 100 / 40%) xyz calc(x) calc(y) calc(z) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz 7 -20.5 100) xyz none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz 7 -20.5 100) xyz none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz 7 -20.5 100) xyz x y none)" should set the property value]
expected: FAIL
@ -2192,12 +1916,6 @@
[e.style['color'\] = "color(from color(from color(xyz-d50 7 -20.5 100) xyz-d50 x y z) xyz-d50 x y z)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d50 7 -20.5 100) xyz-d50 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d50 7 -20.5 100) xyz-d50 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d50 7 -20.5 100) xyz-d50 0 y z / alpha)" should set the property value]
expected: FAIL
@ -2267,12 +1985,6 @@
[e.style['color'\] = "color(from color(xyz-d50 7 -20.5 100 / 40%) xyz-d50 calc(x) calc(y) calc(z) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d50 7 -20.5 100) xyz-d50 none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d50 7 -20.5 100) xyz-d50 none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d50 7 -20.5 100) xyz-d50 x y none)" should set the property value]
expected: FAIL
@ -2315,12 +2027,6 @@
[e.style['color'\] = "color(from color(from color(xyz-d65 7 -20.5 100) xyz-d65 x y z) xyz-d65 x y z)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d65 7 -20.5 100) xyz-d65 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d65 7 -20.5 100) xyz-d65 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d65 7 -20.5 100) xyz-d65 0 y z / alpha)" should set the property value]
expected: FAIL
@ -2390,12 +2096,6 @@
[e.style['color'\] = "color(from color(xyz-d65 7 -20.5 100 / 40%) xyz-d65 calc(x) calc(y) calc(z) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d65 7 -20.5 100) xyz-d65 none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d65 7 -20.5 100) xyz-d65 none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "color(from color(xyz-d65 7 -20.5 100) xyz-d65 x y none)" should set the property value]
expected: FAIL
@ -2447,12 +2147,6 @@
[e.style['color'\] = "oklab(from oklab(from oklab(0.25 0.2 0.5) l a b) l a b)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5) 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5) 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5) 0 a b / alpha)" should set the property value]
expected: FAIL
@ -2501,12 +2195,6 @@
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5 / 40%) l a b / .35)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.7 0.45 0.3 / 40%) 2 3 4 / 500)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.7 0.45 0.3 / 40%) -2 -3 -4 / -500)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5) l b a)" should set the property value]
expected: FAIL
@ -2525,12 +2213,6 @@
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5 / 40%) calc(l) calc(a) calc(b) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5) none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5) none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(from oklab(0.25 0.2 0.5) l a none)" should set the property value]
expected: FAIL
@ -2570,18 +2252,6 @@
[e.style['color'\] = "oklch(from oklch(from oklch(0.7 0.45 30) l c h) l c h)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) 0 0 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) 0 0 0deg)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) 0 0 0 / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) 0 0 0deg / 0)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) 0 c h / alpha)" should set the property value]
expected: FAIL
@ -2642,18 +2312,6 @@
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30 / 40%) l c h / .25)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30 / 40%) 2 3 400 / 500)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30 / 40%) -2 -3 -400 / -500)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30 / 40%) 0.5 1.2 400deg / 500)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30 / 40%) 0.5 1.2 -400deg / -500)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(.7 0.45 30) l c c / alpha)" should set the property value]
expected: FAIL
@ -2666,12 +2324,6 @@
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30 / 40%) calc(l) calc(c) calc(h) / calc(alpha))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) none none none)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) none none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(from oklch(0.7 0.45 30) l c none)" should set the property value]
expected: FAIL