//--------------------------------------
//               PowerUI
//
//        For documentation or 
//    if you have any issues, visit
//        powerUI.kulestar.com
//
//    Copyright  2013 Kulestar Ltd
//          www.kulestar.com
//--------------------------------------

using System;
using Css.Units;


namespace Css{
	
	/// <summary>
	/// Handles the after pseudo selector.
	/// <summary>

	sealed class MathMLAnonymousBlock:CssKeyword{
		
		public override string Name{
			get{
				return "-spark-mathml-anonymous-block";
			}
		}
		
		public override SelectorMatcher GetSelectorMatcher(){
			return new MathMLAnonymousBlockSelector();
		}
		
	}
	
	/// <summary>
	/// Describes the -spark-mathml-anonymous-block psuedo-selector.
	/// <summary>

	public class MathMLAnonymousBlockSelector:PseudoSelectorMatch{
		
		public const int Priority=VirtualElements.BEFORE_ZONE;
		
		/// <summary>Does the given element satisfy this selection requirement?</summary>
		public override void Select(CssEvent e){
			
			// Change the element being targeted.
			
			// Unavailable at the moment; we'll need to check if this is an imported
			// element in a MathML scope and if so, change the target to the anonymous block.
			e.CurrentNode=null;
			
		}
		
	}
	
}