Bug 1646929 [wpt PR 24248] - [FragmentItem] Skip already added children in CreateBoxFragment, a=testonly
authorKoji Ishii <kojii@chromium.org>
Mon, 22 Jun 2020 10:44:50 +0000
changeset 600937 406df6d65cc57594968a45a1fe5ec067979ae53f
parent 600936 28cfa6865c05bc6e48070f45e4c1ce0d9f8c46c3
child 600938 88fa5bd17cde18067f9ef26b10636a333e119e51
push id13310
push userffxbld-merge
push dateMon, 29 Jun 2020 14:50:06 +0000
treeherdermozilla-beta@15a59a0afa5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1646929, 24248, 1096957, 2251643, 780231
milestone79.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 1646929 [wpt PR 24248] - [FragmentItem] Skip already added children in CreateBoxFragment, a=testonly Automatic update from web-platform-tests [FragmentItem] Skip already added children in CreateBoxFragment FragmentItem keeps all inline items in a flat list. When inline box fragments are nested, |CreateBoxFragment| handles the same item twice; once for its parent and another for its grand parent. This patch fixes this by skipping non-direct children. Bug: 1096957 Change-Id: If5acba0c5bd687d156cc4530fbe6123bca9840ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2251643 Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#780231} -- wpt-commits: 7fa40bc15a3af48dd0b6dd6d8cd16b109ac5d61e wpt-pr: 24248
testing/web-platform/tests/css/CSS2/positioning/abspos-inline-container-in-inline-block.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/positioning/abspos-inline-container-in-inline-block.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#propdef-position">
+<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div>
+  <span style="border: 1px solid blue">
+    <span style="position: relative">
+      <span style="display: inline-block">
+        <span style="position: absolute; background: orange; width: 100px; height: 100px"></span>
+      </span>
+    </span>
+  </span>
+</div>
+<script>
+// Test pass if it does not crash.
+test(() => {});
+</script>