LibWeb: Include z-index in transition: all

Gains us 37 WPT tests.
This commit is contained in:
Callum Law 2025-09-11 16:06:32 +12:00 committed by Tim Ledbetter
parent 0209e502cf
commit 62176391dd
3 changed files with 41 additions and 45 deletions

View File

@ -1244,10 +1244,8 @@ static void compute_transitioned_properties(ComputedProperties const& style, DOM
auto keyword = property_value->as_keyword().keyword();
if (keyword == Keyword::None)
continue;
if (keyword == Keyword::All) {
for (auto prop = first_property_id; prop != last_property_id; prop = static_cast<PropertyID>(to_underlying(prop) + 1))
properties_for_this_transition.append(prop);
}
if (keyword == Keyword::All)
properties_for_this_transition = expanded_longhands_for_shorthand(PropertyID::All);
} else {
auto maybe_property = property_id_from_string(property_value->as_custom_ident().custom_ident());
if (!maybe_property.has_value())

View File

@ -2,20 +2,19 @@ Harness status: OK
Found 250 tests
215 Pass
35 Fail
250 Pass
Pass CSS Transitions: property <z-index> from neutral to [5] at (-0.3) should be [-4]
Pass CSS Transitions: property <z-index> from neutral to [5] at (0) should be [-2]
Pass CSS Transitions: property <z-index> from neutral to [5] at (0.3) should be [0]
Pass CSS Transitions: property <z-index> from neutral to [5] at (0.6) should be [2]
Pass CSS Transitions: property <z-index> from neutral to [5] at (1) should be [5]
Pass CSS Transitions: property <z-index> from neutral to [5] at (1.5) should be [9]
Fail CSS Transitions with transition: all: property <z-index> from neutral to [5] at (-0.3) should be [-4]
Fail CSS Transitions with transition: all: property <z-index> from neutral to [5] at (0) should be [-2]
Fail CSS Transitions with transition: all: property <z-index> from neutral to [5] at (0.3) should be [0]
Fail CSS Transitions with transition: all: property <z-index> from neutral to [5] at (0.6) should be [2]
Pass CSS Transitions with transition: all: property <z-index> from neutral to [5] at (-0.3) should be [-4]
Pass CSS Transitions with transition: all: property <z-index> from neutral to [5] at (0) should be [-2]
Pass CSS Transitions with transition: all: property <z-index> from neutral to [5] at (0.3) should be [0]
Pass CSS Transitions with transition: all: property <z-index> from neutral to [5] at (0.6) should be [2]
Pass CSS Transitions with transition: all: property <z-index> from neutral to [5] at (1) should be [5]
Fail CSS Transitions with transition: all: property <z-index> from neutral to [5] at (1.5) should be [9]
Pass CSS Transitions with transition: all: property <z-index> from neutral to [5] at (1.5) should be [9]
Pass CSS Animations: property <z-index> from neutral to [5] at (-0.3) should be [-4]
Pass CSS Animations: property <z-index> from neutral to [5] at (0) should be [-2]
Pass CSS Animations: property <z-index> from neutral to [5] at (0.3) should be [0]
@ -35,9 +34,9 @@ Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index>
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [initial] to [5] at (0.6) should be [5]
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [initial] to [5] at (1) should be [5]
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [initial] to [5] at (1.5) should be [5]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (-0.3) should be [initial]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (0) should be [initial]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (0.3) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (-0.3) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (0) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (0.3) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (0.5) should be [5]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (0.6) should be [5]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [initial] to [5] at (1) should be [5]
@ -76,12 +75,12 @@ Pass CSS Transitions: property <z-index> from [inherit] to [5] at (0.3) should b
Pass CSS Transitions: property <z-index> from [inherit] to [5] at (0.6) should be [9]
Pass CSS Transitions: property <z-index> from [inherit] to [5] at (1) should be [5]
Pass CSS Transitions: property <z-index> from [inherit] to [5] at (1.5) should be [0]
Fail CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (-0.3) should be [18]
Fail CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (0) should be [15]
Fail CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (0.3) should be [12]
Fail CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (0.6) should be [9]
Pass CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (-0.3) should be [18]
Pass CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (0) should be [15]
Pass CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (0.3) should be [12]
Pass CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (0.6) should be [9]
Pass CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (1) should be [5]
Fail CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (1.5) should be [0]
Pass CSS Transitions with transition: all: property <z-index> from [inherit] to [5] at (1.5) should be [0]
Pass CSS Animations: property <z-index> from [inherit] to [5] at (-0.3) should be [18]
Pass CSS Animations: property <z-index> from [inherit] to [5] at (0) should be [15]
Pass CSS Animations: property <z-index> from [inherit] to [5] at (0.3) should be [12]
@ -101,9 +100,9 @@ Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index>
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [unset] to [5] at (0.6) should be [5]
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [unset] to [5] at (1) should be [5]
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [unset] to [5] at (1.5) should be [5]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (-0.3) should be [unset]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (0) should be [unset]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (0.3) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (-0.3) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (0) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (0.3) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (0.5) should be [5]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (0.6) should be [5]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [unset] to [5] at (1) should be [5]
@ -142,12 +141,12 @@ Pass CSS Transitions: property <z-index> from [-5] to [5] at (0.3) should be [-2
Pass CSS Transitions: property <z-index> from [-5] to [5] at (0.6) should be [1]
Pass CSS Transitions: property <z-index> from [-5] to [5] at (1) should be [5]
Pass CSS Transitions: property <z-index> from [-5] to [5] at (1.5) should be [10]
Fail CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (-0.3) should be [-8]
Fail CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (0) should be [-5]
Fail CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (0.3) should be [-2]
Fail CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (0.6) should be [1]
Pass CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (-0.3) should be [-8]
Pass CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (0) should be [-5]
Pass CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (0.3) should be [-2]
Pass CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (0.6) should be [1]
Pass CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (1) should be [5]
Fail CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (1.5) should be [10]
Pass CSS Transitions with transition: all: property <z-index> from [-5] to [5] at (1.5) should be [10]
Pass CSS Animations: property <z-index> from [-5] to [5] at (-0.3) should be [-8]
Pass CSS Animations: property <z-index> from [-5] to [5] at (0) should be [-5]
Pass CSS Animations: property <z-index> from [-5] to [5] at (0.3) should be [-2]
@ -166,12 +165,12 @@ Pass CSS Transitions: property <z-index> from [2] to [4] at (0.3) should be [3]
Pass CSS Transitions: property <z-index> from [2] to [4] at (0.6) should be [3]
Pass CSS Transitions: property <z-index> from [2] to [4] at (1) should be [4]
Pass CSS Transitions: property <z-index> from [2] to [4] at (1.5) should be [5]
Fail CSS Transitions with transition: all: property <z-index> from [2] to [4] at (-0.3) should be [1]
Fail CSS Transitions with transition: all: property <z-index> from [2] to [4] at (0) should be [2]
Fail CSS Transitions with transition: all: property <z-index> from [2] to [4] at (0.3) should be [3]
Fail CSS Transitions with transition: all: property <z-index> from [2] to [4] at (0.6) should be [3]
Pass CSS Transitions with transition: all: property <z-index> from [2] to [4] at (-0.3) should be [1]
Pass CSS Transitions with transition: all: property <z-index> from [2] to [4] at (0) should be [2]
Pass CSS Transitions with transition: all: property <z-index> from [2] to [4] at (0.3) should be [3]
Pass CSS Transitions with transition: all: property <z-index> from [2] to [4] at (0.6) should be [3]
Pass CSS Transitions with transition: all: property <z-index> from [2] to [4] at (1) should be [4]
Fail CSS Transitions with transition: all: property <z-index> from [2] to [4] at (1.5) should be [5]
Pass CSS Transitions with transition: all: property <z-index> from [2] to [4] at (1.5) should be [5]
Pass CSS Animations: property <z-index> from [2] to [4] at (-0.3) should be [1]
Pass CSS Animations: property <z-index> from [2] to [4] at (0) should be [2]
Pass CSS Animations: property <z-index> from [2] to [4] at (0.3) should be [3]
@ -191,13 +190,13 @@ Pass CSS Transitions: property <z-index> from [-2] to [-4] at (0.3) should be [-
Pass CSS Transitions: property <z-index> from [-2] to [-4] at (0.6) should be [-3]
Pass CSS Transitions: property <z-index> from [-2] to [-4] at (1) should be [-4]
Pass CSS Transitions: property <z-index> from [-2] to [-4] at (1.5) should be [-5]
Fail CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (-0.3) should be [-1]
Fail CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0) should be [-2]
Fail CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0.1) should be [-2]
Fail CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0.3) should be [-3]
Fail CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0.6) should be [-3]
Pass CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (-0.3) should be [-1]
Pass CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0) should be [-2]
Pass CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0.1) should be [-2]
Pass CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0.3) should be [-3]
Pass CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (0.6) should be [-3]
Pass CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (1) should be [-4]
Fail CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (1.5) should be [-5]
Pass CSS Transitions with transition: all: property <z-index> from [-2] to [-4] at (1.5) should be [-5]
Pass CSS Animations: property <z-index> from [-2] to [-4] at (-0.3) should be [-1]
Pass CSS Animations: property <z-index> from [-2] to [-4] at (0) should be [-2]
Pass CSS Animations: property <z-index> from [-2] to [-4] at (0.1) should be [-2]
@ -219,9 +218,9 @@ Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index>
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [auto] to [10] at (0.6) should be [10]
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [auto] to [10] at (1) should be [10]
Pass CSS Transitions with transition-behavior:allow-discrete: property <z-index> from [auto] to [10] at (1.5) should be [10]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (-0.3) should be [auto]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (0) should be [auto]
Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (0.3) should be [auto]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (-0.3) should be [auto]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (0) should be [auto]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (0.3) should be [auto]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (0.5) should be [10]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (0.6) should be [10]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <z-index> from [auto] to [10] at (1) should be [10]

View File

@ -2,8 +2,7 @@ Harness status: OK
Found 560 tests
558 Pass
2 Fail
560 Pass
Pass background-color color(rgba) / values
Pass background-color color(rgba) / events
Pass background-position-x length(pt) / values
@ -562,5 +561,5 @@ Pass opacity number[0,1](zero-to-one) / values
Pass opacity number[0,1](zero-to-one) / events
Pass visibility visibility(keyword) / values
Pass visibility visibility(keyword) / events
Fail z-index integer(integer) / values
Fail z-index integer(integer) / events
Pass z-index integer(integer) / values
Pass z-index integer(integer) / events