mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1736920 [wpt PR 31338] - Set default of forced-color-adjust to preserve-parent-color for SVGs, a=testonly
Automatic update from web-platform-tests Set default of forced-color-adjust to preserve-parent-color for SVGs Bug: 1164162 Change-Id: I1a3eac4e4b2fbadf31c90a9157810976810718e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3232960 Commit-Queue: Sara Tang <sartang@microsoft.com> Reviewed-by: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/main@{#933741} -- wpt-commits: 20fe6093c63eb8407961db7e8e56ab5a646103ec wpt-pr: 31338
This commit is contained in:
parent
e087c19a25
commit
73dbc29e8b
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Forced colors mode - SVG inherits parent's used color by default.</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop">
|
||||
<style>
|
||||
svg {
|
||||
fill: canvasText;
|
||||
stroke: canvasText;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
The triangle below should be canvasText in forced colors mode.
|
||||
<svg height="200" width="350">
|
||||
<path d="M150 0 L75 200 L225 200 Z" />
|
||||
</svg>
|
||||
</body>
|
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Forced colors mode - SVG inherits parent's used color by default.</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop">
|
||||
<link rel=match href="forced-colors-mode-52-ref.html">
|
||||
<style>
|
||||
body {
|
||||
color: red;
|
||||
}
|
||||
svg {
|
||||
fill: currentColor;
|
||||
stroke: currentColor;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
The triangle below should be canvasText in forced colors mode.
|
||||
<svg height="200" width="350">
|
||||
<path d="M150 0 L75 200 L225 200 Z" />
|
||||
</svg>
|
||||
</body>
|
Loading…
Reference in New Issue
Block a user