#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 {
const CSSSelector* FindPseudoSelector(const CSSSelector* selector,
CSSSelector::PseudoType pseudo_type) { … }
const CSSSelector* FindParentSelector(const CSSSelector* selector) { … }
const CSSSelector* FindUnparsedSelector(const CSSSelector* selector) { … }
std::pair<CSSNestingType, const StyleRule*> FindNestingContext(
const CSSSelector* selector) { … }
}
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) { … }
}