10BC0 turn flags into flags rather than booleans · xfq/csswg-drafts@7ace934 · GitHub
Skip to content

Commit 7ace934

Browse files
committed
turn flags into flags rather than booleans
1 parent 5dec268 commit 7ace934

3 files changed

Lines changed: 126 additions & 126 deletions

File tree

cssom/Overview.html

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,12 @@ <h3 id="the-medialist-interface"><span class="secno">4.4 </span>The <code title=
536536

537537
<p>The
538538
<dfn id="dom-medialist-mediatext" title="dom-MediaList-mediaText"><code>mediaText</code></dfn>
539-
attribute, on getting, must return a
539+
attribute must return a
540540
<a href="#serialize-a-media-query-list" title="serialize a media query list">serialization</a> of
541541
the <a href="#collection-of-media-queries">collection of media queries</a>.</p>
542542

543-
<p>On setting the <code title="dom-MediaList-mediaText"><a href="#dom-medialist-mediatext">mediaText</a></code>
544-
attribute these steps must be run:</p>
543+
<p>Setting the <code title="dom-MediaList-mediaText"><a href="#dom-medialist-mediatext">mediaText</a></code>
544+
attribute must run these steps:
545545

546546
<ol>
547547
<li><p>Empty the <a href="#collection-of-media-queries">collection of media queries</a>.</li>
@@ -610,7 +610,7 @@ <h3 id="creating-a-medialist-object"><span class="secno">4.5 </span>Creating a <
610610

611611
<p>To
612612
<dfn id="create-a-medialist-object">create a <code>MediaList</code> object</dfn>
613-
from <var title="">s</var> run these steps:</p>
613+
from a string <var title="">s</var>, run these steps:</p>
614614

615615
<ol>
616616
<li><p>Create a new <code><a href="#medialist">MediaList</a></code> object.</li>
@@ -895,7 +895,7 @@ <h3 id="style-sheet-0"><span class="secno">6.1 </span>Style Sheet</h3>
895895

896896
<dt><dfn id="style-sheet-alternate-flag">style sheet alternate flag</dfn></dt>
897897
<dd>
898-
<p>Either true or false. False by default.</p>
898+
<p>Either set or unset. Unset by default.</p>
899899

900900
<div class="example">
901901
<p>The following <a href="#style-sheet" title="style sheet">style sheets</a> have
@@ -909,10 +909,10 @@ <h3 id="style-sheet-0"><span class="secno">6.1 </span>Style Sheet</h3>
909909

910910
<dt><dfn id="style-sheet-disabled-flag">style sheet disabled flag</dfn></dt>
911911
<dd>
912-
<p>Either true or false. False by default.</p>
912+
<p>Either set or unset. Unset by default.</p>
913913

914-
<p class="note">Even when false it does not necessarily mean that the
915-
<a href="#style-sheet">style sheet</a> is actually rendered.</p>
914+
<p class="note">Even when unset it does not necessarily mean that the
915+
<a href="#style-sheet">style sheet</a> is actually used for rendering.</p>
916916
</dd>
917917

918918

@@ -976,10 +976,13 @@ <h4 id="the-stylesheet-interface"><span class="secno">6.1.1 </span>The <code tit
976976

977977
<p>The
978978
<dfn id="dom-stylesheet-disabled" title="dom-StyleSheet-disabled"><code>disabled</code></dfn>
979-
attribute must, on getting, return the
980-
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a>. On setting, it
981-
must set the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> to
982-
the given value.</p>
979+
attribute must return true if the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a>
980+
is set, or false otherwise.
981+
982+
<p>Setting the <code title="dom-StyleSheet-disabled"><a href="#dom-stylesheet-disabled">disabled</a></code>
983+
attribute must set the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> if the new
984+
value is true, or unset the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a>
985+
otherwise.
983986

984987

985988
<h4 id="the-cssstylesheet-interface"><span class="secno">6.1.2 </span>The <code title="">CSSStyleSheet</code> Interface</h4>
@@ -1065,19 +1068,18 @@ <h3 id="style-sheet-collections"><span class="secno">6.2 </span>Style Sheet Coll
10651068
remainder of these steps deal with the
10661069
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a>.</li>
10671070

1068-
<li><p>If the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> is true terminate
1071+
<li><p>If the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> is set, terminate
10691072
these steps.</li>
10701073

10711074
<li><p>If the <a href="#style-sheet-title">style sheet title</a> is non-empty, the
1072-
<a href="#style-sheet-alternate-flag">style sheet alternate flag</a> is false, and
1075+
<a href="#style-sheet-alternate-flag">style sheet alternate flag</a> is unset, and
10731076
<a href="#preferred-style-sheet-set-name">preferred style sheet set name</a> is the empty string
10741077
<a href="#change-the-preferred-style-sheet-set-name">change the preferred style sheet set name</a> to the
10751078
<a href="#style-sheet-title">style sheet title</a>.</li>
10761079

10771080
<li>
1078-
<p>If any of the following is true set the
1079-
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> to false and terminate these
1080-
steps:</p>
1081+
<p>If any of the following is true unset the
1082+
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> and terminate these steps:
10811083

10821084
<ul>
10831085
<li><p>The <a href="#style-sheet-title">style sheet title</a> is empty.</li>
@@ -1091,13 +1093,13 @@ <h3 id="style-sheet-collections"><span class="secno">6.2 </span>Style Sheet Coll
10911093
</ul>
10921094
</li>
10931095

1094-
<li><p>Set the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> to true.</li>
1096+
<li><p>Set the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a>.
10951097
</ol>
10961098

10971099
<p>A <dfn id="persistent-style-sheet">persistent style sheet</dfn> is a
10981100
<a href="#style-sheet">style sheet</a> from the <a href="#document-style-sheets">document style sheets</a>
10991101
whose <a href="#style-sheet-title">style sheet title</a> is the empty string and whose
1100-
<a href="#style-sheet-alternate-flag">style sheet alternate flag</a> is false.</p>
1102+
<a href="#style-sheet-alternate-flag">style sheet alternate flag</a> is unset.</p>
11011103

11021104
<p>A <dfn id="style-sheet-set">style sheet set</dfn> is an ordered
11031105
collection of one or more <a href="#style-sheet" title="style sheet">style sheets</a>
@@ -1110,22 +1112,21 @@ <h3 id="style-sheet-collections"><span class="secno">6.2 </span>Style Sheet Coll
11101112

11111113
<p>An <dfn id="enabled-style-sheet-set">enabled style sheet set</dfn> is a
11121114
<a href="#style-sheet-set">style sheet set</a> of which each <a href="#style-sheet">style sheet</a> has
1113-
its <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> set to false.</p>
1115+
its <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> unset.</p>
11141116

11151117
<p>To <dfn id="enable-a-style-sheet-set">enable a style sheet set</dfn>
11161118
with name <var title="">name</var>, run these steps:</p>
11171119

11181120
<ol>
1119-
<li><p>If <var title="">name</var> is the empty string set the
1121+
<li><p>If <var title="">name</var> is the empty string, set the
11201122
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> for each <a href="#style-sheet">style sheet</a>
1121-
that is in a <a href="#style-sheet-set">style sheet set</a> to true and terminate these
1122-
steps.</li>
1123+
that is in a <a href="#style-sheet-set">style sheet set</a> and terminate these steps.
11231124

1124-
<li><p>Set the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> for each
1125+
<li><p>Unset the <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> for each
11251126
<a href="#style-sheet">style sheet</a> in a <a href="#style-sheet-set">style sheet set</a> whose
11261127
<a href="#style-sheet-set-name">style sheet set name</a> is a
11271128
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#case-sensitive">case-sensitive</a> match for
1128-
<var title="">name</var> to false and set it to true for all other
1129+
<var title="">name</var> and set it for all other
11291130
<a href="#style-sheet" title="style sheet">style sheets</a> in a
11301131
<a href="#style-sheet-set">style sheet set</a>.</li>
11311132
</ol>
@@ -1150,7 +1151,7 @@ <h3 id="style-sheet-collections"><span class="secno">6.2 </span>Style Sheet Coll
11501151
<dfn id="preferred-style-sheet-set-name">preferred style sheet set name</dfn>
11511152
is a concept to determine which
11521153
<span style="style sheet">style sheets</span> need to have their
1153-
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> set to false. Initially its value
1154+
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> unset. Initially its value
11541155
is the empty string.
11551156

11561157
<p>To
@@ -1250,23 +1251,22 @@ <h4 id="extensions-to-the-document-interface"><span class="secno">6.2.3 </span>E
12501251
<li><p>If there is a single <a href="#enabled-style-sheet-set">enabled style sheet set</a> and no
12511252
other <a href="#document-style-sheets">document style sheets</a> with a non-empty
12521253
<a href="#style-sheet-title">style sheet title</a> have the
1253-
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> set to false return the
1254+
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> unset, return the
12541255
<a href="#style-sheet-set-name">style sheet set name</a> of the
1255-
<a href="#enabled-style-sheet-set">enabled style sheet set</a> and terminate this set of
1256-
steps.</li>
1256+
<a href="#enabled-style-sheet-set">enabled style sheet set</a> and terminate these steps.
12571257

12581258
<li><p>Otherwise, if <a href="#style-sheet" title="style sheet">style sheets</a> from
12591259
different <a href="#style-sheet-set" title="style sheet set">style sheet sets</a> have
1260-
their <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> set to false return
1261-
null and terminate this set of steps.</li>
1260+
their <a href="#style-sheet-disabled-flag">style sheet disabled flag</a> unset, return
1261+
null and terminate these steps.
12621262

12631263
<li>
12641264
<p>Otherwise, return the empty string.</p>
12651265

12661266
<p class="note">At this point either all
12671267
<a href="#style-sheet" title="style sheet">style sheets</a> with a non-empty
12681268
<a href="#style-sheet-title">style sheet title</a> have the
1269-
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> set to true or there are no such
1269+
<a href="#style-sheet-disabled-flag">style sheet disabled flag</a> set, or there are no such
12701270
<a href="#style-sheet" title="style sheet">style sheets</a>.</p>
12711271
</li>
12721272
</ol>
@@ -1576,9 +1576,9 @@ <h4 id="requirements-on-user-agents-implementing-the-xml-stylesheet-processing-i
15761576
<dd><p><var title="">title</var></dd>
15771577

15781578
<dt><a href="#style-sheet-alternate-flag">style sheet alternate flag</a></dt>
1579-
<dd><p>True if the <code title="">alternate</code> <a class="external" href="http://www.w3.org/TR/xml-stylesheet/#dt-pseudo-attribute">pseudo-attribute</a>
1579+
<dd><p>Set if the <code title="">alternate</code> <a class="external" href="http://www.w3.org/TR/xml-stylesheet/#dt-pseudo-attribute">pseudo-attribute</a>
15801580
value is a <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#case-sensitive">case-sensitive</a> match for
1581-
"<code>yes</code>", and false otherwise.</dd>
1581+
"<code>yes</code>", or unset otherwise.
15821582
</dl>
15831583
</li>
15841584
</ol>
@@ -1650,10 +1650,10 @@ <h4 id="requirements-on-user-agents-implementing-the-http-link-header"><span cla
16501650
<dd><p><var title="">title</var></dd>
16511651

16521652
<dt><a href="#style-sheet-alternate-flag">style sheet alternate flag</a></dt>
1653-
<dd><p>True if one of the specified link relation type for this HTTP
1653+
<dd><p>Set if one of the specified link relation type for this HTTP
16541654
<code title="http-link">Link</code> header is an
16551655
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#ascii-case-insensitive">ASCII case-insensitive</a> match for
1656-
"<code title="">alternate</code>". Otherwise, false.</dd>
1656+
"<code title="">alternate</code>", or false otherwise.
16571657
</dl>
16581658
</li>
16591659
</ol>
@@ -2058,8 +2058,8 @@ <h3 id="css-declaration-blocks"><span class="secno">6.5 </span>CSS Declaration B
20582058

20592059
<dl>
20602060
<dt><dfn id="css-declaration-block-readonly-flag">CSS declaration block readonly flag</dfn></dt>
2061-
<dd><p>False if the object can be manipulated. True if it can not be
2062-
manipulated. If not explicitly set its value is false.</dd>
2061+
<dd><p>Unset if the object can be manipulated. Set if it can not be
2062+
manipulated. Unless otherwise stated it is unset.</dd>
20632063

20642064
<dt><dfn id="css-declaration-block-declarations">CSS declaration block declarations</dfn></dt>
20652065
<dd><p>The CSS declarations associated with the object.</dd>
@@ -2231,7 +2231,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22312231
<p>Setting the <code title="">cssText</code> attribute must run these steps:
22322232

22332233
<ol>
2234-
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is true
2234+
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is set,
22352235
raise a <code>NO_MODIFICATION_ALLOWED_ERR</code> and terminate this
22362236
algorithm.</li>
22372237

@@ -2279,7 +2279,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22792279
method must run these steps:
22802280

22812281
<ol>
2282-
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is true
2282+
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is set,
22832283
raise a <code>NO_MODIFICATION_ALLOWED_ERR</code> and terminate this
22842284
algorithm.</li>
22852285

@@ -2318,7 +2318,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
23182318
method must run these steps:
23192319

23202320
<ol>
2321-
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is true
2321+
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is set,
23222322
raise a <code>NO_MODIFICATION_ALLOWED_ERR</code> and terminate this
23232323
algorithm.</li>
23242324

@@ -3152,7 +3152,7 @@ <h3 id="extensions-to-the-window-interface"><span class="secno">7.2 </span>Exten
31523152

31533153
<li>
31543154
<p>Return a <a href="#css-declaration-block">CSS declaration block</a> with the
3155-
<a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> set to true and the
3155+
<a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> set and the
31563156
<a href="#css-declaration-block-declarations">CSS declaration block declarations</a> set to all properties
31573157
the user agent supports with as value the <a href="#resolved-value">resolved value</a>
31583158
computed for <var title="">obj</var> using the style rules associated

0 commit comments

Comments
 (0)