Test for a modal dialog with ::before, ::after, and ::backdrop. The test passes if there are two green boxes, one with the texts "::before" and "::after" in it.
::before
::after