JSFiddle - React, Tailwind, and code Playground

by Scott Kaye

CSS

div {
	position: sticky;
	background: red;
}

div:first-child {
	position: sticky;
}

i {
	color: blue;
}

JavaScript

let rules = [].concat.apply([],
	[...document.styleSheets]
		.map(s => [...s.rules]
			.filter(r => r.style.position === "sticky")
			.map(r => r.selectorText)
		));

console.clear();
console.log(rules);