layout/reftests/bugs/256180-1.html
author Xianzhu Wang <wangxianzhu@chromium.org>
Tue, 05 Mar 2019 12:18:01 +0000
changeset 464575 4325ba7b38576495a78289c2a8f4dff391922e66
parent 383425 6a527c7a89a02bb34f7e5fcc772508053d4efacc
permissions -rw-r--r--
Bug 1529059 [wpt PR 15420] - [BlinkGenPropertyTrees] Initiailize double_sided of synthetic effect, a=testonly Automatic update from web-platform-tests [BlinkGenPropertyTrees] Initiailize double_sided of synthetic effect Previously synthetic effects always had double_sided==false, causing the layer disappear when the backface was facing forward. Bug: 928190 Change-Id: I35534b40346d5c5918bc99c00a4ca6b4e3b68796 Reviewed-on: https://chromium-review.googlesource.com/c/1475815 Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#632764} -- wpt-commits: a89467050deaf1dcbd9140a2f0670b1b85e518ee wpt-pr: 15420

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>1026-element-deep display: table-cell</title>
<script>
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

function count() {
    var depth = 0;
    var deepest = 0;
    var current = document;
    var next = null;
    outer: for (;;) {
        if ((next = current.firstChild)) {
            depth++;
            if (depth > deepest) {
                deepest = depth;
            }
            current = next;
            continue;
        }
        for (;;) {
            if ((next = current.nextSibling)) {
                current = next;
                break;
            }
            current = current.parentNode;
            depth--;
            if (current == document) {
                break outer;
            }
        }
    }

    var h1 = document.getElementsByTagName("h1")[0];
    var p = document.createElement("p");
    var t = document.createTextNode("Actual depth (including text leaves): " + deepest);
    p.appendChild(t);
    h1.parentNode.insertBefore(p, h1.nextSibling);
}

function deep() {
    var t = document.createTextNode("PASS");
    var div = document.createElement("div");
    div.appendChild(t);
    for (var i = 0; i < 1023; i++) {
        var another = document.createElement("div");
        another.appendChild(div);
        div = another;
    }
    document.body.appendChild(div);
    count();
}

window.addEventListener('DOMContentLoaded', deep, false);
</script>
<style>
    div {
        display: table-cell;
    }
</style>
</head>
<body>
<h1>1026-element-deep display: table-cell</h1>
</body>
</html>