chromium/third_party/blink/renderer/core/css/element_rule_collector_test.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/css/element_rule_collector.h"

#include <optional>

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_style_rule.h"
#include "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css/resolver/element_resolve_context.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/css/selector_filter.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element_traversal.h"
#include "third_party/blink/renderer/core/dom/flat_tree_traversal.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html/html_style_element.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"

namespace blink {

ParseRule;

static RuleSet* RuleSetFromSingleRule(Document& document, const String& text) {}

class ElementRuleCollectorTest : public PageTestBase {};

TEST_F(ElementRuleCollectorTest, LinkMatchType) {}

TEST_F(ElementRuleCollectorTest, LinkMatchTypeHostContext) {}

TEST_F(ElementRuleCollectorTest, MatchesNonUniversalHighlights) {}

TEST_F(ElementRuleCollectorTest, DirectNesting) {}

TEST_F(ElementRuleCollectorTest, RuleNotStartingWithAmpersand) {}

TEST_F(ElementRuleCollectorTest, NestingAtToplevelMatchesNothing) {}

TEST_F(ElementRuleCollectorTest, NestedRulesInMediaQuery) {}

TEST_F(ElementRuleCollectorTest, FindStyleRuleWithNesting) {}

}  // namespace blink