Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/LayoutTests/css2.1/20110323/dynamic-top-change-001.htm

Issue 2827713002: Delete duplicated LayoutTests from css2.1/20110323 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Inheriting 'top' changes from relpos grandparent</title>
5 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
6 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade. net/contact">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inher it">
8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#position-props" >
9 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-positio n">
10 <meta name="flags" content="dom">
11 <meta name="assert" content="The position of a positioned element which inheri ts its 'top' value from its relatively positioned grandparent changes when the g randparent's 'top' value is changed.">
12 <style type="text/css">
13 .testDiv { position: absolute; width: 100px; height: 100px; }
14 #green { top: 4em; background: green; }
15 #red { top: inherit; background: red; }
16 #parent { top: inherit; position: relative; }
17 #grandparent { position: relative; }
18 </style>
19 <script type="text/javascript">
20 window.onload = function() {
21 document.body.offsetWidth;
22 document.getElementById("grandparent").style.top = "2em";
23 }
24 </script>
25 </head>
26 <body>
27 <p>There should be no red.</p>
28 <div id="grandparent">
29 <div id="parent">
30 <div id="red" class="testDiv"></div>
31 </div>
32 <div id="green" class="testDiv"></div>
33 </div>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698