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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/pseudo-enabled-disabled-output-element.html

Issue 1914933003: output should not match to :enabled or :disabled pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/pseudo-enabled-disabled-output-element.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/pseudo-enabled-disabled-output-element.html b/third_party/WebKit/LayoutTests/fast/css/pseudo-enabled-disabled-output-element.html
new file mode 100644
index 0000000000000000000000000000000000000000..a302a8bc95e563b49d77c9fea8100ae901b9bd95
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/pseudo-enabled-disabled-output-element.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
tkent 2016/04/25 09:40:39 I recommend to use testharness.js for conformance
ramya.v 2016/04/25 14:47:29 Done.
+<style>
tkent 2016/04/25 09:40:40 This STYLE element is unnecessary.
ramya.v 2016/04/25 14:47:29 Done.
+:enabled { color: red;}
+:disabled { color: red;}
+</style>
+<output id="output1">test</output>
+<output id="output2" disabled>test</output>
+<script>
+description("This test performs a check for output elements not to match :enabled or :disabled CSS selector.");
+var e = document.querySelectorAll(":enabled");
+var d = document.querySelectorAll(":disabled");
+shouldBe("e.length", "0");
+shouldBe("d.length", "0");
+</script>

Powered by Google App Engine
This is Rietveld 408576698