author Sandor Molnar <>
Fri, 24 Sep 2021 00:43:42 +0300
changeset 593102 4eda9eb8926bdd50f4b80128ce3475eb7c6d9a4d
parent 369859 f835a60a13a3f25824f872e25b9f8386fa218a17
permissions -rw-r--r--
Merge autoland to mozilla-central. a=merge

<!doctype html>
  <meta charset=utf-8>
  <title>Test for transition value at start (Bug 1380133)</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <link rel="stylesheet" href="/resources/testharness.css">
    a {
      color: red;
      transition: 100s color;
    } {
      color: blue;
<a id=anchor><span id=span>Test</span></a>
'use strict';

const anchor = document.getElementById('anchor');
const span   = document.getElementById('span');

test(() => {
  assert_equals(getComputedStyle(span).color, 'rgb(255, 0, 0)',
                'The child of a transitioning element should inherit its'
                + ' parent\'s transition start value');
}, 'Transition start value should be inherited');