Oriol Brufau 2024-03-18 14:52:40 +01:00 committed by GitHub
parent 94c1f2c992
commit c07484fcb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 235 additions and 491 deletions

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use style::color::AbsoluteColor;
use style::color::{AbsoluteColor, ColorSpace};
use style::values::animated::{Animate, Procedure, ToAnimatedValue};
fn interpolate_color(from: AbsoluteColor, to: AbsoluteColor, progress: f64) -> AbsoluteColor {
@ -14,28 +14,40 @@ fn interpolate_color(from: AbsoluteColor, to: AbsoluteColor, progress: f64) -> A
)
}
fn srgb_legacy_from_floats(red: f32, green: f32, blue: f32, alpha: f32) -> AbsoluteColor {
AbsoluteColor::new(ColorSpace::Srgb, red, green, blue, alpha).into_srgb_legacy()
}
// Color
#[test]
fn test_rgba_color_interepolation_preserves_transparent() {
assert_eq!(
interpolate_color(
AbsoluteColor::transparent(),
AbsoluteColor::transparent(),
0.5
),
AbsoluteColor::transparent()
interpolate_color(AbsoluteColor::TRANSPARENT, AbsoluteColor::TRANSPARENT, 0.5),
AbsoluteColor::TRANSPARENT
);
}
#[test]
fn test_rgba_color_interepolation_alpha() {
fn test_rgba_color_interepolation_alpha_1() {
assert_eq!(
interpolate_color(
AbsoluteColor::srgb(0.6, 0.0, 0.0, 0.4),
AbsoluteColor::srgb(0.0, 0.6, 0.0, 0.8),
AbsoluteColor::srgb_legacy(150, 0, 0, 0.4),
AbsoluteColor::srgb_legacy(0, 150, 0, 0.8),
0.5
),
AbsoluteColor::srgb(0.2, 0.4, 0.0, 0.6)
AbsoluteColor::srgb_legacy(50, 100, 0, 0.6)
);
}
#[test]
fn test_rgba_color_interepolation_alpha_2() {
assert_eq!(
interpolate_color(
srgb_legacy_from_floats(0.6, 0.0, 0.0, 0.4),
srgb_legacy_from_floats(0.0, 0.6, 0.0, 0.8),
0.5
),
srgb_legacy_from_floats(0.2, 0.4, 0.0, 0.6)
);
}
@ -43,13 +55,15 @@ fn test_rgba_color_interepolation_alpha() {
fn test_rgba_color_interepolation_out_of_range_1() {
// Some cubic-bezier functions produce values that are out of range [0, 1].
// Unclamped cases.
// Note `AbsoluteColor::srgb_legacy` doesn't accept out of range values,
// so we only test with `srgb_legacy_from_floats`.
assert_eq!(
interpolate_color(
AbsoluteColor::srgb(0.3, 0.0, 0.0, 0.4),
AbsoluteColor::srgb(0.0, 1.0, 0.0, 0.6),
srgb_legacy_from_floats(0.3, 0.0, 0.0, 0.4),
srgb_legacy_from_floats(0.0, 1.0, 0.0, 0.6),
-0.5
),
AbsoluteColor::srgb(0.6, -1.0, 0.0, 0.3)
srgb_legacy_from_floats(0.6, -1.0, 0.0, 0.3)
);
}
@ -57,11 +71,11 @@ fn test_rgba_color_interepolation_out_of_range_1() {
fn test_rgba_color_interepolation_out_of_range_2() {
assert_eq!(
interpolate_color(
AbsoluteColor::srgb(1.0, 0.0, 0.0, 0.6),
AbsoluteColor::srgb(0.0, 0.3, 0.0, 0.4),
srgb_legacy_from_floats(1.0, 0.0, 0.0, 0.6),
srgb_legacy_from_floats(0.0, 0.3, 0.0, 0.4),
1.5
),
AbsoluteColor::srgb(-1.0, 0.6, 0.0, 0.3)
srgb_legacy_from_floats(-1.0, 0.6, 0.0, 0.3)
);
}
@ -69,11 +83,11 @@ fn test_rgba_color_interepolation_out_of_range_2() {
fn test_rgba_color_interepolation_out_of_range_clamped_1() {
assert_eq!(
interpolate_color(
AbsoluteColor::srgb(1.0, 0.0, 0.0, 0.8),
AbsoluteColor::srgb(0.0, 1.0, 0.0, 0.2),
srgb_legacy_from_floats(1.0, 0.0, 0.0, 0.8),
srgb_legacy_from_floats(0.0, 1.0, 0.0, 0.2),
-0.5
),
AbsoluteColor::srgb(1.2, -0.1, 0.0, 1.0)
srgb_legacy_from_floats(1.2, -0.1, 0.0, 1.0)
);
}
@ -81,10 +95,10 @@ fn test_rgba_color_interepolation_out_of_range_clamped_1() {
fn test_rgba_color_interepolation_out_of_range_clamped_2() {
assert_eq!(
interpolate_color(
AbsoluteColor::srgb(1.0, 0.0, 0.0, 0.8),
AbsoluteColor::srgb(0.0, 1.0, 0.0, 0.2),
srgb_legacy_from_floats(1.0, 0.0, 0.0, 0.8),
srgb_legacy_from_floats(0.0, 1.0, 0.0, 0.2),
1.5
),
AbsoluteColor::srgb(-0.4, 0.3, 0.0, 0.0)
srgb_legacy_from_floats(-0.4, 0.3, 0.0, 0.0)
);
}

View file

@ -14,6 +14,7 @@ use style::media_queries::{Device, MediaType};
use style::properties::{CustomDeclaration, CustomDeclarationValue};
use style::rule_tree::CascadeLevel;
use style::stylesheets::layer_rule::LayerOrder;
use style::stylist::Stylist;
use test::{self, Bencher};
fn cascade(
@ -37,7 +38,8 @@ fn cascade(
Size2D::new(800., 600.),
Scale::new(1.0),
);
let mut builder = CustomPropertiesBuilder::new(inherited, &device);
let stylist = Stylist::new(device, QuirksMode::NoQuirks);
let mut builder = CustomPropertiesBuilder::new(inherited, &stylist);
for declaration in &declarations {
builder.cascade(

View file

@ -74,7 +74,6 @@ fn parse_rules(lock: &SharedRwLock, css: &str) -> Vec<(StyleSource, CascadeLevel
None,
Some(&ErrorringErrorReporter),
QuirksMode::NoQuirks,
0,
AllowImportRules::Yes,
);
let guard = s.shared_lock.read();

View file

@ -107,33 +107,32 @@ fn test_report_error_stylesheet() {
None,
Some(&error_reporter),
QuirksMode::NoQuirks,
5,
AllowImportRules::Yes,
);
error_reporter.assert_messages_contain(&[
(
8,
3,
18,
"Unsupported property declaration: 'display: invalid;'",
),
(
9,
4,
43,
"Unsupported property declaration: 'background-image:",
), // FIXME: column should be around 56
(10, 17, "Unsupported property declaration: 'invalid: true;'"),
(12, 28, "Invalid media rule"),
(5, 17, "Unsupported property declaration: 'invalid: true;'"),
(7, 28, "Invalid media rule"),
// When @counter-style is supported, this should be replaced with two errors
(14, 19, "Invalid rule: '@counter-style "),
(9, 19, "Invalid rule: '@counter-style "),
// When @font-feature-values is supported, this should be replaced with two errors
(15, 25, "Invalid rule: '@font-feature-values "),
(16, 13, "Invalid rule: '@invalid'"),
(17, 29, "Invalid rule: '@invalid'"),
(18, 34, "Invalid rule: '@supports "),
(19, 26, "Invalid keyframe rule: 'from invalid '"),
(10, 25, "Invalid rule: '@font-feature-values "),
(11, 13, "Invalid rule: '@invalid'"),
(12, 29, "Invalid rule: '@invalid'"),
(13, 34, "Invalid rule: '@supports "),
(14, 26, "Invalid keyframe rule: 'from invalid '"),
(
19,
14,
52,
"Unsupported keyframe property declaration: 'margin: 0 invalid 0;'",
),
@ -165,7 +164,6 @@ fn test_no_report_unrecognized_vendor_properties() {
None,
Some(&error_reporter),
QuirksMode::NoQuirks,
0,
AllowImportRules::Yes,
);
@ -199,7 +197,6 @@ fn test_source_map_url() {
None,
None,
QuirksMode::NoQuirks,
0,
AllowImportRules::Yes,
);
let url_opt = stylesheet.contents.source_map_url.read();
@ -227,7 +224,6 @@ fn test_source_url() {
None,
None,
QuirksMode::NoQuirks,
0,
AllowImportRules::Yes,
);
let url_opt = stylesheet.contents.source_url.read();

View file

@ -1,2 +0,0 @@
[malformed-decl-block-001.xht]
expected: FAIL

View file

@ -325,30 +325,3 @@
[Web Animations: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions: property <color> from [rgb(0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions with transition: all: property <color> from [rgb(0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Animations: property <color> from [rgb(0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions: property <color> from [color(srgb 0 0 0)\] to [rgb(255 255 255)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions with transition: all: property <color> from [color(srgb 0 0 0)\] to [rgb(255 255 255)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Animations: property <color> from [color(srgb 0 0 0)\] to [rgb(255 255 255)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions with transition: all: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Animations: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lab-l-over-100-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lab-l-over-100-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lch-l-over-100-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lch-l-over-100-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklab-l-over-1-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklab-l-over-1-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklch-l-over-1-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklch-l-over-1-2.html]
expected: FAIL

View file

@ -1,10 +1,4 @@
[color-computed-lab.html]
[Property color value 'lab(400 0 10/50%)']
expected: FAIL
[Property color value 'lab(calc(50 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'oklab(20 0 10/0.5)']
expected: FAIL
@ -38,9 +32,6 @@
[Property color value 'oklab(20 none none / none)']
expected: FAIL
[Property color value 'lch(calc(50 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'oklch(100 230 0deg / 0.5)']
expected: FAIL
@ -104,18 +95,9 @@
[Property color value 'oklch(20% 0 10/0.5)']
expected: FAIL
[Property color value 'oklab(4 0 0.1/50%)']
expected: FAIL
[Property color value 'oklab(calc(0.5 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'oklab(20% 0 0.1/0.5)']
expected: FAIL
[Property color value 'oklch(calc(0.5 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'lab(calc(NaN) 0 0)']
expected: FAIL

View file

@ -1,16 +1,4 @@
[color-valid-color-mix-function.html]
[e.style['color'\] = "color-mix(in hsl, oklab(100 0.365 -0.16) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in hsl, oklch(100 0.399 336.3) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in hwb, oklab(100 0.365 -0.16) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in hwb, oklch(100 0.399 336.3) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in oklch, oklch(10 20 30deg), oklch(50 60 70deg))" should set the property value]
expected: FAIL

View file

@ -1,10 +1,4 @@
[color-valid-lab.html]
[e.style['color'\] = "lab(400 0 10/50%)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(calc(50 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(20 0 10/0.5)" should set the property value]
expected: FAIL
@ -38,9 +32,6 @@
[e.style['color'\] = "oklab(20 none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(calc(50 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(100 230 0deg / 0.5)" should set the property value]
expected: FAIL
@ -92,15 +83,6 @@
[e.style['color'\] = "oklch(20 none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(4 0 0.1/50%)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(calc(0.5 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(calc(0.5 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(calc(infinity) 0 0)" should set the property value]
expected: FAIL

View file

@ -1,2 +0,0 @@
[at-supports-048.html]
expected: FAIL

View file

@ -1,33 +0,0 @@
[linear-timing-functions-syntax.tentative.html]
[e.style['animation-timing-function'\] = "linear(0 0%, 1 100%)" should set the property value]
expected: FAIL
[e.style['animation-timing-function'\] = "linear(0 0% 50%, 1 50% 100%)" should set the property value]
expected: FAIL
[e.style['animation-timing-function'\] = "linear(0, 0.5 25% 75%, 1 100% 100%)" should set the property value]
expected: FAIL
[e.style['animation-timing-function'\] = "linear(0, 1.3, 1, 0.92, 1, 0.99, 1, 1.004, 0.998, 1 100% 100%)" should set the property value]
expected: FAIL
[Property animation-timing-function value 'linear(0, 1)']
expected: FAIL
[Property animation-timing-function value 'linear(0 calc(0%), 0 calc(100%))']
expected: FAIL
[Property animation-timing-function value 'linear(0 calc(50% - 50%), 0 calc(50% + 50%))']
expected: FAIL
[Property animation-timing-function value 'linear(0 calc(min(50%, 60%)), 0 100%)']
expected: FAIL
[Property animation-timing-function value 'linear(0 0% 50%, 1 50% 100%)']
expected: FAIL
[Property animation-timing-function value 'linear(0, 0.5 25% 75%, 1 100% 100%)']
expected: FAIL
[Property animation-timing-function value 'linear(0, 1.3, 1, 0.92, 1, 0.99, 1, 0.998, 1 100% 100%)']
expected: FAIL

View file

@ -10,12 +10,3 @@
[e.style['transition-timing-function'\] = "steps(2, jump-end)" should set the property value]
expected: FAIL
[e.style['transition-timing-function'\] = "linear(0 0%, 0.5 50%, 1 100%)" should set the property value]
expected: FAIL
[e.style['transition-timing-function'\] = "linear(0 0%, 10 10%, 10 50%, 25.4 75%, 100 100%)" should set the property value]
expected: FAIL
[e.style['transition-timing-function'\] = "linear(0 0%, 1 100%)" should set the property value]
expected: FAIL

View file

@ -1,3 +0,0 @@
[transition-001.html]
[parse '1s width linear(0, .5 10% 20%, 1, .5 50%, 1) 2s']
expected: FAIL

View file

@ -10,6 +10,3 @@
[Property letter-spacing value 'clamp(10px, 20px, 30px)' computes to '20px']
expected: FAIL
[Property letter-spacing value 'calc(0px - clamp(30px, 100px, 20px))']
expected: FAIL

View file

@ -1,12 +0,0 @@
[clamp-length-serialize.html]
[e.style['letter-spacing'\] = "calc(0px - clamp(30px, 100px, 20px))" should set the property value]
expected: FAIL
[e.style['letter-spacing'\] = "calc(calc(0px - clamp(30px, 100px, 20px)))" should set the property value]
expected: FAIL
[e.style['letter-spacing'\] = "calc(0px - clamp(1px, 1em, 1vh))" should set the property value]
expected: FAIL
[e.style['letter-spacing'\] = "calc(calc(0px - clamp(1px, 1em, 1vh)))" should set the property value]
expected: FAIL

View file

@ -1,6 +1,3 @@
[revert-in-fallback.html]
[var(--unknown, revert) in custom property]
expected: FAIL
[var(--unknown, revert-layer) in shorthand observed via longhand]
expected: FAIL

View file

@ -1,2 +0,0 @@
[wide-keyword-fallback-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[malformed-decl-block-001.xht]
expected: FAIL

View file

@ -322,30 +322,3 @@
[Web Animations: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions: property <color> from [rgb(0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions with transition: all: property <color> from [rgb(0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Animations: property <color> from [rgb(0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions: property <color> from [color(srgb 0 0 0)\] to [rgb(255 255 255)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions with transition: all: property <color> from [color(srgb 0 0 0)\] to [rgb(255 255 255)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Animations: property <color> from [color(srgb 0 0 0)\] to [rgb(255 255 255)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Transitions with transition: all: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL
[CSS Animations: property <color> from [color(srgb 0 0 0)\] to [color(srgb 1 1 1)\] at (1.5) should be [oklab(1 0 0)\]]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lab-l-over-100-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lab-l-over-100-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lch-l-over-100-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lch-l-over-100-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklab-l-over-1-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklab-l-over-1-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklch-l-over-1-1.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[oklch-l-over-1-2.html]
expected: FAIL

View file

@ -1,10 +1,4 @@
[color-computed-lab.html]
[Property color value 'lab(400 0 10/50%)']
expected: FAIL
[Property color value 'lab(calc(50 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'oklab(20 0 10/0.5)']
expected: FAIL
@ -38,9 +32,6 @@
[Property color value 'oklab(20 none none / none)']
expected: FAIL
[Property color value 'lch(calc(50 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'oklch(100 230 0deg / 0.5)']
expected: FAIL
@ -104,18 +95,9 @@
[Property color value 'oklch(20% 0 10/0.5)']
expected: FAIL
[Property color value 'oklab(4 0 0.1/50%)']
expected: FAIL
[Property color value 'oklab(calc(0.5 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'oklab(20% 0 0.1/0.5)']
expected: FAIL
[Property color value 'oklch(calc(0.5 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))']
expected: FAIL
[Property color value 'lab(calc(NaN) 0 0)']
expected: FAIL

View file

@ -1,16 +1,4 @@
[color-valid-color-mix-function.html]
[e.style['color'\] = "color-mix(in hsl, oklab(100 0.365 -0.16) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in hsl, oklch(100 0.399 336.3) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in hwb, oklab(100 0.365 -0.16) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in hwb, oklch(100 0.399 336.3) 100%, rgb(0, 0, 0) 0%)" should set the property value]
expected: FAIL
[e.style['color'\] = "color-mix(in oklch, oklch(10 20 30deg), oklch(50 60 70deg))" should set the property value]
expected: FAIL

View file

@ -1,10 +1,4 @@
[color-valid-lab.html]
[e.style['color'\] = "lab(400 0 10/50%)" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(calc(50 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(20 0 10/0.5)" should set the property value]
expected: FAIL
@ -38,9 +32,6 @@
[e.style['color'\] = "oklab(20 none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "lch(calc(50 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(100 230 0deg / 0.5)" should set the property value]
expected: FAIL
@ -92,15 +83,6 @@
[e.style['color'\] = "oklch(20 none none / none)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(4 0 0.1/50%)" should set the property value]
expected: FAIL
[e.style['color'\] = "oklab(calc(0.5 * 3) calc(0.5 - 1) calc(1.5) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "oklch(calc(0.5 * 3) calc(0.5 - 1) calc(20deg * 2) / calc(-0.5 + 1))" should set the property value]
expected: FAIL
[e.style['color'\] = "lab(calc(infinity) 0 0)" should set the property value]
expected: FAIL

View file

@ -1,2 +0,0 @@
[at-supports-048.html]
expected: FAIL

View file

@ -1,33 +0,0 @@
[linear-timing-functions-syntax.tentative.html]
[e.style['animation-timing-function'\] = "linear(0 0%, 1 100%)" should set the property value]
expected: FAIL
[e.style['animation-timing-function'\] = "linear(0 0% 50%, 1 50% 100%)" should set the property value]
expected: FAIL
[e.style['animation-timing-function'\] = "linear(0, 0.5 25% 75%, 1 100% 100%)" should set the property value]
expected: FAIL
[e.style['animation-timing-function'\] = "linear(0, 1.3, 1, 0.92, 1, 0.99, 1, 1.004, 0.998, 1 100% 100%)" should set the property value]
expected: FAIL
[Property animation-timing-function value 'linear(0, 1)']
expected: FAIL
[Property animation-timing-function value 'linear(0 calc(0%), 0 calc(100%))']
expected: FAIL
[Property animation-timing-function value 'linear(0 calc(50% - 50%), 0 calc(50% + 50%))']
expected: FAIL
[Property animation-timing-function value 'linear(0 calc(min(50%, 60%)), 0 100%)']
expected: FAIL
[Property animation-timing-function value 'linear(0 0% 50%, 1 50% 100%)']
expected: FAIL
[Property animation-timing-function value 'linear(0, 0.5 25% 75%, 1 100% 100%)']
expected: FAIL
[Property animation-timing-function value 'linear(0, 1.3, 1, 0.92, 1, 0.99, 1, 0.998, 1 100% 100%)']
expected: FAIL

View file

@ -10,12 +10,3 @@
[e.style['transition-timing-function'\] = "steps(2, jump-start)" should set the property value]
expected: FAIL
[e.style['transition-timing-function'\] = "linear(0 0%, 0.5 50%, 1 100%)" should set the property value]
expected: FAIL
[e.style['transition-timing-function'\] = "linear(0 0%, 10 10%, 10 50%, 25.4 75%, 100 100%)" should set the property value]
expected: FAIL
[e.style['transition-timing-function'\] = "linear(0 0%, 1 100%)" should set the property value]
expected: FAIL

View file

@ -1,3 +0,0 @@
[transition-001.html]
[parse '1s width linear(0, .5 10% 20%, 1, .5 50%, 1) 2s']
expected: FAIL

View file

@ -1,3 +0,0 @@
[clamp-length-computed.html]
[Property letter-spacing value 'calc(0px - clamp(30px, 100px, 20px))']
expected: FAIL

View file

@ -1,12 +0,0 @@
[clamp-length-serialize.html]
[e.style['letter-spacing'\] = "calc(0px - clamp(30px, 100px, 20px))" should set the property value]
expected: FAIL
[e.style['letter-spacing'\] = "calc(calc(0px - clamp(30px, 100px, 20px)))" should set the property value]
expected: FAIL
[e.style['letter-spacing'\] = "calc(0px - clamp(1px, 1em, 1vh))" should set the property value]
expected: FAIL
[e.style['letter-spacing'\] = "calc(calc(0px - clamp(1px, 1em, 1vh)))" should set the property value]
expected: FAIL

View file

@ -1,3 +0,0 @@
[revert-in-fallback.html]
[var(--unknown, revert) in custom property]
expected: FAIL

View file

@ -1,2 +0,0 @@
[wide-keyword-fallback-002.html]
expected: FAIL