Demo

Below you will find many examples of how to accomplish various layout and CSS-related tasks using ACSS. Take a look to see how flexible and useful this library is.

We are using ACSS-Live with timings enabled in order to see how long various operations take. These metrics are also sent back to a parent window (if one exists, like with the timings example) in order to better report on statistics.

Hover and change colors

A responsive columnar layout
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Item 11
Item 12

A whole lot of text that is displayed as a rainbow, just to create a massive amount of elements and CSS styles.

Bad Hover - Hover without parent selector will only change text color when hovering over the text. Try hovering just above or below this text.
Good Hover - Hover using a parent selector will change the text color when hovering over the parent. Try hovering anywhere over the white, including over the text.
This does not use a shadow root. Light gray outer element. Inner element has a margin to show the light gray from the parent, blue border, yellow background. The message has a teal background.
This is an open shadow root. It should look the same as the one on the left. The teal background and light gray come from the light DOM's styles.
This is a closed shadow root. This should look the same as the first.
It looks like you want to use ACSS-Live ...