diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:44:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:44:51 +0000 |
commit | 9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /layout/style/test/test_transitions_at_start.html | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/style/test/test_transitions_at_start.html')
-rw-r--r-- | layout/style/test/test_transitions_at_start.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/layout/style/test/test_transitions_at_start.html b/layout/style/test/test_transitions_at_start.html new file mode 100644 index 0000000000..15805bbc09 --- /dev/null +++ b/layout/style/test/test_transitions_at_start.html @@ -0,0 +1,38 @@ +<!doctype html> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1380133 +--> +<head> + <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"> + <style> + a { + color: red; + transition: 100s color; + } + a.active { + color: blue; + } + </style> +</head> +<body> +<a id=anchor><span id=span>Test</span></a> +</body> +<script> +'use strict'; + +const anchor = document.getElementById('anchor'); +const span = document.getElementById('span'); + +test(() => { + anchor.classList.add('active'); + 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'); +</script> +</html> |