mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00:00
According to CSS2.1 spec, background image should be positioned on padding box. Spec: http://www.w3.org/TR/CSS21/colors.html#propdef-background-position Fixes #6034.
22 lines
274 B
HTML
22 lines
274 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
div {
|
|
width: 560px;
|
|
height: 418px;
|
|
background-color: red;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div>
|
|
<!-- Image dimension is 500x378. -->
|
|
<img src="test.jpeg" style="position:relative; left:40px; top:10px;">
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|
|
|