Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Unified Diff: third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp

Issue 1695393002: Don't add to siblingRules for features left of ::slotted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
index 64168dc90e4d99ab7d0a79066ed2cf0da41dd460..39f4edcabffabdd765959137d8c46a083a9e22fc 100644
--- a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
@@ -357,6 +357,12 @@ TEST_F(RuleFeatureSetTest, siblingRulesBeforeContentPseudo)
expectSiblingRuleCount(0);
}
+TEST_F(RuleFeatureSetTest, siblingRulesBeforeContentPseudo2)
+{
+ collectFeatures("a + ::content .b");
+ expectSiblingRuleCount(0);
+}
+
TEST_F(RuleFeatureSetTest, siblingRulesAfterContentPseudo)
{
collectFeatures(".a ::content .b + .c");
@@ -402,7 +408,19 @@ TEST_F(RuleFeatureSetTest, siblingRulesAfterShadow)
TEST_F(RuleFeatureSetTest, siblingRulesBeforeSlotted)
{
collectFeatures(".a + ::slotted(.b)");
- expectSiblingRuleCount(1);
+ expectSiblingRuleCount(0);
+}
+
+TEST_F(RuleFeatureSetTest, siblingRulesBeforeHost)
+{
+ collectFeatures(".a + :host(.b)");
+ expectSiblingRuleCount(0);
+}
+
+TEST_F(RuleFeatureSetTest, siblingRulesBeforeHostContext)
+{
+ collectFeatures(".a + :host-context(.b)");
+ expectSiblingRuleCount(0);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698