зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1043835 - Add Rule on an element with multiple classes should include all the classes. r=pbrosset
This commit is contained in:
Родитель
6fb12f6f5d
Коммит
e39ce9480f
|
@ -22,7 +22,7 @@ let PAGE_CONTENT = [
|
|||
const TEST_DATA = [
|
||||
{ node: "#testid", expected: "#testid" },
|
||||
{ node: ".testclass2", expected: ".testclass2" },
|
||||
{ node: ".class1.class2", expected: ".class1" },
|
||||
{ node: ".class1.class2", expected: ".class1.class2" },
|
||||
{ node: "p", expected: "p" }
|
||||
];
|
||||
|
||||
|
|
|
@ -851,7 +851,7 @@ var PageStyleActor = protocol.ActorClass({
|
|||
if (rawNode.id) {
|
||||
selector = "#" + rawNode.id;
|
||||
} else if (rawNode.className) {
|
||||
selector = "." + rawNode.className.split(" ")[0];
|
||||
selector = "." + rawNode.className.split(" ").join(".");
|
||||
} else {
|
||||
selector = rawNode.tagName.toLowerCase();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче