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

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: Fixed expectation for last-minute, newly added tests in revision 155705 Created 7 years, 4 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..2f107fcb8adc6836cbb1040ad01f7d1c21bbd198
--- /dev/null
+++ b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt
@@ -0,0 +1,34 @@
+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').cssText is 'none solid rgb(0, 0, 0)'
+PASS checkComputedStyleValue() is true
+
+CSS2.1 backwards compatibility ("text-decoration: underline overline line-through blink;"):
+PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline overline line-through blink'
+PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'underline overline line-through'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline overline line-through solid rgb(0, 0, 0)'
+PASS checkComputedStyleValue() is true
+
+CSS3 Shorthand ("text-decoration: underline overline line-through blink dashed red;"):
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline overline line-through dashed rgb(255, 0, 0)'
+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 line resets to its initial value "none" ("text-decoration: navy dotted;"):
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none dotted rgb(0, 0, 128)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none'
+PASS computedStyle.getPropertyCSSValue('text-decoration-style').cssText is 'dotted'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 128)'
+PASS checkComputedStyleValue() is true
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698