Bug 1453219 [wpt PR 10363] - [css-typed-om] Add support for scroll properties., a=testonly
authorDarren Shen <shend@chromium.org>
Thu, 19 Apr 2018 15:32:11 +0000
changeset 468413 2735c919c96719522cfea7bd2cafada7497ee184
parent 468412 7418deb2a7ef6102032930f0c03e6f0c6d9970cb
child 468414 225ad933fa2f31e7514ad7505417dcf37767ac11
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1453219, 10363, 820299, 999078, 549778
milestone61.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 1453219 [wpt PR 10363] - [css-typed-om] Add support for scroll properties., a=testonly Automatic update from web-platform-tests[css-typed-om] Add support for scroll properties. Test failures: - scroll-snap-align should always compute to a pair (but we currently compute to single keyword if specified). - scroll-snap-type should compute to as specified (but we currently compute to pair). Bug: 820299 Change-Id: Id38cee967daef8ac5c0658b958d6e74445035a83 Reviewed-on: https://chromium-review.googlesource.com/999078 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#549778} -- wpt-commits: 387fba3809b776a98e6b11725c6d9a5be037bbca wpt-pr: 10363 wpt-commits: 387fba3809b776a98e6b11725c6d9a5be037bbca wpt-pr: 10363
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -319494,28 +319494,52 @@
     ]
    ],
    "css/css-typed-om/the-stylepropertymap/properties/right.html": [
     [
      "/css/css-typed-om/the-stylepropertymap/properties/right.html",
      {}
     ]
    ],
+   "css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html",
+     {}
+    ]
+   ],
    "css/css-typed-om/the-stylepropertymap/properties/scroll-margin.html": [
     [
      "/css/css-typed-om/the-stylepropertymap/properties/scroll-margin.html",
      {}
     ]
    ],
    "css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html": [
     [
      "/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html",
      {}
     ]
    ],
+   "css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html",
+     {}
+    ]
+   ],
+   "css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html",
+     {}
+    ]
+   ],
+   "css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html",
+     {}
+    ]
+   ],
    "css/css-typed-om/the-stylepropertymap/properties/shape-outside.html": [
     [
      "/css/css-typed-om/the-stylepropertymap/properties/shape-outside.html",
      {}
     ]
    ],
    "css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray.html": [
     [
@@ -526033,24 +526057,40 @@
   "css/css-typed-om/the-stylepropertymap/properties/resources/testsuite.js": [
    "57acadafe23908035d6673f3383ef7019265ce3c",
    "support"
   ],
   "css/css-typed-om/the-stylepropertymap/properties/right.html": [
    "68a2611eaf9eecb7393c2b0db0f4378ebe285f22",
    "testharness"
   ],
+  "css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html": [
+   "a50ff312ff22f3d26fb22764d2da8689887dcb20",
+   "testharness"
+  ],
   "css/css-typed-om/the-stylepropertymap/properties/scroll-margin.html": [
    "7d4636be3e35639b915917412465b443241e95b1",
    "testharness"
   ],
   "css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html": [
    "d37d336e4695e5055706a7822572b81b943fdbd4",
    "testharness"
   ],
+  "css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html": [
+   "cf8850534ad2f8e2ea75d8783f0871b345535c06",
+   "testharness"
+  ],
+  "css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html": [
+   "6c2d1a024a017fb21427286a1e750be000b3168a",
+   "testharness"
+  ],
+  "css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html": [
+   "98d8d0e13352b31cce143894d9e1c6562985818d",
+   "testharness"
+  ],
   "css/css-typed-om/the-stylepropertymap/properties/shape-outside.html": [
    "3189c7b3903d30f31836ea845aebecf599198c79",
    "testharness"
   ],
   "css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray.html": [
    "5869084f1ea9acb9a2ebb8aa3aecf1635dad0e2a",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'scroll-behavior' property</title>
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../../resources/testhelper.js"></script>
+<script src="resources/testsuite.js"></script>
+<body>
+<div id="log"></div>
+<script>
+'use strict';
+
+runPropertyTests('scroll-behavior', [
+  { syntax: 'auto' },
+  { syntax: 'smooth' },
+]);
+
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html
@@ -0,0 +1,39 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'scroll-snap-align' property</title>
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../../resources/testhelper.js"></script>
+<script src="resources/testsuite.js"></script>
+<body>
+<div id="log"></div>
+<script>
+'use strict';
+
+runPropertyTests('scroll-snap-align', [
+  {
+    syntax: 'none',
+    computed: assert_is_unsupported
+  },
+  {
+    syntax: 'start',
+    computed: assert_is_unsupported
+  },
+  {
+    syntax: 'end',
+    computed: assert_is_unsupported
+  },
+  {
+    syntax: 'center',
+    computed: assert_is_unsupported
+  },
+]);
+
+runUnsupportedPropertyTests('scroll-snap-align', [
+  'none center', 'end start'
+]);
+
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'scroll-snap-stop' property</title>
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../../resources/testhelper.js"></script>
+<script src="resources/testsuite.js"></script>
+<body>
+<div id="log"></div>
+<script>
+'use strict';
+
+runPropertyTests('scroll-snap-stop', [
+  { syntax: 'normal' },
+  { syntax: 'always' },
+]);
+
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'scroll-snap-type' property</title>
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../../resources/testhelper.js"></script>
+<script src="resources/testsuite.js"></script>
+<body>
+<div id="log"></div>
+<script>
+'use strict';
+
+runPropertyTests('scroll-snap-type', [
+  { syntax: 'none' },
+  { syntax: 'x' },
+  { syntax: 'y' },
+  { syntax: 'block' },
+  { syntax: 'inline' },
+  { syntax: 'both' },
+]);
+
+runUnsupportedPropertyTests('scroll-snap-type', [
+  'x mandatory', 'inline proximity'
+]);
+
+</script>