moved-value

A value that moved to another key, with the key to write.

Message

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:

keyvalue
touchpan-xhelp: write { touchPanX: 'x' }, or run csszyx migrate.
touchActionpan-xhelp: write { touchPanX: 'x' }, or run csszyx migrate.
touchpan-lefthelp: write { touchPanX: 'left' }, or run csszyx migrate.
touchActionpan-lefthelp: write { touchPanX: 'left' }, or run csszyx migrate.
touchpan-righthelp: write { touchPanX: 'right' }, or run csszyx migrate.
touchActionpan-righthelp: write { touchPanX: 'right' }, or run csszyx migrate.
touchpan-yhelp: write { touchPanY: 'y' }, or run csszyx migrate.
touchActionpan-yhelp: write { touchPanY: 'y' }, or run csszyx migrate.
touchpan-uphelp: write { touchPanY: 'up' }, or run csszyx migrate.
touchActionpan-uphelp: write { touchPanY: 'up' }, or run csszyx migrate.
touchpan-downhelp: write { touchPanY: 'down' }, or run csszyx migrate.
touchActionpan-downhelp: write { touchPanY: 'down' }, or run csszyx migrate.
touchpinch-zoomhelp: write { touchPinchZoom: true }, or run csszyx migrate.
touchActionpinch-zoomhelp: 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:

Level

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.

Arguments

The values this diagnostic names. A production browser bundle prints them as JSON in place of the sentence.

NameType
form'value' | 'mask-layer'
keystring
valuestring
layerKey'maskLinear' | 'maskRadial' | 'maskConic'optional