Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-pseudo-class-any-link

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-pseudo-class-any-link - npm Package Compare versions

Comparing version 7.0.2 to 7.1.0

15

CHANGELOG.md
# Changes to PostCSS Pseudo Class Any Link
### 7.1.0 (January 31, 2022)
- Add support in IE and Edge for the `<area>` element
- Add support for `:any-link` in pseudo class functions (`:not(:any-link)`)
To support matching `:any-link` in IE and Edge on `<area href>` you need to set the `subFeatures.areaHrefNeedsFixing` option to `true`:
```js
postcssPseudoClassAnyLink({
subFeatures: {
areaHrefNeedsFixing: true
}
})
```
### 7.0.2 (January 2, 2022)

@@ -4,0 +19,0 @@

13

package.json
{
"name": "postcss-pseudo-class-any-link",
"version": "7.0.2",
"version": "7.1.0",
"description": "Use the :any-link pseudo-class in CSS",

@@ -23,3 +23,4 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>",

"stryker": "stryker run --logLevel error",
"test": "postcss-tape --ci && npm run test:exports",
"test": "node .tape.mjs && npm run test:exports",
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs",
"test:exports": "node ./test/_import.mjs && node ./test/_require.cjs"

@@ -31,10 +32,6 @@ },

"dependencies": {
"postcss-selector-parser": "^6.0.8"
"postcss-selector-parser": "^6.0.9"
},
"devDependencies": {
"postcss": "^8.3.6",
"postcss-tape": "^6.0.1"
},
"peerDependencies": {
"postcss": "^8.3"
"postcss": "^8.4"
},

@@ -41,0 +38,0 @@ "keywords": [

@@ -6,3 +6,3 @@ # PostCSS Pseudo Class Any Link [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss]

[![Build Status][cli-img]][cli-url]
[![Support Chat][git-img]][git-url]
[<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]

@@ -84,8 +84,36 @@ [PostCSS Pseudo Class Any Link] lets you `:any-link` pseudo-class in CSS,

### subFeatures
#### areaHrefNeedsFixing
The `subFeatures.areaHrefNeedsFixing` option determines if `<area href>` elements should match `:any-link` pseudo-class.<br>
In IE and Edge these do not match `:link` or `:visited`.
_This increased CSS bundle size and is disabled by default._
```js
postcssPseudoClassAnyLink({
subFeatures: {
areaHrefNeedsFixing: true
}
})
```
```pcss
nav :any-link > span {
background-color: yellow;
}
/* becomes */
nav :link > span, nav :visited > span, area[href] > span {
background-color: yellow;
}
```
[cli-img]: https://github.com/csstools/postcss-plugins/workflows/test/badge.svg
[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[css-img]: https://cssdb.org/badge/any-link-pseudo-class.svg
[css-img]: https://cssdb.org/images/badges/any-link-pseudo-class.svg
[css-url]: https://cssdb.org/#any-link-pseudo-class
[git-img]: https://img.shields.io/badge/support-chat-blue.svg
[git-url]: https://gitter.im/postcss/postcss
[discord]: https://discord.gg/bUadyRwkJS
[npm-img]: https://img.shields.io/npm/v/postcss-pseudo-class-any-link.svg

@@ -92,0 +120,0 @@ [npm-url]: https://www.npmjs.com/package/postcss-pseudo-class-any-link

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc