diff --git a/autoload/emmet/lang/css.vim b/autoload/emmet/lang/css.vim index ceff2a5..ea04fb7 100644 --- a/autoload/emmet/lang/css.vim +++ b/autoload/emmet/lang/css.vim @@ -160,11 +160,33 @@ function! emmet#lang#css#toString(settings, current, type, inline, filters, item endfunction function! emmet#lang#css#imageSize() - "let img_region = emmet#util#searchRegion('url(', ')') - "if !emmet#util#regionIsValid(img_region) || !emmet#util#cursorInRegion(img_region) - " return - "endif - "let content = emmet#util#getContent(img_region) + let img_region = emmet#util#searchRegion('{', '}') + if !emmet#util#regionIsValid(img_region) || !emmet#util#cursorInRegion(img_region) + return + endif + let content = emmet#util#getContent(img_region) + let fn = matchstr(content, '\