A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/commit/539e481f38706a6202f0eacf54c579362fbd5bb4 below:

style for camelCase properties with !important (#9386) · vuejs/vue@539e481 · GitHub

1 1

/* @flow */

2 2 3 3

import { getStyle, normalizeStyleBinding } from 'web/util/style'

4 -

import { cached, camelize, extend, isDef, isUndef } from 'shared/util'

4 +

import { cached, camelize, extend, isDef, isUndef, hyphenate } from 'shared/util'

5 5 6 6

const cssVarRE = /^--/

7 7

const importantRE = /\s*!important$/

@@ -10,7 +10,7 @@ const setProp = (el, name, val) => {

10 10

if (cssVarRE.test(name)) {

11 11

el.style.setProperty(name, val)

12 12

} else if (importantRE.test(val)) {

13 -

el.style.setProperty(name, val.replace(importantRE, ''), 'important')

13 +

el.style.setProperty(hyphenate(name), val.replace(importantRE, ''), 'important')

14 14

} else {

15 15

const normalizedName = normalize(name)

16 16

if (Array.isArray(val)) {


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4