Skip to content

Commit 3df9a29

Browse files
fix: bump style-to-js to 1.1.1; don't capitalize ms vendor prefix
Relates to remarkablemark/style-to-js#2
1 parent 28be558 commit 3df9a29

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"domhandler": "4.3.1",
4848
"html-dom-parser": "1.2.0",
4949
"react-property": "2.0.0",
50-
"style-to-js": "1.1.0"
50+
"style-to-js": "1.1.1"
5151
},
5252
"devDependencies": {
5353
"@commitlint/cli": "17.0.1",

test/attributes-to-props.test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -253,19 +253,21 @@ describe('attributesToProps with style attribute', () => {
253253
color: #f00; font-size: 42px; z-index: -1; -webkit-border-top-right-radius: 10rem; background: url(data:image/png; base64,ivborw0kggoaaaansaaaabgdbtueaalgpc/xhbqaaaafzmuexurczmzpf399fx1+bm5mzy9avzxbesmgces5/p8/t9furvcrmu73jwlzosgsiizurcjo/ad+eqjjb4hv8bft+idpqocx1wjosbfhh2xssxeiyn3uli/6mnree07uiwjev8u8czwyuqdlkpg1bkb4nnm+veanfhqn1k4+gpt6ugqcvu2h2ovuif);
254254
/* display: block; */
255255
--custom-property: #f00;
256-
border-bottom-left-radius:1em;border-right-style:solid;Z-Index:-1;-moz-border-radius-bottomleft:20px'
256+
border-bottom-left-radius:1em;border-right-style:solid;Z-Index:-1;-moz-border-radius-bottomleft:20px;
257+
-ms-transform: none;
257258
`;
258259
expect(attributesToProps({ style })).toMatchInlineSnapshot(`
259260
Object {
260261
"style": Object {
261262
"--custom-property": "#f00",
262-
"MozBorderRadiusBottomleft": "20px'",
263+
"MozBorderRadiusBottomleft": "20px",
263264
"WebkitBorderTopRightRadius": "10rem",
264265
"background": "url(data:image/png; base64,ivborw0kggoaaaansaaaabgdbtueaalgpc/xhbqaaaafzmuexurczmzpf399fx1+bm5mzy9avzxbesmgces5/p8/t9furvcrmu73jwlzosgsiizurcjo/ad+eqjjb4hv8bft+idpqocx1wjosbfhh2xssxeiyn3uli/6mnree07uiwjev8u8czwyuqdlkpg1bkb4nnm+veanfhqn1k4+gpt6ugqcvu2h2ovuif)",
265266
"borderBottomLeftRadius": "1em",
266267
"borderRightStyle": "solid",
267268
"color": "#f00",
268269
"fontSize": "42px",
270+
"msTransform": "none",
269271
"zIndex": "-1",
270272
},
271273
}

0 commit comments

Comments
 (0)