::scroll-marker-group — scroll marker group
The ::scroll-marker-group pseudo-element styles the shared container of generated scroll markers, including their layout and spacing.
CKTIS / CSS
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The ::scroll-marker-group pseudo-element styles the shared container of generated scroll markers, including their layout and spacing.
::search-text styles text found by the browser's find-in-page feature. The ::search-text:current variant distinguishes the current match; support needs verification.
The ::selection pseudo-element styles the selected portion of a document. It controls selection colors without changing content or page layout.
The list A, B joins selectors with a comma so that one rule covers elements matching either selector.
The ::slotted() pseudo-element lets a Shadow DOM stylesheet style slot-assigned elements that match its selector argument.
The ::spelling-error pseudo-element styles text portions the browser flags as misspelled; it does not perform spellchecking itself.
:state() selects custom elements by their custom states. Its argument is a CSS identifier, and matching is case-sensitive.
The selector A ~ B matches B elements that share a parent with an earlier A element. The elements do not need to be immediately adjacent.
The :target pseudo-class selects the document's current target element. In typical HTML, a link with the fragment #alpha points to the element with id="alpha", allowing it to be highlighted without JavaScript.
The :target-after pseudo-class selects markers following the active marker within the same scroll marker group.
The :target-before pseudo-class selects every marker preceding the active marker within the same scroll marker group.
The :target-current pseudo-class selects the active marker within a scroll marker group. It can highlight the link associated with the current scroll position rather than merely the URL fragment.
The ::target-text pseudo-element styles text directly targeted by the document URL’s fragment, rather than an entire target element.
A type selector selects elements by tag name, such as p or button. It matches every element of that type within the matching scope, regardless of its classes and IDs.
The universal selector `*` matches elements of any type within the applicable namespace. It adds no specificity itself and can be combined with classes, pseudo-classes, and combinators.
The :user-invalid pseudo-class selects invalid form controls only after interaction warrants showing an error, such as an attempted form submission. It helps avoid marking untouched fields as erroneous immediately when a page opens.
The :user-valid pseudo-class selects valid form controls only once the user-interaction condition is met. Unlike :valid, it does not automatically signal that an untouched field is valid.
The CSS `:valid` pseudo-class selects controls that are candidates for constraint validation and satisfy their constraints. It also selects forms with no invalid associated controls and `fieldset` elements with no invalid descendant controls. It does not require prior user interaction.
The ::view-transition pseudo-element is the styleable root of a view transition tree. It lets you apply effects to the entire transition tree rather than styling the old-state and new-state images separately.
The ::view-transition-group() pseudo-element represents a named view transition group. It controls the group's geometry animation and the animation timing of its descendant old-state and new-state images.
A view-transition pseudo-element containing nested groups. It lets you clip their contents during animation without clipping the parent group's image pair.
The ::view-transition-image-pair() pseudo-element groups corresponding old-state and new-state images during a view transition. It lets you clip those images together and control the isolation of their blending.
The ::view-transition-new() pseudo-element styles the new-state image during a view transition, for example by giving it a custom entrance animation.
The ::view-transition-old() pseudo-element represents a static capture of the previous state during a view transition. It lets you animate the outgoing image independently of the new state, without styling the previous DOM element.