aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/lib/lexer/units.js
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-13 21:34:48 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-13 21:34:48 -0800
commit76cb9c2a39d477a64824a985ade40507e3bbade1 (patch)
tree41e997aa9c6f538d3a136af61dae9424db2005a9 /vanilla/node_modules/css-tree/lib/lexer/units.js
parent819a39a21ac992b1393244a4c283bbb125208c69 (diff)
downloadneko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.gz
neko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.bz2
neko-76cb9c2a39d477a64824a985ade40507e3bbade1.zip
feat(vanilla): add testing infrastructure and tests (NK-wjnczv)
Diffstat (limited to 'vanilla/node_modules/css-tree/lib/lexer/units.js')
-rw-r--r--vanilla/node_modules/css-tree/lib/lexer/units.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/vanilla/node_modules/css-tree/lib/lexer/units.js b/vanilla/node_modules/css-tree/lib/lexer/units.js
new file mode 100644
index 0000000..88b1f69
--- /dev/null
+++ b/vanilla/node_modules/css-tree/lib/lexer/units.js
@@ -0,0 +1,27 @@
+export 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'
+];
+export const angle = ['deg', 'grad', 'rad', 'turn']; // https://www.w3.org/TR/css-values-3/#angles
+export const time = ['s', 'ms']; // https://www.w3.org/TR/css-values-3/#time
+export const frequency = ['hz', 'khz']; // https://www.w3.org/TR/css-values-3/#frequency
+export const resolution = ['dpi', 'dpcm', 'dppx', 'x']; // https://www.w3.org/TR/css-values-3/#resolution
+export const flex = ['fr']; // https://drafts.csswg.org/css-grid/#fr-unit
+export const decibel = ['db']; // https://www.w3.org/TR/css3-speech/#mixing-props-voice-volume
+export const semitones = ['st']; // https://www.w3.org/TR/css3-speech/#voice-props-voice-pitch