Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding css-unspecified test. #47

Open
wants to merge 1 commit into from

1 participant

Matt Kelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. Matt Kelly
This page is out of date. Refresh to see the latest.
Showing with 28 additions and 0 deletions.
  1. +3 −0  tests/css-unspecified/config.yml
  2. +25 −0 tests/css-unspecified/test.js
3  tests/css-unspecified/config.yml
View
@@ -0,0 +1,3 @@
+---
+ r: 2
+ title: "CSS Unspecified"
25 tests/css-unspecified/test.js
View
@@ -0,0 +1,25 @@
+/*
+* text-stroke, text-stroke-width, and text-stroke-color
+* are only supported in Webkit browsers with -webkit prefix
+* The property has not even been specced by W3C
+*/
+
+test("CSS Text Stroke", function() {
+
+ var elem = document.createElement("div");
+
+ assert( H.test.cssProp( elem, "textStroke", true ), "textStroke supported" );
+ assert( H.test.cssProp( elem, "textStrokeColor", true ), "textStrokeColor supported" );
+ assert( H.test.cssProp( elem, "textStrokeWidth", true ), "textStrokeWidth supported" );
+
+});
+
+// test("Standard-compliant CSS Text Stroke properties", function() {
+//
+// var elem = document.createElement("div");
+//
+// assert( H.test.cssProp( elem, "textStroke" ), "Shorthand textStroke supported" );
+// assert( H.test.cssProp( elem, "textStrokeColor" ), "textStrokeColor supported" );
+// assert( H.test.cssProp( elem, "textStrokeWidth" ), "textStrokeWidth supported" );
+//
+// });
Something went wrong with that request. Please try again.