<!doctype html> | |
<html> | |
<head> | |
<style> | |
target::before { | |
content: "Before "; | |
background-color: green; | |
color: white; | |
} | |
target { | |
background-color: green; | |
color: white; | |
} | |
</style> | |
</head> | |
<body> | |
<p>This test checks the dynamic specificity of rules mixing pseudo element and regular element matching. If the text succeed, the text should be "Before Target" in white over a green background and no borders.</p> | |
<target>Target</target> | |
</body> | |
</html> |