Skip to content

Commit 5735ca0

Browse files
committed
[css-counter-styles] Make CSSCounterStyleRule mutable.
1 parent a14d899 commit 5735ca0

2 files changed

Lines changed: 74 additions & 26 deletions

File tree

css-counter-styles/Overview.html

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,26 +2351,50 @@ <h3 id="the-csscounterstylerule-interface" data-level="7.2"><span class="secno">
23512351
<p> The <dfn id="csscounterstylerule">CSSCounterStyleRule</dfn> interface represents a <a data-autolink="maybe" class="css" href="#at-counter-style">@counter-style</a> rule.
23522352

23532353
</p><pre class="idl">interface CSSCounterStyleRule : CSSRule {
2354-
readonly attribute DOMString name;
2355-
readonly attribute DOMString system;
2356-
readonly attribute DOMString symbols;
2357-
readonly attribute DOMString additiveSymbols;
2358-
readonly attribute DOMString negative;
2359-
readonly attribute DOMString prefix;
2360-
readonly attribute DOMString suffix;
2361-
readonly attribute DOMString range;
2362-
readonly attribute DOMString width;
2363-
readonly attribute DOMString fallback;
2354+
attribute DOMString name;
2355+
attribute DOMString system;
2356+
attribute DOMString symbols;
2357+
attribute DOMString additiveSymbols;
2358+
attribute DOMString negative;
2359+
attribute DOMString prefix;
2360+
attribute DOMString suffix;
2361+
attribute DOMString range;
2362+
attribute DOMString fill;
2363+
attribute DOMString fallback;
23642364
}
23652365
</pre>
23662366
<dl class="idl-attributes">
2367-
<dt><var>name</var> of type <code>DOMString</code>, readonly
2367+
<dt><var>name</var> of type <code>DOMString</code>
23682368
</dt><dd>
2369-
The <var>name</var> attribute must return a <code>DOMString</code> object that contains the serialization of the <var>&lt;counter-style-name&gt;</var> defined for the associated <a data-autolink="maybe" class="css" href="#at-counter-style">@counter-style</a> block.
2369+
The <var>name</var> attribute on getting must return a <code>DOMString</code> object
2370+
that contains the serialization of the <var>&lt;counter-style-name&gt;</var> defined for the associated rule.
2371+
2372+
<p> On setting the <var>name</var> attribute, run the following steps:
2373+
2374+
</p><ol>
2375+
<li><a data-autolink="link">Parse a component value</a> from the value.
2376+
2377+
</li><li>If the returned value is an &#9001;ident&#9002;,
2378+
replace the associated rule's name with the &#9001;ident&#9002;'s representation.
2379+
2380+
</li><li>Otherwise, do nothing.
2381+
</li></ol>
23702382

23712383
</dd><dt>everything else
23722384
</dt><dd>
2373-
The remaining attributes must return a <code>DOMString</code> object that contains the serialization of the associated descriptor defined for the associated <a data-autolink="maybe" class="css" href="#at-counter-style">@counter-style</a> block.
2385+
The remaining attributes on getting must return a <code>DOMString</code> object
2386+
that contains the serialization of the associated descriptor defined for the associated rule.
2387+
2388+
<p> On setting, run the following steps:
2389+
2390+
</p><ol>
2391+
<li><a data-autolink="link">Parse a list of component values</a> from the value.
2392+
2393+
</li><li>If the returned value is valid according to the given descriptor's grammar,
2394+
set that descriptor to the value.
2395+
2396+
</li><li>Otherwise, do nothing.
2397+
</li></ol>
23742398
</dd></dl>
23752399

23762400
<h2 id="ua-stylesheet" data-level="8"><span class="secno">8 </span>

css-counter-styles/Overview.src.html

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,27 +2319,51 @@ <h3 id="the-csscounterstylerule-interface">
23192319

23202320
<pre class='idl'>
23212321
interface CSSCounterStyleRule : CSSRule {
2322-
readonly attribute DOMString name;
2323-
readonly attribute DOMString system;
2324-
readonly attribute DOMString symbols;
2325-
readonly attribute DOMString additiveSymbols;
2326-
readonly attribute DOMString negative;
2327-
readonly attribute DOMString prefix;
2328-
readonly attribute DOMString suffix;
2329-
readonly attribute DOMString range;
2330-
readonly attribute DOMString width;
2331-
readonly attribute DOMString fallback;
2322+
attribute DOMString name;
2323+
attribute DOMString system;
2324+
attribute DOMString symbols;
2325+
attribute DOMString additiveSymbols;
2326+
attribute DOMString negative;
2327+
attribute DOMString prefix;
2328+
attribute DOMString suffix;
2329+
attribute DOMString range;
2330+
attribute DOMString fill;
2331+
attribute DOMString fallback;
23322332
}
23332333
</pre>
23342334

23352335
<dl class='idl-attributes'>
2336-
<dt><var>name</var> of type <code>DOMString</code>, readonly
2336+
<dt><var>name</var> of type <code>DOMString</code>
23372337
<dd>
2338-
The <var>name</var> attribute must return a <code>DOMString</code> object that contains the serialization of the <var>&lt;counter-style-name></var> defined for the associated ''@counter-style'' block.
2338+
The <var>name</var> attribute on getting must return a <code>DOMString</code> object
2339+
that contains the serialization of the <var>&lt;counter-style-name></var> defined for the associated rule.
2340+
2341+
On setting the <var>name</var> attribute, run the following steps:
2342+
2343+
<ol>
2344+
<li><a>Parse a component value</a> from the value.
2345+
2346+
<li>If the returned value is an 〈ident〉,
2347+
replace the associated rule's name with the 〈ident〉's representation.
2348+
2349+
<li>Otherwise, do nothing.
2350+
</ol>
23392351

23402352
<dt>everything else
23412353
<dd>
2342-
The remaining attributes must return a <code>DOMString</code> object that contains the serialization of the associated descriptor defined for the associated ''@counter-style'' block.
2354+
The remaining attributes on getting must return a <code>DOMString</code> object
2355+
that contains the serialization of the associated descriptor defined for the associated rule.
2356+
2357+
On setting, run the following steps:
2358+
2359+
<ol>
2360+
<li><a>Parse a list of component values</a> from the value.
2361+
2362+
<li>If the returned value is valid according to the given descriptor's grammar,
2363+
set that descriptor to the value.
2364+
2365+
<li>Otherwise, do nothing.
2366+
</ol>
23432367
</dl>
23442368

23452369
<h2 id='ua-stylesheet'>

0 commit comments

Comments
 (0)