summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-logical/animations/margin-inline-interpolation.html
blob: 86408ea6e94271efc7aa7e2c05b99538ba7d1b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<meta charset="UTF-8">
<title>margin-inline interpolation</title>
<link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-margin-inline">
<meta name="assert" content="margin-inline supports animation">

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_interpolation({
  property: 'margin-inline',
  from: '10px',
  to: '20px',
}, [
  {at: -0.3, expect: '7px'},
  {at: 0, expect: '10px'},
  {at: 0.3, expect: '13px'},
  {at: 0.6, expect: '16px'},
  {at: 1, expect: '20px'},
  {at: 1.5, expect: '25px'},
]);
</script>
</body>