Method: CSSPool::CSS::DocumentHandler#start_document_query

Defined in:
lib/csspool/css/document_handler.rb

#start_document_query(url_functions, inner_start_pos = nil) ⇒ Object



69
70
71
72
73
74
75
76
# File 'lib/csspool/css/document_handler.rb', line 69

def start_document_query url_functions, inner_start_pos = nil
  dq = CSS::DocumentQuery.new(url_functions)
  dq.outer_start_pos = @node_start_pos
  @node_start_pos = nil
  dq.inner_start_pos = inner_start_pos
  @document.document_queries << dq
  @conditional_stack << dq
end