Sha256: 5083f22d136312761e087b21dbccdbd348bd1a4c71fe06f463fc4b33eb6dcf3c

Contents?: true

Size: 985 Bytes

Versions: 1

Compression:

Stored size: 985 Bytes

Contents

# This rule is taken from https://github.com/stubbornella/csslint/tree/master/src/rules
#
#
# Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
# TODO: Paste the CSSLint LICENSE here.
#
#
# /*
#  * Rule: Don't use properties with a star prefix.
#  *
#  */
# /*global CSSLint*/
# CSSLint.addRule({
# 
#     //rule information
#     id: "star-property-hack",
#     name: "Disallow properties with a star prefix",
#     desc: "Checks for the star property hack (targets IE6/7)",
#     browsers: "All",
# 
#     //initialization
#     init: function(parser, reporter){
#         var rule = this;
# 
#         //check if property name starts with "*"
#         parser.addListener("property", function(event){
#             var property = event.property;
# 
#             if (property.hack == "*") {
#                 reporter.report("Property with star prefix found.", event.property.line, event.property.col, rule);
#             }
#         });
#     }
# });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sasslint-0.0.1 lib/sasslint/rules/css/star-property-hack.rb