blob: bda455396238e8c00295547a540ad50cd4e440b6 [file] [log] [blame]
<!DOCTYPE html>
<script src="resources/responsive-test.js"></script>
<script>
assertCSSResponsive({
property: 'color',
from: 'inherit',
to: 'green',
configurations: [{
state: {inherited: 'blue'},
expect: [
{at: 0.25, is: 'rgb(0, 32, 191)'},
{at: 0.75, is: 'rgb(0, 96, 64)'},
],
}, {
state: {inherited: 'yellow'},
expect: [
{at: 0.25, is: 'rgb(191, 223, 0)'},
{at: 0.75, is: 'rgb(64, 160, 0)'},
],
}],
});
assertCSSResponsive({
property: 'color',
from: 'currentcolor',
to: 'green',
configurations: [{
state: {inherited: 'blue'},
expect: [
{at: 0.25, is: 'rgb(0, 32, 191)'},
{at: 0.75, is: 'rgb(0, 96, 64)'},
],
}, {
state: {inherited: 'yellow'},
expect: [
{at: 0.25, is: 'rgb(191, 223, 0)'},
{at: 0.75, is: 'rgb(64, 160, 0)'},
],
}],
});
assertCSSResponsive({
property: 'color',
from: 'green',
to: 'currentcolor',
configurations: [{
state: {inherited: 'blue'},
expect: [
{at: 0.25, is: 'rgb(0, 96, 64)'},
{at: 0.75, is: 'rgb(0, 32, 191)'},
],
}, {
state: {inherited: 'yellow'},
expect: [
{at: 0.25, is: 'rgb(64, 160, 0)'},
{at: 0.75, is: 'rgb(191, 223, 0)'},
],
}],
});
</script>