diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0641a84..3f669833 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: - nightly - beta - stable - - 1.66.0 + - 1.68.0 features: - - --features dummy_match_byte diff --git a/Cargo.toml b/Cargo.toml index 90e0b573..35b91a60 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ readme = "README.md" keywords = ["css", "syntax", "parser"] license = "MPL-2.0" edition = "2018" -rust-version = "1.66" +rust-version = "1.68" exclude = ["src/css-parsing-tests/**", "src/big-data-url.css"] diff --git a/src/color.rs b/src/color.rs index 978936e0..472c6478 100644 --- a/src/color.rs +++ b/src/color.rs @@ -85,6 +85,8 @@ pub enum PredefinedColorSpace { SrgbLinear, /// DisplayP3, + /// + DisplayP3Linear, /// A98Rgb, /// @@ -107,6 +109,7 @@ impl PredefinedColorSpace { "srgb" => Self::Srgb, "srgb-linear" => Self::SrgbLinear, "display-p3" => Self::DisplayP3, + "display-p3-linear" => Self::DisplayP3Linear, "a98-rgb" => Self::A98Rgb, "prophoto-rgb" => Self::ProphotoRgb, "rec2020" => Self::Rec2020, @@ -126,6 +129,7 @@ impl ToCss for PredefinedColorSpace { Self::Srgb => "srgb", Self::SrgbLinear => "srgb-linear", Self::DisplayP3 => "display-p3", + Self::DisplayP3Linear => "display-p3-linear", Self::A98Rgb => "a98-rgb", Self::ProphotoRgb => "prophoto-rgb", Self::Rec2020 => "rec2020",