You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should Foo be green or red? On the one hand, CSS Cascade says
Note: Inheritance follows the document tree and is not intercepted by anonymous boxes, or otherwise affected by manipulations of the box tree.
so maybe the span should inherit from the div and be red. On the other hand, CSS Pseudo says
these pseudo-elements generate boxes as if they were immediate children of their originating element, and can be styled exactly like any normal document-sourced element in the document tree.
Personally I would expect green, like if I had used content: "Foo" instead of content: contents.
As far as I know, there is no implementation of this to test.