Skip to content

Commit e7a24b9

Browse files
Fredrik Söderquistmoz-wptsync-bot
authored andcommitted
Bug 1975213 [wpt PR 53534] - Allow trailing semicolon in 'keyTimes' and 'keyPoints', a=testonly
Automatic update from web-platform-tests Allow trailing semicolon in 'keyTimes' and 'keyPoints' The spec [1][2] has allowed trailing semicolons for the these attributes for a time now, and we're allowing trailing semicolons in 'values' and 'keySplines' already. Guarded by "SmilKeyTimesKeyPointsAllowTrailingSemicolon". [1] https://svgwg.org/specs/animations/#KeyTimesAttribute [2] https://svgwg.org/specs/animations/#KeyPointsAttribute Fixed: 427020732 Change-Id: I29fb8bab7672b1f3be9352f53ff74a103a3febd2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6695946 Commit-Queue: Fredrik Söderquist <[email protected]> Reviewed-by: Philip Rogers <[email protected]> Cr-Commit-Position: refs/heads/main@{#1481457} -- wpt-commits: 526c6655fc7755f9025f3b1e073aaa000eb678c0 wpt-pr: 53534
1 parent 1ab8cbc commit e7a24b9

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!doctype html>
2+
<title>A trailing semicolon is allowed in the 'keyPoints' attribute</title>
3+
<script src="/resources/testharness.js"></script>
4+
<script src="/resources/testharnessreport.js"></script>
5+
<script src="/common/rendering-utils.js"></script>
6+
<svg>
7+
<rect width="100" height="100" x="100" fill="blue">
8+
<animateMotion dur="10ms" fill="freeze"
9+
values="0,0; -100,0" keyTimes="0; 1" keyPoints="0; 1;"/>
10+
</rect>
11+
</svg>
12+
<script>
13+
promise_test(async t => {
14+
const animation = document.querySelector('rect > animateMotion');
15+
const watcher = new EventWatcher(t, animation, 'endEvent');
16+
await watcher.wait_for('endEvent');
17+
await waitForAtLeastOneFrame();
18+
assert_equals(animation.targetElement.getCTM().e, -100);
19+
});
20+
</script>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!doctype html>
2+
<title>A trailing semicolon is allowed in the 'keyTimes' attribute</title>
3+
<script src="/resources/testharness.js"></script>
4+
<script src="/resources/testharnessreport.js"></script>
5+
<script src="/common/rendering-utils.js"></script>
6+
<svg>
7+
<rect width="100" height="100" fill="blue" opacity="0">
8+
<animate attributeName="opacity" dur="10ms" fill="freeze"
9+
values="0; 1" keyTimes="0; 1;"/>
10+
</rect>
11+
</svg>
12+
<script>
13+
promise_test(async t => {
14+
const animation = document.querySelector('rect > animate');
15+
const watcher = new EventWatcher(t, animation, 'endEvent');
16+
await watcher.wait_for('endEvent');
17+
await waitForAtLeastOneFrame();
18+
assert_equals(getComputedStyle(animation.targetElement).opacity, "1");
19+
});
20+
</script>

0 commit comments

Comments
 (0)