cssstyle 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -0
- package/.eslintrc.js +5 -0
- package/.travis.yml +6 -4
- package/AUTHORS +31 -0
- package/{MIT-LICENSE.txt → LICENSE} +0 -0
- package/README.md +7 -19
- package/coverage/clover.xml +2150 -0
- package/coverage/coverage-final.json +86 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +79 -0
- package/coverage/lcov-report/index.html +123 -0
- package/coverage/lcov-report/lib/CSSStyleDeclaration.js.html +834 -0
- package/coverage/lcov-report/lib/allExtraProperties.js.html +813 -0
- package/coverage/lcov-report/lib/allProperties.js.html +1560 -0
- package/coverage/lcov-report/lib/constants.js.html +87 -0
- package/coverage/lcov-report/lib/index.html +149 -0
- package/coverage/lcov-report/lib/parsers.js.html +2193 -0
- package/coverage/lcov-report/lib/properties/azimuth.js.html +270 -0
- package/coverage/lcov-report/lib/properties/background.js.html +126 -0
- package/coverage/lcov-report/lib/properties/backgroundAttachment.js.html +141 -0
- package/coverage/lcov-report/lib/properties/backgroundColor.js.html +177 -0
- package/coverage/lcov-report/lib/properties/backgroundImage.js.html +165 -0
- package/coverage/lcov-report/lib/properties/backgroundPosition.js.html +243 -0
- package/coverage/lcov-report/lib/properties/backgroundRepeat.js.html +165 -0
- package/coverage/lcov-report/lib/properties/border.js.html +168 -0
- package/coverage/lcov-report/lib/properties/borderBottom.js.html +120 -0
- package/coverage/lcov-report/lib/properties/borderBottomColor.js.html +117 -0
- package/coverage/lcov-report/lib/properties/borderBottomStyle.js.html +132 -0
- package/coverage/lcov-report/lib/properties/borderBottomWidth.js.html +117 -0
- package/coverage/lcov-report/lib/properties/borderCollapse.js.html +147 -0
- package/coverage/lcov-report/lib/properties/borderColor.js.html +159 -0
- package/coverage/lcov-report/lib/properties/borderLeft.js.html +120 -0
- package/coverage/lcov-report/lib/properties/borderLeftColor.js.html +117 -0
- package/coverage/lcov-report/lib/properties/borderLeftStyle.js.html +132 -0
- package/coverage/lcov-report/lib/properties/borderLeftWidth.js.html +117 -0
- package/coverage/lcov-report/lib/properties/borderRight.js.html +120 -0
- package/coverage/lcov-report/lib/properties/borderRightColor.js.html +117 -0
- package/coverage/lcov-report/lib/properties/borderRightStyle.js.html +132 -0
- package/coverage/lcov-report/lib/properties/borderRightWidth.js.html +117 -0
- package/coverage/lcov-report/lib/properties/borderSpacing.js.html +192 -0
- package/coverage/lcov-report/lib/properties/borderStyle.js.html +183 -0
- package/coverage/lcov-report/lib/properties/borderTop.js.html +120 -0
- package/coverage/lcov-report/lib/properties/borderTopColor.js.html +117 -0
- package/coverage/lcov-report/lib/properties/borderTopStyle.js.html +132 -0
- package/coverage/lcov-report/lib/properties/borderTopWidth.js.html +120 -0
- package/coverage/lcov-report/lib/properties/borderWidth.js.html +207 -0
- package/coverage/lcov-report/lib/properties/bottom.js.html +111 -0
- package/coverage/lcov-report/lib/properties/clear.js.html +117 -0
- package/coverage/lcov-report/lib/properties/clip.js.html +210 -0
- package/coverage/lcov-report/lib/properties/color.js.html +111 -0
- package/coverage/lcov-report/lib/properties/cssFloat.js.html +105 -0
- package/coverage/lcov-report/lib/properties/flex.js.html +204 -0
- package/coverage/lcov-report/lib/properties/flexBasis.js.html +153 -0
- package/coverage/lcov-report/lib/properties/flexGrow.js.html +126 -0
- package/coverage/lcov-report/lib/properties/flexShrink.js.html +126 -0
- package/coverage/lcov-report/lib/properties/float.js.html +105 -0
- package/coverage/lcov-report/lib/properties/floodColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/font.js.html +198 -0
- package/coverage/lcov-report/lib/properties/fontFamily.js.html +168 -0
- package/coverage/lcov-report/lib/properties/fontSize.js.html +183 -0
- package/coverage/lcov-report/lib/properties/fontStyle.js.html +123 -0
- package/coverage/lcov-report/lib/properties/fontVariant.js.html +123 -0
- package/coverage/lcov-report/lib/properties/fontWeight.js.html +168 -0
- package/coverage/lcov-report/lib/properties/height.js.html +141 -0
- package/coverage/lcov-report/lib/properties/index.html +1111 -0
- package/coverage/lcov-report/lib/properties/left.js.html +111 -0
- package/coverage/lcov-report/lib/properties/lightingColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/lineHeight.js.html +147 -0
- package/coverage/lcov-report/lib/properties/margin.js.html +273 -0
- package/coverage/lcov-report/lib/properties/marginBottom.js.html +108 -0
- package/coverage/lcov-report/lib/properties/marginLeft.js.html +108 -0
- package/coverage/lcov-report/lib/properties/marginRight.js.html +108 -0
- package/coverage/lcov-report/lib/properties/marginTop.js.html +108 -0
- package/coverage/lcov-report/lib/properties/opacity.js.html +111 -0
- package/coverage/lcov-report/lib/properties/outlineColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/padding.js.html +252 -0
- package/coverage/lcov-report/lib/properties/paddingBottom.js.html +108 -0
- package/coverage/lcov-report/lib/properties/paddingLeft.js.html +108 -0
- package/coverage/lcov-report/lib/properties/paddingRight.js.html +108 -0
- package/coverage/lcov-report/lib/properties/paddingTop.js.html +108 -0
- package/coverage/lcov-report/lib/properties/right.js.html +111 -0
- package/coverage/lcov-report/lib/properties/stopColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/textLineThroughColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/textOverlineColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/textUnderlineColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/top.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitBorderAfterColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitBorderBeforeColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitBorderEndColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitBorderStartColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitColumnRuleColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitMatchNearestMailBlockquoteColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitTapHighlightColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitTextEmphasisColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitTextFillColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/webkitTextStrokeColor.js.html +111 -0
- package/coverage/lcov-report/lib/properties/width.js.html +141 -0
- package/coverage/lcov-report/lib/utils/getBasicPropertyDescriptor.js.html +111 -0
- package/coverage/lcov-report/lib/utils/index.html +97 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +170 -0
- package/coverage/lcov.info +3711 -0
- package/jest.config.js +10 -0
- package/lib/CSSStyleDeclaration.test.js +521 -0
- package/lib/allProperties.js +53 -13
- package/lib/parsers.js +15 -4
- package/lib/parsers.test.js +98 -0
- package/lib/properties/fontSize.js +11 -1
- package/lib/properties.js +8 -1
- package/package.json +24 -30
- package/tests/tests.js +0 -669
package/.eslintignore
CHANGED
package/.eslintrc.js
CHANGED
|
@@ -14,9 +14,14 @@ module.exports = {
|
|
|
14
14
|
module: true,
|
|
15
15
|
require: true,
|
|
16
16
|
window: true,
|
|
17
|
+
describe: true,
|
|
18
|
+
it: true,
|
|
19
|
+
test: true,
|
|
20
|
+
expect: true,
|
|
17
21
|
},
|
|
18
22
|
plugins: ['prettier'],
|
|
19
23
|
rules: {
|
|
24
|
+
'no-prototype-builtins': 'off',
|
|
20
25
|
'prettier/prettier': [
|
|
21
26
|
'warn',
|
|
22
27
|
{
|
package/.travis.yml
CHANGED
package/AUTHORS
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Benny Powers <web@bennypowers.com>
|
|
2
|
+
Brenton Partridge <bapartridge@gmail.com>
|
|
3
|
+
Chad Walker <chad@chad-cat-lore-eddie.com>
|
|
4
|
+
chad3814 <chad@chad-cat-lore-eddie.com>
|
|
5
|
+
Dallas Hall <dallas.hall@procore.com>
|
|
6
|
+
Davide P. Cervone <dpvc@union.edu>
|
|
7
|
+
Edward Betts <edward@4angle.com>
|
|
8
|
+
Evan Jacobs <evan.jacobs@enigma.io>
|
|
9
|
+
fatfisz <fatfisz@gmail.com>
|
|
10
|
+
ForbesLindesay <forbes@lindesay.co.uk>
|
|
11
|
+
Gabriel Bibiano <gabriel.bibiano.a@gmail.com>
|
|
12
|
+
Ignacio Rodriguez <inz@fastmicroservices.com>
|
|
13
|
+
Isaac Devine <isaac@devinesystems.co.nz>
|
|
14
|
+
Jacob Feldman <jacob.h.feldman@gmail.com>
|
|
15
|
+
jakeFeldman <jacob.h.feldman@gmail.com>
|
|
16
|
+
Jon Sakas <jon.sakas@beatport.com>
|
|
17
|
+
Jon Sakas <jon.sakas@gmail.com>
|
|
18
|
+
Jonathan Cousins - External <jonathan.cousins.external@ynap.com>
|
|
19
|
+
João Gabriel Bibiano de Araújo <joao.araujo-ext@viavarejo.com.br>
|
|
20
|
+
Kwun-Lok Ng <k@samplify.io>
|
|
21
|
+
lsiu <leonard.siu@gmail.com>
|
|
22
|
+
Marc Prud'hommeaux <mwp1@cornell.edu>
|
|
23
|
+
Marcel Klehr <mklehr@gmx.net>
|
|
24
|
+
Matthew Crinklaw-Vogt <mlaw@fb.com>
|
|
25
|
+
omri lugasi <omriDroid@gmail.com>
|
|
26
|
+
Pierre Carru <pierre.carru@gmail.com>
|
|
27
|
+
Rafał Ruciński <fatfisz@gmail.com>
|
|
28
|
+
Ronald Rey <reyronald@gmail.com>
|
|
29
|
+
Sampo Kivistö <sampo.kivisto@live.fi>
|
|
30
|
+
step-off <stepanoff@skbkontur.ru>
|
|
31
|
+
stepanoff <stepanoff@skbkontur.ru>
|
|
File without changes
|
package/README.md
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
# CSSStyleDeclaration
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
A Node JS implementation of the CSS Object Model [CSSStyleDeclaration interface](https://www.w3.org/TR/cssom-1/#the-cssstyledeclaration-interface).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/cssstyle) [](https://travis-ci.org/jsdom/cssstyle) [](https://codecov.io/gh/jsdom/cssstyle)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
---
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
#### Background
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
This package is an extension of the CSSStyleDeclaration class in Nikita Vasilyev's [CSSOM](https://github.com/NV/CSSOM) with added support for CSS 2 & 3 properties. The primary use case is for testing browser code in a Node environment.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
It was originally created by Chad Walker, it is now maintaind by Jon Sakas and other open source contributors.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
$ npm test
|
|
17
|
-
|
|
18
|
-
tests
|
|
19
|
-
✔ Verify Has Properties
|
|
20
|
-
✔ Verify Has Functions
|
|
21
|
-
✔ Verify Has Special Properties
|
|
22
|
-
✔ Test From Style String
|
|
23
|
-
✔ Test From Properties
|
|
24
|
-
✔ Test Shorthand Properties
|
|
25
|
-
✔ Test width and height Properties and null and empty strings
|
|
26
|
-
✔ Test Implicit Properties
|
|
27
|
-
```
|
|
15
|
+
Bug reports and pull requests are welcome.
|