cross-browser

nested svg ignores transformation in Chrome and Opera [duplicate]

纵然是瞬间 提交于 2019-12-02 22:31:22
问题 This question already has answers here : SVG translate seems to behave different in Chrome/Chromium (2 answers) Closed 4 years ago . I experienced somewhat that I would call a bug. I have the following 2 svg: <svg height="100%" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" id="SvgjsSvg1004"> <defs id="SvgjsDefs1005"></defs> <g transform="matrix(2,0,0,2,50,50)" id="SvgjsG1011"> <rect height="50" width="50" id="SvgjsRect1012"></rect> <

Browser support for eTags

蓝咒 提交于 2019-12-02 21:17:05
I'm working on getting my site to support the eTag/If-None-Match browser cache, but I'm not sure which browsers do/don't support it. Can anyone point me to a list? I can't imagine it's universal, but I haven't found anything that supports that claim. cheers, Mike Steve If-None-Match was Specified in HTTP 1.1 (June 1999): http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol According to Wikipedia: By March 1996, pre-standard HTTP/1.1 was supported in Arena, Netscape 2.0, Netscape Navigator Gold 2.01, Mosaic 2.7, Lynx 2.5, and in

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

烂漫一生 提交于 2019-12-02 20:49:10
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 IE/Win problem with growing or shrinking fonts out of proportion if they are later set in ems in other

Mixing percent and fixed CSS

霸气de小男生 提交于 2019-12-02 20:07:34
This is a duplicate from UI.StackExchange.com: https://ux.stackexchange.com/questions/1004/mixing-percent-and-fixed-css Should you ever apply percentage and fixed CSS together? Will it cause problems, and if so what kinds? Does mixing degrade browser render performance? Will mixing give you weird results on initial load with progressive rendering browsers? Below is just a dumbed-down example of mixed usage, it could be any mixture. I am not looking for validation of the example. I have heard you should never do what I have in the example below, so I am trying to find out if using CSS in this

Remove padding for an empty element

对着背影说爱祢 提交于 2019-12-02 20:05:07
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 element, above, to not take up any space. I'm testing in all major browsers, using XHTML 1.1 doctype.

How best to convince people to upgrade IE?

不想你离开。 提交于 2019-12-02 20:00:47
I recently asked a question that got shot down for being too strongly worded. I'm having another go today because it's something I really am concerned about and I really do want feedback and ideas from the smart people on SO. IE6 isn't quite the bane of my existence, but it's close. I'm a web-developer and spend too much time fixing things for IE6. Considering its age and relative quality, I'm shocked so many people are still using it. I understand that some companies still use it for legacy internal webapp support but I've found two companies now that haven't upgraded solely because XP's

picking jQuery 1.9 or 2.0 using JavaScript and Require.JS

江枫思渺然 提交于 2019-12-02 19:38:56
jQuery 2.0 is increasingly mature: http://blog.jquery.com/2013/03/01/jquery-2-0-beta-2-released/ jQuery 2.0 breaks compatibility with older browsers, so one must know when to stay with jQuery 1.9. The recommended approach is to use IE's conditional comments: <!--[if lt IE 9]> <script src="jquery-1.9.1.js"></script> <![endif]--> <!--[if gte IE 9]><!--> <script src="jquery-2.0.0b2.js"></script> <!--<![endif]--> current web development best-practice suggests that we should be avoiding browser-sniffing or user agent string parsing, but isn't this sort of what conditional comments are? does jQuery

Old IE JavaScript doesn't support indexOf

99封情书 提交于 2019-12-02 19:17:34
问题 From input file type i am passing fullPath(entire local path name) to javascript , and i have written javascript to know the file extension type , while (fullPath.indexOf("\\") != -1) fullPath = fullPath.slice(file.indexOf("\\") + 1); alert(fullPath); I have problem in IE only at above part , exactly i found indexOf is not supported in IE, how may i alter my this . If that is not the case is there any alternate to know the file extension which can work in all browsers. thanks, michaeld 回答1:

Multiple Background Images issues in ie7/ie8

こ雲淡風輕ζ 提交于 2019-12-02 19:16:49
问题 I am trying to solve a bug in ie7/ie8 for multiple background images... I know that in originally it doesn't support in ie's but i have googled some interesting stuff on web, for example, Cross-Browser Multiple Background Basically it is of two images background but i want to have 3 images with the defined position and size of the images via css... Fiddle code is not working in ie7/ie8... http://jsfiddle.net/CsKhy/4/ Can anyone help?? 回答1: Use nested divs for a crossbrowser-compatible

Server sent events and browser limits

六眼飞鱼酱① 提交于 2019-12-02 19:14:09
I have a web application that listens for Server Sent Events. While I was working and testing with multiple windows open, things were not working and I banged my head for several times looking in the wrong direction: eventually, I realized that the problem was concurrent connections. However I was testing a very limited number and even if I am running the test on Apache (I know, I should use node). I then, switched browser and noticed something really interesting: apparently Chrome limits Server Sent Events connections to 4-5, while Opera doesn't. Firefox, on the other hand, after 4-5