tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

cssom.idl (6703B)


      1 // GENERATED PREAMBLE - DO NOT EDIT
      2 // CSSOMString is an implementation-defined type of either DOMString or
      3 // USVString in CSSOM: https://drafts.csswg.org/cssom/#cssomstring-type
      4 // For web-platform-tests, use DOMString because USVString has additional
      5 // requirements in type conversion and could result in spurious failures for
      6 // implementations that use DOMString.
      7 typedef DOMString CSSOMString;
      8 
      9 // GENERATED CONTENT - DO NOT EDIT
     10 // Content was automatically extracted by Reffy into webref
     11 // (https://github.com/w3c/webref)
     12 // Source: CSS Object Model (CSSOM) Module Level 1 (https://drafts.csswg.org/cssom-1/)
     13 
     14 [Exposed=Window]
     15 interface MediaList {
     16  stringifier attribute [LegacyNullToEmptyString] CSSOMString mediaText;
     17  readonly attribute unsigned long length;
     18  getter CSSOMString? item(unsigned long index);
     19  undefined appendMedium(CSSOMString medium);
     20  undefined deleteMedium(CSSOMString medium);
     21 };
     22 
     23 [Exposed=Window]
     24 interface StyleSheet {
     25  readonly attribute CSSOMString type;
     26  readonly attribute USVString? href;
     27  readonly attribute (Element or ProcessingInstruction)? ownerNode;
     28  readonly attribute CSSStyleSheet? parentStyleSheet;
     29  readonly attribute DOMString? title;
     30  [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
     31  attribute boolean disabled;
     32 };
     33 
     34 [Exposed=Window]
     35 interface CSSStyleSheet : StyleSheet {
     36  constructor(optional CSSStyleSheetInit options = {});
     37 
     38  readonly attribute CSSRule? ownerRule;
     39  [SameObject] readonly attribute CSSRuleList cssRules;
     40  unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
     41  undefined deleteRule(unsigned long index);
     42 
     43  Promise<CSSStyleSheet> replace(USVString text);
     44  undefined replaceSync(USVString text);
     45 };
     46 
     47 dictionary CSSStyleSheetInit {
     48  DOMString baseURL = null;
     49  (MediaList or DOMString) media = "";
     50  boolean disabled = false;
     51 };
     52 
     53 partial interface CSSStyleSheet {
     54  [SameObject] readonly attribute CSSRuleList rules;
     55  long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
     56  undefined removeRule(optional unsigned long index = 0);
     57 };
     58 
     59 [Exposed=Window]
     60 interface StyleSheetList {
     61  getter CSSStyleSheet? item(unsigned long index);
     62  readonly attribute unsigned long length;
     63 };
     64 
     65 partial interface mixin DocumentOrShadowRoot {
     66  [SameObject] readonly attribute StyleSheetList styleSheets;
     67  attribute ObservableArray<CSSStyleSheet> adoptedStyleSheets;
     68 };
     69 
     70 interface mixin LinkStyle {
     71  readonly attribute CSSStyleSheet? sheet;
     72 };
     73 
     74 ProcessingInstruction includes LinkStyle;
     75 [Exposed=Window]
     76 interface CSSRuleList {
     77  getter CSSRule? item(unsigned long index);
     78  readonly attribute unsigned long length;
     79 };
     80 
     81 [Exposed=Window]
     82 interface CSSRule {
     83  attribute CSSOMString cssText;
     84  readonly attribute CSSRule? parentRule;
     85  readonly attribute CSSStyleSheet? parentStyleSheet;
     86 
     87  // the following attribute and constants are historical
     88  readonly attribute unsigned short type;
     89  const unsigned short STYLE_RULE = 1;
     90  const unsigned short CHARSET_RULE = 2;
     91  const unsigned short IMPORT_RULE = 3;
     92  const unsigned short MEDIA_RULE = 4;
     93  const unsigned short FONT_FACE_RULE = 5;
     94  const unsigned short PAGE_RULE = 6;
     95  const unsigned short MARGIN_RULE = 9;
     96  const unsigned short NAMESPACE_RULE = 10;
     97 };
     98 
     99 [Exposed=Window]
    100 interface CSSStyleRule : CSSGroupingRule {
    101  attribute CSSOMString selectorText;
    102  [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
    103 };
    104 
    105 [Exposed=Window]
    106 interface CSSImportRule : CSSRule {
    107  readonly attribute USVString href;
    108  [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
    109  [SameObject] readonly attribute CSSStyleSheet? styleSheet;
    110  readonly attribute CSSOMString? layerName;
    111  readonly attribute CSSOMString? supportsText;
    112 };
    113 
    114 [Exposed=Window]
    115 interface CSSGroupingRule : CSSRule {
    116  [SameObject] readonly attribute CSSRuleList cssRules;
    117  unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
    118  undefined deleteRule(unsigned long index);
    119 };
    120 
    121 [Exposed=Window]
    122 interface CSSPageDescriptors : CSSStyleDeclaration {
    123  attribute [LegacyNullToEmptyString] CSSOMString margin;
    124  attribute [LegacyNullToEmptyString] CSSOMString marginTop;
    125  attribute [LegacyNullToEmptyString] CSSOMString marginRight;
    126  attribute [LegacyNullToEmptyString] CSSOMString marginBottom;
    127  attribute [LegacyNullToEmptyString] CSSOMString marginLeft;
    128  attribute [LegacyNullToEmptyString] CSSOMString margin-top;
    129  attribute [LegacyNullToEmptyString] CSSOMString margin-right;
    130  attribute [LegacyNullToEmptyString] CSSOMString margin-bottom;
    131  attribute [LegacyNullToEmptyString] CSSOMString margin-left;
    132  attribute [LegacyNullToEmptyString] CSSOMString size;
    133  attribute [LegacyNullToEmptyString] CSSOMString pageOrientation;
    134  attribute [LegacyNullToEmptyString] CSSOMString page-orientation;
    135  attribute [LegacyNullToEmptyString] CSSOMString marks;
    136  attribute [LegacyNullToEmptyString] CSSOMString bleed;
    137 };
    138 
    139 [Exposed=Window]
    140 interface CSSPageRule : CSSGroupingRule {
    141           attribute CSSOMString selectorText;
    142  [SameObject, PutForwards=cssText] readonly attribute CSSPageDescriptors style;
    143 };
    144 
    145 [Exposed=Window]
    146 interface CSSMarginRule : CSSRule {
    147  readonly attribute CSSOMString name;
    148  [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
    149 };
    150 
    151 [Exposed=Window]
    152 interface CSSNamespaceRule : CSSRule {
    153  readonly attribute CSSOMString namespaceURI;
    154  readonly attribute CSSOMString prefix;
    155 };
    156 
    157 [Exposed=Window]
    158 interface CSSStyleDeclaration {
    159  [CEReactions] attribute CSSOMString cssText;
    160  readonly attribute unsigned long length;
    161  getter CSSOMString item(unsigned long index);
    162  CSSOMString getPropertyValue(CSSOMString property);
    163  CSSOMString getPropertyPriority(CSSOMString property);
    164  [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
    165  [CEReactions] CSSOMString removeProperty(CSSOMString property);
    166  readonly attribute CSSRule? parentRule;
    167 };
    168 
    169 [Exposed=Window]
    170 interface CSSStyleProperties : CSSStyleDeclaration {
    171  [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
    172 };
    173 
    174 interface mixin ElementCSSInlineStyle {
    175  [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
    176 };
    177 
    178 HTMLElement includes ElementCSSInlineStyle;
    179 
    180 SVGElement includes ElementCSSInlineStyle;
    181 
    182 MathMLElement includes ElementCSSInlineStyle;
    183 
    184 partial interface Window {
    185  [NewObject] CSSStyleProperties getComputedStyle(Element elt, optional CSSOMString? pseudoElt);
    186 };
    187 
    188 [Exposed=Window]
    189 namespace CSS {
    190  CSSOMString escape(CSSOMString ident);
    191 };