moved-valueA value that moved to another key, with the key to write.
csszyx check lists it.A name in angle brackets is a value the message fills in.
value[csszyx] moved-value: `<key>: '<value>'` moved to `<movedKey>`, and nothing is emitted for it.
help: write `{ <movedKey>: <movedValue> }`, or run `csszyx migrate`.
docs: https://csszyx.com/e/moved-value
A production browser bundle prints this in place of it:
[csszyx] moved-value: {"form":"value","key":"<key>","value":"<value>","layerKey":"<layerKey>"} https://csszyx.com/e/moved-value
For each key the line can name, the message says:
key | value | |
|---|---|---|
touch | pan-x | help: write { touchPanX: 'x' }, or run csszyx migrate. |
touchAction | pan-x | help: write { touchPanX: 'x' }, or run csszyx migrate. |
touch | pan-left | help: write { touchPanX: 'left' }, or run csszyx migrate. |
touchAction | pan-left | help: write { touchPanX: 'left' }, or run csszyx migrate. |
touch | pan-right | help: write { touchPanX: 'right' }, or run csszyx migrate. |
touchAction | pan-right | help: write { touchPanX: 'right' }, or run csszyx migrate. |
touch | pan-y | help: write { touchPanY: 'y' }, or run csszyx migrate. |
touchAction | pan-y | help: write { touchPanY: 'y' }, or run csszyx migrate. |
touch | pan-up | help: write { touchPanY: 'up' }, or run csszyx migrate. |
touchAction | pan-up | help: write { touchPanY: 'up' }, or run csszyx migrate. |
touch | pan-down | help: write { touchPanY: 'down' }, or run csszyx migrate. |
touchAction | pan-down | help: write { touchPanY: 'down' }, or run csszyx migrate. |
touch | pinch-zoom | help: write { touchPinchZoom: true }, or run csszyx migrate. |
touchAction | pinch-zoom | help: write { touchPinchZoom: true }, or run csszyx migrate. |
mask-layer[csszyx] moved-value: `mask: '<value>'` names a gradient layer, which moved to `<layerKey>`, and nothing is emitted for it.
help: write this layer on `<layerKey>`; `mask` takes only `none`, a `url()` or a CSS variable.
docs: https://csszyx.com/e/moved-value
A production browser bundle prints this in place of it:
[csszyx] moved-value: {"form":"mask-layer","key":"<key>","value":"<value>","layerKey":"<layerKey>"} https://csszyx.com/e/moved-value
These values are worked out from the args:
<movedKey>: The key key: value moved to (CLOSED_ENUM_VALUE_MOVES, SUGGESTION_MAP).<movedValue>: The value it moved with, as a JS literal: true bare, otherwise quoted.Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'moved-value': '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. A production browser bundle prints them as JSON in place of the sentence.
| Name | Type | |
|---|---|---|
form | 'value' | 'mask-layer' | |
key | string | |
value | string | |
layerKey | 'maskLinear' | 'maskRadial' | 'maskConic' | optional |