Bug 1918670: Revert canonical order enforcement for `position-try-fallbacks` in WPT tests. r=firefox-style-system-reviewers,emilio

`<try-tactic>` is in fact order-dependent [1]:

Given inline-start & end, block-start & end: 1 & 2, a & b:

1. `flip-start`: a & 2, 1 & b
2. `flip-inline`: 2 & a, 1 & b

And

1. `flip-inline`: 2 & 1, a & b
2. `flip-start`: a & 1, 2 & b

Are not equal.

[1]: cb15043caf (commitcomment-146669116)

Differential Revision: https://phabricator.services.mozilla.com/D222114
This commit is contained in:
David Shin 2024-09-13 15:41:41 +00:00
Родитель 0ced418a08
Коммит f8296964c0
6 изменённых файлов: 24 добавлений и 6 удалений

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

@ -0,0 +1,3 @@
[position-try-fallbacks-computed.html]
[Property position-try-fallbacks value 'flip-start flip-inline flip-block']
expected: FAIL

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

@ -0,0 +1,9 @@
[position-try-fallbacks-parsing.html]
[e.style['position-try-fallbacks'\] = "flip-start flip-inline, flip-block" should set the property value]
expected: FAIL
[e.style['position-try-fallbacks'\] = "flip-start flip-inline flip-block" should set the property value]
expected: FAIL
[e.style['position-try-fallbacks'\] = "--bar flip-inline flip-block" should set the property value]
expected: FAIL

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

@ -0,0 +1,6 @@
[position-try-parsing.html]
[e.style['position-try'\] = "most-block-size flip-inline flip-block, --bar, --baz" should set the property value]
expected: FAIL
[e.style['position-try'\] = "most-inline-size flip-inline flip-block, --foo, --bar" should set position-try-fallbacks]
expected: FAIL

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

@ -16,7 +16,7 @@
test_computed_value("position-try-fallbacks", "flip-start");
test_computed_value("position-try-fallbacks", "flip-block, flip-inline");
test_computed_value("position-try-fallbacks", "--foo, --bar");
test_computed_value("position-try-fallbacks", "flip-start flip-inline flip-block", "flip-block flip-inline flip-start");
test_computed_value("position-try-fallbacks", "flip-start flip-inline flip-block");
test_computed_value("position-try-fallbacks", "flip-start --flop", "--flop flip-start");
test_computed_value("position-try-fallbacks", "--flop flip-start");
test_computed_value("position-try-fallbacks", "left top");

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

@ -15,14 +15,14 @@
test_valid_value("position-try-fallbacks", "flip-block");
test_valid_value("position-try-fallbacks", "flip-block ", 'flip-block');
test_valid_value("position-try-fallbacks", "flip-start, flip-block");
test_valid_value("position-try-fallbacks", "flip-start flip-inline, flip-block", "flip-inline flip-start, flip-block");
test_valid_value("position-try-fallbacks", "flip-start flip-inline, flip-block");
test_valid_value("position-try-fallbacks", "flip-start, flip-start");
test_valid_value("position-try-fallbacks", "flip-start flip-inline flip-block", "flip-block flip-inline flip-start");
test_valid_value("position-try-fallbacks", "flip-start flip-inline flip-block");
test_valid_value("position-try-fallbacks", "flip-block, --foo");
test_valid_value("position-try-fallbacks", "--bar, flip-block flip-start");
test_valid_value("position-try-fallbacks", "--foo, --bar, --baz");
test_valid_value("position-try-fallbacks", "--bar flip-block");
test_valid_value("position-try-fallbacks", "--bar flip-inline flip-block", "--bar flip-block flip-inline");
test_valid_value("position-try-fallbacks", "--bar flip-inline flip-block");
test_valid_value("position-try-fallbacks", "flip-inline --foo", "--foo flip-inline");
test_valid_value("position-try-fallbacks", "flip-inline flip-start --foo", "--foo flip-inline flip-start");
test_valid_value("position-try-fallbacks", "left top");

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

@ -11,7 +11,7 @@
test_valid_value("position-try", "most-height none");
test_valid_value("position-try", "--bar, --baz");
test_valid_value("position-try", "most-inline-size --baz, flip-inline");
test_valid_value("position-try", "most-block-size flip-block flip-inline, --bar, --baz");
test_valid_value("position-try", "most-block-size flip-inline flip-block, --bar, --baz");
test_valid_value("position-try", "normal none", "none");
test_valid_value("position-try", "most-width none");
test_valid_value("position-try", "normal --foo", "--foo");
@ -39,6 +39,6 @@
});
test_shorthand_value("position-try", "most-inline-size flip-inline flip-block, --foo, --bar", {
"position-try-order": "most-inline-size",
"position-try-fallbacks": "flip-block flip-inline, --foo, --bar",
"position-try-fallbacks": "flip-inline flip-block, --foo, --bar",
});
</script>