Skip to content
This repository was archived by the owner on Feb 9, 2018. It is now read-only.

Commit 5a7bd45

Browse files
authored
Merge pull request #149 from samthor/whitespace
remove trailing whitespace chars
2 parents d6df05e + 7b67c0a commit 5a7bd45

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#What is this?
2-
This is a proof-of-concept polyfill for the proposed [Typed CSSOM API](https://drafts.css-houdini.org/css-typed-om-1/).
3-
4-
#Using this Polyfill
5-
To use the code, download this repository and put
6-
```
7-
<script src='typed-om/typed-om.js'></script>
8-
```
9-
in your HTML file.
10-
11-
#Testing this Polyfill
12-
The tests use the [Mocha framework](https://mochajs.org/) with [Chai asserts](http://chaijs.com/api/assert/). Other Chai tools can be pulled in if needed.
13-
14-
To run the tests do
15-
```
16-
npm install
17-
npm test
18-
```
1+
#What is this?
2+
This is a proof-of-concept polyfill for the proposed [Typed CSSOM API](https://drafts.css-houdini.org/css-typed-om-1/).
3+
4+
#Using this Polyfill
5+
To use the code, download this repository and put
6+
```
7+
<script src='typed-om/typed-om.js'></script>
8+
```
9+
in your HTML file.
10+
11+
#Testing this Polyfill
12+
The tests use the [Mocha framework](https://mochajs.org/) with [Chai asserts](http://chaijs.com/api/assert/). Other Chai tools can be pulled in if needed.
13+
14+
To run the tests do
15+
```
16+
npm install
17+
npm test
18+
```

src/parsing/css-transform-value-parsing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
components.push(result[0]);
2626
string = result[1];
27-
}
27+
}
2828
if (!components.length) {
2929
return null;
3030
}

test/js/css-calc-length.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ suite('CSSCalcLength', function() {
161161
assert.isTrue(calcLength1.equals(calcLength2));
162162
});
163163

164-
test('equals method should return false when one CSSCalcLength has additional length types with non null values' +
164+
test('equals method should return false when one CSSCalcLength has additional length types with non null values' +
165165
'even if all other types are equivalent', function() {
166166
var calcLength1 = new CSSCalcLength({px: 25, em: 3.2, percent: 5});
167167
var calcLength2 = new CSSCalcLength({px: 25, em: 3.2});

test/js/css-number-value.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ suite('CSSNumberValue', function() {
3333
{ str: '10e3', num: 10000, remaining: '' },
3434
{ str: '-3.4e-2', num: -0.034, remaining: '' },
3535
{ str: '3px', num: 3, remaining: 'px' },
36-
{ str: '1e-.0', num: 1, remaining: 'e-.0' },
36+
{ str: '1e-.0', num: 1, remaining: 'e-.0' },
3737
];
3838
for (var i = 0; i < values.length; i++) {
3939
var result = typedOM.internal.parsing.consumeNumberValue(values[i].str);

test/js/css-perspective.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ suite('CSSPerspective', function() {
4141

4242
test('Parsing valid strings results in correct values', function() {
4343
var values = [
44-
{str: 'perspective(2.6px)', l: new CSSSimpleLength(2.6, 'px'), remaining: ''},
45-
{str: 'PERSPECTIVE(2.6PX) bananas', l: new CSSSimpleLength(2.6, 'px'), remaining: 'bananas'},
44+
{str: 'perspective(2.6px)', l: new CSSSimpleLength(2.6, 'px'), remaining: ''},
45+
{str: 'PERSPECTIVE(2.6PX) bananas', l: new CSSSimpleLength(2.6, 'px'), remaining: 'bananas'},
4646
]
4747
for (var i = 0; i < values.length; i++) {
4848
var parsed = typedOM.internal.parsing.consumePerspective(values[i].str);

0 commit comments

Comments
 (0)