Skip to content

Commit f81b880

Browse files
Merge pull request #569 from remarkablemark/fix/ms-vendor-prefix
fix: bump `style-to-js` to 1.1.1; don't capitalize `-ms` vendor prefix
2 parents 28be558 + 119270d commit f81b880

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.size-limit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
33
"path": "dist/html-react-parser.min.js",
4-
"limit": "10.52 KB"
4+
"limit": "10.531 KB"
55
}
66
]

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 2 deletions
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)