blob: 80ff2464f5f650d7c2d4a61271066ebb39b899f8 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<p id="blue" style="color: blue">Blue foreground.</p>
<script>
const kBlueColor = 0xFF;
const kGreenColor = 0x8000;
test(() => {
let blue = document.getElementById('blue');
let axBlue = accessibilityController.accessibleElementById('blue');
assert_equals(axBlue.color, kBlueColor);
blue.style.color = 'green';
assert_equals(axBlue.color, kGreenColor);
}, 'Ensures that the color can be dynamically changed.');
</script>