mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00

Tests that selecting a contentEditable node with style `user-select: none` via `execCommand` doesn't trigger an assertion. Differential Revision: https://phabricator.services.mozilla.com/D61829 --HG-- extra : moz-landing-system : lando
20 lines
367 B
HTML
20 lines
367 B
HTML
<html class="reftest-wait">
|
|
<head>
|
|
<style>
|
|
* {
|
|
user-select: none;
|
|
}
|
|
</style>
|
|
<script>
|
|
function start () {
|
|
document.execCommand('selectAll', false);
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="start()">
|
|
<div contentEditable="true"></div>
|
|
</body>
|
|
</html>
|
|
|