From a4c6c205d2d26dd16ac1cd03e73a0262eb4c12f4 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Fri, 31 Jan 2025 08:37:59 -0800 Subject: [PATCH] Avoid starting transitions if values can't be interpolated (#35234) Bumps Stylo to https://github.com/servo/stylo/pull/115 This is mainly to avoid firing events like `transitionstart` when the transition isn't actually allowed. Signed-off-by: Oriol Brufau --- Cargo.lock | 24 +++++------ tests/wpt/meta/MANIFEST.json | 7 ++++ .../transition-behavior-events.html | 41 +++++++++++++++++++ 3 files changed, 60 insertions(+), 12 deletions(-) create mode 100644 tests/wpt/tests/css/css-transitions/transition-behavior-events.html diff --git a/Cargo.lock b/Cargo.lock index f87aee9d845..53a8d03fd5c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1659,7 +1659,7 @@ dependencies = [ [[package]] name = "dom" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "bitflags 2.8.0", "malloc_size_of", @@ -4424,7 +4424,7 @@ dependencies = [ [[package]] name = "malloc_size_of" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "app_units", "cssparser", @@ -6437,7 +6437,7 @@ dependencies = [ [[package]] name = "selectors" version = "0.26.0" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "bitflags 2.8.0", "cssparser", @@ -6722,7 +6722,7 @@ dependencies = [ [[package]] name = "servo_arc" version = "0.4.0" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "serde", "stable_deref_trait", @@ -6731,7 +6731,7 @@ dependencies = [ [[package]] name = "servo_atoms" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "string_cache", "string_cache_codegen", @@ -7100,7 +7100,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "static_prefs" version = "0.1.0" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" [[package]] name = "strck" @@ -7181,7 +7181,7 @@ dependencies = [ [[package]] name = "style" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "app_units", "arrayvec", @@ -7239,7 +7239,7 @@ dependencies = [ [[package]] name = "style_config" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "lazy_static", ] @@ -7247,7 +7247,7 @@ dependencies = [ [[package]] name = "style_derive" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "darling", "proc-macro2", @@ -7277,7 +7277,7 @@ dependencies = [ [[package]] name = "style_traits" version = "0.0.1" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "app_units", "bitflags 2.8.0", @@ -7672,7 +7672,7 @@ dependencies = [ [[package]] name = "to_shmem" version = "0.1.0" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "cssparser", "servo_arc", @@ -7685,7 +7685,7 @@ dependencies = [ [[package]] name = "to_shmem_derive" version = "0.1.0" -source = "git+https://github.com/servo/stylo?branch=2025-01-02#b2aff706472aa08db61ad1cae0e3dd54306f6fdf" +source = "git+https://github.com/servo/stylo?branch=2025-01-02#06e3f12281781e087d06f03ed506eb6c9355c3c1" dependencies = [ "darling", "proc-macro2", diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json index cbb5c50fdeb..d0f6279473e 100644 --- a/tests/wpt/meta/MANIFEST.json +++ b/tests/wpt/meta/MANIFEST.json @@ -591977,6 +591977,13 @@ {} ] ], + "transition-behavior-events.html": [ + "e3e66c12dab0cac73657e992244e4adb9e831263", + [ + null, + {} + ] + ], "transition-behavior.html": [ "4c2ddb3c63baa3e146af1427293c7dedd8b8564c", [ diff --git a/tests/wpt/tests/css/css-transitions/transition-behavior-events.html b/tests/wpt/tests/css/css-transitions/transition-behavior-events.html new file mode 100644 index 00000000000..e3e66c12dab --- /dev/null +++ b/tests/wpt/tests/css/css-transitions/transition-behavior-events.html @@ -0,0 +1,41 @@ + +CSS transition event dispatch depending on transition-behavior + + + + + +
+
+ + +