summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1368113-1.html
blob: 8ee25cab072335410a472ce557d1862ab67d897a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<style>
  input::placeholder { color: red; }
  input.green::placeholder { color: green; }
</style>
<input type="number" placeholder="This should be green">
<script>
  var i = document.querySelector("input");
  var s = getComputedStyle(i, "::placeholder");
  // Make sure we've computed the old color.
  var oldColor = s.color;
  i.className = "green";
</script>