Skip to content

Commit

Permalink
Merge pull request #569 from remarkablemark/fix/ms-vendor-prefix
Browse files Browse the repository at this point in the history
fix: bump `style-to-js` to 1.1.1; don't capitalize `-ms` vendor prefix
  • Loading branch information
remarkablemark authored May 30, 2022
2 parents 28be558 + 119270d commit f81b880
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"path": "dist/html-react-parser.min.js",
"limit": "10.52 KB"
"limit": "10.531 KB"
}
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"domhandler": "4.3.1",
"html-dom-parser": "1.2.0",
"react-property": "2.0.0",
"style-to-js": "1.1.0"
"style-to-js": "1.1.1"
},
"devDependencies": {
"@commitlint/cli": "17.0.1",
Expand Down
6 changes: 4 additions & 2 deletions test/attributes-to-props.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,21 @@ describe('attributesToProps with style attribute', () => {
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);
/* display: block; */
--custom-property: #f00;
border-bottom-left-radius:1em;border-right-style:solid;Z-Index:-1;-moz-border-radius-bottomleft:20px'
border-bottom-left-radius:1em;border-right-style:solid;Z-Index:-1;-moz-border-radius-bottomleft:20px;
-ms-transform: none;
`;
expect(attributesToProps({ style })).toMatchInlineSnapshot(`
Object {
"style": Object {
"--custom-property": "#f00",
"MozBorderRadiusBottomleft": "20px'",
"MozBorderRadiusBottomleft": "20px",
"WebkitBorderTopRightRadius": "10rem",
"background": "url(data:image/png; base64,ivborw0kggoaaaansaaaabgdbtueaalgpc/xhbqaaaafzmuexurczmzpf399fx1+bm5mzy9avzxbesmgces5/p8/t9furvcrmu73jwlzosgsiizurcjo/ad+eqjjb4hv8bft+idpqocx1wjosbfhh2xssxeiyn3uli/6mnree07uiwjev8u8czwyuqdlkpg1bkb4nnm+veanfhqn1k4+gpt6ugqcvu2h2ovuif)",
"borderBottomLeftRadius": "1em",
"borderRightStyle": "solid",
"color": "#f00",
"fontSize": "42px",
"msTransform": "none",
"zIndex": "-1",
},
}
Expand Down

0 comments on commit f81b880

Please sign in to comment.