Created
February 9, 2017 00:25
-
-
Save zackdouglas/59af7793f3bf2dc3d340f58d602a5f94 to your computer and use it in GitHub Desktop.
Why does CSS attr() fail for input elements?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
body *:before { | |
content: attr(value) ' ' | |
} | |
</style> | |
</head> | |
<body> | |
<div value=works /> | |
<input value=fails /> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment