зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0ced418a08
Коммит
f8296964c0
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче