Skip to content

Commit 8b05700

Browse files
authored
Merge pull request #2 from olegafx/patch-1
Add 'fill' property
2 parents 73d6063 + 2269521 commit 8b05700

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function CssColorExtractor() {
2525
'outline',
2626
'outline-color',
2727
'text-shadow',
28-
'box-shadow'
28+
'box-shadow',
29+
'fill'
2930
];
3031
var colorFormats = [
3132
'hexString',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-color-extractor",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Extract from colors from CSS.",
55
"main": "index.js",
66
"keywords": [

test/test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,15 @@ describe('postcss-colors-only', function () {
238238
);
239239
});
240240

241+
it('should extract fill.', function (done) {
242+
test(
243+
'svg { fill: red; } p { display: block; }',
244+
['red'],
245+
{},
246+
done
247+
);
248+
});
249+
241250
it('should omit grey, but not black or white.', function (done) {
242251
test(
243252
'a { color: red; } p { color: grey; } h1 { color: black; }',

0 commit comments

Comments
 (0)