diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:50:21 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:50:21 +0800 |
| commit | 0379526e20e1ff212df23e6326741aa9c06df204 (patch) | |
| tree | 340143b0c4dc4280c88ba1591d137b53477005b3 /node_modules/doiuse/data/features/viewport-unit-variants.js | |
| parent | 7aba14fb7c970c6e6af82c805db2aef6d70bfe2b (diff) | |
added doiuse plugin for postcss
Diffstat (limited to 'node_modules/doiuse/data/features/viewport-unit-variants.js')
| -rw-r--r-- | node_modules/doiuse/data/features/viewport-unit-variants.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/node_modules/doiuse/data/features/viewport-unit-variants.js b/node_modules/doiuse/data/features/viewport-unit-variants.js new file mode 100644 index 00000000..330df5df --- /dev/null +++ b/node_modules/doiuse/data/features/viewport-unit-variants.js @@ -0,0 +1,43 @@ +import { checkCSSLengthUnits } from '../../utils/util.js'; + +/** + * Small, Large, and Dynamic viewport units + * Viewport units similar to `vw` and `vh` that are based on shown or hidden + * browser UI states to address shortcomings of the original units. Currently + * defined as the + * `sv*` units (`svb`, `svh`, `svi`, `svmax`, `svmin`, `svw`), + * `lv*` units (`lvb`, `lvh`, `lvi`, `lvmax`, `lvmin`, `lvw`), + * `dv*` units (`dvb`, `dvh`, `dvi`, `dvmax`, `dvmin`, `dvw`) + * and the logical `vi`/`vb` units. + * @see https://caniuse.com/viewport-unit-variants + * @type {import('../features').Feature} + */ +export default checkCSSLengthUnits( + /* sv* units */ + 'svb', + 'svh', + 'svi', + 'svmax', + 'svmin', + 'svw', + + /* lv* units */ + 'lvb', + 'lvh', + 'lvi', + 'lvmax', + 'lvmin', + 'lvw', + + /* dv* units */ + 'dvb', + 'dvh', + 'dvi', + 'dvmax', + 'dvmin', + 'dvw', + + /* vi/vb units */ + 'vi', + 'vb', +); |
