Skip to content

Commit 06eb1da

Browse files
committed
[css-counter-styles] Allow 'system' changes, as long as the algorithm doesn't change.
1 parent c8d99e3 commit 06eb1da

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

css-counter-styles/Overview.bs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ The <code>CSSCounterStyleRule</code> interface</h3>
19891989
<pre class='idl'>
19901990
interface CSSCounterStyleRule : CSSRule {
19911991
attribute DOMString name;
1992-
readonly attribute DOMString system;
1992+
attribute DOMString system;
19931993
attribute DOMString symbols;
19941994
attribute DOMString additiveSymbols;
19951995
attribute DOMString negative;
@@ -2042,18 +2042,21 @@ The <code>CSSCounterStyleRule</code> interface</h3>
20422042

20432043
<ol>
20442044
<li>
2045-
If the attribute is <code>readonly</code>,
2046-
do nothing and abort these steps.
2045+
<a>Parse a list of component values</a> from the value.
20472046

20482047
<li>
2049-
<a>Parse a list of component values</a> from the value.
2048+
If the returned value is invalid according to the given descriptor's grammar,
2049+
do nothing and abort these steps.
20502050

20512051
<li>
2052-
If the returned value is valid according to the given descriptor's grammar,
2053-
set that descriptor to the value.
2052+
If the attribute being set is <a idl>system</a>,
2053+
and the new value would change the algorithm used,
2054+
do nothing and abort these steps.
2055+
<span class='note'>It's okay to change an aspect of the algorithm,
2056+
like the <a>first symbol value</a> of a ''fixed'' system.</span>
20542057

20552058
<li>
2056-
Otherwise, do nothing.
2059+
Set the descriptor to the value.
20572060
</ol>
20582061
</dl>
20592062

css-counter-styles/Overview.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ <h3 class="heading settled heading" data-level=9.2 id=the-csscounterstylerule-in
20102010

20112011
<pre class=idl>interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-csscounterstylerule>CSSCounterStyleRule<a class=self-link href=#dom-csscounterstylerule></a></dfn> : <a data-link-type=idl href=http://dev.w3.org/csswg/cssom-1/#cssrule title=cssrule>CSSRule</a> {
20122012
attribute DOMString <dfn class=idl-code data-dfn-for=CSSCounterStyleRule data-dfn-type=attribute data-export="" data-global-name="CSSCounterStyleRule<interface>/name<attribute>" id=dom-csscounterstylerule-name>name<a class=self-link href=#dom-csscounterstylerule-name></a></dfn>;
2013-
readonly attribute DOMString <dfn class=idl-code data-dfn-for=CSSCounterStyleRule data-dfn-type=attribute data-export="" data-global-name="CSSCounterStyleRule<interface>/system<attribute>" id=dom-csscounterstylerule-system>system<a class=self-link href=#dom-csscounterstylerule-system></a></dfn>;
2013+
attribute DOMString <dfn class=idl-code data-dfn-for=CSSCounterStyleRule data-dfn-type=attribute data-export="" data-global-name="CSSCounterStyleRule<interface>/system<attribute>" id=dom-csscounterstylerule-system>system<a class=self-link href=#dom-csscounterstylerule-system></a></dfn>;
20142014
attribute DOMString <dfn class=idl-code data-dfn-for=CSSCounterStyleRule data-dfn-type=attribute data-export="" data-global-name="CSSCounterStyleRule<interface>/symbols<attribute>" id=dom-csscounterstylerule-symbols>symbols<a class=self-link href=#dom-csscounterstylerule-symbols></a></dfn>;
20152015
attribute DOMString <dfn class=idl-code data-dfn-for=CSSCounterStyleRule data-dfn-type=attribute data-export="" data-global-name="CSSCounterStyleRule<interface>/additivesymbols<attribute>" id=dom-csscounterstylerule-additivesymbols>additiveSymbols<a class=self-link href=#dom-csscounterstylerule-additivesymbols></a></dfn>;
20162016
attribute DOMString <dfn class=idl-code data-dfn-for=CSSCounterStyleRule data-dfn-type=attribute data-export="" data-global-name="CSSCounterStyleRule<interface>/negative<attribute>" id=dom-csscounterstylerule-negative>negative<a class=self-link href=#dom-csscounterstylerule-negative></a></dfn>;
@@ -2062,18 +2062,21 @@ <h3 class="heading settled heading" data-level=9.2 id=the-csscounterstylerule-in
20622062

20632063
<ol>
20642064
<li>
2065-
If the attribute is <code>readonly</code>,
2066-
do nothing and abort these steps.
2065+
<a data-link-type=dfn href=http://dev.w3.org/csswg/css-syntax-3/#parse-a-list-of-component-values0 title="parse a list of component values">Parse a list of component values</a> from the value.
20672066

20682067
<li>
2069-
<a data-link-type=dfn href=http://dev.w3.org/csswg/css-syntax-3/#parse-a-list-of-component-values0 title="parse a list of component values">Parse a list of component values</a> from the value.
2068+
If the returned value is invalid according to the given descriptor’s grammar,
2069+
do nothing and abort these steps.
20702070

20712071
<li>
2072-
If the returned value is valid according to the given descriptor’s grammar,
2073-
set that descriptor to the value.
2072+
If the attribute being set is <a data-link-type=idl href=#dom-csscounterstylerule-system title=system>system</a>,
2073+
and the new value would change the algorithm used,
2074+
do nothing and abort these steps.
2075+
<span class=note>It’s okay to change an aspect of the algorithm,
2076+
like the <a data-link-type=dfn href=#first-symbol-value title="first symbol value">first symbol value</a> of a <a class=css data-link-type=maybe href=#valuedef-fixed title=fixed>fixed</a> system.</span>
20742077

20752078
<li>
2076-
Otherwise, do nothing.
2079+
Set the descriptor to the value.
20772080
</ol>
20782081
</dl>
20792082

0 commit comments

Comments
 (0)