Ejemplo n.º 1
0
        public static IList <Rule> GetPlaceholderStyle(string selectorName, IRuleProperties properties)
        {
            List <Rule>?placeholderRules = new();

            placeholderRules.Add(new Rule()
            {
                Selector = new CssStringSelector()
                {
                    SelectorName = $"{selectorName}::placeholder"
                },
                Properties = properties
            });

            placeholderRules.Add(new Rule()
            {
                Selector = new CssStringSelector()
                {
                    SelectorName = $"{selectorName}:-ms-input-placeholder"
                },
                Properties = properties
            });

            placeholderRules.Add(new Rule()
            {
                Selector = new CssStringSelector()
                {
                    SelectorName = $"{selectorName}::-ms-input-placeholder"
                },
                Properties = properties
            });

            return(placeholderRules);
        }
Ejemplo n.º 2
0
 public AmbiantRuleProperties Merge(IRuleProperties properties)
 {
     return(new AmbiantRuleProperties(
                Merge(HasInterleave, properties.HasInterleave),
                Merge(IsRecursive, properties.IsRecursive),
                Merge(IsTerminalRule, properties.IsTerminalRule),
                Merge(IsCaseSensitive, properties.IsCaseSensitive)));
 }