webkit

How to create dotted border with round dots in WebKit browsers?

百般思念 提交于 2020-06-24 07:27:30
问题 In WebKit driven browsers, e.g. Safari, Chrome, borders with their style declared as dotted are rendered with square dots instead of round. Is there any way to force rendering of round dots seamlessly across browsers? Reference Test on jsFiddle 回答1: A natively supported solution is currently lacking, as the specification does not define these properties explicitly, and leaves it for the browser's implementation. You may, however, use SVG to create the border, as it offers full control over

Can I use experimental WebKit features in my iOS app?

半城伤御伤魂 提交于 2020-06-16 18:04:48
问题 I am developing an iOS app with react-native. I wanted to use MediaRecorder which is still in 'experimental' phase. I turned it on in advanced Safari settings but when I try to use it in my app: var mediaRecorder = new MediaRecorder(stream) I get this error: ReferenceError: Can't find variable: MediaRecorder This feature works well in safari, but I can't get it to work in my app. Is there a way to turn it on in Xcode/real-native settings? EDIT: Here is the larger section of my code. I use

Can I use experimental WebKit features in my iOS app?

时光毁灭记忆、已成空白 提交于 2020-06-16 18:03:56
问题 I am developing an iOS app with react-native. I wanted to use MediaRecorder which is still in 'experimental' phase. I turned it on in advanced Safari settings but when I try to use it in my app: var mediaRecorder = new MediaRecorder(stream) I get this error: ReferenceError: Can't find variable: MediaRecorder This feature works well in safari, but I can't get it to work in my app. Is there a way to turn it on in Xcode/real-native settings? EDIT: Here is the larger section of my code. I use

Is -webkit-link a valid color for any html element or css property for which color is relevant?

雨燕双飞 提交于 2020-05-29 04:51:05
问题 On one of my applications I noticed Chrome was automatically setting link colors as the color "-webkit-link" via this rule: /* Not set by my CSS stylesheet */ a:-webkit-any-link { color: -webkit-link; text-decoration: underline; cursor: auto; } It is much easier for me to remember a default link color as -webkit-link than a hex code. I tried setting the color of text wrapped in a p tag and a div tag and this seemed to work fine on Codepen. div, p { color: -webkit-link; } Is "-webkit-color" a

How to stop JavaScriptCore JSContext evaluating by force on iOS?

南笙酒味 提交于 2020-05-17 08:48:51
问题 The bounty expires in 4 days . Answers to this question are eligible for a +50 reputation bounty. Suge wants to draw more attention to this question. Sometime the script being evaluated should be stopped by force, but I can't find a way to achieve this. Someone pointed out JSContextGroupSetExecutionTimeLimit might work, but It doesn't in my testing, can anyone help? Another reference: https://github.com/phoboslab/JavaScriptCore-iOS/issues/14 My code: int extendTerminateCallbackCalled = 0;

Why :hover is so slow in webkit browsers over large numbers of DOM elements

僤鯓⒐⒋嵵緔 提交于 2020-05-12 20:33:16
问题 When there are numerous DOM loaded with javascript elements styled with :hover pseudo class (like a long table), the effect is rendered slow/laggy in Chrome & Safari. Firefox appears to handle the large number of rows with :hover fairly quickly compared with webkit. For example, you can see the difference by generating 10,000 rows with a :hover effect. http://jsfiddle.net/jschin/VwmjT/ var table = document.createElement('table'); for (var i=0; i<10000; i++) { var r = document.createElement(

Why :hover is so slow in webkit browsers over large numbers of DOM elements

笑着哭i 提交于 2020-05-12 20:32:49
问题 When there are numerous DOM loaded with javascript elements styled with :hover pseudo class (like a long table), the effect is rendered slow/laggy in Chrome & Safari. Firefox appears to handle the large number of rows with :hover fairly quickly compared with webkit. For example, you can see the difference by generating 10,000 rows with a :hover effect. http://jsfiddle.net/jschin/VwmjT/ var table = document.createElement('table'); for (var i=0; i<10000; i++) { var r = document.createElement(

webkitAudioContext createMediaElementSource on iOS Safari not working

北战南征 提交于 2020-05-10 04:07:07
问题 I want to do a live sound analysis on the iPhone. Therefor I use the webkitAudioContext Analyser. var ctx = new (window.AudioContext || window.webkitAudioContext); var audioGoodmorning = new Audio('assets/sounds/greeting.m4a'); var audioSrc = ctx.createMediaElementSource(audioGoodmorning); var analyser = ctx.createAnalyser(); analyser.fftSize = 32; audioSrc.connect(analyser); audioSrc.connect(ctx.destination); var frequencyData = new Uint8Array(analyser.fftSize); analyser.getByteFrequencyData

现代都市风 移动端可折叠导航菜单

会有一股神秘感。 提交于 2020-05-09 17:15:30
效果图 index.html <! DOCTYPE html > < html lang ="en" > < head > < meta charset ="UTF-8" > < title > index </ title > < link rel ="stylesheet" href ="https://fonts.googleapis.com/css?family=Open+Sans:400,700" > < link rel ="stylesheet" href ="css/style.css" > </ head > < body > < div class ="htmleaf-container" > < div id ="wrapper" > <!-- 菜单 --> < div class ="menu" > < img id ="menu-bg" src ="images/golden-gate-lights.jpg" /> < ul > < li >< a href ="" > About </ a ></ li > < li >< a href ="" > Share </ a ></ li > < li >< a href ="" > Activity </ a ></ li > < li >< a href ="" > Settings </ a ></

移动端创意导航

大憨熊 提交于 2020-05-09 15:54:37
效果图 index.html <! DOCTYPE html > < html lang ="en" > < head > < meta charset ="UTF-8" > < title > index </ title > < link rel ="stylesheet" href ="css/reset.css" > < link rel ="stylesheet" href ="css/style.css" > </ head > < body > < div class ="screen" > < nav class ="nav" > < ul > < li >< a href ="#" > 搜 索 </ a ></ li > < li >< a href ="#" > 主 页 </ a ></ li > < li >< a href ="#" > HTML5学习 </ a ></ li > < li >< a href ="#" > CSS3学习 </ a ></ li > < li >< a href ="#" > 联系我们 </ a ></ li > </ ul > </ nav > < div class ="nav-toggle" > < div class ="icon" ></ div > </ div > <!-- 背景内容区 --> < div