Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / animations-responsive-opacity.html
blob24fcad50a10ce67b67acf8adeb6510b35bc3a5cd
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <div id='container'>
5 <div id='element'></div>
6 </div>
7 <script>
9 var container = document.getElementById('container');
10 var element = document.getElementById('element');
12 test(function() {
13 var keyframes = [
14 {opacity: 'inherit'},
15 {opacity: '0.5'}
18 container.style.opacity = 1;
19 var player = element.animate(keyframes, 10);
21 player.pause();
22 player.currentTime = 5;
23 container.style.opacity = 0.25;
24 assert_equals(getComputedStyle(element).opacity, '0.375');
25 }, 'Opacity responsive to inherited opacity changes');
27 </script>