Comma-separated values.
Split values.
Safely splits space-separated values (such as those for background
,
border-radius
, and other shorthand properties).
Once (root, { list }) {
list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)']
}
Space-separated values.
Split values.
Safely splits values.
Once (root, { list }) {
list.split('1px calc(10% + 1px)', [' ', '\n', '\t']) //=> ['1px', 'calc(10% + 1px)']
}
separated values.
array of separators.
boolean indicator.
Split values.
Safely splits comma-separated values (such as those for
transition-*
andbackground
properties).