File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
- ### [ 4.0.8] - 2021-03-02
5
+ ### Fixed
6
+
7
+ - Styles applied using CSSOM don't drop ` : ` characters.
8
+
9
+ ## [ 4.0.8] - 2021-03-02
10
+
11
+ ### Fixed
6
12
7
13
- Avoid Content Security Policy (CSP) violations. [ @lambdacasserole ] ( https://github.com/lambdacasserole ) [ #431 ] ( https://github.com/jlmakes/scrollreveal/pull/431 )
8
14
Original file line number Diff line number Diff line change @@ -225,9 +225,9 @@ export default function style(element) {
225
225
*/
226
226
export function applyStyle ( el , declaration ) {
227
227
declaration . split ( ';' ) . forEach ( pair => {
228
- const [ property , value ] = pair . split ( ':' ) . map ( s => s . trim ( ) )
228
+ const [ property , ... value ] = pair . split ( ':' )
229
229
if ( property && value ) {
230
- el . style [ property ] = value
230
+ el . style [ property . trim ( ) ] = value . join ( ':' )
231
231
}
232
232
} )
233
233
}
You can’t perform that action at this time.
0 commit comments