Skip to content

Commit b03c1ad

Browse files
authored
add postcss-scope-pseudo-class (#222)
1 parent 2e22293 commit b03c1ad

File tree

4 files changed

+86
-0
lines changed

4 files changed

+86
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Unreleased
44

5+
- Added: Stage 2 `scope-pseudo-class`
56
- Updated `@mdn/browser-compat-data` to `5.2.11` (patch)
67
- Updated `caniuse-lite` to `1.0.30001427` (patch)
78

cssdb.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,38 @@
14911491
],
14921492
"vendors_implementations": 3
14931493
},
1494+
{
1495+
"id": "scope-pseudo-class",
1496+
"title": "`:scope()` Reference Element Pseudo-class",
1497+
"description": "A pseudo-class for matching one or more scoping roots",
1498+
"specification": "https://www.w3.org/TR/selectors-4/#the-scope-pseudo",
1499+
"stage": 2,
1500+
"browser_support": {
1501+
"and_chr": "27",
1502+
"and_ff": "32",
1503+
"android": "4.4",
1504+
"chrome": "27",
1505+
"edge": "79",
1506+
"firefox": "32",
1507+
"ios_saf": "7",
1508+
"oculus": "5.0",
1509+
"op_mob": "15",
1510+
"opera": "15",
1511+
"safari": "7",
1512+
"samsung": "1.5"
1513+
},
1514+
"docs": {
1515+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:scope"
1516+
},
1517+
"example": ":scope {\n background-color: pink;\n}",
1518+
"polyfills": [
1519+
{
1520+
"type": "PostCSS Plugin",
1521+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class"
1522+
}
1523+
],
1524+
"vendors_implementations": 3
1525+
},
14941526
{
14951527
"id": "sign-functions",
14961528
"title": "`abs()` and `sign()` functions",

cssdb.mjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,38 @@ export default [
14911491
],
14921492
"vendors_implementations": 3
14931493
},
1494+
{
1495+
"id": "scope-pseudo-class",
1496+
"title": "`:scope()` Reference Element Pseudo-class",
1497+
"description": "A pseudo-class for matching one or more scoping roots",
1498+
"specification": "https://www.w3.org/TR/selectors-4/#the-scope-pseudo",
1499+
"stage": 2,
1500+
"browser_support": {
1501+
"and_chr": "27",
1502+
"and_ff": "32",
1503+
"android": "4.4",
1504+
"chrome": "27",
1505+
"edge": "79",
1506+
"firefox": "32",
1507+
"ios_saf": "7",
1508+
"oculus": "5.0",
1509+
"op_mob": "15",
1510+
"opera": "15",
1511+
"safari": "7",
1512+
"samsung": "1.5"
1513+
},
1514+
"docs": {
1515+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:scope"
1516+
},
1517+
"example": ":scope {\n background-color: pink;\n}",
1518+
"polyfills": [
1519+
{
1520+
"type": "PostCSS Plugin",
1521+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class"
1522+
}
1523+
],
1524+
"vendors_implementations": 3
1525+
},
14941526
{
14951527
"id": "sign-functions",
14961528
"title": "`abs()` and `sign()` functions",

cssdb.settings.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,27 @@
11541154
}
11551155
]
11561156
},
1157+
{
1158+
"id": "scope-pseudo-class",
1159+
"title": "`:scope()` Reference Element Pseudo-class",
1160+
"description": "A pseudo-class for matching one or more scoping roots",
1161+
"specification": "https://www.w3.org/TR/selectors-4/#the-scope-pseudo",
1162+
"stage": 2,
1163+
"browser_support": {},
1164+
"docs": {
1165+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:scope"
1166+
},
1167+
"example": ":scope {\n background-color: pink;\n}",
1168+
"mdn_path": [
1169+
"css.selectors.scope"
1170+
],
1171+
"polyfills": [
1172+
{
1173+
"type": "PostCSS Plugin",
1174+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class"
1175+
}
1176+
]
1177+
},
11571178
{
11581179
"id": "sign-functions",
11591180
"title": "`abs()` and `sign()` functions",

0 commit comments

Comments
 (0)