:scope (pseudo-class)
Widely available since 2022-07-15
The :scope
CSS pseudo-class matches the scoping root, for instance the element that querySelector()
is called on, or the root of a DOM subtree specified with @scope
.
Learning resources on MDN
Browser support
- Chrome 27 Released on 2013-05-21
- Chrome Android 27 Released on 2013-05-22
- Edge 79 Released on 2020-01-15
- Firefox 32 Released on 2014-09-02
- Firefox for Android 32 Released on 2014-09-02
- Safari 7 Released on 2013-10-22
- Safari on iOS 7 Released on 2013-09-18