Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder padding incorrect render #92

Open
sanchezzzhak opened this issue Oct 16, 2024 · 0 comments
Open

Placeholder padding incorrect render #92

sanchezzzhak opened this issue Oct 16, 2024 · 0 comments

Comments

@sanchezzzhak
Copy link

sanchezzzhak commented Oct 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant