Index: Source/core/css/RuleSetTest.cpp |
diff --git a/Source/core/css/RuleSetTest.cpp b/Source/core/css/RuleSetTest.cpp |
index 7ada3455e259aa9133ea567e3f1387fc851b7769..038d3ee920424d33ebe414851990c23669c921be 100644 |
--- a/Source/core/css/RuleSetTest.cpp |
+++ b/Source/core/css/RuleSetTest.cpp |
@@ -47,6 +47,17 @@ TEST(RuleSetTest, findBestRuleSetAndAdd_CustomPseudoElements) |
ASSERT_EQ(str, rules->at(0).selector().value()); |
} |
+TEST(RuleSetTest, findBestRuleSetAndAdd_MarkerElementNotAllowedInNonUAStyle) |
+{ |
+ CSSTestHelper helper; |
+ |
+ helper.tryAddCSSRules("li::marker { }"); |
+ RuleSet& ruleSet = helper.ruleSet(); |
+ AtomicString str("li"); |
+ const TerminatedArray<RuleData>* rules = ruleSet.tagRules(str); |
+ ASSERT_EQ(0u, rules->size()); |
+} |
Julien - ping for review
2015/02/04 01:56:33
We should split this fix / test outside of this ch
dsinclair
2015/02/04 04:41:32
This is the test for UA only pseudo elements. That
|
+ |
TEST(RuleSetTest, findBestRuleSetAndAdd_Id) |
{ |
CSSTestHelper helper; |