1
- /** Documentation marked "MDN" is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API and
2
- * available under the Creative Commons Attribution-ShareAlike v2.5 or later.
1
+ /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API
2
+ * and available under the Creative Commons Attribution-ShareAlike v2.5 or later.
3
3
* http://creativecommons.org/licenses/by-sa/2.5/
4
4
*
5
5
* Everything else is under the MIT License http://opensource.org/licenses/MIT
@@ -15,24 +15,18 @@ object CSS extends js.Object {
15
15
16
16
/** The CSS.supports() method returns a boolean value indicating if the browser supports a given CSS feature, or not.
17
17
* Allows to test the support of a pair property-value.
18
- *
19
- * MDN
20
18
*/
21
19
def supports (propertyName : String , value : String ): Boolean = js.native
22
20
23
21
/** The CSS.supports() method returns a boolean value indicating if the browser supports a given CSS feature, or not.
24
22
* Takes one parameter matching the condition of @supports.
25
- *
26
- * MDN
27
23
*/
28
24
def supports (supportCondition : String ): Boolean = js.native
29
25
30
26
}
31
27
32
28
/** A CSSStyleDeclaration is an interface to the declaration block returned by the style property of a cssRule in a
33
29
* stylesheet, when the rule is a CSSStyleRule.
34
- *
35
- * MDN
36
30
*/
37
31
@ js.native
38
32
@ JSGlobal
@@ -247,8 +241,6 @@ class CSSStyleDeclaration extends js.Object {
247
241
}
248
242
249
243
/** An object implementing the CSSStyleSheet interface represents a single CSS style sheet.
250
- *
251
- * MDN
252
244
*/
253
245
@ js.native
254
246
@ JSGlobal
@@ -262,14 +254,10 @@ class CSSStyleSheet extends StyleSheet {
262
254
263
255
/** If this style sheet is imported into the document using an `@import` rule, the ownerRule property will return that
264
256
* CSSImportRule, otherwise it returns null.
265
- *
266
- * MDN
267
257
*/
268
258
var ownerRule : CSSRule = js.native
269
259
270
260
/** Returns a CSSRuleList of the CSS rules in the style sheet.
271
- *
272
- * MDN
273
261
*/
274
262
var cssRules : CSSRuleList = js.native
275
263
var id : String = js.native
@@ -279,16 +267,12 @@ class CSSStyleSheet extends StyleSheet {
279
267
def addPageRule (bstrSelector : String , bstrStyle : String , lIndex : Int = js.native): Int = js.native
280
268
281
269
/** The CSSStyleSheet.insertRule() method inserts a new style rule into the current style sheet.
282
- *
283
- * MDN
284
270
*/
285
271
def insertRule (rule : String , index : Int = js.native): Int = js.native
286
272
287
273
def removeRule (lIndex : Int ): Unit = js.native
288
274
289
275
/** Deletes a rule from the style sheet.
290
- *
291
- * MDN
292
276
*/
293
277
def deleteRule (index : Int = js.native): Unit = js.native
294
278
@@ -299,39 +283,29 @@ class CSSStyleSheet extends StyleSheet {
299
283
300
284
/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1
301
285
* (CSSRule.STYLE_RULE).
302
- *
303
- * MDN
304
286
*/
305
287
@ js.native
306
288
@ JSGlobal
307
289
class CSSStyleRule extends CSSRule {
308
290
309
291
/** Gets/sets the textual representation of the selector for this rule, e.g. "h1,h2".
310
- *
311
- * MDN
312
292
*/
313
293
var selectorText : String = js.native
314
294
var readOnly : Boolean = js.native
315
295
316
296
/** Returns the CSSStyleDeclaration object for the rule.
317
- *
318
- * MDN
319
297
*/
320
298
val style : CSSStyleDeclaration = js.native
321
299
}
322
300
323
301
/** CSSMediaRule is an object representing a single CSS `@media` rule. It implements the CSSConditionRule interface, and
324
302
* therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).
325
- *
326
- * MDN
327
303
*/
328
304
@ js.native
329
305
@ JSGlobal
330
306
class CSSMediaRule extends CSSRule {
331
307
332
308
/** Specifies a MediaList representing the intended destination medium for style information.
333
- *
334
- * MDN
335
309
*/
336
310
var media : MediaList = js.native
337
311
var cssRules : CSSRuleList = js.native
@@ -343,23 +317,17 @@ class CSSMediaRule extends CSSRule {
343
317
344
318
/** The CSSNamespaceRule interface describes an object representing a single CSS `@@namespace` at-rule. It implements
345
319
* the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE).
346
- *
347
- * MDN
348
320
*/
349
321
@ js.native
350
322
@ JSGlobal
351
323
class CSSNamespaceRule extends CSSRule {
352
324
353
325
/** Returns a DOMString containing the text of the URI of the given namespace.
354
- *
355
- * MDN
356
326
*/
357
327
var namespaceURI : String = js.native
358
328
359
329
/** Returns a DOMString with the name of the prefix associated to this namespace. If there is no such prefix, returns
360
330
* null.
361
- *
362
- * MDN
363
331
*/
364
332
var prefix : String = js.native
365
333
}
@@ -374,30 +342,22 @@ class CSSImportRule extends CSSRule {
374
342
375
343
/** An object implementing the CSSRule DOM interface represents a single CSS at-rule. References to a
376
344
* CSSRule-implementing object may be obtained by looking at a CSS style sheet's cssRules list.
377
- *
378
- * MDN
379
345
*/
380
346
@ js.native
381
347
@ JSGlobal
382
348
class CSSRule extends js.Object {
383
349
384
350
/** cssText returns the actual text of the style rule. To be able to set a stylesheet rule dynamically, see Using
385
351
* dynamic styling information.
386
- *
387
- * MDN
388
352
*/
389
353
var cssText : String = js.native
390
354
391
355
/** parentStyleSheet returns the stylesheet object in which the current rule is defined.
392
- *
393
- * MDN
394
356
*/
395
357
var parentStyleSheet : CSSStyleSheet = js.native
396
358
397
359
/** Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an `@media` block, the
398
360
* parent rule would be that CSSMediaRule.
399
- *
400
- * MDN
401
361
*/
402
362
var parentRule : CSSRule = js.native
403
363
var `type` : Int = js.native
@@ -435,31 +395,23 @@ class CSSFontFaceRule extends CSSRule {
435
395
436
396
/** CSSPageRule is an object representing a single CSS `@page` rule. It implements the CSSRule interface with a type
437
397
* value of 6 (CSSRule.PAGE_RULE).
438
- *
439
- * MDN
440
398
*/
441
399
@ js.native
442
400
@ JSGlobal
443
401
class CSSPageRule extends CSSRule {
444
402
var pseudoClass : String = js.native
445
403
446
404
/** Represents the text of the page selector associated with the at-rule.
447
- *
448
- * MDN
449
405
*/
450
406
var selectorText : String = js.native
451
407
var selector : String = js.native
452
408
453
409
/** Returns the declaration block associated with the at-rule.
454
- *
455
- * MDN
456
410
*/
457
411
var style : CSSStyleDeclaration = js.native
458
412
}
459
413
460
414
/** A CSSRuleList is an array-like object containing an ordered collection of CSSRule objects.
461
- *
462
- * MDN
463
415
*/
464
416
@ js.native
465
417
@ JSGlobal
@@ -470,68 +422,50 @@ class CSSRuleList private[this] () extends DOMList[CSSRule] {
470
422
/** The CSSKeyframesRule interface describes an object representing a complete set of keyframes for a CSS animation. It
471
423
* corresponds to the contains of a whole `@@keyframes` at-rule. It implements the CSSRule interface with a type value
472
424
* of 7 (CSSRule.KEYFRAMES_RULE).
473
- *
474
- * MDN
475
425
*/
476
426
@ js.native
477
427
@ JSGlobal
478
428
class CSSKeyframesRule extends CSSRule {
479
429
480
430
/** Represents the name of the animation, used by the animation-name property.
481
- *
482
- * MDN
483
431
*/
484
432
var name : String = js.native
485
433
486
434
/** Returns a CSSRuleList of the CSS rules in the media rule.
487
- *
488
- * MDN
489
435
*/
490
436
var cssRules : CSSRuleList = js.native
491
437
492
438
/** Returns a keyframe rule corresponding to the given key. The key is a DOMString containing an index of the keyframe
493
439
* o be returned, resolving to a number between 0 and 1. If no such keyframe exists, findRule returns null.
494
- *
495
- * MDN
496
440
*/
497
441
def findRule (rule : String ): CSSKeyframeRule = js.native
498
442
499
443
/** Deletes a keyframe rule from the current CSSKeyframesRule. The parameter is the index of the keyframe to be
500
444
* deleted, expressed as a DOMString resolving as a number between 0 and 1.
501
- *
502
- * MDN
503
445
*/
504
446
def deleteRule (rule : String ): Unit = js.native
505
447
506
448
/** Inserts a new keyframe rule into the current CSSKeyframesRule. The parameter is a DOMString containing a keyframe
507
449
* in the same format as an entry of a `@keyframes` at-rule. If it contains more than one keyframe rule, a
508
450
* DOMException with a SYNTAX_ERR is thrown.
509
- *
510
- * MDN
511
451
*/
512
452
def appendRule (rule : String ): Unit = js.native
513
453
}
514
454
515
455
/** The CSSKeyframeRule interface describes an object representing a set of style for a given keyframe. It corresponds
516
456
* to the contains of a single keyframe of a `@@keyframes` at-rule. It implements the CSSRule interface with a type
517
457
* value of 8 (CSSRule.KEYFRAME_RULE).
518
- *
519
- * MDN
520
458
*/
521
459
@ js.native
522
460
@ JSGlobal
523
461
class CSSKeyframeRule extends CSSRule {
524
462
525
463
/** Represents the key of the keyframe, like '10%', '75%'. The from keyword maps to '0%' and the to keyword maps to
526
464
* '100%'.
527
- *
528
- * MDN
529
465
*/
530
466
var keyText : String = js.native
531
467
532
468
/** Returns a CSSStyleDeclaration of the CSS style associated with the keyfrom.
533
- *
534
- * MDN
535
469
*/
536
470
var style : CSSStyleDeclaration = js.native
537
471
}
0 commit comments