diff options
Diffstat (limited to 'node_modules/css-has-pseudo/README.md')
| -rw-r--r-- | node_modules/css-has-pseudo/README.md | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/node_modules/css-has-pseudo/README.md b/node_modules/css-has-pseudo/README.md index be57a5a8..c7962f9b 100644 --- a/node_modules/css-has-pseudo/README.md +++ b/node_modules/css-has-pseudo/README.md @@ -2,6 +2,10 @@ [<img alt="npm version" src="https://img.shields.io/npm/v/css-has-pseudo.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/has-pseudo-class.svg" height="20">][css-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord] +```bash +npm install css-has-pseudo --save-dev +``` + [PostCSS Has Pseudo] lets you style elements relative to other elements in CSS, following the [Selectors Level 4] specification. To use this feature you need to do two things : @@ -162,12 +166,13 @@ or ```html <!-- When using a CDN url you will have to manually update the version number --> -<script src="https://unpkg.com/css-has-pseudo@6.0.0/dist/browser-global.js"></script> +<script src="https://unpkg.com/css-has-pseudo@6.0.1/dist/browser-global.js"></script> <script>cssHasPseudo(document)</script> ``` -⚠️ Please use a versioned url, like this : `https://unpkg.com/css-has-pseudo@6.0.0/dist/browser-global.js` -Without the version, you might unexpectedly get a new major version of the library with breaking changes. +> [!TIP] +> Please use a versioned url, like this : `https://unpkg.com/css-has-pseudo@6.0.1/dist/browser-global.js` +> Without the version, you might unexpectedly get a new major version of the library with breaking changes. [PostCSS Has Pseudo] works in all major browsers, including Internet Explorer 11. With a [Mutation Observer polyfill](https://github.com/webmodules/mutation-observer), the script will work @@ -234,10 +239,11 @@ ECMA Script: ## CORS -⚠️ Applies to you if you load CSS from a different domain than the page. - -In this case the CSS is treated as untrusted and will not be made available to the JavaScript polyfill. -The polyfill will not work without applying the correct configuration for CORS. +> [!IMPORTANT] +> Applies to you if you load CSS from a different domain than the page. +> +> In this case the CSS is treated as untrusted and will not be made available to the JavaScript polyfill. +> The polyfill will not work without applying the correct configuration for CORS. Example : |
