Skip to content

Commit

Permalink
Fix an accent-color test.
Browse files Browse the repository at this point in the history
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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1722031
gecko-commit: 2a0274aa40148b9d89d79d844aa27b3ae2430bd8
gecko-reviewers: mstange
  • Loading branch information
emilio authored and moz-wptsync-bot committed Jul 25, 2021
1 parent 3dda657 commit e1ea3e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css/css-ui/accent-color-computed.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -16,7 +16,7 @@
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'
Expand Down

0 comments on commit e1ea3e0

Please sign in to comment.