Skip to content

Commit

Permalink
Force outline color at used value time
Browse files Browse the repository at this point in the history
Forced colors should now happen at used value time. This change adds
an internal property to store the forced colors value of
outline-color. This internal value is then applied to the visited
/unvisited outline-color at used value time when appropriate.

The other forced color properties will be moved in follow up changes.

Bug: 970285
Change-Id: I100438fbf9d5230f905a7d16067d387c65876448
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518280
Commit-Queue: Alison Maher <almaher@microsoft.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829961}
  • Loading branch information
alisonmaher authored and chromium-wpt-export-bot committed Nov 21, 2020
1 parent 6411b45 commit cb32b4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions forced-colors-mode/forced-colors-mode-40.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
background-color: green;
border-color: green;
fill: green;
outline-color: green;
stroke: green;
}
</style>
Expand All @@ -26,6 +27,7 @@
"border-right-color",
"border-top-color",
"fill",
"outline-color",
"stroke"
];
for (let property of properties_to_test) {
Expand Down
2 changes: 2 additions & 0 deletions forced-colors-mode/forced-colors-mode-41.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
div {
background-color: green;
border-color: green;
outline-color: green;
}
</style>
<div id="div"></div>
Expand All @@ -23,6 +24,7 @@
"border-left-color",
"border-right-color",
"border-top-color",
"outline-color"
];
for (let property of properties_to_test) {
test(function() {
Expand Down

0 comments on commit cb32b4d

Please sign in to comment.