slash-opacity-stringA colour or shadow key given its opacity in a string; the object form is the one spelling of it.
csszyx check lists it.A name in angle brackets is a value the message fills in.
same-key[csszyx] slash-opacity-string: `<key>: '<color>/<opacity><important>'` puts the opacity in a string; the object form takes it in `op`.
help: write `{ <member>: '<color><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/slash-opacity-string
colour-key[csszyx] slash-opacity-string: `<key>: '<color>/<opacity><important>'` puts the opacity in a string; the object form takes it in `op`.
help: write `<owner>: { color: '<color><important>', op: <op> }`; `<key>` takes a shadow's size and its alpha.
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/slash-opacity-string
Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'slash-opacity-string': '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 | 'same-key' | 'colour-key' | |
key | string | |
member | 'color' | 'size' | |
owner | string | optional |
color | string | |
opacity | string | |
op | string | |
important | '!' | optional |