blob: 29eb66a77dbda750b52efb53849f33c06d2f5717 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<html>
<head>
<title>Intrinsic Size Test</title>
<style>input, textarea { border-radius:0; background:none; border:none; }</style>
</head>
<body>
<div>
<span style="border:2px solid black"><input style="background-color:transparent; border:none; font-family:monospace;"/></span>
</div>
<script>
let input = document.querySelector("input");
input.style.paddingLeft = (200 + parseInt(getComputedStyle(input).paddingLeft, 10)) + "px";
</script>
</body>
</html>
|