{"name":"@csstools/postcss-logical-overscroll-behavior","description":"Use logical overscroll behavior properties and values in CSS","version":"3.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=20.19.0"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-overscroll-behavior#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-overscroll-behavior"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","logical","overscroll-behavior","postcss-plugin"],"gitHead":"73f820aba42c8fca10d459016a3058451b3cda20","_id":"@csstools/postcss-logical-overscroll-behavior@3.0.0","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-82Jnl/5Wi5jb19nQE1XlBHrZcNL3PzOgcj268cDkfwf+xi10HBqufGo1Unwf5n8bbbEFhEKgyQW+vFsc9iY1jw==","shasum":"989e01da06c55a984212021c3bb5a0631f0d7bf3","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-logical-overscroll-behavior/download/@csstools/postcss-logical-overscroll-behavior-3.0.0.tgz","fileCount":6,"unpackedSize":6520,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDFk/zhnvRbB1qaQMKzJocLvfYgz5TMp3cBahxpSYVoAwIhAMsc/WV8BxlnOq17WhqeS/UgzBiEBVGZyWw6o9JmjTsu"}],"size":2873,"noattachment":false,"key":"/@csstools/postcss-logical-overscroll-behavior/-/@csstools/postcss-logical-overscroll-behavior-3.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-logical-overscroll-behavior_3.0.0_1768375412000_0.5251296488342578"},"_hasShrinkwrap":false,"readme":"# PostCSS Logical Overscroll Behavior [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install @csstools/postcss-logical-overscroll-behavior --save-dev`\n\n[PostCSS Logical Overscroll Behavior] lets you use `overscroll-behavior-inline` and `overscroll-behavior-block` properties following the [CSS Overscroll Specification].\n\n```css\n.inline {\n\toverscroll-behavior-inline: auto;\n}\n\n.block {\n\toverscroll-behavior-block: contain;\n}\n\n/* becomes */\n\n.inline {\n\toverscroll-behavior-x: auto;\n}\n\n.block {\n\toverscroll-behavior-y: contain;\n}\n```\n\n## Usage\n\nAdd [PostCSS Logical Overscroll Behavior] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-logical-overscroll-behavior --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssLogicalOverscrollBehavior = require('@csstools/postcss-logical-overscroll-behavior');\n\npostcss([\n\tpostcssLogicalOverscrollBehavior(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### inlineDirection\n\nThe `inlineDirection` option allows you to specify the direction of the inline axe. The default value is `left-to-right`, which would match any latin language.\n\n**You should tweak this value so that it is specific to your language and writing mode.**\n\n```js\npostcssLogicalOverscrollBehavior({\n\tinlineDirection: 'top-to-bottom'\n})\n```\n\n```css\n.inline {\n\toverscroll-behavior-inline: auto;\n}\n\n.block {\n\toverscroll-behavior-block: contain;\n}\n\n/* becomes */\n\n.inline {\n\toverscroll-behavior-y: auto;\n}\n\n.block {\n\toverscroll-behavior-x: contain;\n}\n```\n\nEach direction must be one of the following:\n\n- `top-to-bottom`\n- `bottom-to-top`\n- `left-to-right`\n- `right-to-left`\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#logical-overscroll-behavior\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-logical-overscroll-behavior\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Logical Overscroll Behavior]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-overscroll-behavior\n[CSS Overscroll Specification]: https://www.w3.org/TR/css-overscroll-1/#overscroll-behavior-longhands-logical\n","publish_time":1768375412156,"_cnpm_publish_time":1768375412156,"dist-tags":{"latest":"3.0.0"}}