mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1915021: Part 6 - Adjust test expectations. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D228243
This commit is contained in:
parent
f2fffde56c
commit
a5d820c6c0
@ -7,3 +7,24 @@
|
||||
|
||||
[Flip to invalid anchor()]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid anchor function, nested left]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid anchor function, nested right]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid anchor function, nested bottom]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid anchor function, nested top]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid anchor function, max()]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid anchor function, abs()]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid anchor function, sign()]
|
||||
expected: FAIL
|
||||
|
@ -1,13 +1,7 @@
|
||||
[anchor-parse-valid.html]
|
||||
[e.style['top'\] = "calc((anchor(--foo top) + anchor(--bar bottom)) / 2)" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['top'\] = "anchor(--foo top, calc(anchor(--bar bottom) * 0.5))" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['top'\] = "min(100px, 10%, anchor(--foo top), anchor(--bar bottom))" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['left'\] = "anchor(inside, anchor(left))" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
@ -3319,3 +3313,6 @@
|
||||
|
||||
[e.style['inset-inline-end'\] = "anchor(min(50%, 100%) --foo, anchor(--bar left, anchor(--baz right)))" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['top'\] = "anchor(--foo top, calc(0.5 * anchor(--bar bottom)))" should set the property value]
|
||||
expected: FAIL
|
||||
|
@ -70,7 +70,9 @@ for (let property of insetProperties) {
|
||||
}
|
||||
|
||||
// Tests that anchor() can be used in a calc tree
|
||||
test_valid_value('top', 'calc((anchor(--foo top) + anchor(--bar bottom)) / 2)');
|
||||
test_valid_value('top', 'anchor(--foo top, calc(anchor(--bar bottom) * 0.5))');
|
||||
// Still follow the simplification process as outlined in https://drafts.csswg.org/css-values-4/#calc-simplification
|
||||
test_valid_value('top', 'calc((anchor(--foo top) + anchor(--bar bottom)) / 2)', 'calc(0.5 * (anchor(--foo top) + anchor(--bar bottom)))');
|
||||
test_valid_value('top', 'calc(0.5 * (anchor(--foo top) + anchor(--bar bottom)))');
|
||||
test_valid_value('top', 'anchor(--foo top, calc(0.5 * anchor(--bar bottom)))');
|
||||
test_valid_value('top', 'min(100px, 10%, anchor(--foo top), anchor(--bar bottom))');
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user