From 3228c6b70d6daa1bcd261a20ec0e286cb5819700 Mon Sep 17 00:00:00 2001
From: Simon Sapin The The DOM Level 2 Style specification The DOM Level 2 Style specification [[DOM-LEVEL-2-STYLE]] defined a different variant of this rule. This definition supercedes that one. The CSSFontFeatureValuesRule interface represents a 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}}.
Note: This is always the name of a longhand property. See 'transition-property' for how specifying shorthand properties causes transitions on longhands.
(" (U+0028), followed by the media feature
- name, converted to ASCII lowercase,
+ name, converted to ASCII lowercase,
to s.
:" (U+003A), followed
@@ -702,7 +702,7 @@ represents a style sheet as defined by the CSS specification. In the CSSOM a
text/css".
-
-
-
-
@@ -2266,7 +2266,7 @@ The IDL attribute to CSS property algorithm for attribute,
-
-
-
-" (U+002D), let uppercase next be set.
@@ -2335,7 +2335,7 @@ depends on the component, as follows:
-" (U+002D) followed by c
- converted to ASCII lowercase to output.
+ converted to ASCII lowercase to output.
@@ -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]]
s".
SVGElement implements ElementCSSInlineStyle;
From de105a8b2cdea60ec2c51c1728ea074860a82080 Mon Sep 17 00:00:00 2001
From: Simon Sapin
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
From b937a928eef82003c0891654c578a8e035c00f91 Mon Sep 17 00:00:00 2001
From: Simon Sapin
+typedef USVString CSSOMString;
+
+
+Or, alternatively:
+
+
+typedef DOMString CSSOMString;
+
+
+
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
-
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
-
deleteRule method
-
findRule method
Parameters:
-
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
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
conditionText attribute represents
the condition of the rule.
@@ -940,7 +940,7 @@ interface CSSMediaRule : CSSConditionRule {
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)
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)
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
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;
};
-
DOMString
+ CSSOMString
DOMString object
+ The name attribute on getting must return a CSSOMString object
that contains the serialization of the <CSSCounterStyleRule interface
DOMString
- DOMString
- DOMString
- DOMString
- DOMString
- DOMString
- DOMString
- DOMString
- DOMString
- DOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
+ CSSOMString
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 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
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;
}
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
-
DOMString
+ CSSOMString
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
CSSFontFeatureValuesRule interfac
@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);
}
-
DOMString
+CSSOMString
CSSFontFeatureValuesMap, readonly
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 CSSPseudoElementListwindow 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);
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.
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
@@ -2046,15 +2046,15 @@ CSSOM
-[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
interface CSSCustomMediaRule : CSSRule {
- attribute DOMString name;
+ attribute CSSOMString name;
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
};