Revision fced01876b48e034b64d9dad6de14d1bdeba3cc0 authored by Daniel Cheng on 12 April 2018, 12:08:45 UTC, committed by Chromium WPT Sync on 12 April 2018, 12:08:45 UTC
Change-Id: I1e66f2cdc50be889b697b54401be6352607fa649 Reviewed-on: https://chromium-review.googlesource.com/1006528 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#550152}
1 parent 19a42b9
transform-abspos-002.html
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Containing Block for Fixed Positioning (left/top offsets)</title>
<link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com">
<link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='"In the HTML namespace, any value other than
'none' for the transform results in the creation of . . . a
containing block. The object acts as a containing block for fixed
positioned descendants." This means fixed-position elements need to be
rooted at a transformed ancestor, rather than the viewport.'>
<link rel="match" href="transform-abspos-ref.html">
<style>
body > div {
width: 100px;
height: 200px;
transform: translate(50px, 50px);
background: gold;
}
body > div > div {
width: 200px;
height: 100px;
position: fixed;
left: 50px;
top: 100px;
background: navy;
color: gold;
}
</style>
</head>
<body>
<div>
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
<div>
0 1 2 3 4 5 6 7 8 9
</div>
</div>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...