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

Unified Diff: LayoutTests/fast/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js

Issue 20751008: Text decorations should be listed as non-inheritable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed typo in getComputedStyle-text-decoration.js 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/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js
diff --git a/LayoutTests/fast/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js b/LayoutTests/fast/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js
index 0389046c1502248003427942e1e5a1dd98a36964..0058a0ec5bfaa43e9b9fb1cbfdc7b06c2486dfb6 100644
--- a/LayoutTests/fast/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js
+++ b/LayoutTests/fast/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js
@@ -90,4 +90,10 @@ testElementStyle("textDecoration", "text-decoration", "[object CSSValue]", "inhe
testComputedStyle("textDecoration", "text-decoration", "[object CSSValueList]", "underline");
debug('');
+debug("Ancestor should not implicitly inherit value from parent (i.e. when value is void):");
+e.style.textDecoration = '';
+testElementStyle("textDecoration", "text-decoration", null, '');
+testComputedStyle("textDecoration", "text-decoration", "[object CSSPrimitiveValue]", "none");
+debug('');
+
document.body.removeChild(testContainer);

Powered by Google App Engine
This is Rietveld 408576698