2009-05-28 11:09:05 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>background-size: 100% 100%; stretch</title>
|
|
|
|
<style type="text/css">
|
|
|
|
#outer
|
|
|
|
{
|
|
|
|
border: 10px solid black;
|
|
|
|
width: 60px;
|
|
|
|
height: 120px;
|
|
|
|
}
|
|
|
|
#inner
|
|
|
|
{
|
|
|
|
width: 60px;
|
|
|
|
height: 120px;
|
|
|
|
background-image: url(blue-8x20-green-16x20.png);
|
|
|
|
background-repeat: no-repeat;
|
2010-06-08 18:44:33 -07:00
|
|
|
background-size: 100% 100%;
|
2009-05-28 11:09:05 -07:00
|
|
|
}
|
|
|
|
#innermost
|
|
|
|
{
|
|
|
|
width: 15px;
|
|
|
|
height: 120px;
|
|
|
|
|
|
|
|
/* obscure sampling artifacts at the color boundary */
|
|
|
|
border-right: 10px solid black;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="outer"><div id="inner"><div id="innermost"></div></div></div>
|
|
|
|
</body>
|
|
|
|
</html>
|