Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding css-unspecified test. #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/css-unspecified/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
r: 2
title: "CSS Unspecified"
25 changes: 25 additions & 0 deletions tests/css-unspecified/test.js
Original file line number Diff line number Diff line change
@@ -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" );
//
// });