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

Unified Diff: LayoutTests/fast/css/webkit-text-display-none.html

Issue 468503003: Remove FIXME in StyleResolver::styleForElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/webkit-text-display-none-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/webkit-text-display-none.html
diff --git a/LayoutTests/fast/css/webkit-text-display-none.html b/LayoutTests/fast/css/webkit-text-display-none.html
new file mode 100644
index 0000000000000000000000000000000000000000..cd28013c9beafd7802963b7b01d61db4ad5e4c01
--- /dev/null
+++ b/LayoutTests/fast/css/webkit-text-display-none.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body style="display:none">
+<script type="text/javascript">
+description("This test checks that setting display to none on the body element does not change -webkit-text.");
+
+document.body.style.color = "green";
+
+var d = document.createElement("div");
+d.style.color = "-webkit-text";
+document.documentElement.appendChild(d);
+
+shouldBe("getComputedStyle(d).getPropertyValue('color')", "'rgb(0, 128, 0)'");
+document.body.style.display = "block";
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css/webkit-text-display-none-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698