The :scope CSS pseudo-class matches the elements that are a reference point for selectors to match against. In HTML, a new reference point can be defined using the scoped attribute of the <style>. If no such attribute is used on an HTML page, the reference point is the <html> element, making :scope equivalent to :scope
Syntax
:scope { style properties }
Examples
01
<article>
02
The element selected by :scope has a lime background if your browser supports scoped stylesheet.