Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/spec/CSSUtils-test-files/contexts.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
shape-inside: polygon(n{{108}}onzero, 0 0);
}

.prefixed{
-{{110}}webkit-transform: ;
t{{111}}ransform: ;
}

.nested-functional-notation {
background: linear-gradient(to r{{109}}ight, rgba(255,255,0), #fff);
}
Expand Down
23 changes: 23 additions & 0 deletions test/spec/CSSUtils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,29 @@ define(function (require, exports, module) {
});
});

it("should return unprefixed PROP_NAME", function () {
result = CSSUtils.getInfoAtPos(testEditor, contextTest.offsets[111]);
expect(result).toEqual({
context: CSSUtils.PROP_NAME,
name: "transform",
offset: 1,
index: -1,
values: [],
isNewItem: false
});
});

it("should return prefixed PROP_NAME when inside a prefixed property name", function () {
result = CSSUtils.getInfoAtPos(testEditor, contextTest.offsets[110]);
expect(result).toEqual({
context: CSSUtils.PROP_NAME,
name: "-webkit-transform",
offset: 1,
index: -1,
values: [],
isNewItem: false
});
});
});

describe("quoting", function () {
Expand Down