зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
8b9cc40f16
Коммит
24d515e3ee
|
@ -318221,12 +318221,42 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"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",
|
||||
|
@ -523802,10 +523832,30 @@
|
|||
"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"
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
Загрузка…
Ссылка в новой задаче