blob: 1f03eea77496f7b73faea7f2c0cc7d67d84a2bab [file] [log] [blame]
<!DOCTYPE><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=true ] -->
<html>
<head>
<style>
.box {
height: 100px;
width: 100px;
margin: 10px;
background-color: gray;
content: 'Test';
}
#box {
opacity: 1;
-webkit-transition: opacity 1s linear;
}
#box.final {
opacity: 0;
}
</style>
<script src="resources/transition-test-helpers.js"></script>
<script type="text/javascript">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, 'box', 'opacity', 0.5, 0.1],
];
function setupTest()
{
document.getElementById('box').className = 'box final';
}
runTransitionTest(expectedValues, setupTest, usePauseAPI);
</script>
</head>
<body>
<!-- Test that a transition runs on an element with a 'content' property. -->
<div id="box" class="box"></div>
<div id="result"></div>
</body>
</html>