html2canvas-pro icon indicating copy to clipboard operation
html2canvas-pro copied to clipboard

Placeholder padding incorrect render

Open sanchezzzhak opened this issue 1 year ago • 1 comments

Chrome 127 on Linux

<!DOCTYPE html>
<html>
<head>
    <style>
        ul {
            list-style-type: none;
        }

        li {
            color: red;
            font-size: 20px;
            -webkit-text-stroke: 1px blue;
        }

        body {
            background: #0a0a0a;
            
        }

        .form__email {
            padding: 0 5.3rem;
            font-size: 2rem;
            background-color: #cef0ff;
            width: 250px;
            height: 8rem;
            border-radius: 5.5rem;
            border: .5rem solid #fff;
            line-height: 86.5%;
        }

    </style>
</head>

<body>
<ul>

    <input type="text" id="email" class="form__email" name="email" value="" placeholder="E-mail">

    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
</ul>
<button id="capture">Capture</button>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/html2canvas-pro.min.js"></script>
<script>
	document.getElementById('capture').addEventListener('click', function () {
		html2canvas(document.body).then(function (canvas) {
			document.body.appendChild(canvas);
		});
	});
</script>
</body>
</html>

image

sanchezzzhak avatar Oct 16 '24 13:10 sanchezzzhak

try to use this REPO fix all 🐞:https://github.com/qq15725/modern-screenshot

learner-dhx avatar Jun 19 '25 09:06 learner-dhx