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

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

Issue 22336008: Use the runtime flag and remove '-webkit-' prefix for CSS3 text-indent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch 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-indent/getComputedStyle/getComputedStyle-text-indent-expected.txt
diff --git a/LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/getComputedStyle-text-indent-expected.txt b/LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/getComputedStyle-text-indent-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6f483e9ba9988e835dfc5df93cb993ef09448f9e
--- /dev/null
+++ b/LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/getComputedStyle-text-indent-expected.txt
@@ -0,0 +1,128 @@
+This test checks that text-indent parses properly the properties from CSS3 Text.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test the initial value:
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+Value '10em':
+PASS e.style.textIndent is '10em'
+PASS e.style.getPropertyValue('text-indent') is '10em'
+PASS computedStyle.textIndent is '100px'
+PASS computedStyle.getPropertyValue('text-indent') is '100px'
+
+Value '20ex':
+PASS e.style.textIndent is '20ex'
+PASS e.style.getPropertyValue('text-indent') is '20ex'
+PASS computedStyle.textIndent is '200px'
+PASS computedStyle.getPropertyValue('text-indent') is '200px'
+
+Value '50%':
+PASS e.style.textIndent is '50%'
+PASS e.style.getPropertyValue('text-indent') is '50%'
+PASS computedStyle.textIndent is '50%'
+PASS computedStyle.getPropertyValue('text-indent') is '50%'
+
+Value 'calc(10px + 20px)':
+PASS e.style.textIndent is 'calc(30px)'
+PASS e.style.getPropertyValue('text-indent') is 'calc(30px)'
+PASS computedStyle.textIndent is '30px'
+PASS computedStyle.getPropertyValue('text-indent') is '30px'
+
+Value '10em each-line':
+PASS e.style.textIndent is '10em each-line'
+PASS e.style.getPropertyValue('text-indent') is '10em each-line'
+PASS computedStyle.textIndent is '100px each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '100px each-line'
+
+Value 'each-line 10em':
+PASS e.style.textIndent is '10em each-line'
+PASS e.style.getPropertyValue('text-indent') is '10em each-line'
+PASS computedStyle.textIndent is '100px each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '100px each-line'
+
+Value '20ex each-line':
+PASS e.style.textIndent is '20ex each-line'
+PASS e.style.getPropertyValue('text-indent') is '20ex each-line'
+PASS computedStyle.textIndent is '200px each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '200px each-line'
+
+Value 'each-line 20ex':
+PASS e.style.textIndent is '20ex each-line'
+PASS e.style.getPropertyValue('text-indent') is '20ex each-line'
+PASS computedStyle.textIndent is '200px each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '200px each-line'
+
+Value '30% each-line':
+PASS e.style.textIndent is '30% each-line'
+PASS e.style.getPropertyValue('text-indent') is '30% each-line'
+PASS computedStyle.textIndent is '30% each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '30% each-line'
+
+Value 'each-line 30%':
+PASS e.style.textIndent is '30% each-line'
+PASS e.style.getPropertyValue('text-indent') is '30% each-line'
+PASS computedStyle.textIndent is '30% each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '30% each-line'
+
+Value 'calc(10px + 20px) each-line':
+PASS e.style.textIndent is 'calc(30px) each-line'
+PASS e.style.getPropertyValue('text-indent') is 'calc(30px) each-line'
+PASS computedStyle.textIndent is '30px each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '30px each-line'
+
+Value 'each-line calc(10px + 20px)':
+PASS e.style.textIndent is 'calc(30px) each-line'
+PASS e.style.getPropertyValue('text-indent') is 'calc(30px) each-line'
+PASS computedStyle.textIndent is '30px each-line'
+PASS computedStyle.getPropertyValue('text-indent') is '30px each-line'
+
+
+Invalid value test - '10m':
+PASS e.style.textIndent is '0px'
+PASS e.style.getPropertyValue('text-indent') is '0px'
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+Invalid value test - '10m each-line':
+PASS e.style.textIndent is '0px'
+PASS e.style.getPropertyValue('text-indent') is '0px'
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+Invalid value test - 'each-line 10m':
+PASS e.style.textIndent is '0px'
+PASS e.style.getPropertyValue('text-indent') is '0px'
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+Invalid value test - '10em 10em':
+PASS e.style.textIndent is '0px'
+PASS e.style.getPropertyValue('text-indent') is '0px'
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+Invalid value test - 'each-line':
+PASS e.style.textIndent is '0px'
+PASS e.style.getPropertyValue('text-indent') is '0px'
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+Invalid value test - '10em each-line 10em':
+PASS e.style.textIndent is '0px'
+PASS e.style.getPropertyValue('text-indent') is '0px'
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+Invalid value test - 'each-line 10em each-line':
+PASS e.style.textIndent is '0px'
+PASS e.style.getPropertyValue('text-indent') is '0px'
+PASS computedStyle.textIndent is '0px'
+PASS computedStyle.getPropertyValue('text-indent') is '0px'
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698