mirror of
https://github.com/servo/servo.git
synced 2025-06-17 21:04:28 +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
284 B
HTML
22 lines
284 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
div {
|
|
background-image: url("test.jpeg");
|
|
width: 420px;
|
|
height: 298px;
|
|
border-width: 10px 20px 30px 40px;
|
|
border-style: solid;
|
|
border-color: red;
|
|
padding: 40px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div></div>
|
|
|
|
</body>
|
|
</html>
|
|
|