25 lines
519 B
HTML
25 lines
519 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>This tests that there's no pixel gap between adjacent inlines when selected.</title>
|
|
<style>
|
|
body {
|
|
margin: 0px;
|
|
color: rgba(255, 255, 255, 0);
|
|
font-size: 16px;
|
|
}
|
|
::selection {
|
|
background: rgba(255, 0, 0, 0.9);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="container"><span>foo</span> foo</div>
|
|
<script>
|
|
var range = document.createRange();
|
|
range.selectNode(document.getElementById("container"));
|
|
window.getSelection().addRange(range);
|
|
</script>
|
|
</body>
|
|
</html>
|