Bug 1722031 - Fix an accent-color test. r=mstange

No other property returns `currentcolor` in the computed style, and
Chrome agrees with us on this test.

Differential Revision: https://phabricator.services.mozilla.com/D120725
This commit is contained in:
Emilio Cobos Álvarez 2021-07-24 12:55:39 +00:00
parent 11f130af70
commit 3f0667829d
2 changed files with 2 additions and 6 deletions

View File

@ -1,4 +0,0 @@
[accent-color-computed.html]
[Property accent-color value 'currentcolor']
expected: FAIL

View File

@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<style>
#outer { accent-color: red; }
#outer { accent-color: red; color: black; }
</style>
<div id="outer">
<div id="target"></div>
@ -16,7 +16,7 @@ test_computed_value('accent-color', 'inherit', 'rgb(255, 0, 0)');
test_computed_value('accent-color', 'red', 'rgb(255, 0, 0)');
test_computed_value('accent-color', 'blue', 'rgb(0, 0, 255)');
test_computed_value('accent-color', 'auto', 'auto');
test_computed_value('accent-color', 'currentcolor', 'currentcolor');
test_computed_value('accent-color', 'currentcolor', 'rgb(0, 0, 0)');
test_computed_value('accent-color', '#fff', 'rgb(255, 255, 255)');
// When accent-color isn't specified, it should return 'auto'