Bug 1449085 [wpt PR 10189] - [css-typed-om] Support some text-decoration properties., a=testonly
authorDarren Shen <shend@chromium.org>
Mon, 09 Apr 2018 18:18:53 +0000
changeset 467197 54d89678fcd71638f020c62307571e14821bbdde
parent 467196 82ec32afc87e49787a48655ee0c8fc0d76f87293
child 467198 0d24098f0a4f928139af552c34229ebec8af4997
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
bugs1449085, 10189, 820299, 981717, 546364
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 1449085 [wpt PR 10189] - [css-typed-om] Support some text-decoration properties., a=testonly Automatic update from web-platform-tests[css-typed-om] Support some text-decoration properties. Adds tests for: - text-decoration - text-decoration-line - text-decoration-skip (not implemented in Blink) - text-decoration-skip-ink - text-decoration-width (not implemented in Blink) text-decoration-line uses a weird internal structure for CSSValues, so we have to encode/decode to that structure when getting/setting. Failing tests because for some reason we ignore 'blink' for the computed value. Blink also doesn't support 'spelling-error' and 'grammar-error' yet. Bug: 820299 Change-Id: I60e8c3958c9b3a784177c9813a7325aa26e39581 Reviewed-on: https://chromium-review.googlesource.com/981717 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#546364} wpt-commits: 62d701058e3ddedb88df00fadb4e05802b7e8cbc wpt-pr: 10189 wpt-commits: 62d701058e3ddedb88df00fadb4e05802b7e8cbc wpt-pr: 10189
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-width.html
testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -318216,22 +318216,52 @@
     ]
    ],
    "css/css-typed-om/the-stylepropertymap/properties/text-decoration-color.html": [
     [
      "/css/css-typed-om/the-stylepropertymap/properties/text-decoration-color.html",
      {}
     ]
    ],
+   "css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html",
+     {}
+    ]
+   ],
+   "css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html",
+     {}
+    ]
+   ],
+   "css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html",
+     {}
+    ]
+   ],
    "css/css-typed-om/the-stylepropertymap/properties/text-decoration-style.html": [
     [
      "/css/css-typed-om/the-stylepropertymap/properties/text-decoration-style.html",
      {}
     ]
    ],
+   "css/css-typed-om/the-stylepropertymap/properties/text-decoration-width.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/text-decoration-width.html",
+     {}
+    ]
+   ],
+   "css/css-typed-om/the-stylepropertymap/properties/text-decoration.html": [
+    [
+     "/css/css-typed-om/the-stylepropertymap/properties/text-decoration.html",
+     {}
+    ]
+   ],
    "css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color.html": [
     [
      "/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color.html",
      {}
     ]
    ],
    "css/css-typed-om/the-stylepropertymap/properties/text-orientation.html": [
     [
@@ -523797,20 +523827,40 @@
   "css/css-typed-om/the-stylepropertymap/properties/text-align.html": [
    "88a1f5866a767c25dec2ef75728c68c5631d371f",
    "testharness"
   ],
   "css/css-typed-om/the-stylepropertymap/properties/text-decoration-color.html": [
    "fe6d3765ca8fea1c1963a310d0aa35fa68089a9b",
    "testharness"
   ],
+  "css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html": [
+   "0bd9668c45b14a0c52869ed0627cc408af550a25",
+   "testharness"
+  ],
+  "css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html": [
+   "f6a122cc2d44432e94e0700961868a5708cde232",
+   "testharness"
+  ],
+  "css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html": [
+   "db1e8a3d65c8c0653e3412c965df11fc4917ba85",
+   "testharness"
+  ],
   "css/css-typed-om/the-stylepropertymap/properties/text-decoration-style.html": [
    "b541bd8b57f8b85f6e5f3a17a3266169debee876",
    "testharness"
   ],
+  "css/css-typed-om/the-stylepropertymap/properties/text-decoration-width.html": [
+   "50f917bbd7df4e0c235a6c84a4ec5a90243e36dc",
+   "testharness"
+  ],
+  "css/css-typed-om/the-stylepropertymap/properties/text-decoration.html": [
+   "88d9f53aa4691c682c37fe74f7644e8ac8344cc9",
+   "testharness"
+  ],
   "css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color.html": [
    "9419ab219034d1fb732965ebd3a03934bcaddf5a",
    "testharness"
   ],
   "css/css-typed-om/the-stylepropertymap/properties/text-orientation.html": [
    "919ebc1fadf6e097071a0f1618afeed0849f18e6",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'text-decoration-line' 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('text-decoration-line', [
+  { syntax: 'none' },
+  { syntax: 'underline' },
+  { syntax: 'overline' },
+  { syntax: 'line-through' },
+  { syntax: 'blink' },
+  { syntax: 'spelling-error' },
+  { syntax: 'grammar-error' },
+]);
+
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'text-decoration-skip-ink' 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('text-decoration-skip-ink', [
+  { syntax: 'auto' },
+  { syntax: 'none' },
+]);
+
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'text-decoration-skip' 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('text-decoration-skip', [
+  { syntax: 'none' },
+  { syntax: 'objects' },
+  { syntax: 'edges' },
+  { syntax: 'box-decoration' },
+  { syntax: 'spaces' },
+]);
+
+runUnsupportedPropertyTests('text-decoration-skip', [
+  'objects spaces', 'leading-spaces trailing-spaces',
+  'objects edges box-decoration'
+]);
+
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-width.html
@@ -0,0 +1,24 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'text-decoration-width' 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('text-decoration-width', [
+  { syntax: 'auto' },
+  {
+    syntax: '<length>',
+    specified: assert_is_equal_with_range_handling
+  },
+]);
+
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'text-decoration' 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';
+
+runUnsupportedPropertyTests('text-decoration', [
+  'underline', 'underline dotted #ff3028', 'green wavy underline'
+]);
+
+</script>