Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-ui/tentative/button-user-select.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset=utf-8>
<title>CSS user-select default value for button element</title>
<link rel="author" title="Seva Alipov" href="mailto:salipov@mozilla.com">
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<button id="test_btn">Button under test</button>
<script>
test(function() {
assert_equals(getComputedStyle(test_btn).userSelect, "auto",
"Button should default to 'user-select: auto'");
}
)
</script>