forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-logical] split logical shorthand relative prioritization animati…
…on test off from css/css-logical/animation-001.html as a dedicated tentative test https://bugs.webkit.org/show_bug.cgi?id=278910 rdar://135006627 Reviewed by NOBODY (OOPS!). Given the `logical` keyword for the `margin` shorthand, and other relative shorthands, is not stable yet, as discussed in w3c/csswg-drafts#1282, we split off the test in `css/css-logical/animation-001.html` that relies on this feature and make a new test file marked `.tentative`. * LayoutTests/imported/w3c/web-platform-tests/css/css-logical/animation-001-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-logical/animation-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-logical/animations/logical-shorthand-relative-prioritization-by-number-of-components.tentative-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-logical/animations/logical-shorthand-relative-prioritization-by-number-of-components.tentative.html: Added.
- Loading branch information
Showing
4 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.../logical-shorthand-relative-prioritization-by-number-of-components.tentative-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
FAIL Logical shorthands follow the usual prioritization based on number of component longhands assert_equals: expected "300px" but got "0px" | ||
|
31 changes: 31 additions & 0 deletions
31
...imations/logical-shorthand-relative-prioritization-by-number-of-components.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>Logical shorthands follow the usual prioritization based on number of component longhands</title> | ||
<link rel="help" href="https://drafts.csswg.org/web-animations-1/#calculating-computed-keyframes"> | ||
<meta name="assert" content="Shorthand properties with fewer longhand components override those with more longhand components (e.g. border-top overrides border-color)."> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../css-animations/support/testcommon.js"></script> | ||
|
||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
test(t => { | ||
const div = addDiv(t); | ||
const anim = div.animate( | ||
{ | ||
marginInlineStart: '100px', | ||
marginInline: '200px', | ||
margin: 'logical 300px', | ||
}, | ||
{ duration: 1, easing: 'step-start' } | ||
); | ||
assert_equals(getComputedStyle(div).marginLeft, '100px'); | ||
assert_equals(getComputedStyle(div).marginRight, '200px'); | ||
assert_equals(getComputedStyle(div).marginTop, '300px'); | ||
assert_equals(getComputedStyle(div).marginBottom, '300px'); | ||
}, 'Logical shorthands follow the usual prioritization based on number of' | ||
+ ' component longhands'); | ||
|
||
</script> |