Bug 1383981: Similar crashtest for sibling combinators. r=heycam
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 25 Jul 2017 11:23:11 +0200
changeset 422587 4cc438fa220552a87fa3abb9dbfa2e9e99445cce
parent 422586 6f13b6990f426088776cad32fbef814dd13f5cab
child 422588 6025770ffa49e46b4d80b42f430530ebfa612a7a
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1383981
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1383981: Similar crashtest for sibling combinators. r=heycam MozReview-Commit-ID: 3Z6YD8evbOs
layout/style/crashtests/1383981-2.html
layout/style/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1383981-2.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<style>
+div { padding: 1px; }
+.test div { padding: 2px; }
+.test div ~ div { padding: 3px; }
+.test div ~ div ~ div { background: orange; }
+.test div ~ div ~ div ~ div { background: white; }
+.test div ~ div ~ div ~ div ~ div { background: red; }
+</style>
+<body>
+<script>
+let root = document.createElement('div');
+for (let i = 0; i < 1000; ++i) {
+  let div = root.appendChild(document.createElement('div'));
+  div.appendChild(document.createTextNode(i));
+}
+document.body.appendChild(root);
+document.body.offsetTop;
+root.className = 'test';
+</script>
+</body>
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -189,8 +189,9 @@ load 1383975.html
 load border-image-visited-link.html
 load content-only-on-link-before.html
 load content-only-on-visited-before.html
 load font-face-truncated-src.html
 load large_border_image_width.html
 load link-transition-before.html
 load long-url-list-stack-overflow.html
 load 1383981.html
+load 1383981-2.html