mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-21 16:10:58 +00:00
23 lines
34 KiB
JSON
23 lines
34 KiB
JSON
{"tool_tip_prefix":"<style type=\"text\/css\" media=\"screen\">\nbody {\n background: transparent;\n\/* opacity: 0.9;*\/\n}\nhtml,body,table{font-size:10px; font-family: \"Lucida Grande\", \"Trebuchet MS\", Verdana, sans-serif;}\ntable{-webkit-border-radius:1ex;background-color:#fff;border:2px solid #eee;width:auto;}\ntd.declaration{width:15em;}\ntd.comp{-webkit-border-radius:1ex;}\n\n\/*COMPATIBILITY TABLES*\/\ntable.compatibility{line-height:140%;border-spacing:0.5em;position:relative;}\ntable.compatibility caption{border-top:1px dotted #9198C1;padding:10px 0;text-align:left;}\ntable.compatibility caption select{margin-left:5px;margin-right:7px;border:1px dotted #9198C1;}\nwbr:after{content:\"\u000200B\"}\ntr{width:100%;}\ntable.compatibility ul,table.compatibility ol{border:none;margin-bottom:0;}\ntable.compatibility td{vertical-align:top;}\ncol.IE{width:3em;}\ncol.FF{width:4em;}\ncol.Saf{width:4em;}\ncol.Op{width:4em;}\ncol.Rest{width:8em;}\ntr.compheader{background-color:#F2F3EF;}\ntr.compheader th{font-weight:normal;font-size:90%;color:#666666;}\ntr.compheader th:first-child{text-align:right;padding:1em;}\ntr.compheader:last-child th{border:none;}\ntd.header{background-color:#F2F3EF;padding:0.3em;}\ntd.header h3,td.header h4{margin-top:0.5em;text-align:center;}\ntd.declaration{background-color:#F2F3EF;text-align:right;padding-right:10px;color:#666666;}\ntd.declaration a{text-decoration:none;}\ndiv.name{font-weight:bold;margin-bottom:1em;margin-top:1em;}\ntd.comp{font-family:verdana,sans-serif;font-size:95%;text-transform:lowercase;text-align:center;height:3em;vertical-align:middle !important;}\ntable.keepCaps td.comp{text-transform:none;}\ntd.yes{background-color:#00882D;color:#ffffff;text-shadow:0 1px 1px #003211;}\ntd.almost{background-color:#40A662;color:#ffffff;text-shadow:0 1px 1px #297D47;}\ntd.incomplete{color:#00882D;border:1px solid #00882D;}\ntd.alternative{color:#666666;border:1px solid #666666;}\ntd.untestable{color:#006699;}\ntd.minimal{color:#CB000F;}\ntd.incorrect{color:#CB000F;border:1px solid #CB000F;}\ntd.inappropriate{background-color:#EFB2B7;text-shadow:0 1px 1px #fff;}\ntd.toomany{background-color:#CCE7D5;text-shadow:0 1px 1px #fff;}\ntd.buggy{background-color:#DA4C57;color:#ffffff;text-shadow:0 1px 1px #81272C;}\ntd.severebug{background-color:#82000A;color:#ffffff;text-shadow:0 1px 1px #410005;}\ntd.no{background-color:#CB000F;color:#ffffff;text-shadow:0 1px 1px #410301;}\ntd.crash{background-color:#535353;font-weight:bold;text-transform:uppercase;color:#ffffff;text-shadow:0 1px 1px #333;}\nb.warning{display:block;color:#F2F3EF;padding:0.5em;margin-right:-10px;margin-top:0.5em;background-color:#999999;text-shadow:0 1px 1px #666;}\ntd pre{padding:0;}\ntd pre + p{margin-top:2px;}\ntd th,td td{padding:1px !important;vertical-align:top;color:#666666;}\ntd th{text-align:left !important;}\n\ncite {\n -webkit-transition: right 1s ease-out, opacity 1s ease-out;\n position: relative;\n opacity: 0;\n right: 50%;\n \n display: block;\n float: right;\n -webkit-border-radius: 1ex;\n margin: 1ex auto 0;\n text-align: center;\n background: #111;\n color: #eee;\n line-height: 2em;\n padding: 0 1em;\n text-shadow: 0 1px 1px #000;\n border: 1px solid #222;\n}\n<\/style>\n<script>\nwindow.addEventListener('load',function(){\n \n var c = document.getElementsByTagName('cite')[0];\n c.style.right = '0px';\n c.style.opacity = '1';\n \n},false);\n<\/script>\n","suggestions":[
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">currentStyle<\/div>\n\t\tThe current style of the element, however this style is set\n\t\t<br \/><br \/><a href=\"tests\/style.html#currentStyle\">Test page<\/a>\n\t<b class=\"warning\">Microsoft<\/b>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>x.currentStyle<\/pre>\n\t<p>Returns the actual style of element <code>x<\/code>, even if this is not an inline\n\tstyle. It thus reports the result of all style declarations that work on element <code>x<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM currentStyle","match":"currentStyle","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getComputed<wbr>Style()<\/wbr><\/div>\n\t\tThe current style of the element, however this style is set\n\t\t<br \/><br \/><a href=\"tests\/style.html#getComputedStyle\">Test page<\/a>\n\t\t<b class=\"warning\">W3C<\/b>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>window.getComputedStyle(x,null).color<\/pre>\n\t<p>Read out the current color style of element <code>x<\/code>.<\/p><\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM getComputedStyle()","match":"getComputedStyle","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"4\">\n\t\t<div class=\"name\">style<\/div>\n\t\tThe <em>inline<\/em> style of the element\n\t\t<br \/><br \/><a href=\"tests\/style.html#style\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp almost\" colspan=\"2\">Almost<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\" colspan=\"2\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>x.style<\/pre>\n\t<p>Access the <em>inline<\/em> styles of element <code>x<\/code>. Styles defined in embedded,\n\tlinked or imported style sheets are not reported.<\/p>\n\t<p>You can also set it: <code>x.style.color = '#0000cc'<\/code>. This sets the <em>inline<\/em> style,\n\twhich of course overrules all other styles.<\/p>\n\t<ul>\n\t\t<li>Safari and Konqueror have trouble with reading out the <code>border<\/code> style that I use in my test.\n\t\tHowever, in general <code>style<\/code> works correctly in both browsers.<\/li>\n\t\t<li>IE5.5 and 6 have problems with setting the new <code>border<\/code> rule, but I suspect that's\n\t\tcaused by my template and not by the actual test. In general they support <code>style<\/code> changes\n\t\twell.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<tr>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp incomplete\">Read only\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/td><\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[0].style<\/pre>\n\t<p>Access the styles in the first rule of the second style sheet. These, too, can be set:<br \/>\n\t<code>document.styleSheets[1].cssRules[0].style.color = '#0000cc'<\/code><\/p>\n\t<p>(IE uses <code>rules<\/code> instead of <code>cssRules<\/code>, obviously.)<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM style","match":"style","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">cssRules[]<\/div>\n\t\tAn array with all rules in a stylesheet.\n\t\t<br \/><br \/><a href=\"tests\/stylesheet.html#cssRules\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[1]<\/pre>\n\t<p>Access the second rule of the second style sheet in the document.<\/p><\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"[${1:}]$0","tool_tip_format":"html","display":"CSS DOM cssRules[]","match":"cssRules","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">imports[]<\/div>\n\t\tAn array with all imported style sheets in a style sheet\n\t\t<br \/><br \/><a href=\"tests\/stylesheet.html#imports\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].imports<\/pre>\n\t<p>Access all style sheets that are imported by the second style sheet in the document.<\/p>\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"[${1:}]$0","tool_tip_format":"html","display":"CSS DOM imports[]","match":"imports","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">rules[]<\/div>\n\t\tAn array with all rules in a stylesheet.\n\t\t<br \/><br \/><a href=\"tests\/stylesheet.html#rules\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incorrect\" colspan=\"4\">Incor<wbr>rect<\/wbr><\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].rules[1]<\/pre>\n\t<p>Access the second rule of the second style sheet in the document.<\/p>\n\t<p><code>rules<\/code> does not contain <code>@import<\/code> declarations, while <code>cssRules<\/code>\n\tdoes.<\/p>\n\t<ul>\n\t\t<li>IE doesn't count <code>@import<\/code>s as rules, but splits up selectors like <code>p#test, ul<\/code>\n\t\tinto two rules.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"[${1:}]$0","tool_tip_format":"html","display":"CSS DOM rules[]","match":"rules","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">styleSheets[]<\/div>\n\t\tAn array with all stylesheets in the document\n\t\t<br \/><br \/><a href=\"tests\/stylesheet.html#styleSheet\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1]<\/pre>\n\t<p>Access the second style sheet (linked or embedded) in the document.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"[${1:}]$0","tool_tip_format":"html","display":"CSS DOM styleSheets[]","match":"styleSheets","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">addRule()<\/div>\n\t\tAdd a rule into a stylesheet the Microsoft way\n\t\t<br \/><br \/><a href=\"tests\/addrules.html#addRule\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].addRule('pre', 'font: 14px verdana')<\/pre>\n\t<p>Add the rule <code>pre {font: 14px verdana}<\/code> to the second style sheet in the document.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM addRule()","match":"addRule","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">deleteRule()<\/div>\n\t\tDelete a rule from a stylesheet the W3C way\n\t\t<br \/><br \/><a href=\"tests\/addrules.html#deleteRule\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].deleteRule(1)<\/pre>\n\t<p>Delete the second rule of the second style sheet in the document.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM deleteRule()","match":"deleteRule","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">insertRule()<\/div>\n\t\tInsert a rule into a stylesheet the W3C way\n\t\t<br \/><br \/><a href=\"tests\/addrules.html#insertRule\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>var x = document.styleSheets[1];\nx.insertRule('pre {font: 14px verdana}',x.cssRules.length)<\/pre>\n\t<p>Insert the rule <code>pre {font: 14px verdana}<\/code> into the second style sheet in the document at the last position\n\t(<code>length<\/code> of the cssRules array).<\/p>\n\t<p>Unfortunately the second argument is required. It should default to <code>cssRules.length<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM insertRule()","match":"insertRule","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">removeRule()<\/div>\n\t\t Remove a rule from a stylesheet the Microsoft way\n\t\t<br \/><br \/><a href=\"tests\/addrules.html#removeRule\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].removeRule(1)<\/pre>\n\t<p>Remove the second rule from the second style sheet in the document.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM removeRule()","match":"removeRule","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"8\">\n\t\t<div class=\"name\">cssText<\/div>\n\t\tThe CSS of a rule as a string.\n\t\t<br \/><br \/><a href=\"tests\/cssProps.html#cssText\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>x.style.cssText<\/pre>\n\t<p>Returns the entire inline style of element <code>x<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<tr>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssText<\/pre>\n\t<p>Returns the entire content of the style sheet.<\/p>\n\t<\/td>\n<\/tr>\n<tr>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[1].cssText<\/pre>\n\t<p>Returns the entire text of the rule (for instance <code>pre {font: 14px verdana;}<\/code>).<\/p>\n\t<p>(Obviously, IE needs <code>rules<\/code> instead of <code>cssRules<\/code>.)<\/p>\n\t<\/td>\n<\/tr>\n<tr>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[1].style.cssText<\/pre>\n\t<p>Returns all declarations of the rule (for instance <code>font: 14px verdana;<\/code>).<\/p>\n\t<p>(Obviously, IE needs <code>rules<\/code> instead of <code>cssRules<\/code>.)<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM cssText","match":"cssText","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">disabled<\/div>\n\t\tWhether the stylesheet is disabled\n\t\t<br \/><br \/><a href=\"tests\/cssProps.html#disabled\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].disabled = true<\/pre>\n\t<p>Disable the second style sheet of the document. (Setting it to <code>false<\/code> enables the\n\tstyle sheet again).<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM disabled","match":"disabled","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">href<\/div>\n\t\tThe href of a stylesheet\n\t\t<br \/><br \/><a href=\"tests\/cssProps.html#href\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes+<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheet[0].href<\/pre>\n\t<p>Get the <code>href<\/code> of the style sheet. This is a relative path in IE; a complete URL in all\n\tother browsers.<\/p>\n\t<ul>\n\t\t<li>IE allows you to change the <code>href<\/code>.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM href","match":"href","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">selectorText<\/div>\n\t\tThe selector of a rule as a string\n\t\t<br \/><br \/><a href=\"tests\/cssProps.html#selectorText\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes+<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[1].selectorText<\/pre>\n\t<p>Get the selector text of the second rule in the second style sheet in the document.<\/p>\n\t<p>Note that some browsers return UPPER CASE selector texts even when the style sheet contains\n\tlower case selectors. Use <code>selectorText.toLowerCase()<\/code> for all your comparisions.<\/p>\n\t<ul>\n\t\t<li>Opera allows you to set the <code>selectorText<\/code>.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM selectorText","match":"selectorText","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">create<wbr>StyleSheet()<\/wbr><\/div>\n\t\tCreate a style sheet\n\t\t<br \/><br \/><a href=\"tests\/cssMisc.html#createStyleSheet\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.createStyleSheet('extrastyle.css')<\/pre>\n\t<p>Create an extra style (sheet) and append it to the styleSheets[] array.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM createStyleSheet()","match":"createStyleSheet","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getProperty<wbr>Priority()<\/wbr><\/div>\n\t\tGet the property priority (<code>!important<\/code> or not)\n\t\t<br \/><br \/><a href=\"tests\/cssMisc.html#getPropertyPriority\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[1].style.getPropertyPriority('color')<\/pre>\n\t<p>Returns <code>important<\/code> when the style is marked <code>!important<\/code>.<\/p>\n\t<p>(Obviously, IE needs <code>rules<\/code> instead of <code>cssRules<\/code>.)<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM getPropertyPriority()","match":"getPropertyPriority","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getProperty<wbr>Value()<\/wbr><\/div>\n\t\tGet the value of a style property\n\t\t<br \/><br \/><a href=\"tests\/cssMisc.html#getPropertyValue\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.getElementById('test').style.getPropertyValue('color')\ndocument.styleSheets[1].cssRules[1].style.getPropertyValue('color')<\/pre>\n\t<p>Get the color declaration of the style object. This works on all style objects. Of course,\n\treading out <code>style.color<\/code> is much easier.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM getPropertyValue()","match":"getPropertyValue","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">ownerNode<\/div>\n\t\tThe owner of a style sheet\n\t\t<br \/><br \/><a href=\"tests\/cssMisc.html#ownerNode\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].ownerNode<\/pre>\n\t<p>Access the owner node of the style sheet, usually a <code><link><\/code> or a\n\t<code><style><\/code> tag.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM ownerNode","match":"ownerNode","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">parent<wbr>StyleSheet<\/wbr><\/div>\n\t\tThe stylesheet a declaration is part of\n\t\t<br \/><br \/><a href=\"tests\/cssMisc.html#parentStyleSheet\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[1].parentStyleSheet<\/pre>\n\t<p>Access the parent style sheet of the rule, which is once again <code>document.styleSheets[1]<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"CSS DOM parentStyleSheet","match":"parentStyleSheet","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">remove<wbr>Property()<\/wbr><\/div>\n\t\tRemove a style declaration entirely\n\t\t<br \/><br \/><a href=\"tests\/cssMisc.html#removeProperty\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>document.styleSheets[1].cssRules[1].style.removeProperty('color')\ndocument.getElementById('test').style.removeProperty('color')<\/pre>\n\t<p>Remove the color declaration from the second rule of the second style sheet on the page or the\n\telement with ID=\"test\".<\/p>\n\t<ul>\n\t\t<li>Opera refuses to remove the last remaining property of a rule.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM removeProperty()","match":"removeProperty","image":"CSS DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Selector<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b1<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3b4<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>Opera 9.5b<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">set<wbr>Property()<\/wbr><\/div>\n\t\tSet a style property\n\t\t<br \/><br \/><a href=\"tests\/cssMisc.html#setProperty\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"10\"><pre>x.style.setProperty('color','#00cc00',null)\ndocument.styleSheets[1].cssRules[1].style.setProperty('color','#00cc00',null)<\/pre>\n\t<p>Set the color of <code>x<\/code> or the second rule in the second style sheet to green.<\/p>\n\t<p>As usual, the pointless <code>null<\/code> is required. (Default values, anyone?)<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_css.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"CSS DOM setProperty()","match":"setProperty","image":"CSS DOM"}],"tool_tip_format":"html"} |