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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/nested-at-rules.html

Issue 1977323002: Revert of Pseudo and non pseudo elements should return correct computed content value (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/fast/css/nested-at-rules.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/nested-at-rules.html b/third_party/WebKit/LayoutTests/fast/css/nested-at-rules.html
index 91c7b4d55973dad11a84ebdb83b4da1aeb901075..e3e4495f582c0f6d3dbf1838c1e613d1b864f4dc 100644
--- a/third_party/WebKit/LayoutTests/fast/css/nested-at-rules.html
+++ b/third_party/WebKit/LayoutTests/fast/css/nested-at-rules.html
@@ -3,7 +3,7 @@
<script src="../../resources/js-test.js"></script>
<style>
.test {
- background-color: blue;
+ content: "UNTOUCHED";
}
@media all {
@@ -15,7 +15,7 @@
@page :left { top: 0 }
- #t0 { background-color: green; }
+ #t0 { content: "APPLIED" }
@import url("../../cssom/resources/import.css");
@charset "UTF-8";
@@ -23,7 +23,7 @@
}
@media all {
@media none {
- #t1 { background-color: green; }
+ #t1 { content: "APPLIED" }
}
}
}
@@ -57,6 +57,6 @@ shouldEvaluateTo("rules[1].cssRules[1].cssRules.length", 2);
shouldBe("rules[1].cssRules[1].cssRules[1].type", "CSSRule.MEDIA_RULE");
shouldBe("rules[1].cssRules[1].cssRules[1].cssRules[0].type", "CSSRule.PAGE_RULE");
-shouldBeEqualToString("getComputedStyle(document.getElementById('t0')).backgroundColor", 'rgb(0, 128, 0)');
-shouldBeEqualToString("getComputedStyle(document.getElementById('t1')).backgroundColor", 'rgb(0, 0, 255)');
+shouldBeEqualToString("getComputedStyle(document.getElementById('t0')).content", '"APPLIED"');
+shouldBeEqualToString("getComputedStyle(document.getElementById('t1')).content", '"UNTOUCHED"');
</script>

Powered by Google App Engine
This is Rietveld 408576698