Update css/css-text-decor WPT
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Oct 2019 00:31:01 +0000 (00:31 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Oct 2019 00:31:01 +0000 (00:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=203532

Reviewed by Tim Horton.
LayoutTests/imported/w3c:

Import css/css-text-decor at e68120da0fb52f010f206f3ecc63cfa09885b0f4 (Wed Oct 23 13:18:06 2019 -0700)

* resources/import-expectations.json:
* resources/resource-files.json:
* web-platform-tests/css/css-text-decor/META.yml: Added.
* web-platform-tests/css/css-text-decor/OWNERS: Removed.
* web-platform-tests/css/css-text-decor/inheritance-expected.txt: Added.
* web-platform-tests/css/css-text-decor/inheritance.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-computed.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-decoration-valid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-shadow-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-shadow-computed.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-shadow-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-shadow-valid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid.html: Added.
* web-platform-tests/css/css-text-decor/parsing/w3c-import.log: Added.
* web-platform-tests/css/css-text-decor/text-decoration-color.html:
* web-platform-tests/css/css-text-decor/text-decoration-line-010-expected.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-010.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-011-expected.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-011.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-012-expected.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-012.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-013-expected.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-013.xht:
* web-platform-tests/css/css-text-decor/text-decoration-line-recalc-expected.html:
* web-platform-tests/css/css-text-decor/text-decoration-line-recalc.html:
* web-platform-tests/css/css-text-decor/text-decoration-line.html:
* web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative-expected.txt:
* web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative.html:
* web-platform-tests/css/css-text-decor/text-decoration-shorthands-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-shorthands-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-shorthands-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-shorthands-002.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-initial-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-initial.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-valid.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja.html: Added.
* web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical.html: Added.
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-002-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-002.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-001-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-001.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-002-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-002.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-001-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-001.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-002-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-002.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-001-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-001.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002-expected.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002.xht:
* web-platform-tests/css/css-text-decor/text-emphasis-style-006-expected.html:
* web-platform-tests/css/css-text-decor/text-emphasis-style-007-expected.html:
* web-platform-tests/css/css-text-decor/text-emphasis-style-008-expected.html:
* web-platform-tests/css/css-text-decor/text-emphasis-style-008.html:
* web-platform-tests/css/css-text-decor/text-emphasis-style-010-expected.html:
* web-platform-tests/css/css-text-decor/text-emphasis-style-021-expected.html:
* web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-001.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-002.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-computed-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-computed.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-initial-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-initial.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-invalid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-invalid.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-valid-expected.txt: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-valid.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002-expected.html: Added.
* web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002.html: Added.
* web-platform-tests/css/css-text-decor/w3c-import.log:

LayoutTests:

Mark tests as failing.

* TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251689 268f45cc-cd09-0410-ab3c-d52691b4dbfc

169 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/resources/import-expectations.json
LayoutTests/imported/w3c/resources/resource-files.json
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/META.yml [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/OWNERS [deleted file]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-color.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-010-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-010.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-011-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-011.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-012-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-012.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-013-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-013.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-recalc-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-recalc.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative-expected.txt
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-initial-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-initial.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-002-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-002.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-001-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-001.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-002-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-002.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-001-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-001.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-002-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-002.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-001-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-001.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002-expected.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002.xht
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-006-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-007-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-008-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-008.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-010-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-021-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-computed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-computed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-initial-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-initial.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-invalid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-invalid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-valid-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-valid.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/w3c-import.log

index a1b1c47..4cc79af 100644 (file)
@@ -1,3 +1,14 @@
+2019-10-28  Simon Fraser  <simon.fraser@apple.com>
+
+        Update css/css-text-decor WPT
+        https://bugs.webkit.org/show_bug.cgi?id=203532
+
+        Reviewed by Tim Horton.
+
+        Mark tests as failing.
+
+        * TestExpectations:
+
 2019-10-28  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         Add bindings support for the enterkeyhint HTML attribute
index ed84c00..9ebd85a 100644 (file)
@@ -3919,6 +3919,18 @@ webkit.org/b/203338 imported/w3c/web-platform-tests/css/css-values/vh_not_refres
 
 webkit.org/b/202859 imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/range-setattribute-value.html [ ImageOnlyFailure ]
 
+# wpt css-text-decor failures
+webkit.org/b/203530 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-recalc.html [ ImageOnlyFailure ]
+webkit.org/b/203531 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow.html [ ImageOnlyFailure ]
+webkit.org/b/203528 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001.html [ ImageOnlyFailure ]
+webkit.org/b/203528 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001.html [ ImageOnlyFailure ]
+webkit.org/b/203528 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html [ ImageOnlyFailure ]
+webkit.org/b/203528 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001.html [ ImageOnlyFailure ]
+webkit.org/b/203528 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001.html [ ImageOnlyFailure ]
+webkit.org/b/203528 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html [ ImageOnlyFailure ]
+webkit.org/b/203529 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja.html [ ImageOnlyFailure ]
+webkit.org/b/203529 imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical.html [ ImageOnlyFailure ]
+
 # wpt css-position failures
 webkit.org/b/203445 [ Debug ] imported/w3c/web-platform-tests/css/css-position/position-absolute-container-dynamic-002.html [ Skip ]
 webkit.org/b/203445 [ Debug ] imported/w3c/web-platform-tests/css/css-position/position-absolute-crash-chrome-005.html [ Skip ]
@@ -3961,4 +3973,3 @@ webkit.org/b/203451 imported/w3c/web-platform-tests/css/css-position/static-posi
 webkit.org/b/203451 imported/w3c/web-platform-tests/css/css-position/static-position/vrl-ltr-rtl.tentative.html [ ImageOnlyFailure ]
 webkit.org/b/203451 imported/w3c/web-platform-tests/css/css-position/static-position/vrl-rtl-ltr.tentative.html [ ImageOnlyFailure ]
 webkit.org/b/203451 imported/w3c/web-platform-tests/css/css-position/static-position/vrl-rtl-rtl.html [ ImageOnlyFailure ]
-
index 2d5dff4..6730087 100644 (file)
@@ -1,3 +1,179 @@
+2019-10-28  Simon Fraser  <simon.fraser@apple.com>
+
+        Update css/css-text-decor WPT
+        https://bugs.webkit.org/show_bug.cgi?id=203532
+
+        Reviewed by Tim Horton.
+        
+        Import css/css-text-decor at e68120da0fb52f010f206f3ecc63cfa09885b0f4 (Wed Oct 23 13:18:06 2019 -0700)
+
+        * resources/import-expectations.json:
+        * resources/resource-files.json:
+        * web-platform-tests/css/css-text-decor/META.yml: Added.
+        * web-platform-tests/css/css-text-decor/OWNERS: Removed.
+        * web-platform-tests/css/css-text-decor/inheritance-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/inheritance.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-decoration-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-shadow-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-shadow-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-shadow-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-shadow-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/parsing/w3c-import.log: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-color.html:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-010-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-010.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-011-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-011.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-012-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-012.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-013-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-013.xht:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-recalc-expected.html:
+        * web-platform-tests/css/css-text-decor/text-decoration-line-recalc.html:
+        * web-platform-tests/css/css-text-decor/text-decoration-line.html:
+        * web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative-expected.txt:
+        * web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative.html:
+        * web-platform-tests/css/css-text-decor/text-decoration-shorthands-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-shorthands-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-shorthands-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-shorthands-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-initial-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-initial.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja.html: Added.
+        * web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical.html: Added.
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-002-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-002.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-001-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-001.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-002-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-002.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-001-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-001.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-002-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-002.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-001-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-001.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002-expected.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002.xht:
+        * web-platform-tests/css/css-text-decor/text-emphasis-style-006-expected.html:
+        * web-platform-tests/css/css-text-decor/text-emphasis-style-007-expected.html:
+        * web-platform-tests/css/css-text-decor/text-emphasis-style-008-expected.html:
+        * web-platform-tests/css/css-text-decor/text-emphasis-style-008.html:
+        * web-platform-tests/css/css-text-decor/text-emphasis-style-010-expected.html:
+        * web-platform-tests/css/css-text-decor/text-emphasis-style-021-expected.html:
+        * web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-002.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-computed-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-computed.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-initial-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-initial.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-invalid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-invalid.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-valid-expected.txt: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-valid.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002-expected.html: Added.
+        * web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002.html: Added.
+        * web-platform-tests/css/css-text-decor/w3c-import.log:
+
 2019-10-28  Chris Dumez  <cdumez@apple.com>
 
         Update html/semantics/forms WPT tests from upstream
index 05e5927..d1505f1 100644 (file)
@@ -2,6 +2,7 @@
     "apng": "import", 
     "css/css-position": "import", 
     "css/css-syntax": "import", 
+    "css/css-text-decor": "import", 
     "css/css-values": "import", 
     "css/geometry": "import", 
     "css/support": "import", 
index 9ff3c28..8da4dce 100644 (file)
     "files": [
         "css/css-syntax/charset/page-utf16-css-bomless-utf16be.html",
         "css/css-syntax/charset/page-utf16-css-no-decl-ascii-only.html",
+        "css/css-text-decor/text-decoration-visibility-001.xht",
+        "css/css-text-decor/text-decoration-visibility-002.xht",
+        "css/css-text-decor/text-decoration-visibility-003.xht",
+        "css/css-text-decor/text-decoration-visibility-004.xht",
+        "css/css-text-decor/text-decoration-visibility-005.xht",
+        "css/css-text-decor/text-decoration-visibility-006.xht",
+        "css/css-text-decor/text-decoration-visibility-007.xht",
+        "css/css-text-decor/text-decoration-visibility-008.xht",
+        "css/css-text-decor/text-decoration-visibility-009.xht",
+        "css/css-text-decor/text-decoration-visibility-010.xht",
+        "css/css-text-decor/text-decoration-visibility-011.xht",
+        "css/css-text-decor/text-decoration-visibility-012.xht",
+        "css/css-text-decor/text-emphasis-style-016.html",
         "css/css-values/absolute_length_units.html",
         "css/css-values/support/vh-support-transform-origin-iframe.html",
         "css/css-values/support/vh-support-transform-translate-iframe.html",
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/META.yml b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/META.yml
new file mode 100644 (file)
index 0000000..51a4fba
--- /dev/null
@@ -0,0 +1,4 @@
+spec: https://drafts.csswg.org/css-text-decor/
+suggested_reviewers:
+  - kojiishi
+  - fantasai
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/OWNERS b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/OWNERS
deleted file mode 100644 (file)
index 85751ab..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-@kojiishi
-@fantasai
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance-expected.txt
new file mode 100644 (file)
index 0000000..20025b5
--- /dev/null
@@ -0,0 +1,20 @@
+
+FAIL Property text-decoration-color has initial value rgba(2, 3, 4, 0.5) assert_equals: expected "rgba(2, 3, 4, 0.5)" but got "rgba(2, 3, 4, 0.498039)"
+FAIL Property text-decoration-color does not inherit assert_equals: expected "rgba(42, 53, 64, 0.75)" but got "rgba(42, 53, 64, 0.74902)"
+PASS Property text-decoration-line has initial value none 
+PASS Property text-decoration-line does not inherit 
+PASS Property text-decoration-style has initial value solid 
+PASS Property text-decoration-style does not inherit 
+FAIL Property text-emphasis-color has initial value rgba(2, 3, 4, 0.5) assert_equals: expected "rgba(2, 3, 4, 0.5)" but got "rgba(2, 3, 4, 0.498039)"
+FAIL Property text-emphasis-color inherits assert_equals: expected "rgba(42, 53, 64, 0.75)" but got "rgba(42, 53, 64, 0.74902)"
+PASS Property text-emphasis-position has initial value over right 
+PASS Property text-emphasis-position inherits 
+PASS Property text-emphasis-style has initial value none 
+FAIL Property text-emphasis-style inherits assert_equals: expected "triangle" but got "filled triangle"
+PASS Property text-shadow has initial value none 
+FAIL Property text-shadow inherits assert_equals: expected "rgba(42, 53, 64, 0.75) 10px 20px 0px" but got "rgba(42, 53, 64, 0.74902) 10px 20px 0px"
+PASS Property text-underline-position has initial value auto 
+PASS Property text-underline-position inherits 
+FAIL Property text-decoration-skip-ink has initial value auto assert_true: text-decoration-skip-ink doesn't seem to be supported in the computed style expected true got false
+FAIL Property text-decoration-skip-ink inherits assert_true: text-decoration-skip-ink doesn't seem to be supported in the computed style expected true got false
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance.html
new file mode 100644 (file)
index 0000000..9ee65b4
--- /dev/null
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Inheritance of CSS Text Decoration properties</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#property-index">
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#property-index">
+<meta name="assert" content="Properties inherit or not according to the spec.">
+<meta name="assert" content="Properties have initial values according to the spec.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/inheritance-testcommon.js"></script>
+</head>
+<body>
+<div id="container">
+<div id="target"></div>
+</div>
+<style>
+#container {
+  color: rgba(2, 3, 4, 0.5);
+}
+</style>
+<script>
+assert_not_inherited('text-decoration-color', 'rgba(2, 3, 4, 0.5)', 'rgba(42, 53, 64, 0.75)');
+assert_not_inherited('text-decoration-line', 'none', 'line-through');
+assert_not_inherited('text-decoration-style', 'solid', 'dashed');
+assert_inherited('text-emphasis-color', 'rgba(2, 3, 4, 0.5)', 'rgba(42, 53, 64, 0.75)');
+assert_inherited('text-emphasis-position', 'over right', 'under left');
+assert_inherited('text-emphasis-style', 'none', 'triangle');
+assert_inherited('text-shadow', 'none', 'rgba(42, 53, 64, 0.75) 10px 20px 0px');
+assert_inherited('text-underline-position', 'auto', 'under');
+
+assert_inherited('text-decoration-skip-ink', 'auto', 'none');
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed-expected.txt
new file mode 100644 (file)
index 0000000..7588925
--- /dev/null
@@ -0,0 +1,5 @@
+
+PASS Property text-decoration-color value 'rgb(0, 0, 255)' computes to 'rgb(0, 0, 255)' 
+PASS Property text-decoration-color value 'currentcolor' computes to 'rgb(0, 255, 0)' 
+FAIL Property text-decoration-color value 'inherit' computes to 'rgb(0, 255, 0)' assert_equals: expected "rgb(0, 255, 0)" but got "rgb(255, 0, 0)"
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed.html
new file mode 100644 (file)
index 0000000..4cb461d
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: getComputedStyle().textDecorationColor</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-color-property">
+<meta name="assert" content="Computed text-decoration-color is the computed color.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+<style>
+  #container {
+    color: rgb(255, 0, 0);
+    text-decoration-color: currentcolor;
+  }
+  #target {
+    color: rgb(0, 255, 0);
+  }
+</style>
+</head>
+<body>
+<div id="container">
+  <div id="target"></div>
+</div>
+<script>
+test_computed_value("text-decoration-color", "rgb(0, 0, 255)");
+test_computed_value("text-decoration-color", "currentcolor", "rgb(0, 255, 0)");
+test_computed_value("text-decoration-color", "inherit", "rgb(0, 255, 0)"); // currentcolor
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid-expected.txt
new file mode 100644 (file)
index 0000000..423a41c
--- /dev/null
@@ -0,0 +1,6 @@
+
+PASS e.style['text-decoration-color'] = "auto" should not set the property value 
+PASS e.style['text-decoration-color'] = "invert" should not set the property value 
+PASS e.style['text-decoration-color'] = "50%" should not set the property value 
+PASS e.style['text-decoration-color'] = "red green" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid.html
new file mode 100644 (file)
index 0000000..24364d8
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-color with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-color-property">
+<meta name="assert" content="text-decoration-color supports only the grammar '<color>'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_invalid_value("text-decoration-color", "auto");
+test_invalid_value("text-decoration-color", "invert");
+test_invalid_value("text-decoration-color", "50%");
+test_invalid_value("text-decoration-color", "red green");
+</script>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid-expected.txt
new file mode 100644 (file)
index 0000000..015786a
--- /dev/null
@@ -0,0 +1,5 @@
+
+PASS e.style['text-decoration-color'] = "currentcolor" should set the property value 
+PASS e.style['text-decoration-color'] = "red" should set the property value 
+PASS e.style['text-decoration-color'] = "rgba(10, 20, 30, 0.4)" should set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid.html
new file mode 100644 (file)
index 0000000..f1998f0
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-color with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-color-property">
+<meta name="assert" content="text-decoration-color supports the full grammar '<color>'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_valid_value("text-decoration-color", "currentcolor");
+test_valid_value("text-decoration-color", "red");
+test_valid_value("text-decoration-color", "rgba(10, 20, 30, 0.4)");
+</script>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed-expected.txt
new file mode 100644 (file)
index 0000000..61304c5
--- /dev/null
@@ -0,0 +1,14 @@
+
+FAIL Property text-decoration value 'none' computes to 'rgb(0, 0, 255)' assert_equals: expected "rgb(0, 0, 255)" but got "none"
+FAIL Property text-decoration value 'line-through' computes to 'line-through rgb(0, 0, 255)' assert_equals: expected "line-through rgb(0, 0, 255)" but got "line-through"
+FAIL Property text-decoration value 'solid' computes to 'rgb(0, 0, 255)' assert_true: 'solid' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'currentcolor' computes to 'rgb(0, 0, 255)' assert_true: 'currentcolor' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'double overline underline' computes to 'underline overline double rgb(0, 0, 255)' assert_true: 'double overline underline' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'underline overline line-through red' computes to 'underline overline line-through rgb(255, 0, 0)' assert_true: 'underline overline line-through red' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'rgba(10, 20, 30, 0.4) dotted' computes to 'dotted rgba(10, 20, 30, 0.4)' assert_true: 'rgba(10, 20, 30, 0.4) dotted' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'underline dashed rgb(0, 255, 0)' computes to 'underline dashed rgb(0, 255, 0)' assert_true: 'underline dashed rgb(0, 255, 0)' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'auto' computes to 'rgb(0, 0, 255)' assert_true: 'auto' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'from-font' computes to 'rgb(0, 0, 255) from-font' assert_true: 'from-font' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value '10px' computes to 'rgb(0, 0, 255) 10px' assert_true: '10px' is a supported value for text-decoration. expected true got false
+FAIL Property text-decoration value 'underline red from-font' computes to 'underline rgb(255, 0, 0) from-font' assert_true: 'underline red from-font' is a supported value for text-decoration. expected true got false
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed.html
new file mode 100644 (file)
index 0000000..af577b1
--- /dev/null
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: getComputedStyle().textDecoration</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-property">
+<meta name="assert" content="text-decoration computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+<style>
+  #target {
+    color: blue;
+  }
+</style>
+</head>
+<body>
+<div id="target"></div>
+<script>
+'use strict';
+const currentColor = "rgb(0, 0, 255)";
+test_computed_value("text-decoration", "none", currentColor);
+test_computed_value("text-decoration", "line-through", "line-through " + currentColor);
+test_computed_value("text-decoration", "solid", currentColor);
+test_computed_value("text-decoration", "currentcolor", currentColor);
+
+test_computed_value("text-decoration", "double overline underline", "underline overline double " + currentColor);
+test_computed_value("text-decoration", "underline overline line-through red", "underline overline line-through rgb(255, 0, 0)");
+test_computed_value("text-decoration", "rgba(10, 20, 30, 0.4) dotted", "dotted rgba(10, 20, 30, 0.4)");
+
+test_computed_value("text-decoration", "underline dashed rgb(0, 255, 0)");
+
+// Add text-decoration-thickness in [css-text-decor-4].
+test_computed_value("text-decoration", "auto", currentColor);
+test_computed_value("text-decoration", "from-font", currentColor + " from-font");
+test_computed_value("text-decoration", "10px", currentColor + " 10px");
+test_computed_value("text-decoration", "underline red from-font", "underline rgb(255, 0, 0) from-font");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid-expected.txt
new file mode 100644 (file)
index 0000000..3984ff3
--- /dev/null
@@ -0,0 +1,5 @@
+
+PASS e.style['text-decoration'] = "double overline underline dotted" should not set the property value 
+PASS e.style['text-decoration'] = "red line-through green" should not set the property value 
+PASS e.style['text-decoration'] = "overline blue underline" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid.html
new file mode 100644 (file)
index 0000000..9cba242
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-decoration">
+<meta name="assert" content="text-decoration supports only the grammar '<‘text-decoration-line’> || <‘text-decoration-style’> || <‘text-decoration-color’>'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_invalid_value("text-decoration", "double overline underline dotted");
+test_invalid_value("text-decoration", "red line-through green");
+test_invalid_value("text-decoration", "overline blue underline");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed-expected.txt
new file mode 100644 (file)
index 0000000..40af264
--- /dev/null
@@ -0,0 +1,20 @@
+
+PASS Property text-decoration-line value 'none' computes to 'none' 
+PASS Property text-decoration-line value 'underline' computes to 'underline' 
+PASS Property text-decoration-line value 'overline' computes to 'overline' 
+PASS Property text-decoration-line value 'line-through' computes to 'line-through' 
+FAIL Property text-decoration-line value 'blink' computes to 'blink' assert_equals: expected "blink" but got "none"
+PASS Property text-decoration-line value 'underline overline' computes to 'underline overline' 
+PASS Property text-decoration-line value 'underline line-through' computes to 'underline line-through' 
+FAIL Property text-decoration-line value 'underline blink' computes to 'underline blink' assert_equals: expected "underline blink" but got "underline"
+PASS Property text-decoration-line value 'overline line-through' computes to 'overline line-through' 
+FAIL Property text-decoration-line value 'overline blink' computes to 'overline blink' assert_equals: expected "overline blink" but got "overline"
+FAIL Property text-decoration-line value 'line-through blink' computes to 'line-through blink' assert_equals: expected "line-through blink" but got "line-through"
+PASS Property text-decoration-line value 'underline overline line-through' computes to 'underline overline line-through' 
+FAIL Property text-decoration-line value 'underline overline blink' computes to 'underline overline blink' assert_equals: expected "underline overline blink" but got "underline overline"
+FAIL Property text-decoration-line value 'underline line-through blink' computes to 'underline line-through blink' assert_equals: expected "underline line-through blink" but got "underline line-through"
+FAIL Property text-decoration-line value 'overline line-through blink' computes to 'overline line-through blink' assert_equals: expected "overline line-through blink" but got "overline line-through"
+FAIL Property text-decoration-line value 'underline overline line-through blink' computes to 'underline overline line-through blink' assert_equals: expected "underline overline line-through blink" but got "underline overline line-through"
+FAIL Property text-decoration-line value 'spelling-error' computes to 'spelling-error' assert_true: 'spelling-error' is a supported value for text-decoration-line. expected true got false
+FAIL Property text-decoration-line value 'grammar-error' computes to 'grammar-error' assert_true: 'grammar-error' is a supported value for text-decoration-line. expected true got false
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed.html
new file mode 100644 (file)
index 0000000..2ae475e
--- /dev/null
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: getComputedStyle().textDecorationLine</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-line-property">
+<meta name="assert" content="text-decoration-line computed value is specified keyword(s).">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+// none
+test_computed_value("text-decoration-line", "none");
+
+// underline || overline || line-through || blink
+test_computed_value("text-decoration-line", "underline");
+test_computed_value("text-decoration-line", "overline");
+test_computed_value("text-decoration-line", "line-through");
+test_computed_value("text-decoration-line", "blink");
+test_computed_value("text-decoration-line", "underline overline");
+test_computed_value("text-decoration-line", "underline line-through");
+test_computed_value("text-decoration-line", "underline blink");
+test_computed_value("text-decoration-line", "overline line-through");
+test_computed_value("text-decoration-line", "overline blink");
+test_computed_value("text-decoration-line", "line-through blink");
+test_computed_value("text-decoration-line", "underline overline line-through");
+test_computed_value("text-decoration-line", "underline overline blink");
+test_computed_value("text-decoration-line", "underline line-through blink");
+test_computed_value("text-decoration-line", "overline line-through blink");
+test_computed_value("text-decoration-line", "underline overline line-through blink");
+
+// spelling-error
+test_computed_value("text-decoration-line", "spelling-error");
+
+// grammar-error
+test_computed_value("text-decoration-line", "grammar-error");
+
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid-expected.txt
new file mode 100644 (file)
index 0000000..248fd77
--- /dev/null
@@ -0,0 +1,16 @@
+
+PASS e.style['text-decoration-line'] = "auto" should not set the property value 
+PASS e.style['text-decoration-line'] = "null" should not set the property value 
+PASS e.style['text-decoration-line'] = "noone" should not set the property value 
+PASS e.style['text-decoration-line'] = "under-line" should not set the property value 
+PASS e.style['text-decoration-line'] = "over-line" should not set the property value 
+PASS e.style['text-decoration-line'] = "linethrough" should not set the property value 
+PASS e.style['text-decoration-line'] = "none underline" should not set the property value 
+PASS e.style['text-decoration-line'] = "none spelling-error" should not set the property value 
+PASS e.style['text-decoration-line'] = "underline underline" should not set the property value 
+PASS e.style['text-decoration-line'] = "underline none overline" should not set the property value 
+PASS e.style['text-decoration-line'] = "blink line-through blink" should not set the property value 
+PASS e.style['text-decoration-line'] = "spelling-error overline" should not set the property value 
+PASS e.style['text-decoration-line'] = "spelling-error grammar-error" should not set the property value 
+PASS e.style['text-decoration-line'] = "blink underline line-through grammar-error" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid.html
new file mode 100644 (file)
index 0000000..ec8d792
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-line with invalid values</title>
+<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-line-property">
+<meta name="assert" content="text-decoration-line supports only the grammar 'none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_invalid_value("text-decoration-line", "auto");
+test_invalid_value("text-decoration-line", "null");
+test_invalid_value("text-decoration-line", "noone");
+test_invalid_value("text-decoration-line", "under-line");
+test_invalid_value("text-decoration-line", "over-line");
+test_invalid_value("text-decoration-line", "linethrough");
+test_invalid_value("text-decoration-line", "none underline");
+test_invalid_value("text-decoration-line", "none spelling-error");
+test_invalid_value("text-decoration-line", "underline underline");
+test_invalid_value("text-decoration-line", "underline none overline");
+test_invalid_value("text-decoration-line", "blink line-through blink");
+test_invalid_value("text-decoration-line", "spelling-error overline");
+test_invalid_value("text-decoration-line", "spelling-error grammar-error");
+test_invalid_value("text-decoration-line", "blink underline line-through grammar-error");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid-expected.txt
new file mode 100644 (file)
index 0000000..073c775
--- /dev/null
@@ -0,0 +1,69 @@
+
+PASS e.style['text-decoration-line'] = "none" should set the property value 
+PASS e.style['text-decoration-line'] = "underline" should set the property value 
+PASS e.style['text-decoration-line'] = "overline" should set the property value 
+PASS e.style['text-decoration-line'] = "line-through" should set the property value 
+PASS e.style['text-decoration-line'] = "blink" should set the property value 
+PASS e.style['text-decoration-line'] = "underline overline" should set the property value 
+FAIL e.style['text-decoration-line'] = "overline underline" should set the property value assert_equals: serialization should be canonical expected "underline overline" but got "overline underline"
+PASS e.style['text-decoration-line'] = "underline line-through" should set the property value 
+FAIL e.style['text-decoration-line'] = "line-through underline" should set the property value assert_equals: serialization should be canonical expected "underline line-through" but got "line-through underline"
+PASS e.style['text-decoration-line'] = "underline blink" should set the property value 
+FAIL e.style['text-decoration-line'] = "blink underline" should set the property value assert_equals: serialization should be canonical expected "underline blink" but got "blink underline"
+PASS e.style['text-decoration-line'] = "overline line-through" should set the property value 
+FAIL e.style['text-decoration-line'] = "line-through overline" should set the property value assert_equals: serialization should be canonical expected "overline line-through" but got "line-through overline"
+PASS e.style['text-decoration-line'] = "overline blink" should set the property value 
+FAIL e.style['text-decoration-line'] = "blink overline" should set the property value assert_equals: serialization should be canonical expected "overline blink" but got "blink overline"
+PASS e.style['text-decoration-line'] = "line-through blink" should set the property value 
+FAIL e.style['text-decoration-line'] = "blink line-through" should set the property value assert_equals: serialization should be canonical expected "line-through blink" but got "blink line-through"
+PASS e.style['text-decoration-line'] = "underline overline line-through" should set the property value 
+FAIL e.style['text-decoration-line'] = "underline line-through overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through" but got "underline line-through overline"
+FAIL e.style['text-decoration-line'] = "overline underline line-through" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through" but got "overline underline line-through"
+FAIL e.style['text-decoration-line'] = "overline line-through underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through" but got "overline line-through underline"
+FAIL e.style['text-decoration-line'] = "line-through underline overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through" but got "line-through underline overline"
+FAIL e.style['text-decoration-line'] = "line-through overline underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through" but got "line-through overline underline"
+PASS e.style['text-decoration-line'] = "underline overline blink" should set the property value 
+FAIL e.style['text-decoration-line'] = "underline blink overline" should set the property value assert_equals: serialization should be canonical expected "underline overline blink" but got "underline blink overline"
+FAIL e.style['text-decoration-line'] = "overline underline blink" should set the property value assert_equals: serialization should be canonical expected "underline overline blink" but got "overline underline blink"
+FAIL e.style['text-decoration-line'] = "overline blink underline" should set the property value assert_equals: serialization should be canonical expected "underline overline blink" but got "overline blink underline"
+FAIL e.style['text-decoration-line'] = "blink underline overline" should set the property value assert_equals: serialization should be canonical expected "underline overline blink" but got "blink underline overline"
+FAIL e.style['text-decoration-line'] = "blink overline underline" should set the property value assert_equals: serialization should be canonical expected "underline overline blink" but got "blink overline underline"
+PASS e.style['text-decoration-line'] = "underline line-through blink" should set the property value 
+FAIL e.style['text-decoration-line'] = "underline blink line-through" should set the property value assert_equals: serialization should be canonical expected "underline line-through blink" but got "underline blink line-through"
+FAIL e.style['text-decoration-line'] = "line-through underline blink" should set the property value assert_equals: serialization should be canonical expected "underline line-through blink" but got "line-through underline blink"
+FAIL e.style['text-decoration-line'] = "line-through blink underline" should set the property value assert_equals: serialization should be canonical expected "underline line-through blink" but got "line-through blink underline"
+FAIL e.style['text-decoration-line'] = "blink underline line-through" should set the property value assert_equals: serialization should be canonical expected "underline line-through blink" but got "blink underline line-through"
+FAIL e.style['text-decoration-line'] = "blink line-through underline" should set the property value assert_equals: serialization should be canonical expected "underline line-through blink" but got "blink line-through underline"
+PASS e.style['text-decoration-line'] = "overline line-through blink" should set the property value 
+FAIL e.style['text-decoration-line'] = "overline blink line-through" should set the property value assert_equals: serialization should be canonical expected "overline line-through blink" but got "overline blink line-through"
+FAIL e.style['text-decoration-line'] = "line-through overline blink" should set the property value assert_equals: serialization should be canonical expected "overline line-through blink" but got "line-through overline blink"
+FAIL e.style['text-decoration-line'] = "line-through blink overline" should set the property value assert_equals: serialization should be canonical expected "overline line-through blink" but got "line-through blink overline"
+FAIL e.style['text-decoration-line'] = "blink overline line-through" should set the property value assert_equals: serialization should be canonical expected "overline line-through blink" but got "blink overline line-through"
+FAIL e.style['text-decoration-line'] = "blink line-through overline" should set the property value assert_equals: serialization should be canonical expected "overline line-through blink" but got "blink line-through overline"
+PASS e.style['text-decoration-line'] = "underline overline line-through blink" should set the property value 
+FAIL e.style['text-decoration-line'] = "underline overline blink line-through" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "underline overline blink line-through"
+FAIL e.style['text-decoration-line'] = "underline line-through overline blink" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "underline line-through overline blink"
+FAIL e.style['text-decoration-line'] = "underline line-through blink overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "underline line-through blink overline"
+FAIL e.style['text-decoration-line'] = "underline blink overline line-through" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "underline blink overline line-through"
+FAIL e.style['text-decoration-line'] = "underline blink line-through overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "underline blink line-through overline"
+FAIL e.style['text-decoration-line'] = "overline underline line-through blink" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "overline underline line-through blink"
+FAIL e.style['text-decoration-line'] = "overline underline blink line-through" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "overline underline blink line-through"
+FAIL e.style['text-decoration-line'] = "overline line-through underline blink" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "overline line-through underline blink"
+FAIL e.style['text-decoration-line'] = "overline line-through blink underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "overline line-through blink underline"
+FAIL e.style['text-decoration-line'] = "overline blink underline line-through" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "overline blink underline line-through"
+FAIL e.style['text-decoration-line'] = "overline blink line-through underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "overline blink line-through underline"
+FAIL e.style['text-decoration-line'] = "line-through underline overline blink" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "line-through underline overline blink"
+FAIL e.style['text-decoration-line'] = "line-through underline blink overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "line-through underline blink overline"
+FAIL e.style['text-decoration-line'] = "line-through overline underline blink" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "line-through overline underline blink"
+FAIL e.style['text-decoration-line'] = "line-through overline blink underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "line-through overline blink underline"
+FAIL e.style['text-decoration-line'] = "line-through blink underline overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "line-through blink underline overline"
+FAIL e.style['text-decoration-line'] = "line-through blink overline underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "line-through blink overline underline"
+FAIL e.style['text-decoration-line'] = "blink underline overline line-through" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "blink underline overline line-through"
+FAIL e.style['text-decoration-line'] = "blink underline line-through overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "blink underline line-through overline"
+FAIL e.style['text-decoration-line'] = "blink overline underline line-through" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "blink overline underline line-through"
+FAIL e.style['text-decoration-line'] = "blink overline line-through underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "blink overline line-through underline"
+FAIL e.style['text-decoration-line'] = "blink line-through underline overline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "blink line-through underline overline"
+FAIL e.style['text-decoration-line'] = "blink line-through overline underline" should set the property value assert_equals: serialization should be canonical expected "underline overline line-through blink" but got "blink line-through overline underline"
+FAIL e.style['text-decoration-line'] = "spelling-error" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration-line'] = "grammar-error" should set the property value assert_not_equals: property should be set got disallowed value ""
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid.html
new file mode 100644 (file)
index 0000000..3dd2d0c
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-line with valid values</title>
+<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-line-property">
+<meta name="assert" content="text-decoration-line supports the full grammar 'none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+// none
+test_valid_value("text-decoration-line", "none");
+
+// underline || overline || line-through || blink
+test_valid_value("text-decoration-line", "underline");
+test_valid_value("text-decoration-line", "overline");
+test_valid_value("text-decoration-line", "line-through");
+test_valid_value("text-decoration-line", "blink");
+test_valid_value("text-decoration-line", "underline overline");
+test_valid_value("text-decoration-line", "overline underline", "underline overline");
+test_valid_value("text-decoration-line", "underline line-through");
+test_valid_value("text-decoration-line", "line-through underline", "underline line-through");
+test_valid_value("text-decoration-line", "underline blink");
+test_valid_value("text-decoration-line", "blink underline", "underline blink");
+test_valid_value("text-decoration-line", "overline line-through");
+test_valid_value("text-decoration-line", "line-through overline", "overline line-through");
+test_valid_value("text-decoration-line", "overline blink");
+test_valid_value("text-decoration-line", "blink overline", "overline blink");
+test_valid_value("text-decoration-line", "line-through blink");
+test_valid_value("text-decoration-line", "blink line-through", "line-through blink");
+test_valid_value("text-decoration-line", "underline overline line-through");
+test_valid_value("text-decoration-line", "underline line-through overline", "underline overline line-through");
+test_valid_value("text-decoration-line", "overline underline line-through", "underline overline line-through");
+test_valid_value("text-decoration-line", "overline line-through underline", "underline overline line-through");
+test_valid_value("text-decoration-line", "line-through underline overline", "underline overline line-through");
+test_valid_value("text-decoration-line", "line-through overline underline", "underline overline line-through");
+test_valid_value("text-decoration-line", "underline overline blink");
+test_valid_value("text-decoration-line", "underline blink overline", "underline overline blink");
+test_valid_value("text-decoration-line", "overline underline blink", "underline overline blink");
+test_valid_value("text-decoration-line", "overline blink underline", "underline overline blink");
+test_valid_value("text-decoration-line", "blink underline overline", "underline overline blink");
+test_valid_value("text-decoration-line", "blink overline underline", "underline overline blink");
+test_valid_value("text-decoration-line", "underline line-through blink");
+test_valid_value("text-decoration-line", "underline blink line-through", "underline line-through blink");
+test_valid_value("text-decoration-line", "line-through underline blink", "underline line-through blink");
+test_valid_value("text-decoration-line", "line-through blink underline", "underline line-through blink");
+test_valid_value("text-decoration-line", "blink underline line-through", "underline line-through blink");
+test_valid_value("text-decoration-line", "blink line-through underline", "underline line-through blink");
+test_valid_value("text-decoration-line", "overline line-through blink");
+test_valid_value("text-decoration-line", "overline blink line-through", "overline line-through blink");
+test_valid_value("text-decoration-line", "line-through overline blink", "overline line-through blink");
+test_valid_value("text-decoration-line", "line-through blink overline", "overline line-through blink");
+test_valid_value("text-decoration-line", "blink overline line-through", "overline line-through blink");
+test_valid_value("text-decoration-line", "blink line-through overline", "overline line-through blink");
+test_valid_value("text-decoration-line", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "underline overline blink line-through", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "underline line-through overline blink", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "underline line-through blink overline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "underline blink overline line-through", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "underline blink line-through overline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "overline underline line-through blink", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "overline underline blink line-through", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "overline line-through underline blink", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "overline line-through blink underline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "overline blink underline line-through", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "overline blink line-through underline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "line-through underline overline blink", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "line-through underline blink overline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "line-through overline underline blink", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "line-through overline blink underline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "line-through blink underline overline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "line-through blink overline underline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "blink underline overline line-through", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "blink underline line-through overline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "blink overline underline line-through", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "blink overline line-through underline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "blink line-through underline overline", "underline overline line-through blink");
+test_valid_value("text-decoration-line", "blink line-through overline underline", "underline overline line-through blink");
+
+// spelling-error
+test_valid_value("text-decoration-line", "spelling-error");
+
+// grammar-error
+test_valid_value("text-decoration-line", "grammar-error");
+
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand-expected.txt
new file mode 100644 (file)
index 0000000..1b43daf
--- /dev/null
@@ -0,0 +1,6 @@
+
+FAIL e.style['text-decoration'] = "overline dotted green" should set text-decoration-color assert_equals: text-decoration-color should be canonical expected "green" but got ""
+FAIL e.style['text-decoration'] = "overline dotted green" should set text-decoration-line assert_equals: text-decoration-line should be canonical expected "overline" but got ""
+FAIL e.style['text-decoration'] = "overline dotted green" should set text-decoration-style assert_equals: text-decoration-style should be canonical expected "dotted" but got ""
+FAIL e.style['text-decoration'] = "overline dotted green" should not set unrelated longhands assert_true: expected true got false
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand.html
new file mode 100644 (file)
index 0000000..904313f
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration: text-decoration sets longhands</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-decoration">
+<meta name="assert" content="text-decoration supports the full grammar '<‘text-decoration-line’> || <‘text-decoration-style’> || <‘text-decoration-color’>'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/shorthand-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_shorthand_value('text-decoration', 'overline dotted green', {
+  'text-decoration-line': 'overline',
+  'text-decoration-style': 'dotted',
+  'text-decoration-color': 'green'
+});
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed-expected.txt
new file mode 100644 (file)
index 0000000..3f76d4d
--- /dev/null
@@ -0,0 +1,4 @@
+
+FAIL Property text-decoration-skip-ink value 'auto' computes to 'auto' assert_true: text-decoration-skip-ink doesn't seem to be supported in the computed style expected true got false
+FAIL Property text-decoration-skip-ink value 'none' computes to 'none' assert_true: text-decoration-skip-ink doesn't seem to be supported in the computed style expected true got false
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed.html
new file mode 100644 (file)
index 0000000..0b4807c
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: getComputedStyle().textDecorationSkipInk</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+<meta name="assert" content="text-decoration-skip-ink computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("text-decoration-skip-ink", "auto");
+test_computed_value("text-decoration-skip-ink", "none");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid-expected.txt
new file mode 100644 (file)
index 0000000..6c6e2b8
--- /dev/null
@@ -0,0 +1,11 @@
+
+PASS e.style['text-decoration-skip-ink'] = "edges" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "auto none" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "10px" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "-5em" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "otto" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "20%" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "-13%" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "0" should not set the property value 
+PASS e.style['text-decoration-skip-ink'] = "non" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid.html
new file mode 100644 (file)
index 0000000..a259aa8
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-skip-ink with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+<meta name="assert" content="text-decoration-skip-ink supports only the grammar 'auto | none'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_invalid_value("text-decoration-skip-ink", "edges");
+test_invalid_value("text-decoration-skip-ink", "auto none");
+test_invalid_value("text-decoration-skip-ink", "10px");
+test_invalid_value("text-decoration-skip-ink", "-5em");
+test_invalid_value("text-decoration-skip-ink", "otto");
+test_invalid_value("text-decoration-skip-ink", "20%");
+test_invalid_value("text-decoration-skip-ink", "-13%");
+test_invalid_value("text-decoration-skip-ink", "0");
+test_invalid_value("text-decoration-skip-ink", "non");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid-expected.txt
new file mode 100644 (file)
index 0000000..0534de2
--- /dev/null
@@ -0,0 +1,4 @@
+
+FAIL e.style['text-decoration-skip-ink'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration-skip-ink'] = "none" should set the property value assert_not_equals: property should be set got disallowed value ""
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid.html
new file mode 100644 (file)
index 0000000..bc69449
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-skip-ink with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+<meta name="assert" content="text-decoration-skip-ink supports the full grammar 'auto | none'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_valid_value("text-decoration-skip-ink", "auto");
+test_valid_value("text-decoration-skip-ink", "none");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed-expected.txt
new file mode 100644 (file)
index 0000000..007abc0
--- /dev/null
@@ -0,0 +1,7 @@
+
+PASS Property text-decoration-style value 'solid' computes to 'solid' 
+PASS Property text-decoration-style value 'double' computes to 'double' 
+PASS Property text-decoration-style value 'dotted' computes to 'dotted' 
+PASS Property text-decoration-style value 'dashed' computes to 'dashed' 
+PASS Property text-decoration-style value 'wavy' computes to 'wavy' 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed.html
new file mode 100644 (file)
index 0000000..d8e7a22
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: getComputedStyle().textDecorationStyle</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-style-property">
+<meta name="assert" content="text-decoration-style computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("text-decoration-style", "solid");
+test_computed_value("text-decoration-style", "double");
+test_computed_value("text-decoration-style", "dotted");
+test_computed_value("text-decoration-style", "dashed");
+test_computed_value("text-decoration-style", "wavy");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid-expected.txt
new file mode 100644 (file)
index 0000000..6393a9a
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS e.style['text-decoration-style'] = "groove" should not set the property value 
+PASS e.style['text-decoration-style'] = "solid wavy" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid.html
new file mode 100644 (file)
index 0000000..ad92c71
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-style with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-style-property">
+<meta name="assert" content="text-decoration-style supports only the grammar 'solid | double | dotted | dashed | wavy'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_invalid_value("text-decoration-style", "groove");
+test_invalid_value("text-decoration-style", "solid wavy");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid-expected.txt
new file mode 100644 (file)
index 0000000..3a666f3
--- /dev/null
@@ -0,0 +1,7 @@
+
+PASS e.style['text-decoration-style'] = "solid" should set the property value 
+PASS e.style['text-decoration-style'] = "double" should set the property value 
+PASS e.style['text-decoration-style'] = "dotted" should set the property value 
+PASS e.style['text-decoration-style'] = "dashed" should set the property value 
+PASS e.style['text-decoration-style'] = "wavy" should set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid.html
new file mode 100644 (file)
index 0000000..d47303f
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration-style with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-style-property">
+<meta name="assert" content="text-decoration-style supports the full grammar 'solid | double | dotted | dashed | wavy'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_valid_value("text-decoration-style", "solid");
+test_valid_value("text-decoration-style", "double");
+test_valid_value("text-decoration-style", "dotted");
+test_valid_value("text-decoration-style", "dashed");
+test_valid_value("text-decoration-style", "wavy");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid-expected.txt
new file mode 100644 (file)
index 0000000..7020dd0
--- /dev/null
@@ -0,0 +1,17 @@
+
+PASS e.style['text-decoration'] = "none" should set the property value 
+PASS e.style['text-decoration'] = "line-through" should set the property value 
+FAIL e.style['text-decoration'] = "solid" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "currentcolor" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "from-font" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "10px" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "double overline underline" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "underline overline line-through red" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "rgba(10, 20, 30, 0.4) dotted" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "overline green from-font" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "underline dashed green" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "underline auto" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "line-through 20px" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-decoration'] = "overline 3em" should set the property value assert_not_equals: property should be set got disallowed value ""
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid.html
new file mode 100644 (file)
index 0000000..fd12ab4
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-decoration with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-decoration">
+<meta name="assert" content="text-decoration supports the full grammar '<‘text-decoration-line’> || <‘text-decoration-style’> || <‘text-decoration-color’>'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_valid_value("text-decoration", "none");
+test_valid_value("text-decoration", "line-through");
+test_valid_value("text-decoration", "solid", "none");
+test_valid_value("text-decoration", "currentcolor", "none");
+test_valid_value("text-decoration", "auto", "none");
+test_valid_value("text-decoration", "from-font");
+test_valid_value("text-decoration", "10px");
+
+test_valid_value("text-decoration", "double overline underline", "underline overline double");
+test_valid_value("text-decoration", "underline overline line-through red");
+test_valid_value("text-decoration", "rgba(10, 20, 30, 0.4) dotted", "dotted rgba(10, 20, 30, 0.4)");
+test_valid_value("text-decoration", "overline green from-font");
+test_valid_value("text-decoration", "underline dashed green");
+test_valid_value("text-decoration", "underline auto", "underline");
+test_valid_value("text-decoration", "line-through 20px");
+test_valid_value("text-decoration", "overline 3em");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-computed-expected.txt
new file mode 100644 (file)
index 0000000..d9a0570
--- /dev/null
@@ -0,0 +1,9 @@
+
+PASS Property text-shadow value 'none' computes to 'none' 
+PASS Property text-shadow value '10px 20px' computes to 'rgb(0, 0, 255) 10px 20px 0px' 
+PASS Property text-shadow value 'red 10px 20px 30px' computes to 'rgb(255, 0, 0) 10px 20px 30px' 
+PASS Property text-shadow value 'calc(0.5em + 10px) calc(0.5em + 10px) calc(0.5em + 10px)' computes to 'rgb(0, 0, 255) 30px 30px 30px' 
+FAIL Property text-shadow value 'calc(-0.5em + 10px) calc(-0.5em + 10px) calc(-0.5em + 10px)' computes to 'rgb(0, 0, 255) -10px -10px 0px' assert_equals: expected "rgb(0, 0, 255) -10px -10px 0px" but got "rgb(0, 0, 255) -10px -10px -10px"
+PASS Property text-shadow value '10px 20px, 30px 40px' computes to 'rgb(0, 0, 255) 10px 20px 0px, rgb(0, 0, 255) 30px 40px 0px' 
+PASS Property text-shadow value 'lime 10px 20px 30px, red 40px 50px' computes to 'rgb(0, 255, 0) 10px 20px 30px, rgb(255, 0, 0) 40px 50px 0px' 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-computed.html
new file mode 100644 (file)
index 0000000..a90738d
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: getComputedStyle().textShadow</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-shadow-property">
+<meta name="assert" content="text-shadow computed value is none or a list, each item a color and lengths.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+<style>
+  #target {
+    font-size: 40px;
+    color: blue;
+  }
+</style>
+<div id="target"></div>
+<script>
+'use strict';
+const red = 'rgb(255, 0, 0)';
+const lime = 'rgb(0, 255, 0)';
+const currentColor = 'rgb(0, 0, 255)';
+
+test_computed_value("text-shadow", "none");
+
+test_computed_value("text-shadow", "10px 20px", currentColor + " 10px 20px 0px");
+test_computed_value("text-shadow", "red 10px 20px 30px", red + " 10px 20px 30px");
+test_computed_value("text-shadow", "calc(0.5em + 10px) calc(0.5em + 10px) calc(0.5em + 10px)", currentColor + " 30px 30px 30px");
+test_computed_value("text-shadow", "calc(-0.5em + 10px) calc(-0.5em + 10px) calc(-0.5em + 10px)", currentColor + " -10px -10px 0px");
+
+test_computed_value("text-shadow", "10px 20px, 30px 40px", currentColor + " 10px 20px 0px, " + currentColor + " 30px 40px 0px");
+test_computed_value("text-shadow", "lime 10px 20px 30px, red 40px 50px", lime + " 10px 20px 30px, " + red + " 40px 50px 0px");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid-expected.txt
new file mode 100644 (file)
index 0000000..efdb7b0
--- /dev/null
@@ -0,0 +1,10 @@
+
+PASS e.style['text-shadow'] = "auto" should not set the property value 
+PASS e.style['text-shadow'] = "10px 20px -30px" should not set the property value 
+PASS e.style['text-shadow'] = "10px" should not set the property value 
+PASS e.style['text-shadow'] = "10px 20px 30px 40px" should not set the property value 
+PASS e.style['text-shadow'] = "red 10px 20px blue" should not set the property value 
+PASS e.style['text-shadow'] = "10% 20px" should not set the property value 
+PASS e.style['text-shadow'] = "10px 20% 30px" should not set the property value 
+PASS e.style['text-shadow'] = "lime 10px 20px 30%" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid.html
new file mode 100644 (file)
index 0000000..dfaa4a5
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-shadow with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-shadow-property">
+<meta name="assert" content="text-shadow supports only the grammar 'none | [ <color>? && <length>{2,3} ]#'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_invalid_value("text-shadow", "auto");
+
+test_invalid_value("text-shadow", "10px 20px -30px");
+
+test_invalid_value("text-shadow", "10px");
+test_invalid_value("text-shadow", "10px 20px 30px 40px");
+test_invalid_value("text-shadow", "red 10px 20px blue");
+test_invalid_value("text-shadow", "10% 20px");
+test_invalid_value("text-shadow", "10px 20% 30px");
+test_invalid_value("text-shadow", "lime 10px 20px 30%");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-valid-expected.txt
new file mode 100644 (file)
index 0000000..f2c3b9e
--- /dev/null
@@ -0,0 +1,12 @@
+
+PASS e.style['text-shadow'] = "none" should set the property value 
+PASS e.style['text-shadow'] = "10px 20px" should set the property value 
+PASS e.style['text-shadow'] = "10px 20px 30px" should set the property value 
+PASS e.style['text-shadow'] = "calc(1em + 2px) calc(3em + 4px) calc(5em + 6px)" should set the property value 
+PASS e.style['text-shadow'] = "-10px 20px 30px" should set the property value 
+PASS e.style['text-shadow'] = "10px -20px 30px" should set the property value 
+PASS e.style['text-shadow'] = "rgb(255, 0, 0) 10px 20px" should set the property value 
+PASS e.style['text-shadow'] = "10px 20px 30px lime" should set the property value 
+PASS e.style['text-shadow'] = "10px 20px, 30px 40px" should set the property value 
+PASS e.style['text-shadow'] = "lime 10px 20px 30px, blue 40px 50px" should set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-valid.html
new file mode 100644 (file)
index 0000000..cbf9df5
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-shadow with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-shadow-property">
+<meta name="assert" content="text-shadow supports the full grammar 'none | [ <color>? && <length>{2,3} ]#'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_valid_value("text-shadow", "none");
+
+test_valid_value("text-shadow", "10px 20px");
+test_valid_value("text-shadow", "10px 20px 30px");
+test_valid_value("text-shadow", "calc(1em + 2px) calc(3em + 4px) calc(5em + 6px)");
+test_valid_value("text-shadow", "-10px 20px 30px");
+test_valid_value("text-shadow", "10px -20px 30px");
+test_valid_value("text-shadow", "rgb(255, 0, 0) 10px 20px");
+test_valid_value("text-shadow", "10px 20px 30px lime", "lime 10px 20px 30px");
+
+test_valid_value("text-shadow", "10px 20px, 30px 40px");
+test_valid_value("text-shadow", "lime 10px 20px 30px, blue 40px 50px");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed-expected.txt
new file mode 100644 (file)
index 0000000..26d55de
--- /dev/null
@@ -0,0 +1,7 @@
+
+PASS Property text-underline-position value 'auto' computes to 'auto' 
+PASS Property text-underline-position value 'under' computes to 'under' 
+FAIL Property text-underline-position value 'left' computes to 'left' assert_true: 'left' is a supported value for text-underline-position. expected true got false
+FAIL Property text-underline-position value 'right' computes to 'right' assert_true: 'right' is a supported value for text-underline-position. expected true got false
+FAIL Property text-underline-position value 'under left' computes to 'under left' assert_true: 'under left' is a supported value for text-underline-position. expected true got false
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed.html
new file mode 100644 (file)
index 0000000..9019a58
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: getComputedStyle().textUnderlinePosition</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-style-property">
+<meta name="assert" content="text-underline-position computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("text-underline-position", "auto");
+
+test_computed_value("text-underline-position", "under");
+test_computed_value("text-underline-position", "left");
+test_computed_value("text-underline-position", "right");
+test_computed_value("text-underline-position", "under left");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid-expected.txt
new file mode 100644 (file)
index 0000000..a87dc88
--- /dev/null
@@ -0,0 +1,6 @@
+
+PASS e.style['text-underline-position'] = "auto under" should not set the property value 
+PASS e.style['text-underline-position'] = "left auto" should not set the property value 
+PASS e.style['text-underline-position'] = "left right" should not set the property value 
+PASS e.style['text-underline-position'] = "right under left" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid.html
new file mode 100644 (file)
index 0000000..5feea8e
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-underline-position with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-style-property">
+<meta name="assert" content="text-underline-position supports only the grammar 'auto | [ under || [ left | right ] ]'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_invalid_value("text-underline-position", "auto under");
+test_invalid_value("text-underline-position", "left auto");
+test_invalid_value("text-underline-position", "left right");
+test_invalid_value("text-underline-position", "right under left");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid-expected.txt
new file mode 100644 (file)
index 0000000..c40b8bf
--- /dev/null
@@ -0,0 +1,8 @@
+
+PASS e.style['text-underline-position'] = "auto" should set the property value 
+PASS e.style['text-underline-position'] = "under" should set the property value 
+FAIL e.style['text-underline-position'] = "left" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-underline-position'] = "right" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-underline-position'] = "under left" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['text-underline-position'] = "right under" should set the property value assert_not_equals: property should be set got disallowed value ""
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid.html
new file mode 100644 (file)
index 0000000..fa05448
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: Parsing text-underline-position with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-style-property">
+<meta name="assert" content="text-underline-position supports the full grammar 'auto | [ under || [ left | right ] ]'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+<script>
+test_valid_value("text-underline-position", "auto");
+
+test_valid_value("text-underline-position", "under");
+test_valid_value("text-underline-position", "left");
+test_valid_value("text-underline-position", "right");
+test_valid_value("text-underline-position", "under left");
+test_valid_value("text-underline-position", "right under", "under right");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/w3c-import.log
new file mode 100644 (file)
index 0000000..dfb9a70
--- /dev/null
@@ -0,0 +1,38 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+       https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-color-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-line-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-skip-ink-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-style-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-shadow-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-underline-position-valid.html
index bc7a1db..fd5bc5d 100644 (file)
             }
             #blue-underline {
                 text-decoration: underline;
-                -webkit-text-decoration-color: blue;
+                text-decoration-color: blue;
             }
             #gray-overline {
                 text-decoration: overline;
-                -webkit-text-decoration-color: gray;
+                text-decoration-color: gray;
             }
             #green-line-through {
                 text-decoration: line-through;
-                -webkit-text-decoration-color: green;
+                text-decoration-color: green;
             }
             #transparent-fill {
                 -webkit-text-fill-color: transparent;
     <body>
         <h3>Each line of this test should match its text decoration color description:</h3>
 
-        <!--  Valid values for underline, overline and line-through text decoration lines  -->
-        <div class="underline" style="color: gray; -webkit-text-decoration-color: blue;">Gray text with blue underline</div><br/>
-        <div class="overline" style="color: green; -webkit-text-decoration-color: black;">Green text with black overline</div><br/>
-        <div class="line-through" style="-webkit-text-decoration-color: gold;">Black text with gold line-through</div><br/>
+        <!-- Valid values for underline, overline and line-through text decoration lines -->
+        <div class="underline" style="color: gray; text-decoration-color: blue;">Gray text with blue underline</div><br/>
+        <div class="overline" style="color: green; text-decoration-color: black;">Green text with black overline</div><br/>
+        <div class="line-through" style="text-decoration-color: gold;">Black text with gold line-through</div><br/>
 
-        <!--  Mix of underline, overline and line-through with different colors for each  -->
+        <!-- Mix of underline, overline and line-through with different colors for each -->
         <div>
             <span id="blue-underline">
                 <span id="gray-overline">
@@ -50,7 +50,7 @@
             </span>
         </div><br/>
 
-        <!--  Test behavior on subscript and superscript text  -->
+        <!-- Test behavior on subscript and superscript text -->
         <div>
             <span id="green-line-through">
                 <sub id="gray-overline">subscript text</sub>
@@ -58,7 +58,7 @@
             </span>
         </div><br/>
 
-        <!--  Test with text-fill-color and text-stroke-color values set  -->
-        <div class="underline" id="transparent-fill" style="-webkit-text-decoration-color: green;">Transparent fill with black stroke text and green underline</div><br/>
+        <!-- Test with text-fill-color and text-stroke-color values set -->
+        <div class="underline" id="transparent-fill" style="text-decoration-color: green;">Transparent fill with black stroke text and green underline</div><br/>
     </body>
 </html>
index a5c993a..6bcba28 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Reftest Reference</title>
-               <!--  reftest for text-decoration-line-010.xht  -->
+               <!-- reftest for text-decoration-line-010.xht -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <meta http-equiv="content-language" content="en, ja" />
                <style type="text/css">
@@ -31,7 +31,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong>.</p>
-               <!--  none  -->
+               <!-- none -->
                <div class="control">Text sample サンプル文</div>
                <div class="control">Text sample サンプル文</div>
        </body>
index 8509c6f..f4b16e3 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Text Decoration Test: text-decoration-line - none</title>
-               <!--  none  -->
+               <!-- none -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <link rel="help" title="2.1. Text Decoration Lines: the‘text-decoration-line’property" href="http://www.w3.org/TR/css-text-decor-3/#text-decoration-line-property" />
                <link rel="match" href="reference/text-decoration-line-010-ref.xht" />
@@ -28,7 +28,7 @@
                                }
                                #test
                                {
-                                       -webkit-text-decoration-line: none;                                                     // The property to be tested
+                                       text-decoration-line: none;                                                     // The property to be tested
                                }
                                #control
                                {
@@ -38,7 +38,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong>.</p>
-               <!--  none  -->
+               <!-- none -->
                <div id="test">Text sample サンプル文</div>
                <div id="control">Text sample サンプル文</div>
        </body>
index b7e906a..23c3813 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Reftest Reference</title>
-               <!--  reftest for text-decoration-line-011.xht  -->
+               <!-- reftest for text-decoration-line-011.xht -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <meta http-equiv="content-language" content="en, ja" />
                <style type="text/css">
@@ -31,7 +31,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong> and <strong>underlined</strong>.</p>
-               <!--  underline  -->
+               <!-- underline -->
                <div class="control">Text sample サンプル文</div>
                <div class="control">Text sample サンプル文</div>
        </body>
index ac6259b..78f6e54 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Text Decoration Test: text-decoration-line - underline</title>
-               <!--  underline  -->
+               <!-- underline -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <link rel="help" title="2.1. Text Decoration Lines: the‘text-decoration-line’property" href="http://www.w3.org/TR/css-text-decor-3/#text-decoration-line-property" />
                <link rel="match" href="reference/text-decoration-line-011-ref.xht" />
@@ -28,7 +28,7 @@
                                }
                                #test
                                {
-                                       -webkit-text-decoration-line: underline;                                        // The property to be tested
+                                       text-decoration-line: underline;                                        // The property to be tested
                                }
                                #control
                                {
@@ -38,7 +38,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong> and <strong>underlined</strong>.</p>
-               <!--  underline  -->
+               <!-- underline -->
                <div id="test">Text sample サンプル文</div>
                <div id="control">Text sample サンプル文</div>
        </body>
index 7bc7423..13eb7d5 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Reftest Reference</title>
-               <!--  reftest for text-decoration-line-012.xht  -->
+               <!-- reftest for text-decoration-line-012.xht -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <meta http-equiv="content-language" content="en, ja" />
                <style type="text/css">
@@ -31,7 +31,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong> and each has <strong>a line over it</strong>.</p>
-               <!--  overline  -->
+               <!-- overline -->
                <div class="control">Text sample サンプル文</div>
                <div class="control">Text sample サンプル文</div>
        </body>
index 1cb6d68..9a569eb 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Text Decoration Test: text-decoration-line - overline</title>
-               <!--  overline  -->
+               <!-- overline -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <link rel="help" title="2.1. Text Decoration Lines: the‘text-decoration-line’property" href="http://www.w3.org/TR/css-text-decor-3/#text-decoration-line-property" />
                <link rel="match" href="reference/text-decoration-line-012-ref.xht" />
@@ -28,7 +28,7 @@
                                }
                                #test
                                {
-                                       -webkit-text-decoration-line: overline;                                         // The property to be tested
+                                       text-decoration-line: overline;                                         // The property to be tested
                                }
                                #control
                                {
@@ -38,7 +38,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong> and each has <strong>a line over it</strong>.</p>
-               <!--  overline  -->
+               <!-- overline -->
                <div id="test">Text sample サンプル文</div>
                <div id="control">Text sample サンプル文</div>
        </body>
index 4453792..8fb8eaa 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Reftest Reference</title>
-               <!--  reftest for text-decoration-line-013.xht  -->
+               <!-- reftest for text-decoration-line-013.xht -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <meta http-equiv="content-language" content="en, ja" />
                <style type="text/css">
@@ -31,7 +31,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong> and each has<strong> a line through the middle</strong>.</p>
-               <!--  line-through  -->
+               <!-- line-through -->
                <div class="control">Text sample サンプル文</div>
                <div class="control">Text sample サンプル文</div>
        </body>
index 0d65546..db379e3 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>CSS Text Decoration Test: text-decoration-line - line-through</title>
-               <!--  line-through  -->
+               <!-- line-through -->
                <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
                <link rel="help" title="2.1. Text Decoration Lines: the 'text-decoration-line’property" href="http://www.w3.org/TR/css-text-decor-3/#text-decoration-line-property" />
                <link rel="match" href="reference/text-decoration-line-013-ref.xht" />
@@ -28,7 +28,7 @@
                                }
                                #test
                                {
-                                       -webkit-text-decoration-line: line-through;                                     // The property to be tested
+                                       text-decoration-line: line-through;                                     // The property to be tested
                                }
                                #control
                                {
@@ -38,7 +38,7 @@
        </head>
        <body lang="en, ja">
                <p>Test passes if the 2 "Text sample サンプル文" are <strong>identical</strong> and each has<strong> a line through the middle</strong>.</p>
-               <!--  line-through  -->
+               <!-- line-through -->
                <div id="test">Text sample サンプル文</div>
                <div id="control">Text sample サンプル文</div>
        </body>
index 4e01255..92baa6b 100644 (file)
@@ -2,11 +2,11 @@
 <style>
     div {
         font-size: 50px;
-        text-decoration: overline;
+        text-decoration: overline solid green;
     }
 </style>
 <p>Test that changes in text-decoration-line are recalculated correctly. PASS
 if the text below has a solid green overline, and no underline.</p>
 <div id="target">
     Filler text
-</div>
+</div>
\ No newline at end of file
index 75a190e..321aea9 100644 (file)
@@ -4,7 +4,7 @@
 <style>
     div {
         font-size: 50px;
-        text-decoration: underline;
+        text-decoration: underline solid green;
     }
 </style>
 <script>
@@ -16,4 +16,4 @@
 if the text below has a solid green overline, and no underline.</p>
 <div id="target">
     Filler text
-</div>
+</div>
\ No newline at end of file
index 77d9729..ea6a0c8 100644 (file)
 </head>
 <body>
     <div>Each line of this test should match its style description (<i>text-decoration-line</i> resets <i>text-decoration</i>, except when the latter is set as <i>important</i>):</div><br/>
-    <div style="-webkit-text-decoration-line: underline;">This text is underlined <span class="none">(also inside span).</span></div><br/>
-    <div style="-webkit-text-decoration-line: overline;">This text is overlined <span class="none">(also inside span).</span></div><br/>
-    <div style="-webkit-text-decoration-line: line-through;">This text has a line-through <span class="none">(also inside span).</span></div><br/>
-    <div class="underline" style="-webkit-text-decoration-line: none;">This text contains no decorations.</div><br/>
-    <div class="underline" style="-webkit-text-decoration-line: underline;">This text is underlined.</div><br/>
-    <div class="overline" style="-webkit-text-decoration-line: none;">This text contains no decorations.</div><br/>
-    <div class="overline" style="-webkit-text-decoration-line: overline;">This text is overlined.</div><br/>
-    <div class="line-through" style="-webkit-text-decoration-line: none;">This text contains no decorations.</div><br/>
-    <div class="line-through" style="-webkit-text-decoration-line: line-through;">This text has a line-through.</div><br/>
-    <div class="all-decorations" style="-webkit-text-decoration-line: none;">This text contains no decorations.</div><br/>
-    <div class="all-decorations" style="-webkit-text-decoration-line: underline overline line-through;">This text is underlined, overlined and has a line-through.</div><br/>
-    <div style="-webkit-text-decoration-line: underline; text-decoration: none !important;">This text contains no decorations.</div><br/>
-    <div style="-webkit-text-decoration-line: underline; text-decoration: overline !important;">This text is overlined.</div><br/>
-    <div style="-webkit-text-decoration-line: underline !important; text-decoration: overline !important;">This text is overlined.</div><br/>
-    <div style="text-decoration: overline !important; -webkit-text-decoration-line: underline !important;">This text is underlined.</div>
-    <div style="-webkit-text-decoration-line: blink blink;">This text contains no decorations.</div><br/>
-    <div style="-webkit-text-decoration-line: blink underline blink;">This text contains no decorations.</div><br/>
-    <div style="-webkit-text-decoration-line: blink underline overline blink;">This text contains no decorations.</div><br/>
-    <div style="-webkit-text-decoration-line: blink underline overline line-through blink;">This text contains no decorations.</div><br/>
+    <div style="text-decoration-line: underline;">This text is underlined <span class="none">(also inside span).</span></div><br/>
+    <div style="text-decoration-line: overline;">This text is overlined <span class="none">(also inside span).</span></div><br/>
+    <div style="text-decoration-line: line-through;">This text has a line-through <span class="none">(also inside span).</span></div><br/>
+    <div class="underline" style="text-decoration-line: none;">This text contains no decorations.</div><br/>
+    <div class="underline" style="text-decoration-line: underline;">This text is underlined.</div><br/>
+    <div class="overline" style="text-decoration-line: none;">This text contains no decorations.</div><br/>
+    <div class="overline" style="text-decoration-line: overline;">This text is overlined.</div><br/>
+    <div class="line-through" style="text-decoration-line: none;">This text contains no decorations.</div><br/>
+    <div class="line-through" style="text-decoration-line: line-through;">This text has a line-through.</div><br/>
+    <div class="all-decorations" style="text-decoration-line: none;">This text contains no decorations.</div><br/>
+    <div class="all-decorations" style="text-decoration-line: underline overline line-through;">This text is underlined, overlined and has a line-through.</div><br/>
+    <div style="text-decoration-line: underline; text-decoration: none !important;">This text contains no decorations.</div><br/>
+    <div style="text-decoration-line: underline; text-decoration: overline !important;">This text is overlined.</div><br/>
+    <div style="text-decoration-line: underline !important; text-decoration: overline !important;">This text is overlined.</div><br/>
+    <div style="text-decoration: overline !important; text-decoration-line: underline !important;">This text is underlined.</div>
+    <div style="text-decoration-line: blink blink;">This text contains no decorations.</div><br/>
+    <div style="text-decoration-line: blink underline blink;">This text contains no decorations.</div><br/>
+    <div style="text-decoration-line: blink underline overline blink;">This text contains no decorations.</div><br/>
+    <div style="text-decoration-line: blink underline overline line-through blink;">This text contains no decorations.</div><br/>
 </body>
 </html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow-expected.html
new file mode 100644 (file)
index 0000000..2370054
--- /dev/null
@@ -0,0 +1,2 @@
+<!DOCTYPE html>
+<p style="text-decoration:underline">This text should be underlined.</p>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow.html
new file mode 100644 (file)
index 0000000..ac365ee
--- /dev/null
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<title>CSS Test: text-decoration propagation into shadow DOM boxes</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor/#line-decoration">
+<link rel="match" href="reference/text-decoration-underline-ref.html">
+<style>
+  #host { text-decoration: underline }
+</style>
+<p>
+  <div id="host">
+    <span>This text should be underlined.</span>
+  </div>
+</p>
+<script>
+  const root = host.attachShadow({mode:"open"});
+  root.appendChild(document.createElement("slot"));
+</script>
index 2f7b2f5..73cb5cc 100644 (file)
@@ -8,10 +8,11 @@
 <script>
 test(() => {
   const style = getComputedStyle(document.querySelector('div'));
-  // Chrome serializes as "underline solid rgb(0, 0, 0)" while Edge, Firefox an
-  // Safari use "underline", which Chrome used to do as well. The spec should
-  // probably require "underline":
-  // https://github.com/w3c/csswg-drafts/issues/1564
-  assert_equals(style.getPropertyValue("text-decoration"), "underline");
+  const currentColor = "rgb(0, 0, 0)"; // The default color value is black.
+  // The default computed value of text-decoration-color is depended on the
+  // current color value, and it is an rgb() value, instead of `currentcolor`.
+  // This is an ambiguous part in the spec, anyway.
+  assert_equals(style.getPropertyValue("text-decoration"),
+                "underline " + currentColor);
 });
 </script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001-expected.html
new file mode 100644 (file)
index 0000000..5543621
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration shorthands</title>
+        <style>
+         div{
+             text-decoration: green underline;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if a green underline renders</p>
+        <div>XX XX</div>
+    </body>
+</html>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001.html
new file mode 100644 (file)
index 0000000..01654e5
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration shorthands</title>
+        <meta name="assert" content="text-decoration: the line should be rendered at a thickness of auto">
+        <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+        <link rel="match" href="reference/text-decoration-shorthands-001-ref.html">
+        <style>
+         div{
+             text-decoration: green underline auto;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if a green underline renders</p>
+        <div>XX XX</div>
+    </body>
+</html>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002-expected.html
new file mode 100644 (file)
index 0000000..c5f6070
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration shorthands</title>
+        <style>
+         div{
+             text-decoration: green underline;
+             text-decoration-thickness: 100px;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if a thick green underline is rendered</p>
+        <div>XX XX</div>
+    </body>
+</html>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002.html
new file mode 100644 (file)
index 0000000..2b3bc37
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration shorthands</title>
+        <meta name="assert" content="text-decoration: text-decoration-thickness is parsed as part of the text-decoration shorthand">
+        <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+        <link rel="match" href="reference/text-decoration-shorthands-002-ref.html">
+        <style>
+         /*
+            This test is designed to make sure the underline is rendered
+            the same, regardless of whether or not the thickness is set
+            in the shorthands or the longhands form
+         */
+         div{
+             text-decoration: green underline 100px;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if a thick green underline is rendered</p>
+        <div>XX XX</div>
+    </body>
+</html>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001-expected.html
new file mode 100644 (file)
index 0000000..783a2b2
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Non-reference case for text-decoration-skip-ink</title>
+        <style>
+         div{
+             text-decoration: green underline;
+             text-decoration-skip-ink: none;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if the underline skips the p and g's in the text below</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001.html
new file mode 100644 (file)
index 0000000..4c70765
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: descenders are skipped">
+        <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-001-notref.html">
+        <style>
+         div{
+             text-decoration: green underline;
+             text-decoration-skip-ink: auto;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if the underline skips the p and g's in the text below</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002-expected.html
new file mode 100644 (file)
index 0000000..dce9584
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration-skip-ink</title>
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002.html
new file mode 100644 (file)
index 0000000..c073cd3
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: no underline is rendered for transparent Ahem font">
+        <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="match" href="reference/text-decoration-skip-ink-002-ref.html">
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+         /*
+            No underline should be rendered for Ahem text when
+            text-decoration-skip-ink is applied.
+          */
+         div{
+             font: 20px/1 Ahem;
+             text-decoration: green underline;
+             text-decoration-skip-ink: auto;
+             color: transparent;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+        <div>XXXX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003-expected.html
new file mode 100644 (file)
index 0000000..e13e529
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration-skip-ink</title>
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+         div{
+             font: 20px/1 Ahem;
+             color: rgba(255,255,0,0.25);
+             text-decoration: green underline;
+             text-decoration-skip-ink: none;
+             text-underline-offset: .5em;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if underline is rendered below the text</p>
+        <div>XXXX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003.html
new file mode 100644 (file)
index 0000000..74a3048
--- /dev/null
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: an uninterrupted underline is rendered below the text">
+        <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="match" href="reference/text-decoration-skip-ink-003-ref.html">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-003-notref.html">
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+         /*
+            This test ensures that the underline offset is taken into account
+            when calculating the skip-ink. No skip-ink should be applied
+            because the underline is being moved below the text.
+          */
+         div{
+             font: 20px/1 Ahem;
+             color: rgba(255,255,0,0.25);
+             text-decoration: green underline;
+             text-decoration-skip-ink: auto;
+             text-underline-offset: .5em;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if underline is rendered below the text</p>
+        <div>XXXX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004-expected.html
new file mode 100644 (file)
index 0000000..2861918
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Non-reference case for text-decoration-skip-ink</title>
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+         div{
+             font: 20px/1 Ahem;
+             color: rgba(255,255,0,0.25);
+             text-decoration: green underline;
+             text-decoration-skip-ink: none;
+             text-underline-offset: -.3em;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if underline appears only across the 'p' glyph</p>
+        <div>XXpX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004.html
new file mode 100644 (file)
index 0000000..9d763f2
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: a partial underline is rendered above the 'p'">
+        <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-004-notref.html">
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+         /*
+            This test ensures that the underline offset is taken into account
+            when calculating the skip-ink. The underline should skip all
+            characters except the third.
+          */
+         div{
+             font: 20px/1 Ahem;
+             color: rgba(255,255,0,0.25);
+             text-decoration: green underline;
+             text-decoration-skip-ink: auto;
+             text-underline-offset: -.3em;
+         }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if underline appears only across the 'p' glyph</p>
+        <div>XXpX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001-expected.html
new file mode 100644 (file)
index 0000000..49cbf15
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Non-reference case for text-decoration-skip-ink</title>
+        <style>
+           div{
+                 text-decoration: green underline;
+                 text-decoration-skip-ink: none;
+                 writing-mode: sideways-lr;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if p and g characters are skipped</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001.html
new file mode 100644 (file)
index 0000000..48d427e
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: descenders are skipped">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-sidewayslr-001-notref.html">
+        <style>
+           div{
+                 text-decoration: green underline;
+                 text-decoration-skip-ink: auto;
+                 writing-mode: sideways-lr;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if p and g characters are skipped</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002-expected.html
new file mode 100644 (file)
index 0000000..dce9584
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration-skip-ink</title>
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002.html
new file mode 100644 (file)
index 0000000..c5ee346
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: no underline should be rendered for transparent Ahem text">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="match" href="reference/text-decoration-skip-ink-002-ref.html">
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+           /*
+            No underline should be rendered for Ahem text
+            with skip-ink enabled
+           */
+          div{
+                 font: 20px/1 Ahem;
+                 color: transparent;
+                 text-decoration-skip-ink: auto;
+                 text-decoration: green underline;
+                 text-underline-offset: -0.2em;
+                 writing-mode: sideways-lr;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+        <div>XXXX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001-expected.html
new file mode 100644 (file)
index 0000000..3882683
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Non-reference case for text-decoration-skip-ink</title>
+        <style>
+           div{
+                 text-decoration: green underline;
+                 text-decoration-skip-ink: none;
+                 writing-mode: sideways-rl;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if p and g characters are skipped</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001.html
new file mode 100644 (file)
index 0000000..3384215
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: descenders are skipped">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-sidewaysrl-001-notref.html">
+        <style>
+           div{
+                 text-decoration: green underline;
+                 text-decoration-skip-ink: auto;
+                 writing-mode: sideways-rl;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if p and g characters are skipped</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002-expected.html
new file mode 100644 (file)
index 0000000..dce9584
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration-skip-ink</title>
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002.html
new file mode 100644 (file)
index 0000000..9434430
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: no underline should be rendered for transparent Ahem text">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="match" href="reference/text-decoration-skip-ink-002-ref.html">
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+           /*
+            No underline should be rendered for Ahem text
+            with skip-ink enabled
+           */
+          div{
+                 font: 20px/1 Ahem;
+                 color: transparent;
+                 text-decoration-skip-ink: auto;
+                 text-decoration: green underline;
+                 text-underline-offset: -0.2em;
+                 writing-mode: sideways-rl;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+        <div>XXXX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001-expected.html
new file mode 100644 (file)
index 0000000..a57eac2
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Non-reference case for text-decoration-skip-ink</title>
+        <style>
+           div{
+                 text-decoration-skip-ink: none;
+                 text-decoration: green underline;
+                 writing-mode: vertical-lr;
+                 text-orientation: upright;
+                 text-underline-offset: -0.5em;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test if underline skips the characters</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001.html
new file mode 100644 (file)
index 0000000..5d0d78c
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: descenders are skipped">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-upright-001-notref.html">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-upright-001-offset-notref.html">
+        <style>
+           div{
+                 text-decoration-skip-ink: auto;
+                 text-decoration: green underline;
+                 writing-mode: vertical-lr;
+                 text-orientation: upright;
+                 text-underline-offset: -0.5em;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test if underline skips the characters</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002-expected.html
new file mode 100644 (file)
index 0000000..dce9584
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration-skip-ink</title>
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002.html
new file mode 100644 (file)
index 0000000..2e7d80e
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: no underline should be rendered for transparent Ahem text">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="match" href="reference/text-decoration-skip-ink-002-ref.html">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-upright-002-notref.html">
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+           div{
+                font: 20px/1 Ahem;
+                text-decoration: green underline;
+                text-decoration-skip-ink: auto;
+                color: transparent;
+                text-underline-offset: -0.5em;
+                writing-mode: vertical-rl;
+                text-orientation: upright;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+        <div>XXXX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001-expected.html
new file mode 100644 (file)
index 0000000..0938ce6
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Non-reference case for text-decoration-skip-ink</title>
+        <style>
+           div{
+                text-decoration: green underline;
+                text-decoration-skip-ink: none;
+                text-underline-offset: -0.2em;
+                writing-mode: vertical-lr;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if p and g characters are skipped</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001.html
new file mode 100644 (file)
index 0000000..bf90543
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: descenders are skipped">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-vertical-001-notref.html">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-vertical-001-offset-notref.html">
+        <style>
+           div{
+                text-decoration: green underline;
+                text-decoration-skip-ink: auto;
+                text-underline-offset: -0.2em;
+                writing-mode: vertical-lr;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if p and g characters are skipped</p>
+        <div>ping pong</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002-expected.html
new file mode 100644 (file)
index 0000000..dce9584
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Reference case for text-decoration-skip-ink</title>
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002.html
new file mode 100644 (file)
index 0000000..9cacc8c
--- /dev/null
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>Test case for text-decoration-skip-ink</title>
+        <meta name="assert" content="text-decoration-skip-ink: no underline should be rendered for transparent Ahem text">
+        <link rel="author" title="Charlie Marlow" href="cmarlow@mozilla.com">
+        <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+        <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property">
+        <link rel="match" href="reference/text-decoration-skip-ink-002-ref.html">
+        <link rel="mismatch" href="reference/text-decoration-skip-ink-vertical-002-notref.html">
+        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+        <style>
+           /*
+            No underline should be rendered for Ahem text
+            with skip-ink enabled
+           */
+          div{
+                 font: 20px/1 Ahem;
+                 color: transparent;
+                 text-decoration-skip-ink: auto;
+                 text-decoration: green underline;
+                 text-underline-offset: -0.2em;
+                 writing-mode: vertical-lr;
+           }
+        </style>
+    </head>
+    <body>
+        <p>Test passes if no underline is visible</p>
+        <div>XXXX</div>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001-expected.html
new file mode 100644 (file)
index 0000000..4e7db88
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Non-reference case for text-decoration-thickness</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #main {
+            display: flex;
+        }
+        div span {
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            font: 20px/1 Ahem;
+            color: transparent;
+            padding-right: 1em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if the right has a thick green underline</p>
+    <div id="main">
+        <div>left<span>XXXX</span></div>
+        <div><span>XXXX</span>right</div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001.html
new file mode 100644 (file)
index 0000000..8f31479
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-decoration-thickness</title>
+    <meta name="assert" content="text-decoration-thickness: should affect the underline thickness">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+    <link rel="mismatch" href="reference/text-decoration-thickness-001-notref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #main {
+            display: flex;
+        }
+        div span {
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            font: 20px/1 Ahem;
+            color: transparent;
+            padding-right: 1em;
+        }
+        #rightbox {
+            text-decoration-thickness: 2em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if the right has a thick green underline</p>
+    <div id="main">
+        <div>left<span>XXXX</span></div>
+        <div><span id="rightbox">XXXX</span>right</div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed-expected.txt
new file mode 100644 (file)
index 0000000..da8f937
--- /dev/null
@@ -0,0 +1,5 @@
+
+PASS Property text-decoration-thickness value 'auto' computes to 'auto' 
+PASS Property text-decoration-thickness value 'from-font' computes to 'from-font' 
+PASS Property text-decoration-thickness value 'calc(10px - 8px)' computes to '2px' 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html
new file mode 100644 (file)
index 0000000..99e693a
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: parsing text-decoration-thickness computed values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+<meta name="assert" content="text-decoration-thickness computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("text-decoration-thickness", "auto");
+test_computed_value("text-decoration-thickness", "from-font");
+test_computed_value("text-decoration-thickness", "calc(10px - 8px)", "2px");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-initial-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-initial-expected.txt
new file mode 100644 (file)
index 0000000..42e5bbd
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Initial value of text-decoration-thickness should be auto 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-initial.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-initial.html
new file mode 100644 (file)
index 0000000..4c4ca9c
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<link rel="help" title="2.4 Text Decoration Width: the 'text-decoration-thickness' property"
+      href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property" />
+</head>
+<body>
+<script>
+test(function() {
+  assert_equals(getComputedStyle(document.body)["text-decoration-thickness"], "auto", "Must be set to value auto as initial value.");
+}, "Initial value of text-decoration-thickness should be auto");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid-expected.txt
new file mode 100644 (file)
index 0000000..e9294ae
--- /dev/null
@@ -0,0 +1,13 @@
+
+PASS e.style['text-decoration-thickness'] = "otto" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "asdlflj" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "-10" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "60002020" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "!@#$%^&" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "10e2" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "from font" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "10%" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "-27%" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "calc(40% - 20px)" should not set the property value 
+PASS e.style['text-decoration-thickness'] = "calc(100% - 40em)" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid.html
new file mode 100644 (file)
index 0000000..656fa3b
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: parsing text-decoration-thickness with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+<meta name="assert" content="text-decoration-thickness supports the following values: auto | from-font | <length>">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value("text-decoration-thickness", "otto");
+test_invalid_value("text-decoration-thickness", "asdlflj");
+test_invalid_value("text-decoration-thickness", "-10");
+test_invalid_value("text-decoration-thickness", "60002020");
+test_invalid_value("text-decoration-thickness", "!@#$%^&");
+test_invalid_value("text-decoration-thickness", "10e2");
+test_invalid_value("text-decoration-thickness", "from font");
+test_invalid_value("text-decoration-thickness", "10%");
+test_invalid_value("text-decoration-thickness", "-27%");
+test_invalid_value("text-decoration-thickness", "calc(40% - 20px)");
+test_invalid_value("text-decoration-thickness", "calc(100% - 40em)");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001-expected.html
new file mode 100644 (file)
index 0000000..14d1219
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-decoration-thickness</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        div{
+            height: 1em;
+            width: 4em;
+            background-color: green;
+            font: 20px/1 Ahem;
+            color: transparent;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
+    <div>XXXXXXXXXXXXXXXXXXXX</div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001.html
new file mode 100644 (file)
index 0000000..6fd8383
--- /dev/null
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-decoration-thickness</title>
+    <meta name="assert" content="text-decoration-thickness; the width of the decoration line is increased">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+    <link rel="match" href="reference/text-decoration-thickness-green-rect-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        div{
+            overflow: hidden;
+            height: 1em;
+            width: 4em;
+            background-color: red;
+            font: 20px/1 Ahem;
+            color: transparent;
+            text-decoration: green line-through;
+            text-decoration-skip-ink: none;
+            /* We make the text decoration just a bit thicker than the div's height, so that
+             * it will entirely cover the div's content-box (making it fully green) as long
+             * as the line-through is approximately centered, vertically.
+             */
+            text-decoration-thickness: 1.1em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
+    <div>XXXXXXXXXXXXXXXXXXXX</div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001-expected.html
new file mode 100644 (file)
index 0000000..14d1219
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-decoration-thickness</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        div{
+            height: 1em;
+            width: 4em;
+            background-color: green;
+            font: 20px/1 Ahem;
+            color: transparent;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
+    <div>XXXXXXXXXXXXXXXXXXXX</div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001.html
new file mode 100644 (file)
index 0000000..325811c
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-decoration-thickness</title>
+    <meta name="assert" content="text-decoration-thickness: the width of the decoration line is increased">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+    <link rel="match" href="reference/text-decoration-thickness-green-rect-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            overflow: hidden;
+            height: 1em;
+            width: 4em;
+            background-color: red;
+        }
+        /*
+         * This is testing to ensure that the overline
+         * "grows up" and covers the red in the box
+         */
+        #text{
+            color: transparent;
+            position: relative;
+            top: 3em;
+            text-decoration: green overline;
+            text-decoration-skip-ink: none;
+            text-decoration-thickness: 4em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
+    <div id="box">
+        <div id="text">XXXXXXXXXXXXXXXXXXXX</div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001-expected.html
new file mode 100644 (file)
index 0000000..3948114
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-decoration-thickness</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            border: black solid;
+            height: 5em;
+            width: 7em;
+            background-color: green;
+        }
+    </style>
+</head>
+<body>
+    <div>Test fails if there is a red line or scrollbar in the box</div>
+    <div id="box">
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html
new file mode 100644 (file)
index 0000000..acc829d
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-decoration-thickness</title>
+    <meta name="assert" content="text-decoration-thickness: increased width text decorations don't create scrollable overflow">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+    <link rel="match" href="reference/text-decoration-thickness-scroll-001-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            border: black solid;
+            overflow-y: auto;
+            height: 5em;
+            width: 7em;
+            background-color: red;
+        }
+        /*
+         * Testing to make sure that increasing the width of
+         * of the text decoration does not create scrollable
+         * overflow
+         */
+        #text{
+            position: relative;
+            bottom: 1em;
+            color: transparent;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-decoration-thickness: 8em;
+        }
+    </style>
+</head>
+<body>
+    <div>Test fails if there is a red line or scrollbar in the box</div>
+    <div id="box">
+        <div id="text">XXXXXXX</div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001-expected.html
new file mode 100644 (file)
index 0000000..14d1219
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-decoration-thickness</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        div{
+            height: 1em;
+            width: 4em;
+            background-color: green;
+            font: 20px/1 Ahem;
+            color: transparent;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
+    <div>XXXXXXXXXXXXXXXXXXXX</div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001.html
new file mode 100644 (file)
index 0000000..020f849
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-decoration-thickness</title>
+    <meta name="assert" content="text-decoration-thickness: the width of the decoration line is increased">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+    <link rel="match" href="reference/text-decoration-thickness-green-rect-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            overflow: hidden;
+            height: 1em;
+            width: 4em;
+            background-color: red;
+        }
+        /*
+         * This is testing to ensure that the underline
+         * "grows down" and covers the red in the box
+         */
+        #text{
+            color: transparent;
+            position: relative;
+            bottom: 3em;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-decoration-thickness: 4em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
+    <div id="box">
+        <div id="text">XXXXXXXXXXXXXXXXXXXX</div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid-expected.txt
new file mode 100644 (file)
index 0000000..e469394
--- /dev/null
@@ -0,0 +1,10 @@
+
+PASS e.style['text-decoration-thickness'] = "auto" should set the property value 
+PASS e.style['text-decoration-thickness'] = "from-font" should set the property value 
+PASS e.style['text-decoration-thickness'] = "-10px" should set the property value 
+PASS e.style['text-decoration-thickness'] = "2001em" should set the property value 
+PASS e.style['text-decoration-thickness'] = "-49em" should set the property value 
+PASS e.style['text-decoration-thickness'] = "53px" should set the property value 
+PASS e.style['text-decoration-thickness'] = "calc(40em - 10px)" should set the property value 
+PASS e.style['text-decoration-thickness'] = "calc(-50em + 13px)" should set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid.html
new file mode 100644 (file)
index 0000000..d05c892
--- /dev/null
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: parsing text-decoration-thickness longhands with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+<meta name="assert" content="text-decoration-thickness supports the following values: auto | from-font | <length>">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value("text-decoration-thickness", "auto");
+test_valid_value("text-decoration-thickness", "from-font");
+test_valid_value("text-decoration-thickness", "-10px");
+test_valid_value("text-decoration-thickness", "2001em");
+test_valid_value("text-decoration-thickness", "-49em");
+test_valid_value("text-decoration-thickness", "53px");
+test_valid_value("text-decoration-thickness", "calc(40em - 10px)");
+test_valid_value("text-decoration-thickness", "calc(-50em + 13px)");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001-expected.html
new file mode 100644 (file)
index 0000000..8955e84
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-decoration-thickness</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            background-color: green;
+            height: 4em;
+            width: 1em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test fails if there is any red visible</p>
+    <div id="box"></div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001.html
new file mode 100644 (file)
index 0000000..f04f1b5
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-decoration-thickness</title>
+    <meta name="assert" content="text-decoration-thickness: the width of the decoration line is increased">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+    <link rel="match" href="reference/text-decoration-thickness-vertical-green-rect-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            background-color: red;
+            height: 4em;
+            width: 1em;
+            overflow: hidden;
+        }
+        /*
+         * The underline is placed to the left of the text
+         * at the right edge of the #box scrollpart. It is
+         * 1.3 em away so that the entire text-decoration covers
+         * the vertical box. Its text-decoration should grow "out"
+         * away from the text, covering up the scrollport. We
+         * will use 1.5 em-wide decoration line to be sure the
+         * scrollport is still fully covered if there are small
+         * differences in the placement of the line.
+         */
+        #text{
+            color: transparent;
+            writing-mode: vertical-rl;
+            position: relative;
+            left: 1.3em;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-decoration-thickness: 1.5em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test fails if there is any red visible</p>
+    <div id="box"><div id="text">XXXX</div></div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002-expected.html
new file mode 100644 (file)
index 0000000..8955e84
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-decoration-thickness</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            background-color: green;
+            height: 4em;
+            width: 1em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test fails if there is any red visible</p>
+    <div id="box"></div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html
new file mode 100644 (file)
index 0000000..70421c5
--- /dev/null
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-decoration-thickness</title>
+    <meta name="assert" content="text-decoration:width; the width of the decoration line is increased">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
+    <link rel="match" href="reference/text-decoration-thickness-vertical-green-rect-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
+    <style>
+        #box{
+            font: 20px/1 Ahem;
+            background-color: red;
+            height: 4em;
+            width: 1em;
+            overflow: hidden;
+        }
+        /*
+         * The underline is placed to the right of the text
+         * at the left edge of the #box scrollpart. Its
+         * text-decoration should grow "out" away from the
+         * text, covering up the scrollport. We will use a
+         * 1.2 em-wide decoration line to be sure the
+         * scrollport is still fully covered if there are
+         * small differences in the placement of the line.
+         */
+        #text{
+            color: transparent;
+            writing-mode: sideways-lr;
+            position: relative;
+            right: 1em;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-decoration-thickness: 1.2em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test fails if there is any red visible</p>
+    <div id="box"><div id="text">XXXX</div></div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal-expected.html
new file mode 100644 (file)
index 0000000..be9155b
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <meta charset="utf-8">
+    <style>
+            .underline { text-decoration: underline; }
+            .overline { text-decoration: overline; }
+    </style>
+</head>
+<body lang="en">
+    <div class="overline">サンプル</div>
+    <div class="overline">サンプル</div>
+    <div class="underline">"text-underline-position: right" alone should be same as "auto right"</div>
+    <div class="underline">"text-underline-position: left" alone should be same as "auto left"</div>
+</body>
+</html>
+
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal.html
new file mode 100644 (file)
index 0000000..e4d495e
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <meta charset="utf-8">
+    <link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-underline-position-property">
+    <link rel="match" href="reference/text-decoration-underline-position-horizontal-ref.html">
+    <style>
+        .underline { text-decoration: underline; }
+        .overline { text-decoration: overline; }
+    </style>
+</head>
+<body lang="en">
+    <div class="overline" style="text-underline-position: under right">サンプル</div>
+    <div class="overline" style="text-underline-position: under left">サンプル</div>
+    <div class="underline" style="text-underline-position: right">"text-underline-position: right" alone should be same as "auto right"</div>
+    <div class="underline" style="text-underline-position: left">"text-underline-position: left" alone should be same as "auto left"</div>
+</body>
+</html>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-expected.html
new file mode 100644 (file)
index 0000000..8c0bee6
--- /dev/null
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <meta charset="utf-8">
+    <style>
+            body { writing-mode: vertical-rl; }
+            .underline { text-decoration: underline; }
+            .overline { text-decoration: overline; }
+    </style>
+</head>
+<body lang="en">
+    <div class="underline">サンプル</div>
+    <div class="underline">サンプル</div>
+</body>
+</html>
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja-expected.html
new file mode 100644 (file)
index 0000000..303655a
--- /dev/null
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <meta charset="utf-8">
+    <style>
+            body { writing-mode: vertical-rl; }
+            .underline { text-decoration: underline; }
+            .overline { text-decoration: overline; }
+    </style>
+</head>
+<body lang="en">
+    <div>In vertical writing mode with lang=ja, default overline will be same as underline (lang=en). However, when we set text-underline-position to "under left" it should be shifted.</div>
+    <div class="underline">サンプル</div>
+    <div class="underline">サンプル</div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja.html
new file mode 100644 (file)
index 0000000..6f41e93
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <meta charset="utf-8">
+    <link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-underline-position-property">
+    <link rel="match" href="reference/text-decoration-underline-position-vertical-ja-ref.html">
+    <style>
+        body { writing-mode: vertical-rl; }
+        .underline { text-decoration: underline; }
+        .overline { text-decoration: overline; }
+    </style>
+</head>
+<body lang="ja">
+    <div>In vertical writing mode with lang=ja, default overline will be same as underline (lang=en). However, when we set text-underline-position to "under left" it should be shifted.</div>
+    <div class="underline" style="text-underline-position: under left">サンプル</div>
+    <div class="overline">サンプル</div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical.html
new file mode 100644 (file)
index 0000000..9f60bc1
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <meta charset="utf-8">
+    <link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-underline-position-property">
+    <link rel="match" href="reference/text-decoration-underline-position-vertical-ref.html">
+    <style>
+        body { writing-mode: vertical-rl; }
+        .underline { text-decoration: underline; }
+        .overline { text-decoration: overline; }
+    </style>
+</head>
+<body lang="en">
+    <div class="overline" style="text-underline-position: right">サンプル</div>
+    <div class="underline" style="text-underline-position: left">サンプル</div>
+</body>
+</html>
+
index 07fcd3f..ae8bb47 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - above left - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index a12dd50..c663f5f 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-above-left-001-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index 6be87d7..35643e1 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - above left - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index bab532b..2464e21 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-above-left-002-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index ca243a0..ea9d277 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - above right - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index 92ca948..3068f10 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-above-right-001-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index c99186b..6ffeea5 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - above right - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index 42cb2aa..beb4c94 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-above-right-002-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index 1a00f01..b25d1c7 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - below left - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index c178fa4..a675d56 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-below-left-001-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index 1102ed6..f6d6308 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - below left - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index cb89abf..15cfdef 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-below-left-002-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index f94c4ff..dea8ccd 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - below right - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index 06d519e..e680441 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-below-right-001-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index 307201c..32bceb2 100644 (file)
@@ -4,6 +4,7 @@
        <head>
                <title>CSS Test: text-emphasis-position - below right - basic cases Reftest Reference</title>
                <link rel="author" title="Makoto Kikuchi" href="mailto:kikuchi@est.co.jp" />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .common
                        {
index d832123..993fa7f 100644 (file)
@@ -8,6 +8,7 @@
                <link rel="match" href="reference/text-emphasis-position-below-right-002-ref.xht"/>
                <meta name="flags" content="ahem" />
                <meta name="assert" content="This property describes where emphasis marks are drawn at." />
+               <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
                <style type="text/css"><![CDATA[
                        .test
                        {
index b9e4702..6edad97 100644 (file)
@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <title>CSS Reference File</title>
     <link rel="author" title="Tomoyuki Shimizu" href="mailto:tomoyuki.labs@gmail.com">
-    <!--  link rel="reviewer" title="" href=""  -->
+    <!-- link rel="reviewer" title="" href="" -->
   </head>
   <body>
     <p>Test passes if a filled dot is above every single character of "Text Sample".</p>
index af2087c..bdcd785 100644 (file)
@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <title>CSS Reference File</title>
     <link rel="author" title="Tomoyuki Shimizu" href="mailto:tomoyuki.labs@gmail.com">
-    <!--  link rel="reviewer" title="" href=""  -->
+    <!-- link rel="reviewer" title="" href="" -->
   </head>
   <body>
     <p>Test passes if a filled circle is above every single character of "Text Sample".</p>
index c091e57..d76e616 100644 (file)
@@ -8,9 +8,9 @@
                <meta name="assert" content="Test checks that 'text-emphasis-style: filled double-circle'.">
        </head>
        <body>
-        <p>Test passes if "&#x25c9;" is above every single character of "Text sample"</p>
+        <p>Test passes if "&#x25c9" is above every single character of "Text sample"</p>
                <div>
-                       <span><ruby>Text sample<rt>&#x25c9;&#x25c9;&#x25c9;&#x25c9;&#x25c9;&#x25c9;&#x25c9;&#x25c9;&#x25c9;&#x25c9;</rt></ruby></span>.
+                       <span><ruby>Text sample<rt>&#x25c9&#x25c9&#x25c9&#x25c9&#x25c9&#x25c9&#x25c9&#x25c9&#x25c9&#x25c9</rt></ruby></span>.
                </div>
        </body>
 </html>
index b049ab0..4226c54 100644 (file)
@@ -14,7 +14,7 @@
                </style>
        </head>
        <body>
-        <p>Test passes if "&#x25c9;" is above every single character of "Text sample"</p>
+        <p>Test passes if "&#x25c9" is above every single character of "Text sample"</p>
                <div>
                        <span>Text sample</span>.
                </div>
index 6f894e1..e9b07e1 100644 (file)
@@ -4,7 +4,7 @@
                 <meta charset="utf-8">
                 <title>CSS Reference File</title>
                 <link rel="author" title="Yu.Taguchi" href="mailto:taguchu@gmail.com">
-                <!--  link rel="reviewer" title="" href=""  -->
+                <!-- link rel="reviewer" title="" href="" -->
         </head>
         <body>
                 <p>Test passes if &#xFE45; is aborve every single character of"Text sample".</p>
index f1b8d2d..2eb3f1c 100644 (file)
@@ -4,7 +4,7 @@
                 <meta charset="utf-8">
                 <title>CSS Reference File</title>
                 <link rel="author" title="Shinsuke Matsuki" href="mailto:shinsk@gmail.com">
-                <!--  link rel="reviewer" title="" href=""  -->
+                <!-- link rel="reviewer" title="" href="" -->
         </head>
         <body>
                 <p>Test passes if "^" is above every single character of "Text sample".</p>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters-expected.txt
new file mode 100644 (file)
index 0000000..df4ab21
--- /dev/null
@@ -0,0 +1,4 @@
+󕏣竴
+
+PASS Emphasis marks for unrepresentable characters should not crash 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters.html
new file mode 100644 (file)
index 0000000..1c108fa
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>Emphasis marks for unrepresentable characters should not crash</title>
+<link rel="author" title="Emil A Eklund" href="eae@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#emphasis-marks" title="3 Emphasis Marks">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+  div {
+    text-emphasis: circle;
+    -webkit-text-emphasis-style: circle;
+  }
+</style>
+<body>
+  <div></div>
+</body>
+<script>
+  var el = document.body.firstElementChild;
+  el.appendChild(document.createTextNode(unescape('%udb14')));
+  el.appendChild(document.createTextNode(unescape('%udfe3%u7af4')));
+</script>
+<script>test(()=>{})</script>
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001-expected.html
new file mode 100644 (file)
index 0000000..c9aea5d
--- /dev/null
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Non-reference case for text-underline-offset</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        #main {
+            margin: 2em;
+            display:flex
+        }
+        div span {
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            font: 20px/1 Ahem;
+            color: transparent;
+            padding-bottom: 20px;
+            border: 1px dotted transparent;
+            border-bottom-color: cyan;
+        }
+    </style>
+</head>
+<body>
+    <p class="instructions">Test passes if the box on the right has a lower underline than the box on the left</p>
+    <div id="main">
+        <div>
+            <p>left<span>XXXX</span></p>
+        </div>
+        <div>
+            <p><span id="rightbox">XXXX</span>right</p>
+        </div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001.html
new file mode 100644 (file)
index 0000000..88de83a
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>text-underline-offset test case</title>
+    <meta name="assert" content="text-decoration:underline; there is a line at or under the alphabetic baseline">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+    <link rel="mismatch" href="reference/text-underline-offset-001-notref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        #main {
+            margin: 2em;
+            display:flex
+        }
+        div span {
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            font: 20px/1 Ahem;
+            color: transparent;
+            padding-bottom: 20px;
+            border: 1px dotted transparent;
+            border-bottom-color: cyan;
+        }
+        #rightbox {
+            text-underline-offset: 24px;
+        }
+    </style>
+</head>
+<body>
+    <p class="instructions">Test passes if the box on the right has a lower underline than the box on the left</p>
+    <div id="main">
+        <div>
+            <p>left<span>XXXX</span></p>
+        </div>
+        <div>
+            <p><span id="rightbox">XXXX</span>right</p>
+        </div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002-expected.html
new file mode 100644 (file)
index 0000000..8e8d1ff
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-underline-offset</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        #main{
+            border-bottom: 1px solid cyan;
+            display: flex;
+        }
+        #text, #norm{
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-underline-offset: 0px;
+            font: 20px/1 Ahem;
+            color: transparent;
+            position: relative;
+            top: 21px;
+            margin-right: 10px;
+        }
+    </style>
+</head>
+<body >
+    <p class="instructions">Test passes if the lines are at the same level</p>
+    <div id="main">
+        <div>
+            <p>left<span id="text">XXXX</span></p>
+        </div>
+        <div>
+            <p><span id="norm">XXXX</span>right</p>
+        </div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002.html
new file mode 100644 (file)
index 0000000..1b21079
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-underline-offset</title>
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+    <link rel="match" href="reference/text-underline-offset-002-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        #main{
+            border-bottom: 1px solid cyan;
+            display: flex;
+        }
+        #text, #norm{
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            font: 20px/1 Ahem;
+            color: transparent;
+            position: relative;
+            margin-right: 10px;
+        }
+        #text{
+            top: 10px;
+            text-underline-offset: 11px;
+        }
+        #norm{
+            top: 21px;
+            text-underline-offset: 0px;
+        }
+    </style>
+</head>
+<body >
+    <p class="instructions">Test passes if the lines are at the same level</p>
+    <div id="main">
+        <div>
+            <p>left<span id="text">XXXX</span></p>
+        </div>
+        <div>
+            <p><span id="norm">XXXX</span>right</p>
+        </div>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-computed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-computed-expected.txt
new file mode 100644 (file)
index 0000000..6121446
--- /dev/null
@@ -0,0 +1,5 @@
+
+PASS Property text-underline-offset value 'auto' computes to 'auto' 
+FAIL Property text-underline-offset value 'from-font' computes to 'from-font' assert_true: 'from-font' is a supported value for text-underline-offset. expected true got false
+PASS Property text-underline-offset value 'calc(10px - 8px)' computes to '2px' 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-computed.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-computed.html
new file mode 100644 (file)
index 0000000..32dfd24
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: parsing text-underline-offset computed values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+<meta name="assert" content="text-underline-offset computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("text-underline-offset", "auto");
+test_computed_value("text-underline-offset", "from-font");
+test_computed_value("text-underline-offset", "calc(10px - 8px)", "2px");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-initial-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-initial-expected.txt
new file mode 100644 (file)
index 0000000..7403360
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Initial value of text-underline-offset 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-initial.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-initial.html
new file mode 100644 (file)
index 0000000..630aa95
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<link rel="help" title="2.4 Text Underline Offset: the 'text-underline-offset' property"
+      href="https://drafts.csswg.org/css-text-decor-4/#underline-offset" />
+</head>
+<body>
+<script>
+test(function() {
+   assert_equals(getComputedStyle(document.body)["text-underline-offset"], "auto", "Must be set to value auto as initial value.");
+}, "Initial value of text-underline-offset");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-invalid-expected.txt
new file mode 100644 (file)
index 0000000..f5574de
--- /dev/null
@@ -0,0 +1,13 @@
+
+PASS e.style['text-underline-offset'] = "otto" should not set the property value 
+PASS e.style['text-underline-offset'] = "asdlflj" should not set the property value 
+PASS e.style['text-underline-offset'] = "-10" should not set the property value 
+PASS e.style['text-underline-offset'] = "60002020" should not set the property value 
+PASS e.style['text-underline-offset'] = "!@#$%^&" should not set the property value 
+PASS e.style['text-underline-offset'] = "10e2" should not set the property value 
+PASS e.style['text-underline-offset'] = "from font" should not set the property value 
+PASS e.style['text-underline-offset'] = "10%" should not set the property value 
+PASS e.style['text-underline-offset'] = "-27%" should not set the property value 
+PASS e.style['text-underline-offset'] = "calc(40% - 20px)" should not set the property value 
+PASS e.style['text-underline-offset'] = "calc(100% - 40em)" should not set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-invalid.html
new file mode 100644 (file)
index 0000000..62f7704
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: parsing text-underline-offset with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+<meta name="assert" content="text-underline-offset supports the following values: auto | from-font| <length>">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value("text-underline-offset", "otto");
+test_invalid_value("text-underline-offset", "asdlflj");
+test_invalid_value("text-underline-offset", "-10");
+test_invalid_value("text-underline-offset", "60002020");
+test_invalid_value("text-underline-offset", "!@#$%^&");
+test_invalid_value("text-underline-offset", "10e2");
+test_invalid_value("text-underline-offset", "from font");
+test_invalid_value("text-underline-offset", "10%");
+test_invalid_value("text-underline-offset", "-27%");
+test_invalid_value("text-underline-offset", "calc(40% - 20px)");
+test_invalid_value("text-underline-offset", "calc(100% - 40em)");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001-expected.html
new file mode 100644 (file)
index 0000000..8a74da6
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-underline-offset</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        #text{
+            border: black dashed;
+            height: 5em;
+            width: 20em;
+            font: 20px/1 Ahem;
+            color: transparent;
+        }
+    </style>
+</head>
+<body>
+    <div>Test fails if there is a red line or scrollbar in the dashed area</div>
+    <div id="text">XXXXXXX</div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001.html
new file mode 100644 (file)
index 0000000..6fb53aa
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-underline-offset</title>
+    <meta name="assert" content="text-underline-offset should influence the placement of the underline">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+    <link rel="match" href="reference/text-underline-offset-scroll-001-ref.html">
+    <link rel="mismatch" href="reference/text-underline-offset-scroll-001-notref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        /*
+         * Testing to make sure that positioning the underline
+         * outside of the scrollframe does not create scrollable
+         * overflow and is not visible outside of the div
+         */
+        #scroll{
+            border: black dashed;
+            overflow-y: auto;
+            height: 5em;
+            width: 20em;
+            font: 20px/1 Ahem;
+        }
+
+        #text{
+            color: transparent;
+            text-decoration: red underline;
+            text-decoration-skip-ink: none;
+            text-underline-offset: 5em;
+        }
+    </style>
+</head>
+<body>
+    <div>Test fails if there is a red line or scrollbar in the dashed area</div>
+    <div id="scroll"><span id="text">XXXXXXX</span></div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-valid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-valid-expected.txt
new file mode 100644 (file)
index 0000000..9cdc2d7
--- /dev/null
@@ -0,0 +1,10 @@
+
+PASS e.style['text-underline-offset'] = "auto" should set the property value 
+FAIL e.style['text-underline-offset'] = "from-font" should set the property value assert_not_equals: property should be set got disallowed value ""
+PASS e.style['text-underline-offset'] = "-10px" should set the property value 
+PASS e.style['text-underline-offset'] = "2001em" should set the property value 
+PASS e.style['text-underline-offset'] = "-49em" should set the property value 
+PASS e.style['text-underline-offset'] = "53px" should set the property value 
+PASS e.style['text-underline-offset'] = "calc(40em - 10px)" should set the property value 
+PASS e.style['text-underline-offset'] = "calc(-13em + 50px)" should set the property value 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-valid.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-valid.html
new file mode 100644 (file)
index 0000000..46b4c9e
--- /dev/null
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text Decoration Test: parsing text-underline-offset with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+<meta name="assert" content="text-underline-offset supports the following values: auto | from-font| <length>">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value("text-underline-offset", "auto");
+test_valid_value("text-underline-offset", "from-font");
+test_valid_value("text-underline-offset", "-10px");
+test_valid_value("text-underline-offset", "2001em");
+test_valid_value("text-underline-offset", "-49em");
+test_valid_value("text-underline-offset", "53px");
+test_valid_value("text-underline-offset", "calc(40em - 10px)");
+test_valid_value("text-underline-offset", "calc(-13em + 50px)");
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001-expected.html
new file mode 100644 (file)
index 0000000..50deb80
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-underline-offset</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        span{
+            font: 20px/1 Ahem;
+            color: transparent;
+            writing-mode: vertical-lr;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-underline-offset: 0;
+        }
+    </style>
+</head>
+<body>
+    <div>Test passes if the underline is vertical and close to the word left</div>
+    <div>left<span>XXXXX</span></div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001.html
new file mode 100644 (file)
index 0000000..a61b9dc
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-underline-offset</title>
+    <meta name="assert" content="text-underline-offset should influence the placement of the underline">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+    <link rel="match" href="reference/text-underline-offset-vertical-001-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        span{
+            margin-left: 5em;
+            font: 20px/1 Ahem;
+            color: transparent;
+            writing-mode: vertical-lr;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-underline-offset: 5em;
+        }
+    </style>
+</head>
+<body>
+    <div>Test passes if the underline is vertical and close to the word left</div>
+    <div>left<span>XXXXX</span></div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002-expected.html
new file mode 100644 (file)
index 0000000..438fb14
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Reference case for text-underline-offset</title>
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        div{
+            font: 20px/1 Ahem;
+            margin-left: 5em;
+        }
+        #text{
+            color: transparent;
+            writing-mode: sideways-lr;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-underline-offset: 0;
+            margin-left: 5em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if the underline is further to the right of the text</p>
+    <div>
+        <p>XXXX</p>
+        <span id="text">XXXXX</span>
+    </div>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002.html
new file mode 100644 (file)
index 0000000..71b5a67
--- /dev/null
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>Test case for text-underline-offset</title>
+    <meta name="assert" content="text-underline-offset should influence the placement of the underline">
+    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
+    <link rel="match" href="reference/text-underline-offset-vertical-002-ref.html">
+    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+    <style>
+        div{
+            font: 20px/1 Ahem;
+            margin-left: 5em;
+        }
+        #text{
+            color: transparent;
+            writing-mode: sideways-lr;
+            text-decoration: green underline;
+            text-decoration-skip-ink: none;
+            text-underline-offset: 5em;
+        }
+    </style>
+</head>
+<body>
+    <p>Test passes if the underline is further to the right of the text</p>
+    <div>
+        <p>XXXX</p>
+        <span id="text">XXXXX</span>
+    </div>
+</body>
+</html>
index 2e1e2a0..9ca334f 100644 (file)
@@ -1,7 +1,7 @@
 The tests in this directory were imported from the W3C repository.
 Do NOT modify these tests directly in WebKit.
 Instead, create a pull request on the WPT github:
-       https://github.com/w3c/web-platform-tests
+       https://github.com/web-platform-tests/wpt
 
 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
@@ -9,13 +9,13 @@ Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
-text-decoration-line
-text-decoration-color
+None
 Property values requiring vendor prefixes:
 None
 ------------------------------------------------------------------------
 List of files:
-/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/OWNERS
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/META.yml
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/line-through-vertical-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/line-through-vertical.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-color-expected.html
@@ -34,12 +34,66 @@ List of files:
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-recalc-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line-recalc.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-line.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagation-shadow.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-shorthands-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-003.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-004.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewayslr-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-sidewaysrl-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-upright-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink-vertical-002.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-skip-ink.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-style-multiple-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-style-multiple.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-style-recalc-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-style-recalc.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-initial.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-linethrough-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-overline-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-underline-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-horizontal.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical-ja.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-underline-position-vertical.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-visibility-001.xht
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-visibility-002.xht
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-visibility-003.xht
@@ -97,3 +151,18 @@ List of files:
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-shape-001.xht
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-string-001-expected.xht
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-style-string-001.xht
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-unrepresentable-characters.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-computed.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-initial.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-valid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-underline-offset-vertical-002.html