ie_css.js (6253B)
1 /* 2 * Copyright 2008 The Closure Compiler Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * @fileoverview Definitions for IE's custom CSS properties, as defined here: 19 * http://msdn.microsoft.com/en-us/library/aa768661(VS.85).aspx 20 * 21 * This page is also useful for the IDL definitions: 22 * http://source.winehq.org/source/include/mshtml.idl 23 * 24 * @externs 25 * @author nicksantos@google.com 26 */ 27 28 /** @type {Element} */ 29 StyleSheet.prototype.owningElement; 30 31 /** @type {boolean} */ 32 StyleSheet.prototype.readOnly; 33 34 /** @type {StyleSheetList} */ 35 StyleSheet.prototype.imports; 36 37 /** @type {string} */ 38 StyleSheet.prototype.id; 39 40 /** 41 * @param {string} bstrURL 42 * @param {number} lIndex 43 * @return {number} 44 */ 45 StyleSheet.prototype.addImport; 46 47 /** 48 * @param {string} bstrSelector 49 * @param {string} bstrStyle 50 * @param {number=} opt_iIndex 51 * @return {number} 52 * @see http://msdn.microsoft.com/en-us/library/aa358796%28v=vs.85%29.aspx 53 */ 54 StyleSheet.prototype.addRule; 55 56 /** 57 * @param {number} lIndex 58 */ 59 StyleSheet.prototype.removeImport; 60 61 /** 62 * @param {number} lIndex 63 */ 64 StyleSheet.prototype.removeRule; 65 66 /** @type {string} */ 67 StyleSheet.prototype.cssText; 68 69 /** @type {CSSRuleList} */ 70 StyleSheet.prototype.rules; 71 72 // StyleSheet methods 73 74 /** 75 * @param {string} propName 76 * @return {string} 77 * @see http://msdn.microsoft.com/en-us/library/aa358797(VS.85).aspx 78 */ 79 StyleSheet.prototype.getExpression; 80 81 /** 82 * @param {string} name 83 * @param {string} expression 84 * @return {undefined} 85 * @see http://msdn.microsoft.com/en-us/library/ms531196(VS.85).aspx 86 */ 87 StyleSheet.prototype.setExpression; 88 89 /** 90 * @param {string} expression 91 * @return {undefined} 92 * @see http://msdn.microsoft.com/en-us/library/aa358798(VS.85).aspx 93 */ 94 StyleSheet.prototype.removeExpression; 95 96 // IE-only CSS style names. 97 98 /** @type {string} */ CSSProperties.prototype.backgroundPositionX; 99 100 /** @type {string} */ CSSProperties.prototype.backgroundPositionY; 101 102 /** 103 * @see http://msdn.microsoft.com/en-us/library/ie/ms531081(v=vs.85).aspx 104 * NOTE: Left untyped to avoid conflict with caller. 105 */ 106 CSSProperties.prototype.behavior; 107 108 /** 109 * @type {string} 110 * @see http://msdn.microsoft.com/en-us/library/ms533883.aspx 111 */ 112 CSSProperties.prototype.imeMode; 113 114 /** 115 * @type {string} 116 * @see http://msdn.microsoft.com/en-us/library/ms534176(VS.85).aspx 117 */ 118 CSSProperties.prototype.msInterpolationMode; 119 120 /** @type {string} */ CSSProperties.prototype.overflowX; 121 122 /** @type {string} */ CSSProperties.prototype.overflowY; 123 124 /** @type {number} */ CSSProperties.prototype.pixelWidth; 125 126 /** @type {number} */ CSSProperties.prototype.pixelHeight; 127 128 /** @type {number} */ CSSProperties.prototype.pixelLeft; 129 130 /** @type {number} */ CSSProperties.prototype.pixelTop; 131 132 /** @type {string} */ CSSProperties.prototype.styleFloat; 133 134 /** 135 * @type {string|number} 136 * @see http://msdn.microsoft.com/en-us/library/ms535169(VS.85).aspx 137 */ 138 CSSProperties.prototype.zoom; 139 140 /** 141 * @type {string} 142 * @see http://msdn.microsoft.com/en-us/library/ms535153(VS.85).aspx 143 */ 144 CSSProperties.prototype.writingMode; 145 146 /** 147 * IE-specific extensions. 148 * @see http://blogs.msdn.com/b/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx 149 */ 150 151 /** @type {string} */ 152 CSSProperties.prototype.MsAccelerator; 153 154 /** @type {string} */ 155 CSSProperties.prototype.MsBackgroundPositionX; 156 157 /** @type {string} */ 158 CSSProperties.prototype.MsBackgroundPositionY; 159 160 /** @type {string} */ 161 CSSProperties.prototype.MsBehavior; 162 163 /** @type {string} */ 164 CSSProperties.prototype.MsBlockProgression; 165 166 /** @type {string} */ 167 CSSProperties.prototype.MsFilter; 168 169 /** @type {string} */ 170 CSSProperties.prototype.MsImeMode; 171 172 /** @type {string} */ 173 CSSProperties.prototype.MsLayoutGrid; 174 175 /** @type {string} */ 176 CSSProperties.prototype.MsLayoutGridChar; 177 178 /** @type {string} */ 179 CSSProperties.prototype.MsLayoutGridLine; 180 181 /** @type {string} */ 182 CSSProperties.prototype.MsLayoutGridMode; 183 184 /** @type {string} */ 185 CSSProperties.prototype.MsLayoutGridType; 186 187 /** @type {string} */ 188 CSSProperties.prototype.MsLineBreak; 189 190 /** @type {string} */ 191 CSSProperties.prototype.MsLineGridMode; 192 193 /** @type {string} */ 194 CSSProperties.prototype.MsInterpolationMode; 195 196 /** @type {string} */ 197 CSSProperties.prototype.MsOverflowX; 198 199 /** @type {string} */ 200 CSSProperties.prototype.MsOverflowY; 201 202 /** @type {string} */ 203 CSSProperties.prototype.MsScrollbar3dlightColor; 204 205 /** @type {string} */ 206 CSSProperties.prototype.MsScrollbarArrowColor; 207 208 /** @type {string} */ 209 CSSProperties.prototype.MsScrollbarBaseColor; 210 211 /** @type {string} */ 212 CSSProperties.prototype.MsScrollbarDarkshadowColor; 213 214 /** @type {string} */ 215 CSSProperties.prototype.MsScrollbarFaceColor; 216 217 CSSProperties.prototype.MsScrollbarHighlightColor; 218 219 /** @type {string} */ 220 CSSProperties.prototype.MsScrollbarShadowColor; 221 222 /** @type {string} */ 223 CSSProperties.prototype.MsScrollbarTrackColor; 224 225 /** @type {string} */ 226 CSSProperties.prototype.MsTextAlignLast; 227 228 /** @type {string} */ 229 CSSProperties.prototype.MsTextAutospace; 230 231 /** @type {string} */ 232 CSSProperties.prototype.MsTextJustify; 233 234 /** @type {string} */ 235 CSSProperties.prototype.MsTextKashidaSpace; 236 237 /** @type {string} */ 238 CSSProperties.prototype.MsTextOverflow; 239 240 /** @type {string} */ 241 CSSProperties.prototype.MsTextUnderlinePosition; 242 243 /** @type {string} */ 244 CSSProperties.prototype.MsWordBreak; 245 246 /** @type {string} */ 247 CSSProperties.prototype.MsWordWrap; 248 249 /** @type {string} */ 250 CSSProperties.prototype.MsWritingMode; 251 252 /** @type {string} */ 253 CSSProperties.prototype.MsZoom; 254 255 // See: http://msdn.microsoft.com/en-us/library/windows/apps/Hh702466.aspx 256 257 /** @type {string} */ 258 CSSProperties.prototype.msContentZooming; 259 260 /** @type {string} */ 261 CSSProperties.prototype.msTouchAction; 262 263 /** @type {string} */ 264 CSSProperties.prototype.msTransform; 265 266 /** @type {string} */ 267 CSSProperties.prototype.msTransition;