blob: 34eba583caa924d5aa9a6d0271acbc29c1b25a4b [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - fill and stroke reference.
Only text and foreignObject svg elements should have fill and stroke
overridden in forced colors mode.
svg, text, foreignObject {
forced-color-adjust: none;
<svg height="600" width="600">
<text x="0" y="15" fill="WindowText">
This text should have a WindowText fill and transparent stroke color in
forced colors mode.
<rect x="0" height="60" y="30" width="180" style="fill: red; stroke: blue;"/>
<foreignObject x="20" y="100" width="160" height="160">
<div xmlns="" style="color: WindowText;">
This text should be WindowText color in forced colors mode.
<svg height="20" width="20">
<rect x="0" height="20" y="0" width="20" style="fill: green; stroke: purple;"/>