Skip to content

Instantly share code, notes, and snippets.

@zackdouglas
Created February 9, 2017 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackdouglas/59af7793f3bf2dc3d340f58d602a5f94 to your computer and use it in GitHub Desktop.
Save zackdouglas/59af7793f3bf2dc3d340f58d602a5f94 to your computer and use it in GitHub Desktop.
Why does CSS attr() fail for input elements?
<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