Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline style 태그에서 -webkit-등의 prefix를 사용할수 없음 #26

Closed
ghost opened this issue Nov 5, 2013 · 1 comment
Closed
Assignees

Comments

@ghost
Copy link

ghost commented Nov 5, 2013

https://code.google.com/p/xe-core/issues/detail?id=2696

Reported by wincomi8, Nov 16, 2012
예)

<style> html{-webkit-text-size-adjust:none} </style>

레이아웃, 관리자 tpl 등에서 inline style 태그로 -webkit-등의 prefix를 쓰면 페이지가 표시되지 않습니다.
다만, 로 css를 불러오면 상관없습니다.

--- comment
#2 chschy

추가)
html{-webkit~~~
는 안되지만, 앞에 다른 속성이 있으면..
html{overflow:hidden;-webkit~~~
이 있으면 잘 됨

@ghost ghost self-assigned this Jan 7, 2014
@akasima
Copy link
Member

akasima commented Aug 21, 2014

$buff = preg_replace_callback('/{(@[\s\S]+?|(?=\$\w+|_{1,2}[A-Z]+|[!\(+-]|\w+(?:\(|::)|\d+|[\'"].*?[\'"]).+?)}|<(!--[#%])?(include|import|(un)?load(?(4)|(?:_js_plugin)?))(?(2)\(["\']([^"\']+)["\'])(.*?)(?(2)\)--|\/)>|<!--(@[a-z@]*)([\s\S]*?)-->(\s*)/', array($this, '_parseResource'), $buff);
에서 처리되어 생긴 문제입니다.

템플릿 컴파일에서 중괄호 시작 후 !, (, +, -에 대해서 php 로 변환하도록 처리되어 있습니다.

사용시 아래와 같이 중괄호 옆에 공칸을 입력해서 사용 가능합니다.

html{ -webkit-text-size-adjust:none}

제기된 문제를 처리하기 위한 방법이 있으므로 template class 를 수정하지 않고 이슈 닫습니다.

@akasima akasima closed this as completed Aug 21, 2014
@akasima akasima assigned akasima and unassigned ghost Aug 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant