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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-contain.html

Issue 2328633003: A container of out-of-flow positioned descendants should be an offsetParent. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!-- contain:paint establishes a containing block for out-of-flow positioned des cendants. -->
3 <div id="containPaint" style="contain:paint;">
4 <div id="test1"></div>
5 </div>
6 <!-- contain:layout does NOT establish a containing block for out-of-flow positi oned descendants. -->
7 <div id="containLayout" style="contain:layout;">
8 <div id="test2"></div>
9 </div>
10 <!-- contain:style does NOT establish a containing block for out-of-flow positio ned descendants. -->
11 <div id="containStyle" style="contain:style;">
12 <div id="test3"></div>
13 </div>
14 <!-- contain:size does NOT establish a containing block for out-of-flow position ed descendants. -->
15 <div id="containStyle" style="contain:size;">
16 <div id="test4"></div>
17 </div>
18 <script src="../../../resources/testharness.js"></script>
19 <script src="../../../resources/testharnessreport.js"></script>
20 <script>
21 test(function() {
22 assert_equals(document.getElementById("test1").offsetParent, document.get ElementById("containPaint"));
23 }, "inside contain:paint");
24 test(function() {
25 assert_equals(document.getElementById("test2").offsetParent, document.bod y);
26 }, "inside contain:layout");
27 test(function() {
28 assert_equals(document.getElementById("test3").offsetParent, document.bod y);
29 }, "inside contain:style");
30 test(function() {
31 assert_equals(document.getElementById("test4").offsetParent, document.bod y);
32 }, "inside contain:size");
33 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698