A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/concepts/fragment below:

content fragments ยท WebPlatform Docs

content fragments Summary

A contiguous range of content, which may stretch arbitrarily across DOM nodes.

A range (or fragment) is a contiguous stretch of content within a document, one that may traverse DOM nodes arbitrarily. For example, a user may select a stretch of text that starts in the middle of one paragraph, and ends in the middle of another. CSS styling may apply dynamically to the ::first-line or ::first-letter of text. Or a flow of text may thread through a series of region elements, each of which may display only a portion of a paragraph that spills over from adjacent regions within the chain.

You can use the DOM Range API to programatically access such arbitrary stretches of content.

See also Related articles Regions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4