Skip to content

Commit

Permalink
Bug 1770822 [wpt PR 34170] - [css-color] Fix color computation test, …
Browse files Browse the repository at this point in the history
…a=testonly

Automatic update from web-platform-tests
[css-color] Fix color computation test

In w3c/csswg-drafts#6773 it was decided to
change how system colors computed to not inherit as themselves.

--

wpt-commits: eb390f79f23990524760ed0ac692d295fd6403e6
wpt-pr: 34170
  • Loading branch information
emilio authored and moz-wptsync-bot committed Jun 9, 2022
1 parent fcdbab4 commit e6afec7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@
let inherited_value =
getComputedStyle(document.getElementById("inherited"))
.getPropertyValue(property);
assert_equals(inherited_value, specified_value);
}, "System color computes to itself on " + property);
assert_not_equals(inherited_value, specified_value);
}, "System color doesn't compute to itself on " + property);
test(function() {
let inherited_value =
document.getElementById("inherited").computedStyleMap()
.get(property);
assert_regexp_match(inherited_value, /menu/i);
assert_false(/menu/i.test(inherited_value));
}, "Inherited system color keyword is observable on " + property);
}
</script>

0 comments on commit e6afec7

Please sign in to comment.