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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-display-3/support/util.js

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Allow text as child of the LayoutView, since it can happen with display: contents Created 4 years 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 function eachDisplayContentsElementIn(document, window, callbackDo, callbackUndo ) {
2 var elements = [];
3
4 document.body.offsetHeight;
5
6 // NOTE: Doing qsa('*') and getComputedStyle is just for the
7 // test's shake, since it's easier to mess it up when
8 // getComputedStyle is involved.
9 var all = document.querySelectorAll('*');
10 for (var i = 0; i < all.length; ++i) {
11 if (window.getComputedStyle(all[i]).display === "contents") {
12 callbackDo(all[i]);
13 elements.push(all[i]);
14 }
15 }
16
17 document.body.offsetHeight;
18
19 for (var i = 0; i < elements.length; ++i)
20 callbackUndo(elements[i]);
21
22 document.body.offsetHeight;
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698