cross-browser

cross-origin video in Safari

一笑奈何 提交于 2019-12-03 07:52:28
Does anyone know if Safari supports crossorigin attribute on the HTML5 <video> tag? I serve video from a server that responds with all needed CORS headers, and I use the markup below to embed the video to my page. The page is served from a different domain. <video controls crossorigin="anonymous" src="http://example.com/movie.mp4"> I then draw the video to a canvas and get the image from the canvas using toDataURL API. This works in Chrome and Firefox, but Safari throws the security error as if there were no crossorigin attribute on the video. Any ideas? It appears that Safari does not support

CSS Browser Support Chart [closed]

与世无争的帅哥 提交于 2019-12-03 07:50:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Is there any resource that provides a chart of CSS properties and their support through most browser/OS combinations? For example, if I want to know what browser supports overflow or min-height and any quirks to be aware of in the implementation of these properties and their values, what is the best place to get

Equivalent of div display inline-block for IE8, IE7 and older browsers

血红的双手。 提交于 2019-12-03 07:18:10
This is a fairly generic question about cross-browser compatibility. At various points in a design I'm currenly working on the only way to achieve the layout and style that I want (without resorting to using images) is to use the display:inline-block css style option. However, this is not supported by IE8 and other older browsers and this results in my design beign broken. So there are two parts to my question 1 - Is there a method of achieving a similar or equivalent effect for IE8? 2 - If not, how best can I make my design degrade smoothly? For your reference, here's an example of where this

JavaScript key handling and browser compatibility

依然范特西╮ 提交于 2019-12-03 07:17:48
I'm working on key handling in Javascript. I have done some research and I'd like to know whether I have a correct understanding of key handling. KeyDown/KeyUp Event The key down and key up events are supported by IE7+ and Firefox 3.5+ I didn't check the earlier versions of the browsers, but I guess that they also support these events. Is it correct to say that each key on the keyboard will always have a keycode. CharCode CharCode value is available on the keypress.Majority of the keys will have the charcodes that represent the actual value. Some keys won't have a charcode associated with them

body { font-size: 100.01%; } vs body { font-size: 100%; }?

谁都会走 提交于 2019-12-03 07:12:22
问题 What should i keep for body , {font-size: 100.01%; } or { font-size: 100%; } ? what is {font-size: 100.01%; } ? and is it really good to mention font-size in html{} even If I'm using body {font-size: 62.5%;} Edit : 3 May 2010 Today i found info about 100.01% at here - http://www.communitymx.com/content/article.cfm?cid=FAF76&print=true This odd 100.01% value for the font size compensates for several browser bugs. First, setting a default body font size in percent (instead of em) eliminates an

How to properly provide data for <audio>?

橙三吉。 提交于 2019-12-03 06:57:54
I am serving binary data for HTML5 audio thorough .aspx page. The file can be played but there is a problem with SeekBar and replaying in Safari (iPad), Chrome and Firefox. Edit I have simplified (hopefully not too much) the code and full listing is presented (page file name is obviously play.aspx). <%@ Page Language="C#" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { if ( Request["filename"] != null) { string FilePath = MapPath(Request["filename"]); long fSize = (new System.IO.FileInfo(FilePath))

Which key to bind to avoid conflict with native browser shortcuts?

て烟熏妆下的殇ゞ 提交于 2019-12-03 06:53:29
问题 Every browser has different native keyboard shortcuts. Which ones are free / safe to use if we want to add some spicy stuff to our web-app? Additional information: I don't especially need to target every browser. The five majors one are sufficient. For example, Opera commonly uses Ctrl + key , leaving almost all Alt + key "free to bind". As different browsers use a different main modifier ( Ctrl in Opera), I can easily imagine using a different key to bind shortcuts to. i.e Alt + Key in Opera

Remove padding for an empty element

ε祈祈猫儿з 提交于 2019-12-03 06:30:24
问题 I'm generating a page for an upcoming portal site, and I've got an HTML element with some optional content. I'd like the element to not render if it is empty, but adding some padding to it causes it to render. How do I add padding to the content, but only if content is present? .someElement{padding-top: 5px;} HTML in question: <div class="someElement">With padded content</div> <div class="someElement"><!-- shouldn't render since it has no content --></div> Basically, I'd like the second

Launch file:// from Firefox or Chrome

孤街浪徒 提交于 2019-12-03 06:13:45
I am looking for a way to launch a file located on our local file network for use via our local intranet using Firefox or Chrome. The link works well in IE: <a href="\\Start\Of\My\Network\file.xlsx">View Report</a>  but in Firefox it shows: <a href="http://mydomain.com/\\Start\Of\My\Network\file.xlsx">View Report</a>  is there a way to get the link to render properly?...Just a simple click from a href tag. This is not enabled in firefox for security reasons (remember that most computers have files and applications of a sensitive nature located in similar locations, like C:\System\Windows) you

How to check if a css rule exists

别等时光非礼了梦想. 提交于 2019-12-03 05:53:23
I need to check if a CSS rule exists because I want to issue some warnings if a CSS file is not included. What is the best way of doing this? I could filter through window.document.styleSheets.cssRules , but I'm not sure how cross-browser this is (plus I notice on Stack Overflow that object is null for styleSheet[0] ). I would also like to keep dependencies to a minimum. Is there a straightforward way to do this? Do I just have to create matching elements and test the effects? Edit: If not, what are the cross-browser concerns of checking window.document.styleSheets ? I don't know if this is an