This example makes use of, and requires an implementation of, declarative Shadow DOM. In Chrome 85+, enable the Experimental Web Platform Features (chrome://flags/#enable-experimental-web-platform-features) flag to try it out.
This example should show two green-background <H2> text fragments below: