Commit 85907d46 authored by Alison Maher's avatar Alison Maher Committed by Commit Bot

Pseudo elements in Forced Colors Mode

Previous to CL:2376666, pseudo element background-colors were not
getting overridden in Forced Colors Mode. CL:2376666 fixes this issue.
This CL adds a new web test to ensure that this behavior doesn't
regress in future changes.

Bug: 970285,1124362
Change-Id: Iebb16a3233bf4257d0acced9f6c00dcce4cfe983
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2393779
Commit-Queue: Alison Maher <almaher@microsoft.com>
Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#804981}
parent efc42a28
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - pseudo elements.</title>
<style>
p::before {
background: Canvas;
content: 'before';
display: block;
forced-color-adjust: none;
width: 100%;
}
</style>
<p>
The background color of pseudo elements should get overridden in Forced Colors
Mode.
</p>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - pseudo elements.</title>
<link rel="help" href="https://www.w3.org/TR/css-color-adjust-1/#forced-colors-properties">
<link rel=match href="forced-colors-mode-40-ref.html">
<style>
p::before {
background: blue;
content: 'before';
display: block;
width: 100%;
}
</style>
<p>
The background color of pseudo elements should get overridden in Forced Colors
Mode.
</p>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment