mirror of
https://github.com/servo/servo
synced 2026-05-11 17:37:21 +02:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Background: background-attachment: background-attachment:fixed inside a transform</title>
|
|
<link href="mailto:botond@mozilla.com" rel="author" title="Botond Ballo">
|
|
<link href="https://www.mozilla.org" rel="author" title="Mozilla">
|
|
<link href="https://www.w3.org/TR/css-transforms-1/#transform-rendering" rel="help">
|
|
<link href="reference/background-attachment-fixed-inside-transform-1-ref.htm" rel="match">
|
|
<meta content="Test checks whether background-attachment: 'fixed' inside a transform behaves like background-attachment: 'scroll'." name="assert">
|
|
<style>
|
|
body {
|
|
height: 4000px;
|
|
margin: 0;
|
|
}
|
|
|
|
#outer {
|
|
margin: 200px;
|
|
height: 700px;
|
|
width: 300px;
|
|
transform: rotate(45deg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
#inner {
|
|
height: 700px;
|
|
background-image: radial-gradient(farthest-corner at center, blue, black);
|
|
background-size: 300px 300px;
|
|
background-position: 200px 200px;
|
|
background-color: lime;
|
|
background-repeat: no-repeat;
|
|
background-attachment: fixed;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="outer">
|
|
<div id="inner">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body></html> |