Bug 1528107 - Reland changes to scroll-anchoring tests. r=dholbert
authorRyan Hunt <rhunt@eqrion.net>
Thu, 14 Feb 2019 18:54:49 -0600
changeset 459554 6fa064cb22ba0be5576eb8c101f38e3566aa511a
parent 459553 db3c4f90508207462b85037b1a69c563b1a6b88e
child 459555 57243d949492189c7094607a352f27a4c31b8dc7
push id111965
push userrhunt@eqrion.net
push dateFri, 15 Feb 2019 19:31:57 +0000
treeherdermozilla-inbound@6fa064cb22ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1528107
milestone67.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 1528107 - Reland changes to scroll-anchoring tests. r=dholbert These changes were reviewed, landed, and accidentally backed out in bug 1528107. Differential Revision: https://phabricator.services.mozilla.com/D19871
testing/web-platform/meta/css/css-scroll-anchoring/ancestor-change-heuristic.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/anchoring-with-bounds-clamping.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/basic.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/descend-into-container-with-float.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/descend-into-container-with-overflow.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/exclude-fixed-position.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/inline-block.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/position-change-heuristic.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/start-edge-in-block-layout-direction.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/subtree-exclusion.html.ini
testing/web-platform/meta/css/css-scroll-anchoring/wrapped-text.html.ini
testing/web-platform/tests/css/css-scroll-anchoring/ancestor-change-heuristic.html
testing/web-platform/tests/css/css-scroll-anchoring/anchoring-with-bounds-clamping.html
testing/web-platform/tests/css/css-scroll-anchoring/basic.html
testing/web-platform/tests/css/css-scroll-anchoring/descend-into-container-with-float.html
testing/web-platform/tests/css/css-scroll-anchoring/descend-into-container-with-overflow.html
testing/web-platform/tests/css/css-scroll-anchoring/exclude-fixed-position.html
testing/web-platform/tests/css/css-scroll-anchoring/inline-block.html
testing/web-platform/tests/css/css-scroll-anchoring/position-change-heuristic.html
testing/web-platform/tests/css/css-scroll-anchoring/start-edge-in-block-layout-direction.html
testing/web-platform/tests/css/css-scroll-anchoring/subtree-exclusion.html
testing/web-platform/tests/css/css-scroll-anchoring/wrapped-text.html
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/ancestor-change-heuristic.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[ancestor-change-heuristic.html]
-  [Ancestor changes in document scroller.]
-    expected:
-      if not debug and (os == "android") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-      FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/anchoring-with-bounds-clamping.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[anchoring-with-bounds-clamping.html]
-  [Anchoring combined with scroll bounds clamping in the document.]
-    expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/basic.html.ini
+++ /dev/null
@@ -1,7 +0,0 @@
-[basic.html]
-  [Minimal scroll anchoring example.]
-    expected:
-      if (os == "win"): "FAIL"
-      if (os == "mac"): "FAIL"
-      if (os == "linux"): "FAIL"
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/descend-into-container-with-float.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[descend-into-container-with-float.html]
-  [Zero-height container with float.]
-    expected:
-      if not debug and (os == "android") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-      FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/descend-into-container-with-overflow.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[descend-into-container-with-overflow.html]
-  [Zero-height container with visible overflow.]
-    expected:
-      if not debug and (os == "android") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-      FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/exclude-fixed-position.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[exclude-fixed-position.html]
-  [Fixed-position header.]
-    expected:
-      if not debug and (os == "android") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-      FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/inline-block.html.ini
+++ /dev/null
@@ -1,7 +0,0 @@
-[inline-block.html]
-  [Anchor selection descent into inline blocks.]
-    expected:
-      if (os == "linux"): "FAIL"
-      if (os == "mac"): "FAIL"
-      if (os == "win"): "FAIL"
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/position-change-heuristic.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[position-change-heuristic.html]
-  [Position changes in document scroller.]
-    expected:
-      if not debug and (os == "android") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-      FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/start-edge-in-block-layout-direction.html.ini
+++ /dev/null
@@ -1,19 +0,0 @@
-[start-edge-in-block-layout-direction.html]
-  [Vertical-RL LTR.]
-    expected: FAIL
-
-  [Horizontal RTL.]
-    expected: FAIL
-
-  [Vertical-LR LTR.]
-    expected: FAIL
-
-  [Horizontal LTR.]
-    expected: FAIL
-
-  [Vertical-RL RTL.]
-    expected: FAIL
-
-  [Vertical-LR RTL.]
-    expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/subtree-exclusion.html.ini
+++ /dev/null
@@ -1,7 +0,0 @@
-[subtree-exclusion.html]
-  [Subtree exclusion with overflow-anchor.]
-    expected:
-      if (os == "win"): "FAIL"
-      if (os == "mac"): "FAIL"
-      if (os == "linux"): "FAIL"
-
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-scroll-anchoring/wrapped-text.html.ini
+++ /dev/null
@@ -1,7 +0,0 @@
-[wrapped-text.html]
-  [Anchoring with text wrapping changes.]
-    expected:
-      if (os == "win"): "FAIL"
-      if (os == "mac"): "FAIL"
-      if (os == "linux"): "FAIL"
-
--- a/testing/web-platform/tests/css/css-scroll-anchoring/ancestor-change-heuristic.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/ancestor-change-heuristic.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
-#space { height: 1000px; }
+#space { height: 4000px; }
 #ancestor { position: relative; }
 #before, #anchor { height: 100px; }
 #anchor { background-color: green; }
 
 .layout1 { padding-top: 20px; }
 .layout2 { margin-right: 20px; }
 .layout3 { max-width: 100px; }
 .layout4 { min-height: 400px; }
--- a/testing/web-platform/tests/css/css-scroll-anchoring/anchoring-with-bounds-clamping.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/anchoring-with-bounds-clamping.html
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
 #changer { height: 1500px; }
 #anchor {
   width: 150px;
-  height: 1000px;
+  height: 4000px;
   background-color: pink;
 }
 
 </style>
 <div id="changer"></div>
 <div id="anchor"></div>
 <script>
 
--- a/testing/web-platform/tests/css/css-scroll-anchoring/basic.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/basic.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
-body { height: 1000px; }
+body { height: 4000px; }
 div { height: 100px; }
 
 </style>
 <div id="block1">abc</div>
 <div id="block2">def</div>
 <script>
 
 // Tests that growing an element above the viewport produces a scroll
--- a/testing/web-platform/tests/css/css-scroll-anchoring/descend-into-container-with-float.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/descend-into-container-with-float.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
-body { height: 1000px; }
+body { height: 4000px; }
 #outer { width: 300px; }
 #outer:after { content: " "; clear:both; display: table; }
 #float {
   float: left; background-color: #ccc;
   height: 500px; width: 100%;
 }
 #inner { height: 100px; background-color: green; }
 
--- a/testing/web-platform/tests/css/css-scroll-anchoring/descend-into-container-with-overflow.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/descend-into-container-with-overflow.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
-body { height: 1000px; }
+body { height: 4000px; }
 #outer { width: 300px; }
 #zeroheight { height: 0px; }
 #changer { height: 100px; background-color: red; }
 #bottom { margin-top: 600px; }
 
 </style>
 <div id="outer">
   <div id="zeroheight">
--- a/testing/web-platform/tests/css/css-scroll-anchoring/exclude-fixed-position.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/exclude-fixed-position.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
-body { height: 1000px; margin: 0; }
+body { height: 4000px; margin: 0; }
 #fixed, #content { width: 200px; height: 100px; }
 #fixed { position: fixed; left: 100px; top: 50px; }
 #before { height: 50px; }
 #content { margin-top: 100px; }
 
 </style>
 <div id="fixed">fixed</div>
 <div id="before"></div>
--- a/testing/web-platform/tests/css/css-scroll-anchoring/inline-block.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/inline-block.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
-body { height: 1000px }
+body { height: 4000px }
 #outer { line-height: 100px }
 #ib1, #ib2 { display: inline-block }
 
 </style>
 <span id=outer>
   <span id=ib1>abc</span>
   <br><br>
   <span id=ib2>def</span>
--- a/testing/web-platform/tests/css/css-scroll-anchoring/position-change-heuristic.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/position-change-heuristic.html
@@ -1,15 +1,15 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
 #space {
-  height: 1000px;
+  height: 4000px;
 }
 #header {
   background-color: #F5B335;
   height: 50px;
   width: 100%;
 }
 #content {
   background-color: #D3D3D3;
--- a/testing/web-platform/tests/css/css-scroll-anchoring/start-edge-in-block-layout-direction.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/start-edge-in-block-layout-direction.html
@@ -27,35 +27,39 @@ html.vrl { writing-mode: vertical-rl; }
   width: 100px;
   height: 100px;
 }
 #block_pusher { background-color: #e88; }
 #inline_pusher { background-color: #88e; }
 .vpush { height: 80px !important; }
 .hpush { width: 70px !important; }
 
+#anchor-container {
+  display: inline-block;
+}
 #anchor {
   position: relative;
-  display: inline-block;
   background-color: #8e8;
   min-width: 100px;
   min-height: 100px;
 }
 
 #grower { width: 0; height: 0; }
 .grow {
   width: 180px !important;
   height: 160px !important;
 }
 
 </style>
 <div id="container">
   <div id="block_pusher"></div><br>
-  <div id="inline_pusher"></div><div id="anchor">
-    <div id="grower"></div>
+  <div id="inline_pusher"></div><div id="anchor-container">
+    <div id="anchor">
+      <div id="grower"></div>
+    </div>
   </div>
 </div>
 <script>
 
 // Tests that anchoring adjustments are only on the block layout axis and that
 // their magnitude is based on the movement of the block start edge of the
 // anchor node, for all 6 combinations of text direction and writing mode,
 // regardless of which corner of the viewport the anchor node overlaps.
--- a/testing/web-platform/tests/css/css-scroll-anchoring/subtree-exclusion.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/subtree-exclusion.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
-body { height: 1000px }
+body { height: 4000px }
 #A, #B { width: 100px; background-color: #afa; }
 #B { height: 100px; }
 #inner { width: 100px; height: 100px; background-color: pink; }
 #A { overflow-anchor: none; }
 
 </style>
 <div id="changer1"></div>
 <div id="A">
--- a/testing/web-platform/tests/css/css-scroll-anchoring/wrapped-text.html
+++ b/testing/web-platform/tests/css/css-scroll-anchoring/wrapped-text.html
@@ -2,17 +2,17 @@
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
 
 body {
   position: absolute;
   font-size: 100px;
   width: 200px;
-  height: 1000px;
+  height: 4000px;
   line-height: 100px;
 }
 
 </style>
 abc <b id=b>def</b> ghi
 <script>
 
 // Tests anchoring to a text node that is moved by preceding text.