Lines Matching defs:StyleSheet

2  * The StyleSheet component is a module for creating and modifying CSS
70 * Create an instance of StyleSheet to encapsulate a css stylesheet.
72 * <pre><code>var sheet = Y.StyleSheet(..);</pre></code>
74 * <pre><code>var sheet = new Y.StyleSheet(..);</pre></code>
79 * <li>The string name of an existing StyleSheet instance</li>
80 * <li>The unique guid generated for an existing StyleSheet instance</li>
87 * <p>If a string is passed, StyleSheet will first look in its static name
90 * used as a the initial cssText for a new StyleSheet. Otherwise, a new empty
91 * StyleSheet is created, assigned the string value as a name, and registered
98 * @class StyleSheet
101 * name or guid of a StyleSheet, or a string of css text
105 function StyleSheet(seed, name) {
116 if (!(Y.instanceOf(this, StyleSheet))) {
117 return new StyleSheet(seed,name);
134 // Check for the StyleSheet in the static registry
173 // IE stores StyleSheet under the "styleSheet" property
210 StyleSheet.register(Y.stamp(node),this);
214 StyleSheet.register(name,this);
220 * Get the unique stamp for this StyleSheet instance
231 * @return {StyleSheet}
238 * StyleSheet is disabled.
241 * @return {StyleSheet}
247 * Returns false if the StyleSheet is disabled. Otherwise true.
269 * @return {StyleSheet}
286 if (!StyleSheet.isValidSelector(sel)) {
287 Y.log("Invalid selector '"+sel+"' passed to set (ignoring).",'error','StyleSheet');
295 rule.style.cssText = StyleSheet.toCssText(css,rule.style.cssText);
298 css = StyleSheet.toCssText(css);
331 * @return {StyleSheet}
429 Y.log("Worker style collection corrupted. Replacing.", "warn", "StyleSheet");
450 "\" (ignored):\n"+ex.message,'warn','StyleSheet');
457 Y.mix(StyleSheet, {
488 * Registers a StyleSheet instance in the static registry by the given name
491 * @param name {String} the name to assign the StyleSheet in the registry
492 * @param sheet {StyleSheet} The StyleSheet instance
493 * @return {Boolean} false if no name or sheet is not a StyleSheet
498 return !!(name && sheet instanceof StyleSheet &&
549 Y.StyleSheet = StyleSheet;
555 applied to StyleSheet objects on style nodes in the body.
556 * StyleSheet object is created on the style node when the style node is added
562 * Same-domain restrictions prevent modifying StyleSheet objects attached to
564 * Same-domain restrictions prevent reading StyleSheet cssRules/rules
569 * IE names StyleSheet related properties and methods differently (see code)