Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Unified Diff: LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt

Issue 20262002: [css3-text] Implement text-decoration property shorthand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: OK, so trybots are not fond of binary files - removing Mac expectation for repaint-text-decoration-… Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt
diff --git a/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..28b890ef08b546344256ff5c5d31d1bd3c8594be
--- /dev/null
+++ b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt
@@ -0,0 +1,56 @@
+Test to make sure text-decoration property is backwards compatible with CSS 2.1 and CSS 3 shorthand.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Initial values:
+PASS e.style.getPropertyCSSValue('text-decoration') is null
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
+
+CSS2.1 backwards compatibility ("text-decoration: underline overline line-through blink;"):
+PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object CSSValueList]'
+PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline overline line-through blink'
+PASS e.style.getPropertyCSSValue('text-decoration-style').toString() is '[object CSSValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-style').cssText is 'initial'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline overline line-through solid rgb(0, 0, 0)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'underline overline line-through'
+PASS computedStyle.getPropertyCSSValue('text-decoration-style').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-style').cssText is 'solid'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)'
+PASS checkComputedStyleValue() is true
+
+CSS3 Shorthand ("text-decoration: underline overline line-through blink dashed red;"):
+PASS e.style.getPropertyCSSValue('text-decoration') is null
+PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline overline line-through blink'
+PASS e.style.getPropertyCSSValue('text-decoration-style').cssText is 'dashed'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'red'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline overline line-through dashed rgb(255, 0, 0)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'underline overline line-through'
+PASS computedStyle.getPropertyCSSValue('text-decoration-style').cssText is 'dashed'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(255, 0, 0)'
+PASS checkComputedStyleValue() is true
+
+Omitting text decoration color and/or style fallbacks to their initial values ("text-decoration: underline;"):
+PASS e.style.getPropertyCSSValue('text-decoration') is null
+PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline'
+PASS e.style.getPropertyCSSValue('text-decoration-style').cssText is 'initial'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline solid rgb(0, 0, 0)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'underline'
+PASS computedStyle.getPropertyCSSValue('text-decoration-style').cssText is 'solid'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)'
+PASS checkComputedStyleValue() is true
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698