<h2 id="browser_compatibility">
<a href="#browser_compatibility">Browser compatibility</a>
</h2>Text fragments / notebook
Text fragments
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
::target-text {
background-color: rebeccapurple;
color: white;
}document.fragmentDirective;
// returns an empty FragmentDirective object, if supported
// undefined otherwise