diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:05:55 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:05:55 +0800 |
| commit | c06f7ee0a40255214c477e13d9b956a7e07c2900 (patch) | |
| tree | f5982a568ef8fab865d0142e71c7494fea3e4c1b /node_modules/css-tree/cjs/lexer/units.cjs | |
| parent | 3fd9400d4dccc25aa29b5702216732e0b7542073 (diff) | |
postcss,(plugins): nanocss, postcss-preset-env
Diffstat (limited to 'node_modules/css-tree/cjs/lexer/units.cjs')
| -rw-r--r-- | node_modules/css-tree/cjs/lexer/units.cjs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/node_modules/css-tree/cjs/lexer/units.cjs b/node_modules/css-tree/cjs/lexer/units.cjs new file mode 100644 index 00000000..13f4e97b --- /dev/null +++ b/node_modules/css-tree/cjs/lexer/units.cjs @@ -0,0 +1,38 @@ +'use strict'; + +const length = [ + // absolute length units https://www.w3.org/TR/css-values-3/#lengths + 'cm', 'mm', 'q', 'in', 'pt', 'pc', 'px', + // font-relative length units https://drafts.csswg.org/css-values-4/#font-relative-lengths + 'em', 'rem', + 'ex', 'rex', + 'cap', 'rcap', + 'ch', 'rch', + 'ic', 'ric', + 'lh', 'rlh', + // viewport-percentage lengths https://drafts.csswg.org/css-values-4/#viewport-relative-lengths + 'vw', 'svw', 'lvw', 'dvw', + 'vh', 'svh', 'lvh', 'dvh', + 'vi', 'svi', 'lvi', 'dvi', + 'vb', 'svb', 'lvb', 'dvb', + 'vmin', 'svmin', 'lvmin', 'dvmin', + 'vmax', 'svmax', 'lvmax', 'dvmax', + // container relative lengths https://drafts.csswg.org/css-contain-3/#container-lengths + 'cqw', 'cqh', 'cqi', 'cqb', 'cqmin', 'cqmax' +]; +const angle = ['deg', 'grad', 'rad', 'turn']; // https://www.w3.org/TR/css-values-3/#angles +const time = ['s', 'ms']; // https://www.w3.org/TR/css-values-3/#time +const frequency = ['hz', 'khz']; // https://www.w3.org/TR/css-values-3/#frequency +const resolution = ['dpi', 'dpcm', 'dppx', 'x']; // https://www.w3.org/TR/css-values-3/#resolution +const flex = ['fr']; // https://drafts.csswg.org/css-grid/#fr-unit +const decibel = ['db']; // https://www.w3.org/TR/css3-speech/#mixing-props-voice-volume +const semitones = ['st']; // https://www.w3.org/TR/css3-speech/#voice-props-voice-pitch + +exports.angle = angle; +exports.decibel = decibel; +exports.flex = flex; +exports.frequency = frequency; +exports.length = length; +exports.resolution = resolution; +exports.semitones = semitones; +exports.time = time; |
