Skip to content

Commit 3024ccd

Browse files
nainartabatkins
authored andcommitted
Sanitize the declared and inline StylePropertyMaps (w3c#596)
* Sanitize the declared and inline StylePropertyMaps 1. Replace CSSStyleRule.attributeStyleMap-> CSSStyleRule.styleMap 2. Clarify that the attribueStyleMap on Element is actually on ElementCSSInlineStyle interface Fixes w3c#572 * dfn it to the right interface
1 parent 3a4541b commit 3024ccd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

css-typed-om/Overview.bs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ Declared {{StylePropertyMap}} objects {#declared-stylepropertymap-objects}
447447

448448
<pre class='idl'>
449449
partial interface CSSStyleRule {
450-
[SameObject] readonly attribute StylePropertyMap attributeStyleMap;
450+
[SameObject] readonly attribute StylePropertyMap styleMap;
451451
};
452452
</pre>
453453

454454
<dfn>Declared StylePropertyMap</dfn> objects represent style property-value pairs embedded
455-
in a style rule, and are accessed via the <dfn attribute for=CSSStyleRule>attributeStyleMap</dfn>
455+
in a style rule, and are accessed via the <dfn attribute for=CSSStyleRule>styleMap</dfn>
456456
attribute of {{CSSStyleRule}} objects.
457457

458458
When constructed, the [=StylePropertyMap/map entries=] for [=declared StylePropertyMap=]
@@ -466,14 +466,15 @@ Inline {{StylePropertyMap}} objects {#inline-stylepropertymap-objects}
466466
----------------------------------------------------------------------
467467

468468
<pre class='idl'>
469-
partial interface Element {
469+
partial interface ElementCSSInlineStyle {
470470
[SameObject] readonly attribute StylePropertyMap attributeStyleMap;
471471
};
472472
</pre>
473473

474-
<dfn>Inline StylePropertyMap</dfn> objects represent inline style declarations attached
475-
directly to {{Element}}s. They are accessed via the <dfn attribute for=Element>attributeStyleMap</dfn>
476-
attribute of {{Element}} objects.
474+
<dfn>Inline StylePropertyMap</dfn> objects represent inline style declarations
475+
attached directly to {{Element}}s.
476+
They are accessed via the <dfn attribute for=ElementCSSInlineStyle>attributeStyleMap</dfn> attribute of {{Element}} objects
477+
(via the {{ElementCSSInlineStyle}} mixin interface).
477478

478479
When constructed, the [=StylePropertyMap/map entries=] for [=inline StylePropertyMap=] objects
479480
is initialized to contain an

0 commit comments

Comments
 (0)