Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Dec 28, 2024
1 parent f976627 commit e767a90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/css/@media/forced-colors/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ There are some cases where the user agent does not force the values for the abov

When {{cssxref("forced-color-adjust")}} is set to `none` on an element, none of the forced color values will apply, and author styles will be applied as normal. Additionally, the backplate for text will be disabled.

When {{cssxref("forced-color-adjust")}} is set to `preserve-parent-color` on an element, and the {{cssxref("color")}} property on the element does not inherit from its parent, then the element will behave the same as set `preserve-parent-color` to `none`.
When {{cssxref("forced-color-adjust")}} is set to `preserve-parent-color` on an element, and the {{cssxref("color")}} value on the element does not inherit from its parent, then the element will behave the same as set `preserve-parent-color` to `none`.

When a {{cssxref("system-color", "system color", "", 1)}} is specified, it will be used instead of the value that would otherwise have been forced.
When a [system color](/en-US/docs/Web/CSS/system-color) is specified, it will be used instead of the value that would otherwise have been forced.

You can also use system colors with any property _other_ than those listed above, to ensure that the rest of the page integrates with the restricted color palette available in forced colors mode.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/forced-color-adjust/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The `forced-color-adjust` property's value must be one of the following keywords
- `none`
- : The element's colors are not automatically adjusted by the {{Glossary("user agent")}} in forced colors mode.
- `preserve-parent-color`
- : In forced colors mode, if the {{cssxref("color")}} property inherits from its parent (i.e. there is no [cascaded value](/en-US/docs/Web/CSS/Cascade) or the cascaded value is `currentcolor`, {{cssxref("inherit")}}, or another keyword that inherits from the parent), then it computes to the {{cssxref("used value", "used color", "", 1)}} of its parent's `color` property. In all other cases, it behaves the same as `none`.
- : In forced colors mode, if the {{cssxref("color")}} property inherits from its parent (i.e. there is no [cascaded value](/en-US/docs/Web/CSS/Cascade) or the cascaded value is `currentcolor`, {{cssxref("inherit")}}, or another keyword that inherits from the parent), then it computes to the [used color](/en-US/docs/Web/CSS/used_value) of its parent's `color` property. In all other cases, it behaves the same as `none`.

## Usage notes

Expand Down

0 comments on commit e767a90

Please sign in to comment.