From 3228c6b70d6daa1bcd261a20ec0e286cb5819700 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 19 Apr 2017 13:15:04 +0900 Subject: [PATCH 1/5] [cssom] Fix some Bikeshed warnings --- cssom/Overview.bs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/cssom/Overview.bs b/cssom/Overview.bs index 97c84fb667e..c1a4e5a6179 100644 --- a/cssom/Overview.bs +++ b/cssom/Overview.bs @@ -313,7 +313,7 @@ finally return s:
  • Let type be the serialization as an identifier of the media type of the media query, - converted to ASCII lowercase. + converted to ASCII lowercase.
  • If the media query does not contain media features append type, to s, @@ -331,7 +331,7 @@ finally return s:
    1. Append a "(" (U+0028), followed by the media feature - name, converted to ASCII lowercase, + name, converted to ASCII lowercase, to s.
    2. If a value is given append a ":" (U+003A), followed @@ -702,7 +702,7 @@ represents a style sheet as defined by the CSS specification. In the CSSOM a
      The literal string "text/css".
      location -
      Specified when created. The absolute URL of the first request of the +
      Specified when created. The absolute-URL string of the first request of the CSS style sheet or null if the CSS style sheet was embedded. Does not change during the lifetime of the CSS style sheet. @@ -1118,7 +1118,7 @@ To fetch a CSS style sheet with parsed URL parsed URL, ref request), follow these steps:
        -
      1. Let origin be document's origin. +
      2. Let origin be document's origin.
      3. Let request be a new request, with the url parsed URL, @@ -1332,7 +1332,7 @@ must be run:
      4. Let referrer be the document's address. -
      5. Let origin be the document's origin. +
      6. Let origin be the document's origin.
      7. Let parsed URL be the return value of invoking the URL parser with the string input URL and the base URL base URL. @@ -1972,7 +1972,7 @@ The getPropertyValue(property)
        1. If property is not a custom property, follow these substeps:
            -
          1. Let property be property converted to ASCII lowercase. +
          2. Let property be property converted to ASCII lowercase.
          3. If property is a shorthand property, then follow these substeps:
            1. Let list be a new empty array. @@ -2000,7 +2000,7 @@ The getPropertyPriority(property)
              1. If property is not a custom property, follow these substeps:
                  -
                1. Let property be property converted to ASCII lowercase. +
                2. Let property be property converted to ASCII lowercase.
                3. If property is a shorthand property, follow these substeps:
                  1. Let list be a new array. @@ -2025,7 +2025,7 @@ The setProperty(property, va a {{NoModificationAllowedError}} exception and terminate these steps.
                  2. If property is not a custom property, follow these substeps:
                      -
                    1. Let property be property converted to ASCII lowercase. +
                    2. Let property be property converted to ASCII lowercase.
                    3. If property is not a case-sensitive match for a supported CSS property, terminate this algorithm.
                  3. If value is the empty string, invoke {{CSSStyleDeclaration/removeProperty()}} @@ -2067,7 +2067,7 @@ steps: a {{NoModificationAllowedError}} exception and terminate these steps.
                  4. If property is not a custom property, follow these substeps:
                      -
                    1. Let property be property converted to ASCII lowercase. +
                    2. Let property be property converted to ASCII lowercase.
                    3. If property is not a case-sensitive match for a supported CSS property, terminate this algorithm.
                  5. If value is the empty string, invoke {{CSSStyleDeclaration/removeProperty()}} @@ -2103,7 +2103,7 @@ these steps: a {{NoModificationAllowedError}} exception and terminate these steps.
                  6. If property is not a custom property, follow these substeps:
                      -
                    1. Let property be property converted to ASCII lowercase. +
                    2. Let property be property converted to ASCII lowercase.
                    3. If property is not a case-sensitive match for a supported CSS property, terminate this algorithm.
                  7. If priority is not the empty string and is not an ASCII case-insensitive match for the string @@ -2133,7 +2133,7 @@ The removeProperty(property)
                  8. If the readonly flag is set, throw a {{NoModificationAllowedError}} exception and terminate these steps.
                  9. If property is not a custom property, - let property be property converted to ASCII lowercase. + let property be property converted to ASCII lowercase.
                  10. Let value be the return value of invoking {{CSSStyleDeclaration/getPropertyValue()}} with property as argument.
                  11. If property is a shorthand property, for each longhand property longhand that property maps to, invoke @@ -2246,7 +2246,7 @@ The CSS property to IDL attribute algorithm for property,
                  12. If c is "-" (U+002D), let uppercase next be set.
                  13. Otherwise, if uppercase next is set, let uppercase next be unset and append c - converted to ASCII uppercase to output. + converted to ASCII uppercase to output.
                  14. Otherwise, append c to output.
                  @@ -2266,7 +2266,7 @@ The IDL attribute to CSS property algorithm for attribute,
                  1. If c is in the range U+0041 to U+005A (ASCII uppercase), append "-" (U+002D) followed by c - converted to ASCII lowercase to output. + converted to ASCII lowercase to output.
                  2. Otherwise, append c to output.
                  @@ -2335,7 +2335,7 @@ depends on the component, as follows:
                  keyword
                  The keyword - converted to ASCII lowercase. + converted to ASCII lowercase.
                  <angle>
                  The <number> component serialized as per <number> followed by the unit in canonical form as defined in its respective specification. @@ -2489,7 +2489,7 @@ depends on the component, as follows: the literal string "s".
                  <uri> -
                  The absolute URL +
                  The absolute-URL string serialized as URL.
                  @@ -2583,7 +2583,7 @@ If the user agent supports HTML, the following IDL applies: [[HTML]] HTMLElement implements ElementCSSInlineStyle; -If the user agent supports SVG, the following IDL applies: [[SVG]] +If the user agent supports SVG, the following IDL applies: [[SVG11]]
                   SVGElement implements ElementCSSInlineStyle;
                  
                  From de105a8b2cdea60ec2c51c1728ea074860a82080 Mon Sep 17 00:00:00 2001
                  From: Simon Sapin 
                  Date: Fri, 21 Apr 2017 12:19:25 +0900
                  Subject: [PATCH 2/5] [cssom] Use USVString for href attribute of Stylesheet
                   and CSSImportRule
                  
                  As resolved by CSS WG on 2017-04-19, because they are URLs.
                  
                  This is consistent with HTML: https://github.com/whatwg/html/pull/1282
                  ---
                   cssom/Overview.bs | 4 ++--
                   1 file changed, 2 insertions(+), 2 deletions(-)
                  
                  diff --git a/cssom/Overview.bs b/cssom/Overview.bs
                  index c1a4e5a6179..aaf1ed61c21 100644
                  --- a/cssom/Overview.bs
                  +++ b/cssom/Overview.bs
                  @@ -809,7 +809,7 @@ The {{StyleSheet}} interface represents an abstract, base style sheet.
                   
                   interface StyleSheet {
                     readonly attribute DOMString type;
                  -  readonly attribute DOMString? href;
                  +  readonly attribute USVString? href;
                     readonly attribute (Element or ProcessingInstruction)? ownerNode;
                     readonly attribute StyleSheet? parentStyleSheet;
                     readonly attribute DOMString? title;
                  @@ -1650,7 +1650,7 @@ The CSSImportRule interface represents an @import at-r
                   
                   
                   interface CSSImportRule : CSSRule {
                  -  readonly attribute DOMString href;
                  +  readonly attribute USVString href;
                     [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
                     [SameObject] readonly attribute CSSStyleSheet styleSheet;
                   };
                  
                  From f23d1193d27dc700b0a66c0e12cf766cef62dbee Mon Sep 17 00:00:00 2001
                  From: Simon Sapin 
                  Date: Fri, 21 Apr 2017 12:28:09 +0900
                  Subject: [PATCH 3/5] [cssom] Add IDL `CSSOMString`, typedef of either
                   USVString or DOMString
                  
                  Implementations can choose one or the other.
                  
                  CSSWG resolution:
                  https://github.com/w3c/csswg-drafts/issues/1217#issuecomment-295053842
                  ---
                   cssom/Overview.bs | 35 +++++++++++++++++++++++++++++++++++
                   1 file changed, 35 insertions(+)
                  
                  diff --git a/cssom/Overview.bs b/cssom/Overview.bs
                  index aaf1ed61c21..9d91431c481 100644
                  --- a/cssom/Overview.bs
                  +++ b/cssom/Overview.bs
                  @@ -256,6 +256,41 @@ the last item. Unless otherwise specified, an empty list is serialized as the
                   empty string.
                   
                   
                  +CSSOMString {#cssomstring-type}
                  +===============================
                  +
                  +Most strings in CSSOM interfaces use the CSSOMString type.
                  +Each implementation chooses to define it as either {{USVString}} or {{DOMString}}:
                  +
                  +
                  +typedef USVString CSSOMString;
                  +
                  + +Or, alternatively: + +
                  +typedef DOMString CSSOMString;
                  +
                  + +
                  + The difference is only observable from web content + when surrogate code units are involved. + {{DOMString}} would preserve them, + whereas {{USVString}} would replace them with U+FFFD REPLACEMENT CHARACTER. + + This choice effectively allows implementations to do this replacement, + but does not require it. + + This enables an implementation to use UTF-8 internally to represent strings in memory. + Since well-formed UTF-8 specifically disallows surrogate code points, + it effectively requires this replacement. + + On the other hand, + implementations that internally represent strings as 16-bit code units + may prefer to avoid the cost of doing this replacement. +
                  + + Media Queries {#media-queries} ============================== From 9e5091066c201974df990562dc3f85394f0dfee0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 21 Apr 2017 14:39:57 +0900 Subject: [PATCH 4/5] [css-color] Remove unused DOMString term from "Ignored Terms". --- css-color/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css-color/Overview.bs b/css-color/Overview.bs index 61657e977a9..ef8f55a63cf 100644 --- a/css-color/Overview.bs +++ b/css-color/Overview.bs @@ -13,7 +13,7 @@ Former Editor: L. David Baron, Mozilla Corporation, dbaron@dbaron.org Abstract: This specification describes CSS <> values and properties for foreground color and group opacity. Repository: w3c/csswg-drafts Inline Github Issues: title -Ignored Terms: stacking context, double, octet, DOMString +Ignored Terms: stacking context, double, octet
                  From b937a928eef82003c0891654c578a8e035c00f91 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 21 Apr 2017 14:42:38 +0900 Subject: [PATCH 5/5] [all] Replace most occurrences DOMString with CSSOMString. CSSWG resolution: https://github.com/w3c/csswg-drafts/issues/1217#issuecomment-295053842 Fix #1217. Each occurrence is one of: * CSS syntax * A name (for example a property name) that also occurs in CSS syntax * `Stylesheet::type`, which is always `text/css`. Not replaced: * `Stylesheet::title`, which is set from the eponymous HTML content attribute of [``](https://html.spec.whatwg.org/multipage/semantics.html#attr-style-title) and [``](https://html.spec.whatwg.org/multipage/semantics.html#attr-link-title) elements. These contant attributes are reflected as `HTMLElement::title` DOM attributes, where they are `DOMString`. --- css-animations-2/Overview.bs | 16 ++++----- css-animations/Overview.bs | 30 ++++++++--------- css-conditional/Overview.bs | 20 +++++------ css-counter-styles/Overview.bs | 48 +++++++++++++-------------- css-font-loading/Overview.bs | 42 +++++++++++------------ css-fonts/Fonts.html | 24 +++++++------- css-fonts/Fonts.src.html | 24 +++++++------- css-fonts/Overview-wip.bs | 22 ++++++------ css-module-bikeshed/Overview.bs | 6 ++-- css-pseudo/Overview.bs | 6 ++-- css-regions/Overview.bs | 14 ++++---- css-regions/region-styling.txt | 2 +- css-transitions-2/Overview.bs | 6 ++-- css-transitions/Overview.bs | 14 ++++---- cssom-view/Overview.bs | 10 +++--- cssom/Overview.bs | 59 +++++++++++++++++---------------- mediaqueries/Overview.bs | 8 ++--- 17 files changed, 176 insertions(+), 175 deletions(-) diff --git a/css-animations-2/Overview.bs b/css-animations-2/Overview.bs index 006f45bb38b..58aae8b8f32 100644 --- a/css-animations-2/Overview.bs +++ b/css-animations-2/Overview.bs @@ -540,7 +540,7 @@ the {{AnimationEvent}}.
                   interface CSSAnimation : Animation {
                  -  readonly attribute DOMString animationName;
                  +  readonly attribute CSSOMString animationName;
                   };
                   
                  @@ -559,13 +559,13 @@ Perhaps something like the following:
                   [Constructor (Animatable? target,
                  -              DOMString animationName,
                  +              CSSOMString animationName,
                                 optional (unrestricted double or KeyframeEffectOptions) options,
                  -              optional DOMString defaultEasing = "ease"),
                  +              optional CSSOMString defaultEasing = "ease"),
                    Constructor (Animatable? target,
                  -              DOMString animationName,
                  +              CSSOMString animationName,
                                 (unrestricted double or KeyframeEffectOptions) options,
                  -              DOMString defaultEasing,
                  +              CSSOMString defaultEasing,
                                 AnimationTimeline? timeline)]
                   partial interface CSSAnimation { };
                   
                  @@ -580,10 +580,10 @@ updating the set of keyframes returned by Something like,
                  -[Constructor (DOMString keyframesName, DOMString defaultEasing)]
                  +[Constructor (CSSOMString keyframesName, CSSOMString defaultEasing)]
                   interface CSSKeyframeEffectReadOnly : KeyframeEffectReadOnly {
                  -  readonly attribute DOMString keyframesName;
                  -  readonly attribute DOMString defaultEasing;
                  +  readonly attribute CSSOMString keyframesName;
                  +  readonly attribute CSSOMString defaultEasing;
                   };
                   
                  diff --git a/css-animations/Overview.bs b/css-animations/Overview.bs index 13a68bb7ad3..154e5936f96 100644 --- a/css-animations/Overview.bs +++ b/css-animations/Overview.bs @@ -909,16 +909,16 @@ The AnimationEvent Interface IDL Definition
                  -		[Constructor(DOMString type, optional AnimationEventInit animationEventInitDict)]
                  +		[Constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict)]
                   		interface AnimationEvent : Event {
                  -		  readonly attribute DOMString animationName;
                  +		  readonly attribute CSSOMString animationName;
                   		  readonly attribute float elapsedTime;
                  -		  readonly attribute DOMString pseudoElement;
                  +		  readonly attribute CSSOMString pseudoElement;
                   		};
                   		dictionary AnimationEventInit : EventInit {
                  -		  DOMString animationName = "";
                  +		  CSSOMString animationName = "";
                   		  float elapsedTime = 0.0;
                  -		  DOMString pseudoElement = "";
                  +		  CSSOMString pseudoElement = "";
                   		};
                   	
                  @@ -926,7 +926,7 @@ IDL Definition Attributes
                  -
                  animationName, of type DOMString, readonly +
                  animationName, of type CSSOMString, readonly
                  The value of the 'animation-name' property of the animation that fired the event.
                  elapsedTime, of type float, readonly @@ -934,7 +934,7 @@ Attributes The amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. The precise calculation for of this member is defined along with each event type. -
                  pseudoElement, of type DOMString, readonly +
                  pseudoElement, of type CSSOMString, readonly
                  The name (beginning with two colons) of the CSS pseudo-element on which the animation runs (in which case the target of the event is that pseudo-element's corresponding @@ -1091,7 +1091,7 @@ IDL Definition
                   	interface CSSKeyframeRule : CSSRule {
                  -    attribute DOMString keyText;
                  +    attribute CSSOMString keyText;
                       [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
                   	};
                   	
                  @@ -1143,12 +1143,12 @@ IDL Definition
                   	interface CSSKeyframesRule : CSSRule {
                  -	           attribute DOMString   name;
                  +	           attribute CSSOMString   name;
                   	  readonly attribute CSSRuleList cssRules;
                   
                  -	  void            appendRule(DOMString rule);
                  -	  void            deleteRule(DOMString select);
                  -	  CSSKeyframeRule? findRule(DOMString select);
                  +	  void            appendRule(CSSOMString rule);
                  +	  void            deleteRule(CSSOMString select);
                  +	  CSSKeyframeRule? findRule(CSSOMString select);
                   	};
                   	
                  @@ -1181,7 +1181,7 @@ The appendRule method
                  -
                  rule of type DOMString +
                  rule of type CSSOMString
                  The rule to be appended, expressed in the same syntax as one entry in the ''@keyframes'' rule. A valid rule is always appended e.g. even if its key(s) already @@ -1203,7 +1203,7 @@ The deleteRule method
                  -
                  select of type DOMString +
                  select of type CSSOMString
                  The keyframe selector of the rule to be deleted: a comma-separated list of percentage values between 0% and 100% or the keywords ''from'' or ''to'' which resolve to 0% and 100%, respectively. @@ -1225,7 +1225,7 @@ The findRule method Parameters:
                  -
                  select of type DOMString +
                  select of type CSSOMString
                  The keyframe selector of the rule to be deleted: a comma-separated list of percentage values between 0% and 100% or the keywords ''from'' or ''to'' which resolve to 0% and 100%, respectively. diff --git a/css-conditional/Overview.bs b/css-conditional/Overview.bs index 4913fcf1029..3d6b300e77d 100644 --- a/css-conditional/Overview.bs +++ b/css-conditional/Overview.bs @@ -834,7 +834,7 @@ The CSSGroupingRule interface
                   interface CSSGroupingRule : CSSRule {
                       readonly attribute CSSRuleList cssRules;
                  -    unsigned long insertRule (DOMString rule, unsigned long index);
                  +    unsigned long insertRule (CSSOMString rule, unsigned long index);
                       void deleteRule (unsigned long index);
                   };
                   
                  @@ -846,7 +846,7 @@ interface CSSGroupingRule : CSSRule {
                  -
                  insertRule(DOMString rule, unsigned long index), returns +
                  insertRule(CSSOMString rule, unsigned long index), returns unsigned long
                  The insertRule operation must @@ -890,13 +890,13 @@ all the “conditional” at-rules,
                   interface CSSConditionRule : CSSGroupingRule {
                  -    attribute DOMString conditionText;
                  +    attribute CSSOMString conditionText;
                   };
                   
                  -
                  conditionText of type DOMString +
                  conditionText of type CSSOMString

                  The conditionText attribute represents the condition of the rule. @@ -940,7 +940,7 @@ interface CSSMediaRule : CSSConditionRule {

                  The media attribute must return a MediaList object for the list of media queries specified with the ''@media'' rule. -
                  conditionText of type DOMString (CSSMediaRule-specific definition for attribute on CSSConditionRule) +
                  conditionText of type CSSOMString (CSSMediaRule-specific definition for attribute on CSSConditionRule)
                  The conditionText attribute (defined on the CSSConditionRule parent rule), on getting, must return the value of media.mediaText on the rule. @@ -960,7 +960,7 @@ interface CSSSupportsRule : CSSConditionRule {
                  -
                  conditionText of type DOMString (CSSSupportsRule-specific definition for attribute on CSSConditionRule) +
                  conditionText of type CSSOMString (CSSSupportsRule-specific definition for attribute on CSSConditionRule)
                  The conditionText attribute (defined on the CSSConditionRule parent rule), on getting, must return the condition that was specified, without any logical simplifications, @@ -998,15 +998,15 @@ The {{CSS}} interface holds useful CSS-related functions that do not belong else
                   partial interface CSS {
                  -  static boolean supports(DOMString property, DOMString value);
                  -  static boolean supports(DOMString conditionText);
                  +  static boolean supports(CSSOMString property, CSSOMString value);
                  +  static boolean supports(CSSOMString conditionText);
                   };
                   
                  -
                  supports(DOMString property, DOMString value), +
                  supports(CSSOMString property, CSSOMString value), returns boolean -
                  supports(DOMString conditionText), +
                  supports(CSSOMString conditionText), returns boolean
                  When the supports() method is invoked with two arguments property and value, diff --git a/css-counter-styles/Overview.bs b/css-counter-styles/Overview.bs index fbe5090db25..5eacbd5ab38 100644 --- a/css-counter-styles/Overview.bs +++ b/css-counter-styles/Overview.bs @@ -2480,24 +2480,24 @@ The CSSCounterStyleRule interface
                   	interface CSSCounterStyleRule : CSSRule {
                  -	  attribute DOMString name;
                  -	  attribute DOMString system;
                  -	  attribute DOMString symbols;
                  -	  attribute DOMString additiveSymbols;
                  -	  attribute DOMString negative;
                  -	  attribute DOMString prefix;
                  -	  attribute DOMString suffix;
                  -	  attribute DOMString range;
                  -	  attribute DOMString pad;
                  -	  attribute DOMString speakAs;
                  -	  attribute DOMString fallback;
                  +	  attribute CSSOMString name;
                  +	  attribute CSSOMString system;
                  +	  attribute CSSOMString symbols;
                  +	  attribute CSSOMString additiveSymbols;
                  +	  attribute CSSOMString negative;
                  +	  attribute CSSOMString prefix;
                  +	  attribute CSSOMString suffix;
                  +	  attribute CSSOMString range;
                  +	  attribute CSSOMString pad;
                  +	  attribute CSSOMString speakAs;
                  +	  attribute CSSOMString fallback;
                   	};
                   	
                  -
                  name of type DOMString +
                  name of type CSSOMString
                  - The name attribute on getting must return a DOMString object + The name attribute on getting must return a CSSOMString object that contains the serialization of the <> defined for the associated rule. On setting the name attribute, run the following steps: @@ -2517,18 +2517,18 @@ The CSSCounterStyleRule interface
                4. Otherwise, do nothing.
                -
                system of type DOMString -
                symbols of type DOMString -
                additiveSymbols of type DOMString -
                negative of type DOMString -
                prefix of type DOMString -
                suffix of type DOMString -
                range of type DOMString -
                pad of type DOMString -
                speakAs of type DOMString -
                fallback of type DOMString +
                system of type CSSOMString +
                symbols of type CSSOMString +
                additiveSymbols of type CSSOMString +
                negative of type CSSOMString +
                prefix of type CSSOMString +
                suffix of type CSSOMString +
                range of type CSSOMString +
                pad of type CSSOMString +
                speakAs of type CSSOMString +
                fallback of type CSSOMString
                - The remaining attributes on getting must return a DOMString object + The remaining attributes on getting must return a CSSOMString object that contains the serialization of the associated descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute must return an empty string. diff --git a/css-font-loading/Overview.bs b/css-font-loading/Overview.bs index 13e18dd7236..f4ece27aca7 100644 --- a/css-font-loading/Overview.bs +++ b/css-font-loading/Overview.bs @@ -81,27 +81,27 @@ The FontFace Interface typedef (ArrayBuffer or ArrayBufferView) BinaryData; dictionary FontFaceDescriptors { - DOMString style = "normal"; - DOMString weight = "normal"; - DOMString stretch = "normal"; - DOMString unicodeRange = "U+0-10FFFF"; - DOMString variant = "normal"; - DOMString featureSettings = "normal"; + CSSOMString style = "normal"; + CSSOMString weight = "normal"; + CSSOMString stretch = "normal"; + CSSOMString unicodeRange = "U+0-10FFFF"; + CSSOMString variant = "normal"; + CSSOMString featureSettings = "normal"; }; enum FontFaceLoadStatus { "unloaded", "loading", "loaded", "error" }; - [Constructor(DOMString family, (DOMString or BinaryData) source, + [Constructor(CSSOMString family, (CSSOMString or BinaryData) source, optional FontFaceDescriptors descriptors), Exposed=Window,Worker] interface FontFace { - attribute DOMString family; - attribute DOMString style; - attribute DOMString weight; - attribute DOMString stretch; - attribute DOMString unicodeRange; - attribute DOMString variant; - attribute DOMString featureSettings; + attribute CSSOMString family; + attribute CSSOMString style; + attribute CSSOMString weight; + attribute CSSOMString stretch; + attribute CSSOMString unicodeRange; + attribute CSSOMString variant; + attribute CSSOMString featureSettings; readonly attribute FontFaceLoadStatus status; @@ -206,8 +206,8 @@ The Constructor When the FontFace( - DOMString family, - (DOMString or {{/BinaryData}}) source, + CSSOMString family, + (CSSOMString or {{/BinaryData}}) source, {{/FontFaceDescriptors}} descriptors ) @@ -221,7 +221,7 @@ The Constructor Parse the {{family!!argument}} argument, and the members of the {{descriptors!!argument}} argument, according to the grammars of the corresponding descriptors of the CSS ''@font-face'' rule. - If the {{source!!argument}} argument is a {{DOMString}}, + If the {{source!!argument}} argument is a {{CSSOMString}}, parse it according to the grammar of the CSS ''@font-face/src'' descriptor of the ''@font-face'' rule. If any of them fail to parse correctly, reject font face's {{[[FontStatusPromise]]}} with a DOMException named "SyntaxError", @@ -251,7 +251,7 @@ The Constructor otherwise, complete the rest of these steps asynchronously. - 2. If the {{source!!argument}} argument was a {{DOMString}}, + 2. If the {{source!!argument}} argument was a {{CSSOMString}}, set font face's internal {{[[Urls]]}} slot to the string. If the {{source}} argument was a {{BinaryData}}, @@ -443,7 +443,7 @@ The FontFaceSet Interface sequence<FontFace> fontfaces = []; }; - [Constructor(DOMString type, optional FontFaceSetLoadEventInit eventInitDict), + [Constructor(CSSOMString type, optional FontFaceSetLoadEventInit eventInitDict), Exposed=Window,Worker] interface FontFaceSetLoadEvent : Event { [SameObject] readonly attribute FrozenArray<FontFace> fontfaces; @@ -469,11 +469,11 @@ The FontFaceSet Interface // check and start loads if appropriate // and fulfill promise when all loads complete - Promise<sequence<FontFace>> load(DOMString font, optional DOMString text = " "); + Promise<sequence<FontFace>> load(CSSOMString font, optional CSSOMString text = " "); // return whether all fonts in the fontlist are loaded // (does not initiate load if not available) - boolean check(DOMString font, optional DOMString text = " "); + boolean check(CSSOMString font, optional CSSOMString text = " "); // async notification that font loading and layout operations are done readonly attribute Promise<FontFaceSet> ready; diff --git a/css-fonts/Fonts.html b/css-fonts/Fonts.html index 0ddcddc9d24..d19f9e96505 100644 --- a/css-fonts/Fonts.html +++ b/css-fonts/Fonts.html @@ -5875,14 +5875,14 @@

                8.1 The
                 interface CSSFontFaceRule : CSSRule {
                -  attribute DOMString family;
                -  attribute DOMString src;
                -  attribute DOMString style;
                -  attribute DOMString weight;
                -  attribute DOMString stretch;
                -  attribute DOMString unicodeRange;
                -  attribute DOMString variant;
                -  attribute DOMString featureSettings;
                +  attribute CSSOMString family;
                +  attribute CSSOMString src;
                +  attribute CSSOMString style;
                +  attribute CSSOMString weight;
                +  attribute CSSOMString stretch;
                +  attribute CSSOMString unicodeRange;
                +  attribute CSSOMString variant;
                +  attribute CSSOMString featureSettings;
                 }

                The DOM Level 2 Style specification

                8.2 The
                interface CSSFontFeatureValuesRule : CSSRule {
                -  attribute DOMString fontFamily;
                +  attribute CSSOMString fontFamily;
                   readonly attribute CSSFontFeatureValuesMap annotation;
                   readonly attribute CSSFontFeatureValuesMap ornaments;
                   readonly attribute CSSFontFeatureValuesMap stylistic;
                @@ -5915,14 +5915,14 @@ 

                8.2 The

                -
                fontFamily of type DOMString +
                fontFamily of type CSSOMString
                The list of one or more font families for which a given set of feature values is defined. diff --git a/css-fonts/Fonts.src.html b/css-fonts/Fonts.src.html index 4d4746d3386..df19bb022ee 100644 --- a/css-fonts/Fonts.src.html +++ b/css-fonts/Fonts.src.html @@ -4469,14 +4469,14 @@

                The CSSFontFaceRule interface

                 interface CSSFontFaceRule : CSSRule {
                -  attribute DOMString family;
                -  attribute DOMString src;
                -  attribute DOMString style;
                -  attribute DOMString weight;
                -  attribute DOMString stretch;
                -  attribute DOMString unicodeRange;
                -  attribute DOMString variant;
                -  attribute DOMString featureSettings;
                +  attribute CSSOMString family;
                +  attribute CSSOMString src;
                +  attribute CSSOMString style;
                +  attribute CSSOMString weight;
                +  attribute CSSOMString stretch;
                +  attribute CSSOMString unicodeRange;
                +  attribute CSSOMString variant;
                +  attribute CSSOMString featureSettings;
                 }

                The DOM Level 2 Style specification [[DOM-LEVEL-2-STYLE]] defined a different variant of this rule. This definition supercedes that one.

                @@ -4492,7 +4492,7 @@

                The CSSFontFeatureValuesRule interfac

                The CSSFontFeatureValuesRule interface represents a @font-feature-values rule.

                interface CSSFontFeatureValuesRule : CSSRule {
                -  attribute DOMString fontFamily;
                +  attribute CSSOMString fontFamily;
                   readonly attribute CSSFontFeatureValuesMap annotation;
                   readonly attribute CSSFontFeatureValuesMap ornaments;
                   readonly attribute CSSFontFeatureValuesMap stylistic;
                @@ -4501,14 +4501,14 @@ 

                The CSSFontFeatureValuesRule interfac readonly attribute CSSFontFeatureValuesMap styleset; } -[MapClass(DOMString, sequence<unsigned long>)] +[MapClass(CSSOMString, sequence<unsigned long>)] interface CSSFontFeatureValuesMap { - void set(DOMString featureValueName, + void set(CSSOMString featureValueName, (unsigned long or sequence<unsigned long>) values); }

                -
                fontFamily of type DOMString +
                fontFamily of type CSSOMString
                The list of one or more font families for which a given set of feature values is defined.
                value maps of type CSSFontFeatureValuesMap, readonly
                Maps of feature values associated with feature value names for a given 'font-variant-alternates' value type
                diff --git a/css-fonts/Overview-wip.bs b/css-fonts/Overview-wip.bs index 7db530dc2e1..35905f66ca1 100644 --- a/css-fonts/Overview-wip.bs +++ b/css-fonts/Overview-wip.bs @@ -3688,14 +3688,14 @@ The CSSFontFaceRule interface represents a ''@font-face'' r
                 interface CSSFontFaceRule : CSSRule {
                -	attribute DOMString family;
                -	attribute DOMString src;
                -	attribute DOMString style;
                -	attribute DOMString weight;
                -	attribute DOMString stretch;
                -	attribute DOMString unicodeRange;
                -	attribute DOMString variant;
                -	attribute DOMString featureSettings;
                +	attribute CSSOMString family;
                +	attribute CSSOMString src;
                +	attribute CSSOMString style;
                +	attribute CSSOMString weight;
                +	attribute CSSOMString stretch;
                +	attribute CSSOMString unicodeRange;
                +	attribute CSSOMString variant;
                +	attribute CSSOMString featureSettings;
                 };
                 
                @@ -3715,7 +3715,7 @@ The CSSFontFeatureValuesRule interface represents a ''@fon
                 interface CSSFontFeatureValuesRule : CSSRule {
                -	attribute DOMString fontFamily;
                +	attribute CSSOMString fontFamily;
                 	readonly attribute CSSFontFeatureValuesMap annotation;
                 	readonly attribute CSSFontFeatureValuesMap ornaments;
                 	readonly attribute CSSFontFeatureValuesMap stylistic;
                @@ -3724,9 +3724,9 @@ interface CSSFontFeatureValuesRule : CSSRule {
                 	readonly attribute CSSFontFeatureValuesMap styleset;
                 };
                 
                -[MapClass(DOMString, sequence<unsigned long>)]
                +[MapClass(CSSOMString, sequence<unsigned long>)]
                 interface CSSFontFeatureValuesMap {
                -	void set(DOMString featureValueName,
                +	void set(CSSOMString featureValueName,
                 	         (unsigned long or sequence<unsigned long>) values);
                 };
                 
                diff --git a/css-module-bikeshed/Overview.bs b/css-module-bikeshed/Overview.bs index c6ea642a801..7a8d834ff0e 100644 --- a/css-module-bikeshed/Overview.bs +++ b/css-module-bikeshed/Overview.bs @@ -165,14 +165,14 @@ Internal display model: the 'foo' property {#the-foo-property}
                 		/* Write WebIDL in a <pre class="idl"> as plain text. */
                 		interface Foo {
                -			readonly attribute DOMString bar;
                -			boolean baz(FooDict Arg1, (DOMString or Foo) Arg2);
                +			readonly attribute CSSOMString bar;
                +			boolean baz(FooDict Arg1, (CSSOMString or Foo) Arg2);
                 		};
                 
                 		dictionary FooDict {
                 			sequence<Foo> foos;
                 			boolean bar;
                -			DOMString baz = "qux";
                +			CSSOMString baz = "qux";
                 		};
                 	
                diff --git a/css-pseudo/Overview.bs b/css-pseudo/Overview.bs index ab5ac2fceeb..65ff0296f47 100644 --- a/css-pseudo/Overview.bs +++ b/css-pseudo/Overview.bs @@ -813,7 +813,7 @@ Interface CSSPseudoElement

                     interface CSSPseudoElement {
                -        readonly attribute DOMString type;
                +        readonly attribute CSSOMString type;
                         readonly attribute CSSStyleDeclaration style;
                     };
                 
                @@ -861,7 +861,7 @@ Interface CSSPseudoElementList

                interface CSSPseudoElementList { readonly attribute unsigned long length; CSSPseudoElement item(unsigned long index); - CSSPseudoElement getByType(DOMString type); + CSSPseudoElement getByType(CSSOMString type); // replies null if no pseudo-element exists for // the requested type }; @@ -893,7 +893,7 @@ Addition to the window interface
                     partial interface Window {
                       CSSPseudoElementList getPseudoElements(Element elt,
                -                                           DOMString type);
                +                                           CSSOMString type);
                     };
                   
                diff --git a/css-regions/Overview.bs b/css-regions/Overview.bs index aa62ba2a2cc..a30a3bd8b35 100644 --- a/css-regions/Overview.bs +++ b/css-regions/Overview.bs @@ -1080,11 +1080,11 @@ The NamedFlow interface and is read-only.
                -		[MapClass(DOMString, NamedFlow)] interface NamedFlowMap {
                -			NamedFlow? get(DOMString flowName);
                -			boolean has(DOMString flowName);
                -			NamedFlowMap set(DOMString flowName, NamedFlow flowValue);
                -			boolean delete(DOMString flowName);
                +		[MapClass(CSSOMString, NamedFlow)] interface NamedFlowMap {
                +			NamedFlow? get(CSSOMString flowName);
                +			boolean has(CSSOMString flowName);
                +			NamedFlowMap set(CSSOMString flowName, NamedFlow flowValue);
                +			boolean delete(CSSOMString flowName);
                 		};
                 	
                @@ -1127,7 +1127,7 @@ The NamedFlow interface
                 		interface NamedFlow : EventTarget {
                -			readonly attribute DOMString name;
                +			readonly attribute CSSOMString name;
                 			readonly attribute boolean overset;
                 			sequence<Region> getRegions();
                 			readonly attribute short firstEmptyRegionIndex;
                @@ -1226,7 +1226,7 @@ The Region interface
                 	
                 		[NoInterfaceObject]
                 		interface Region {
                -			readonly attribute DOMString regionOverset;
                +			readonly attribute CSSOMString regionOverset;
                 			sequence<Range>? getRegionFlowRanges();
                 		};
                 
                diff --git a/css-regions/region-styling.txt b/css-regions/region-styling.txt
                index bc7a627e56f..ec661049706 100644
                --- a/css-regions/region-styling.txt
                +++ b/css-regions/region-styling.txt
                @@ -197,7 +197,7 @@ Markup cut from the draft
                 Removed from the Region interface
                 
                   CSSStyleDeclaration getComputedRegionStyle(Element elt);
                -  CSSStyleDeclaration getComputedRegionStyle(Element elt, DOMString pseudoElt);
                +  CSSStyleDeclaration getComputedRegionStyle(Element elt, CSSOMString pseudoElt);
                 
                 
                         

                The getComputedRegionStyle diff --git a/css-transitions-2/Overview.bs b/css-transitions-2/Overview.bs index 6caf12bccc0..7ff696e2cfb 100644 --- a/css-transitions-2/Overview.bs +++ b/css-transitions-2/Overview.bs @@ -341,7 +341,7 @@ the {{TransitionEvent}}.

                 interface CSSTransition : Animation {
                -  readonly attribute DOMString transitionProperty;
                +  readonly attribute CSSOMString transitionProperty;
                 };
                 
                @@ -354,11 +354,11 @@ This interface needs a constructor. Perhaps something like the following,
                 [Constructor (Animatable? target,
                -              DOMString transitionProperty,
                +              CSSOMString transitionProperty,
                               any transitionValue,
                               optional (unrestricted double or KeyframeEffectOptions) options),
                  Constructor (Animatable? target,
                -              DOMString transitionProperty,
                +              CSSOMString transitionProperty,
                               any transitionValue,
                               (unrestricted double or KeyframeEffectOptions) options,
                               AnimationTimeline? timeline)]
                diff --git a/css-transitions/Overview.bs b/css-transitions/Overview.bs
                index 3e014c13ddf..f702dec6df1 100644
                --- a/css-transitions/Overview.bs
                +++ b/css-transitions/Overview.bs
                @@ -1096,30 +1096,30 @@ associated with transitions.
                 ### IDL Definition ### {#interface-transitionevent-idl}
                 
                 
                -  [Constructor(DOMString type, optional TransitionEventInit transitionEventInitDict)]
                +  [Constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict)]
                   interface TransitionEvent : Event {
                -    readonly attribute DOMString propertyName;
                +    readonly attribute CSSOMString propertyName;
                     readonly attribute float elapsedTime;
                -    readonly attribute DOMString pseudoElement;
                +    readonly attribute CSSOMString pseudoElement;
                   };
                 
                   dictionary TransitionEventInit : EventInit {
                -    DOMString propertyName = "";
                +    CSSOMString propertyName = "";
                     float elapsedTime = 0.0;
                -    DOMString pseudoElement = "";
                +    CSSOMString pseudoElement = "";
                   };
                 
                ### Attributes ### {#interface-transitionevent-attributes} -: propertyName of type DOMString, readonly +: propertyName of type CSSOMString, readonly :: The name of the CSS property associated with the transition.

                Note: This is always the name of a longhand property. See 'transition-property' for how specifying shorthand properties causes transitions on longhands.

                : elapsedTime of type float, readonly :: The amount of time the transition has been running, in seconds, when this event fired not including any time spent in the delay phase. The precise calculation for of this member is defined along with each event type. -: pseudoElement of type DOMString, readonly +: pseudoElement of type CSSOMString, readonly :: The name (beginning with two colons) of the CSS pseudo-element on which the transition occurred (in which case the target of the event is that diff --git a/cssom-view/Overview.bs b/cssom-view/Overview.bs index f68882d5ac5..0ec0ef761ac 100644 --- a/cssom-view/Overview.bs +++ b/cssom-view/Overview.bs @@ -443,7 +443,7 @@ dictionary ScrollToOptions : ScrollOptions { }; partial interface Window { - [NewObject] MediaQueryList matchMedia(DOMString query); + [NewObject] MediaQueryList matchMedia(CSSOMString query); [SameObject, Replaceable] readonly attribute Screen screen; // browsing context @@ -782,7 +782,7 @@ When asked to evaluate media queries and report changes for a {{Docum
                 interface MediaQueryList : EventTarget {
                -  readonly attribute DOMString media;
                +  readonly attribute CSSOMString media;
                   readonly attribute boolean matches;
                   void addListener(EventListener? listener);
                   void removeListener(EventListener? listener);
                @@ -836,14 +836,14 @@ as event handler IDL attributes, by all objects implementing the {{MediaQ
                 
                 
                 
                -[Constructor(DOMString type, optional MediaQueryListEventInit eventInitDict)]
                +[Constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict)]
                 interface MediaQueryListEvent : Event {
                -  readonly attribute DOMString media;
                +  readonly attribute CSSOMString media;
                   readonly attribute boolean matches;
                 };
                 
                 dictionary MediaQueryListEventInit : EventInit {
                -  DOMString media = "";
                +  CSSOMString media = "";
                   boolean matches = false;
                 };
                 
                diff --git a/cssom/Overview.bs b/cssom/Overview.bs index 9d91431c481..531f90f4463 100644 --- a/cssom/Overview.bs +++ b/cssom/Overview.bs @@ -281,13 +281,14 @@ typedef DOMString CSSOMString; This choice effectively allows implementations to do this replacement, but does not require it. - This enables an implementation to use UTF-8 internally to represent strings in memory. + Using {{USVString}} enables an implementation + to use UTF-8 internally to represent strings in memory. Since well-formed UTF-8 specifically disallows surrogate code points, it effectively requires this replacement. On the other hand, implementations that internally represent strings as 16-bit code units - may prefer to avoid the cost of doing this replacement. + might prefer to avoid the cost of doing this replacement. @@ -489,11 +490,11 @@ An object that implements the MediaList interface has an associated
                 [LegacyArrayClass]
                 interface MediaList {
                -  [TreatNullAs=EmptyString] stringifier attribute DOMString mediaText;
                +  [TreatNullAs=EmptyString] stringifier attribute CSSOMString mediaText;
                   readonly attribute unsigned long length;
                -  getter DOMString? item(unsigned long index);
                -  void appendMedium(DOMString medium);
                -  void deleteMedium(DOMString medium);
                +  getter CSSOMString? item(unsigned long index);
                +  void appendMedium(CSSOMString medium);
                +  void deleteMedium(CSSOMString medium);
                 };
                 
                @@ -843,7 +844,7 @@ The {{StyleSheet}} interface represents an abstract, base style sheet.
                 interface StyleSheet {
                -  readonly attribute DOMString type;
                +  readonly attribute CSSOMString type;
                   readonly attribute USVString? href;
                   readonly attribute (Element or ProcessingInstruction)? ownerNode;
                   readonly attribute StyleSheet? parentStyleSheet;
                @@ -882,7 +883,7 @@ The {{CSSStyleSheet}} interface represents a CSS style sheet.
                 interface CSSStyleSheet : StyleSheet {
                   readonly attribute CSSRule? ownerRule;
                   [SameObject] readonly attribute CSSRuleList cssRules;
                -  unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
                +  unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
                   void deleteRule(unsigned long index);
                 };
                 
                @@ -1591,7 +1592,7 @@ interface CSSRule { const unsigned short MARGIN_RULE = 9; const unsigned short NAMESPACE_RULE = 10; readonly attribute unsigned short type; - attribute DOMString cssText; + attribute CSSOMString cssText; readonly attribute CSSRule? parentRule; readonly attribute CSSStyleSheet? parentStyleSheet; }; @@ -1647,7 +1648,7 @@ The CSSStyleRule interface represents a style rule.
                 interface CSSStyleRule : CSSRule {
                -  attribute DOMString selectorText;
                +  attribute CSSOMString selectorText;
                   [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
                 };
                 
                @@ -1713,7 +1714,7 @@ The CSSGroupingRule interface represents an at-rule that contains o
                 interface CSSGroupingRule : CSSRule {
                   [SameObject] readonly attribute CSSRuleList cssRules;
                -  unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
                +  unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
                   void deleteRule(unsigned long index);
                 };
                 
                @@ -1753,7 +1754,7 @@ Issue: Need to define the rules for
                 interface CSSPageRule : CSSGroupingRule {
                -           attribute DOMString selectorText;
                +           attribute CSSOMString selectorText;
                   [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
                 };
                 
                @@ -1788,7 +1789,7 @@ The CSSMarginRule interface represents a margin at-rule (e.g.
                 interface CSSMarginRule : CSSRule {
                -  readonly attribute DOMString name;
                +  readonly attribute CSSOMString name;
                   [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
                 };
                 
                @@ -1816,8 +1817,8 @@ The CSSNamespaceRule interface represents an @namespace
                 interface CSSNamespaceRule : CSSRule {
                -  readonly attribute DOMString namespaceURI;
                -  readonly attribute DOMString prefix;
                +  readonly attribute CSSOMString namespaceURI;
                +  readonly attribute CSSOMString prefix;
                 };
                 
                @@ -1968,17 +1969,17 @@ underlying state depends upon the source of the CSSStyleDeclaration
                 interface CSSStyleDeclaration {
                -  [CEReactions] attribute DOMString cssText;
                +  [CEReactions] attribute CSSOMString cssText;
                   readonly attribute unsigned long length;
                -  getter DOMString item(unsigned long index);
                -  DOMString getPropertyValue(DOMString property);
                -  DOMString getPropertyPriority(DOMString property);
                -  [CEReactions] void setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
                -  [CEReactions] void setPropertyValue(DOMString property, [TreatNullAs=EmptyString] DOMString value);
                -  [CEReactions] void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
                -  [CEReactions] DOMString removeProperty(DOMString property);
                +  getter CSSOMString item(unsigned long index);
                +  CSSOMString getPropertyValue(CSSOMString property);
                +  CSSOMString getPropertyPriority(CSSOMString property);
                +  [CEReactions] void setProperty(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString value, [TreatNullAs=EmptyString] optional CSSOMString priority = "");
                +  [CEReactions] void setPropertyValue(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString value);
                +  [CEReactions] void setPropertyPriority(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString priority);
                +  [CEReactions] CSSOMString removeProperty(CSSOMString property);
                   readonly attribute CSSRule? parentRule;
                -  [CEReactions, TreatNullAs=EmptyString] attribute DOMString cssFloat;
                +  [CEReactions, TreatNullAs=EmptyString] attribute CSSOMString cssFloat;
                 };
                 
                @@ -2197,7 +2198,7 @@ is obtained by running the CSS property to IDL attribute algorithm for
                 partial interface CSSStyleDeclaration {
                -  [CEReactions, TreatNullAs=EmptyString] attribute DOMString _camel_cased_attribute;
                +  [CEReactions, TreatNullAs=EmptyString] attribute CSSOMString _camel_cased_attribute;
                 };
                 
                @@ -2221,7 +2222,7 @@ algorithm for property, with the lowercase first flag set.
                 partial interface CSSStyleDeclaration {
                -  [CEReactions, TreatNullAs=EmptyString] attribute DOMString _webkit_cased_attribute;
                +  [CEReactions, TreatNullAs=EmptyString] attribute CSSOMString _webkit_cased_attribute;
                 };
                 
                @@ -2246,7 +2247,7 @@ the following partial interface applies where dashed attribute is
                 partial interface CSSStyleDeclaration {
                -  [CEReactions, TreatNullAs=EmptyString] attribute DOMString _dashed_attribute;
                +  [CEReactions, TreatNullAs=EmptyString] attribute CSSOMString _dashed_attribute;
                 };
                 
                @@ -2630,7 +2631,7 @@ Extensions to the {{Window}} Interface {#extensions-to-the-window-interface}
                 partial interface Window {
                -  [NewObject] CSSStyleDeclaration getComputedStyle(Element elt, optional DOMString? pseudoElt);
                +  [NewObject] CSSStyleDeclaration getComputedStyle(Element elt, optional CSSOMString? pseudoElt);
                 };
                 
                @@ -2687,7 +2688,7 @@ The CSS interface holds useful CSS-related functions that do not be
                 interface CSS {
                -  static DOMString escape(DOMString ident);
                +  static CSSOMString escape(CSSOMString ident);
                 };
                 
                diff --git a/mediaqueries/Overview.bs b/mediaqueries/Overview.bs index 40a79e4be5f..d320cdea361 100644 --- a/mediaqueries/Overview.bs +++ b/mediaqueries/Overview.bs @@ -17,7 +17,7 @@ Former Editor: Anne van Kesteren, Mozilla, annevk@annevk.nl Abstract: Media Queries allow authors to test and query values or features of the user agent or display device, independent of the document being rendered. They are used in the CSS @media rule to conditionally apply styles to a document, and in various other contexts and languages, such as HTML and Javascript. Abstract: Abstract: Media Queries Level 4 describes the mechanism and syntax of media queries, media types, and media features. It extends and supersedes the features defined in Media Queries Level 3. -Ignored Terms: min-resolution, max-resolution, none, view-mode, mediaText, DOMString +Ignored Terms: min-resolution, max-resolution, none, view-mode, mediaText, CSSOMString Link Defaults: css-break-3 (property) break-inside Link Defaults: css-cascade-3 (at-rule) @import
                @@ -2046,15 +2046,15 @@ CSSOM
                 	interface CSSCustomMediaRule : CSSRule {
                -		attribute DOMString name;
                +		attribute CSSOMString name;
                 		[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
                 	};
                 	
                -
                name, of type DOMString +
                name, of type CSSOMString
                - The name attribute on getting must return a DOMString object + The name attribute on getting must return a CSSOMString object that contains the serialization of the <> defined for the associated rule. On setting the name attribute,