Skip to content

Commit

Permalink
HTML: make sure the default opacity of ::placeholder is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Sep 17, 2020
1 parent 66ef447 commit a9855a7
Showing 1 changed file with 25 additions and 0 deletions.
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Placeholder Test: opacity default value</title>
<link rel="author" title="Karl Dubost" href="mailto:kdubost@mozilla.com"
/>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#placeholder-pseudo"
/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<input
id="opacity"
placeholder="::placeholder should have default opacity: 1"
/>
<script>
test(function () {
var target = document.getElementById("opacity");
assert_equals(getComputedStyle(target, '::placeholder').opacity, "1");
}, "Default opacity value is '1'");
</script>
</body>
</html>

0 comments on commit a9855a7

Please sign in to comment.