color-slash-opacityA colour or shadow size object with a slash opacity in its value; the object takes it in op.
csszyx check lists it.A name in angle brackets is a value the message fills in.
op-given[csszyx] color-slash-opacity: `<key>: { <member>: '<base>/<opacity><important>', op: <op> }` sets opacity twice; the object takes its opacity in `op`, not in `<member>`.
help: write `{ <member>: '<base><important>', op: <op> }`.
note: the class is still emitted as written; a theme colour serves it, and a hex, a colour function or a variable before the slash writes a value no browser takes.
docs: https://csszyx.com/e/color-slash-opacity
op-absent[csszyx] color-slash-opacity: `<key>: { <member>: '<base>/<opacity><important>' }` puts the opacity in `<member>`; the object takes it in `op`.
help: write `{ <member>: '<base><important>', op: <op> }`.
note: the class is still emitted as written; a theme colour serves it, and a hex, a colour function or a variable before the slash writes a value no browser takes.
docs: https://csszyx.com/e/color-slash-opacity
Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'color-slash-opacity': 'warn' }.
The level sets how the build and csszyx check report it. It does not change a console line, and it does not stop a thrown error.
The values this diagnostic names.
| Name | Type | |
|---|---|---|
form | 'op-given' | 'op-absent' | |
key | string | |
member | 'color' | 'size' | |
base | string | |
opacity | string | |
important | '!' | optional |
op | string |