blob: 45294688c2428c28fa3321a5872b3f8180dd06a0 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ enableCSSAnimationsAndCSSTransitionsBackedByWebAnimations=true ] -->
<html>
<head>
<style>
.box {
height: 100px;
width: 100px;
margin: 50px;
border: 1px solid black;
text-align: center;
padding: 20px;
-webkit-transition-duration: 10s;
-webkit-transition-timing-function: linear;
-webkit-transition-property: opacity;
opacity:1;
mix-blend-mode: difference;
}
.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', 'mix-blend-mode', 'difference', 0],
];
function setupTest()
{
document.getElementById('box').className = 'box final';
}
runTransitionTest(expectedValues, setupTest, false);
</script>
</head>
<body>
Test to make sure that the blendmode property is properly propagated to shared styles
<div id="box" class="box">BOX</div>
<div id="result">
</div>
</body>
</html>