Esempio n. 1
0
 public MediaQuery(
     SelectorSet selectors,
     IEnumerable <SelectorSet> parentSelectors,
     int sourceLineIndex,
     IEnumerable <ICSSFragment> childFragments) : base(selectors, parentSelectors, sourceLineIndex, childFragments)
 {
     // The "selectors" argument can't be null at this point as the ContainerFragment base class would have already thrown an ArgumentNullException
     if (!selectors.First().Value.StartsWith("@media", StringComparison.InvariantCultureIgnoreCase))
     {
         throw new ArgumentException("The content indicates that this should be a Selector, not a Media Query");
     }
 }