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

Images with padding and border-radius are not cropped correctly #22818

Closed
ocerman opened this issue Feb 3, 2019 · 1 comment
Closed

Images with padding and border-radius are not cropped correctly #22818

ocerman opened this issue Feb 3, 2019 · 1 comment

Comments

@ocerman
Copy link

@ocerman ocerman commented Feb 3, 2019

servo-img-crop

<!DOCTYPE html>
<html>
	<head>
		<style>
			img{
				padding: 10px;
				height: 200px;
				border-radius: 50%;
			}
			.b{
				background: #BADA55;
			}
		</style>
	</head>
	<body>
		<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Hrad%C4%8Dansk%C3%A1%2C_Tatra_T3.jpg/320px-Hrad%C4%8Dansk%C3%A1%2C_Tatra_T3.jpg" alt="S">
		<img class="b" src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Hrad%C4%8Dansk%C3%A1%2C_Tatra_T3.jpg/320px-Hrad%C4%8Dansk%C3%A1%2C_Tatra_T3.jpg" alt="S">
	</body>
</html>
@jdm
Copy link
Member

@jdm jdm commented Apr 14, 2020

Looks like a duplicate of #20922, which has more information.

@jdm jdm closed this Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.