Skip to content

Commit

Permalink
[css-ui] outline-color can compute to invert
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwilligers committed Dec 6, 2018
1 parent 4eaf480 commit 8a69c8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions css/css-ui/inheritance.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
<script>
const mediumWidth = getComputedStyle(reference).borderTopWidth; // e.g. 3px
const currentColor = getComputedStyle(reference).color;
const invertBackgroundColor = 'rgb(255, 255, 0)';

assert_not_inherited('appearance', 'auto', 'none');
assert_inherited('caret-color', currentColor, 'rgba(42, 53, 64, 0.75)');
Expand All @@ -43,7 +42,7 @@
assert_not_inherited('nav-right', 'auto', '#foo');
assert_not_inherited('nav-up', 'auto', '#foo');
if (CSS.supports('outline-color', 'invert'))
assert_not_inherited('outline-color', invertBackgroundColor, 'rgba(42, 53, 64, 0.75)');
assert_not_inherited('outline-color', 'invert', 'rgba(42, 53, 64, 0.75)');
else
assert_not_inherited('outline-color', currentColor, 'rgba(42, 53, 64, 0.75)');
assert_not_inherited('outline-offset', '0px', '10px');
Expand Down

0 comments on commit 8a69c8d

Please sign in to comment.