internal static CssProperty CreateProperty(this IBrowsingContext context, String propertyName) { var info = context.GetDeclarationInfo(propertyName); var provider = context.GetProvider <CssParser>(); if (info.Flags != PropertyFlags.Unknown || context.IsAllowingUnknownDeclarations()) { return(new CssProperty(propertyName, info.Converter, info.Flags)); } return(null); }
private static Boolean AllowsDeclaration(this IBrowsingContext context, DeclarationInfo info) => info.Flags != PropertyFlags.Unknown || context.IsAllowingUnknownDeclarations();