class Capybara::Queries::StyleQuery

def resolves_for?(node)

def resolves_for?(node)
  @node = node
  @actual_styles = node.style(*@expected_styles.keys)
  @expected_styles.all? do |style, value|
    if value.is_a? Regexp
      @actual_styles[style] =~ value
    else
      @actual_styles[style] == value
    end
  end
end