code: function isOffline( el )
  	{
  		var html = el.getDocument().getBody().getParent();
  		while ( el )
  		{
  			if ( el.equals( html ) )
  				return false;
  			el = el.getParent();
  		}
  		return true;
  	}
docs: If the element direction changed, we need to switch the margins of the element and all its children, so it will get really reflected like a mirror. (#5910)