Skip to content

Instantly share code, notes, and snippets.

@zackdouglas
Created February 9, 2017 00:25
Show Gist options
  • 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