Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@csstools/postcss-logical-overflow
Advanced tools
Readme
npm install @csstools/postcss-logical-overflow --save-dev
PostCSS Logical Overflow lets you use overflow-inline
and overflow-block
properties following the CSS Overflow Specification.
.inline {
overflow-inline: clip;
}
.block {
overflow-block: scroll;
}
/* becomes */
.inline {
overflow-x: clip;
}
.block {
overflow-y: scroll;
}
Add PostCSS Logical Overflow to your project:
npm install postcss @csstools/postcss-logical-overflow --save-dev
Use it as a PostCSS plugin:
const postcss = require('postcss');
const postcssLogicalOverflow = require('@csstools/postcss-logical-overflow');
postcss([
postcssLogicalOverflow(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
PostCSS Logical Overflow runs in all Node environments, with special instructions for:
The 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.
You should tweak this value so that it is specific to your language and writing mode.
postcssLogicalOverflow({
inlineDirection: 'top-to-bottom'
})
.inline {
overflow-inline: clip;
}
.block {
overflow-block: scroll;
}
/* becomes */
.inline {
overflow-y: clip;
}
.block {
overflow-x: scroll;
}
Each direction must be one of the following:
top-to-bottom
bottom-to-top
left-to-right
right-to-left
FAQs
Use logical overflow properties and values in CSS
The npm package @csstools/postcss-logical-overflow receives a total of 603,818 weekly downloads. As such, @csstools/postcss-logical-overflow popularity was classified as popular.
We found that @csstools/postcss-logical-overflow demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.