
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@oat-sa/postcss-global-nested
Advanced tools
PostCSS plugin to better support Svelte's :global in nesting [context]
button {
& > :global-nested(.foo) {
&:focus {
outline: #f66 dashed;
}
}
}
button > :global(.foo:focus) {
outline: #f66 dashed;
}
When :global-nested is the first selector, it is just replaced by :global without wrapping the nested selectors. A warning will be shown.
Step 1: Install plugin:
npm install --save-dev @oat-sa/postcss-global-nested
Step 2: Configure it
For example with postcss-preset-env:
module.exports = {
plugins: [
require('postcss-preset-env')({
stage: 1,
features: {
'nesting-rules': {
noIsPseudoSelector: true
}
},
insertAfter: {
'nesting-rules': require('postcss-global-nested')
}
})
require('autoprefixer')
]
}
globalNestedPseudo : the pattern to search for, :global-nested by defaultglobalPseudo : the replacement pseudo for the wrapper, :global by defaultCopyright (c) 2022 Open Assessment Technologies SA
Licensed under the terms of the GNU GPL v2
FAQs
PostCSS plugin to support nesting of Svelte's :global
The npm package @oat-sa/postcss-global-nested receives a total of 226 weekly downloads. As such, @oat-sa/postcss-global-nested popularity was classified as not popular.
We found that @oat-sa/postcss-global-nested demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.