From f06956efd2dc4bf77244a9fcce2b883a00b925af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 21 Dec 2023 22:46:53 +0800 Subject: updated node modules --- node_modules/css-has-pseudo/README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'node_modules/css-has-pseudo/README.md') 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 @@ [npm version][npm-url] [CSS Standard Status][css-url] [Build Status][cli-url] [Discord][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 - + ``` -⚠️ 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 : -- cgit v1.2.3