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

Side by Side Diff: LayoutTests/fast/css/sticky/sticky-as-positioning-container-expected.html

Issue 1212893005: Add position: sticky as supported position value when CSSStickyPosition is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge, convert pixel to ref tests, and address comments. Created 5 years, 5 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>
2 <style type="text/css">
3 div {
4 height: 100px;
5 width: 100px;
6 }
7 .spacer {
8 background-color: red;
9 }
10 .sticky {
11 background-color: green;
12 position: relative;
13 }
14 .absoffset {
15 background-color: green;
16 position: absolute;
17 top: -100px;
18 }
19 </style>
20 <div class="spacer"></div>
21 <div class="sticky">
22 <!--
23 Tests that the absolute positioned child is positioned relative to the stick y container. You should see only a
24 green box as this will cover up the red box above the sticky div.
25 -->
26 <div class="absoffset"></div>
27 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698