From f6afed4db45b12e7033414f0ed0e0fd5ff053e58 Mon Sep 17 00:00:00 2001 From: Romain Menke Date: Thu, 3 Nov 2022 23:22:48 +0100 Subject: [PATCH] add postcss-scope-pseudo-class --- CHANGELOG.md | 1 + cssdb.json | 32 ++++++++++++++++++++++++++++++++ cssdb.mjs | 32 ++++++++++++++++++++++++++++++++ cssdb.settings.json | 21 +++++++++++++++++++++ 4 files changed, 86 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74acd18..8cf6bb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Unreleased +- Added: Stage 2 `scope-pseudo-class` - Updated `@mdn/browser-compat-data` to `5.2.11` (patch) - Updated `caniuse-lite` to `1.0.30001427` (patch) diff --git a/cssdb.json b/cssdb.json index e12e8ae..7ccf22c 100644 --- a/cssdb.json +++ b/cssdb.json @@ -1491,6 +1491,38 @@ ], "vendors_implementations": 3 }, + { + "id": "scope-pseudo-class", + "title": "`:scope()` Reference Element Pseudo-class", + "description": "A pseudo-class for matching one or more scoping roots", + "specification": "https://www.w3.org/TR/selectors-4/#the-scope-pseudo", + "stage": 2, + "browser_support": { + "and_chr": "27", + "and_ff": "32", + "android": "4.4", + "chrome": "27", + "edge": "79", + "firefox": "32", + "ios_saf": "7", + "oculus": "5.0", + "op_mob": "15", + "opera": "15", + "safari": "7", + "samsung": "1.5" + }, + "docs": { + "mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:scope" + }, + "example": ":scope {\n background-color: pink;\n}", + "polyfills": [ + { + "type": "PostCSS Plugin", + "link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class" + } + ], + "vendors_implementations": 3 + }, { "id": "sign-functions", "title": "`abs()` and `sign()` functions", diff --git a/cssdb.mjs b/cssdb.mjs index 235b551..d9da9f8 100644 --- a/cssdb.mjs +++ b/cssdb.mjs @@ -1491,6 +1491,38 @@ export default [ ], "vendors_implementations": 3 }, + { + "id": "scope-pseudo-class", + "title": "`:scope()` Reference Element Pseudo-class", + "description": "A pseudo-class for matching one or more scoping roots", + "specification": "https://www.w3.org/TR/selectors-4/#the-scope-pseudo", + "stage": 2, + "browser_support": { + "and_chr": "27", + "and_ff": "32", + "android": "4.4", + "chrome": "27", + "edge": "79", + "firefox": "32", + "ios_saf": "7", + "oculus": "5.0", + "op_mob": "15", + "opera": "15", + "safari": "7", + "samsung": "1.5" + }, + "docs": { + "mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:scope" + }, + "example": ":scope {\n background-color: pink;\n}", + "polyfills": [ + { + "type": "PostCSS Plugin", + "link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class" + } + ], + "vendors_implementations": 3 + }, { "id": "sign-functions", "title": "`abs()` and `sign()` functions", diff --git a/cssdb.settings.json b/cssdb.settings.json index 2d810da..3d205f4 100644 --- a/cssdb.settings.json +++ b/cssdb.settings.json @@ -1154,6 +1154,27 @@ } ] }, + { + "id": "scope-pseudo-class", + "title": "`:scope()` Reference Element Pseudo-class", + "description": "A pseudo-class for matching one or more scoping roots", + "specification": "https://www.w3.org/TR/selectors-4/#the-scope-pseudo", + "stage": 2, + "browser_support": {}, + "docs": { + "mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:scope" + }, + "example": ":scope {\n background-color: pink;\n}", + "mdn_path": [ + "css.selectors.scope" + ], + "polyfills": [ + { + "type": "PostCSS Plugin", + "link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class" + } + ] + }, { "id": "sign-functions", "title": "`abs()` and `sign()` functions",