Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / transition-on-element-with-content.html
blob1118c143f4aa71a62c5b551a9a5d726da5ebfb95
1 <!DOCTYPE>
3 <html>
4 <head>
5 <style>
6 .box {
7 height: 100px;
8 width: 100px;
9 margin: 10px;
10 background-color: gray;
11 content: 'Test';
14 #box {
15 opacity: 1;
16 -webkit-transition: opacity 1s linear;
19 #box.final {
20 opacity: 0;
23 </style>
24 <script src="../animations/resources/animation-test-helpers.js"></script>
25 <script type="text/javascript">
27 const expectedValues = [
28 // [time, element-id, property, expected-value, tolerance]
29 [0.5, 'box', 'opacity', 0.5, 0.1],
32 function setupTest()
34 document.getElementById('box').className = 'box final';
37 runTransitionTest(expectedValues, setupTest);
38 </script>
39 </head>
40 <body>
42 <!-- Test that a transition runs on an element with a 'content' property. -->
43 <div id="box" class="box"></div>
45 <div id="result"></div>
47 </body>
48 </html>