HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

scope

Description

The scope pseudo-class for CSS represents an element that is a reference point for selectors to match against.

:scope is equivalent to :root in the stylesheet.

Syntax

selector:scope
{
    property: value;
}

Examples

1 · CSS

2 · JS