Title: [109045] trunk/LayoutTests
- Revision
- 109045
- Author
- dba...@webkit.org
- Date
- 2012-02-27 17:12:37 -0800 (Mon, 27 Feb 2012)
Log Message
Add test case for ::selection:window-inactive
https://bugs.webkit.org/show_bug.cgi?id=79623
Reviewed by Beth Dakin.
Add reftest to ensure that we don't regress inactive selection color.
For completeness, support for inactive selection color was added in
<http://trac.webkit.org/changeset/41094> (<rdar://problem/6077775>).
* fast/selectors/selection-window-inactive-expected.html: Added.
* fast/selectors/selection-window-inactive.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (109044 => 109045)
--- trunk/LayoutTests/ChangeLog 2012-02-28 01:10:26 UTC (rev 109044)
+++ trunk/LayoutTests/ChangeLog 2012-02-28 01:12:37 UTC (rev 109045)
@@ -1,3 +1,18 @@
+2012-02-27 Daniel Bates <dba...@webkit.org>
+
+ Add test case for ::selection:window-inactive
+ https://bugs.webkit.org/show_bug.cgi?id=79623
+
+ Reviewed by Beth Dakin.
+
+ Add reftest to ensure that we don't regress inactive selection color.
+
+ For completeness, support for inactive selection color was added in
+ <http://trac.webkit.org/changeset/41094> (<rdar://problem/6077775>).
+
+ * fast/selectors/selection-window-inactive-expected.html: Added.
+ * fast/selectors/selection-window-inactive.html: Added.
+
2012-02-27 Greg Billock <gbill...@google.com>
Add more tests for web intents
Added: trunk/LayoutTests/fast/selectors/selection-window-inactive-expected.html (0 => 109045)
--- trunk/LayoutTests/fast/selectors/selection-window-inactive-expected.html (rev 0)
+++ trunk/LayoutTests/fast/selectors/selection-window-inactive-expected.html 2012-02-28 01:12:37 UTC (rev 109045)
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<style>
+span {
+ background-color: rgba(63, 128, 33, 0.95);
+ color: black;
+}
+</style>
+<span>Any textual selection in this sentence should have a green background when the window is inactive.</span>
Added: trunk/LayoutTests/fast/selectors/selection-window-inactive.html (0 => 109045)
--- trunk/LayoutTests/fast/selectors/selection-window-inactive.html (rev 0)
+++ trunk/LayoutTests/fast/selectors/selection-window-inactive.html 2012-02-28 01:12:37 UTC (rev 109045)
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<style>
+::selection {
+ background-color: blue;
+ color: yellow;
+}
+::selection:window-inactive {
+ background-color: rgba(63, 128, 33, 0.95); /* green; alpha < 1 so that we don't blend the background color with white. */
+ color: black;
+}
+</style>
+<span>Any textual selection in this sentence should have a green background when the window is inactive.</span>
+<script>
+var span = document.querySelector("span");
+window.getSelection().setBaseAndExtent(span, 0, span, 1);
+if (window.layoutTestController)
+ layoutTestController.setWindowIsKey(false);
+</script>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes