monks/forced_color_adjust

The forced-color-adjust CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS.

Values

pub const auto_: #(String, String)
  • : The element’s colors are adjusted by the {{Glossary(“user agent”)}} in forced colors mode. This is the default value.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : The element’s colors are not automatically adjusted by the {{Glossary(“user agent”)}} in forced colors mode.
pub const preserve_parent_color: #(String, String)
  • : In forced colors mode, if the {{cssxref(“color”)}} property inherits from its parent (i.e., there is no cascaded value or the cascaded value is currentColor, {{cssxref(“inherit”)}}, or another keyword that inherits from the parent), then it computes to the used color of its parent’s color property. In all other cases, it behaves the same as none.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for forced-color-adjust

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for forced-color-adjust. It will be wrapped in var() and have -- prepended.

Search Document