chromium/third_party/blink/renderer/core/css/style_rule_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/style_rule.h"

#include "third_party/blink/renderer/core/css/css_rule_list.h"
#include "third_party/blink/renderer/core/css/css_scope_rule.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/dom/document.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

ParseRule;

class StyleRuleTest : public PageTestBase {};

namespace {

// Find first occurrence of a simple selector with the given PseudoType,
// traversing into lists (e.g. :is()).
const CSSSelector* FindPseudoSelector(const CSSSelector* selector,
                                      CSSSelector::PseudoType pseudo_type) {}

const CSSSelector* FindParentSelector(const CSSSelector* selector) {}

const CSSSelector* FindUnparsedSelector(const CSSSelector* selector) {}

// Finds the CSSNestingType (as captured by the first kPseudoUnparsed selector)
// and the parent rule for nesting (as captured by the first kPseudoParent
// selector).
std::pair<CSSNestingType, const StyleRule*> FindNestingContext(
    const CSSSelector* selector) {}

}  // namespace

TEST_F(StyleRuleTest, StyleRulePropertyCopy) {}

TEST_F(StyleRuleTest, SetPreludeTextReparentsStyleRules) {}

TEST_F(StyleRuleTest, SetPreludeTextWithEscape) {}

TEST_F(StyleRuleTest, SetPreludeTextPreservesNestingContext) {}

TEST_F(StyleRuleTest, SetPreludeTextPreservesImplicitScope) {}

TEST_F(StyleRuleTest, SetPreludeTextBecomesImplicitScope) {}

TEST_F(StyleRuleTest, SetPreludeTextBecomesNonImplicitScope) {}

}  // namespace blink