mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1638903 [wpt PR 23672] - Fix serialization/attribute synchronization of 'orient', a=testonly
Automatic update from web-platform-tests Fix serialization/attribute synchronization of 'orient' SVGAnimatedAngle was still checking current value when it should be checking the base value. Bug: 735820 Change-Id: I9eeff2da7b646c22ff6f06f0480d5581065723c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2207148 Commit-Queue: Philip Rogers <pdr@chromium.org> Auto-Submit: Fredrik Söderquist <fs@opera.com> Reviewed-by: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#769756} -- wpt-commits: 0c4411d14a1dc4d520937ff066ef9afe636aeef7 wpt-pr: 23672
This commit is contained in:
parent
21e8357159
commit
231a3ff545
@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<title>An animation of an attribute does not change the DOM attribute value</title>
|
||||
<title>An animation of an attribute ('class') does not change the DOM attribute value</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/2001/REC-smil-animation-20010904/#BasicAnim">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<title>An animation of an attribute ('orient') does not change the DOM attribute value</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/2001/REC-smil-animation-20010904/#BasicAnim">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<svg>
|
||||
<marker orient="90">
|
||||
<set attributeName="orient" to="auto"/>
|
||||
</rect>
|
||||
</svg>
|
||||
<script>
|
||||
async_test(t => {
|
||||
onload = t.step_func(() => {
|
||||
requestAnimationFrame(t.step_func_done(() => {
|
||||
let marker = document.querySelector('marker');
|
||||
marker.orientAngle.baseVal.valueInSpecifiedUnits = 180;
|
||||
assert_equals(marker.getAttribute('orient'), '180');
|
||||
}));
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user