Skip to content

Commit fc3b890

Browse files
committed
[css-display] Slightly rewrite computed value for display-box. Also rename it to display-box.
--HG-- extra : rebase_source : fee84c6dd3d0d979a9b8b96affdb3c28b4a6fd4e
1 parent 7753532 commit fc3b890

2 files changed

Lines changed: 21 additions & 30 deletions

File tree

css-display/Overview.html

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>CSS Display Module Level 3</h1>
5656
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
57-
<span class=dt-updated><span class=value-title title=20140128>28 January 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140129>29 January 2014</span></span></span></h2>
5858
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-display>http://dev.w3.org/csswg/css-display</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-display>http://dev.w3.org/csswg/css-display</a>
5959
<dt>Feedback:</dt>
6060
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-display%5D%20feedback">www-style@w3.org</a>
@@ -114,7 +114,7 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
114114
Interacting with the layout mode: the <span class=property data-link-type=propdesc title=display-outside>display-outside</span> property</a><li><a href=#the-display-extras><span class=secno>2.3</span>
115115
Additional stuff: the <span class=property data-link-type=propdesc title=display-extras>display-extras</span> property</a><li><a href=#the-display><span class=secno>2.4</span>
116116
The <span class=property data-link-type=propdesc title=display>display</span> shorthand property</a></ul><li><a href=#the-display-box><span class=secno>3</span>
117-
Controlling box generation: the <span class=property data-link-type=propdesc title=box>box</span> property</a><li><a href=#acknowledgments><span class=secno></span>
117+
Controlling box generation: the <span class=property data-link-type=propdesc title=display-box>display-box</span> property</a><li><a href=#acknowledgments><span class=secno></span>
118118
Acknowledgments</a><li><a href=#conformance><span class=secno></span>
119119
Conformance</a><ul class=toc><li><a href=#conventions><span class=secno></span>
120120
Document conventions</a><li><a href=#conformance-classes><span class=secno></span>
@@ -242,8 +242,8 @@ <h3 class="heading settled heading" data-level=2.2 id=the-display-outside><span
242242
and does not participate in any formatting context.
243243

244244
<p class=note> Note: This value exists for legacy reasons,
245-
and interacts with the separate <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> property.
246-
It is recommended that <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> be used to suppress an element,
245+
and interacts with the separate <a class=property data-link-type=propdesc href=#propdef-display-box title=display-box>display-box</a> property.
246+
It is recommended that <a class=property data-link-type=propdesc href=#propdef-display-box title=display-box>display-box</a> be used to suppress an element,
247247
so that the element’s display type is automatically preserved
248248
for when it’s no longer suppressed.
249249

@@ -366,15 +366,15 @@ <h3 class="heading settled heading" data-level=2.4 id=the-display><span class=se
366366

367367

368368
<h2 class="heading settled heading" data-level=3 id=the-display-box><span class=secno>3 </span><span class=content>
369-
Controlling box generation: the <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> property</span><a class=self-link href=#the-display-box></a></h2>
369+
Controlling box generation: the <a class=property data-link-type=propdesc href=#propdef-display-box title=display-box>display-box</a> property</span><a class=self-link href=#the-display-box></a></h2>
370370

371-
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-box>box<a class=self-link href=#propdef-box></a></dfn><tr><th>Value:<td>normal | none | contents<tr><th>Initial:<td>normal<tr><th>Applies to:<td>all elements<tr><th>Inherited:<td>no<tr><th>Media:<td>all<tr><th>Computed value:<td>see prose<tr><th>Percentages:<td>n/a</table>
372-
<p> The <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> property is not part of the <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> shorthand,
371+
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-display-box>display-box<a class=self-link href=#propdef-display-box></a></dfn><tr><th>Value:<td>normal | none | contents<tr><th>Initial:<td>normal<tr><th>Applies to:<td>all elements<tr><th>Inherited:<td>no<tr><th>Media:<td>all<tr><th>Computed value:<td>see prose<tr><th>Percentages:<td>n/a</table>
372+
<p> The <a class=property data-link-type=propdesc href=#propdef-display-box title=display-box>display-box</a> property is not part of the <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> shorthand,
373373
so that <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> can be safely set without accidentally overriding whether an element is being suppressed or not.
374374

375-
<p> The computed value of <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> is the specified value,
376-
unless <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> has the value <a class=css data-link-for=display-outside data-link-type=maybe href=#valuedef-none0 title=none>none</a>,
377-
in which case the computed value of <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> is <a class=css data-link-for=box data-link-type=maybe href=#valuedef-none title=none>none</a> as well.
375+
<p> If the computed value of <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> is <a class=css data-link-for=display-outside data-link-type=maybe href=#valuedef-none0 title=none>none</a>,
376+
the computed value of <a class=property data-link-type=propdesc href=#propdef-display-box title=display-box>display-box</a> is <span class=css data-link-for=display-box data-link-type=maybe title=none>none</span>.
377+
Otherwise, the computed value is the specified value.
378378

379379
<dl data-dfn-for=box data-dfn-type=value>
380380
<dt><dfn class=css-code data-dfn-for=box data-dfn-type=value data-export="" id=valuedef-normal>normal<a class=self-link href=#valuedef-normal></a></dfn>
@@ -403,9 +403,6 @@ <h2 class="heading settled heading" data-level=3 id=the-display-box><span class=
403403
Other things that care about the document tree are unaffected, like counter scopes.
404404
Is this what we want?
405405

406-
<p class=issue id=issue-74aff657><a class=self-link href=#issue-74aff657></a>
407-
Is <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> a good name? What about <a class=property data-link-type=propdesc title=show>show</a>? Other suggestions?
408-
409406

410407

411408

@@ -557,9 +554,9 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
557554
<li>block<ul><li>value for display-inside, <a href=#valuedef-block0 title="section 2.1">2.1</a>
558555
<li>value for display, <a href=#valuedef-block title="section 2.4">2.4</a>
559556
</ul><li>block-level, <a href=#valuedef-block-level title="section 2.2">2.2</a>
560-
<li>box, <a href=#propdef-box title="section 3">3</a>
561557
<li>contents, <a href=#valuedef-contents title="section 3">3</a>
562558
<li>display, <a href=#propdef-display title="section 2.4">2.4</a>
559+
<li>display-box, <a href=#propdef-display-box title="section 3">3</a>
563560
<li>display-extras, <a href=#propdef-display-extras title="section 2.3">2.3</a>
564561
<li>display-inside, <a href=#propdef-display-inside title="section 2.1">2.1</a>
565562
<li>display-outside, <a href=#propdef-display-outside title="section 2.2">2.2</a>
@@ -600,7 +597,7 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
600597
<tr><th scope=row><a data-property="">display-outside</a><td>block-level | inline-level | none | table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption<td>inline-level<td>all elements<td>no<td>n/a<td>all<td><td>as specified
601598
<tr><th scope=row><a data-property="">display-extras</a><td>none | list-item<td>none<td>all elements<td>no<td>n/a<td>all<td><td>as specified
602599
<tr><th scope=row><a data-property="">display</a><td>inline | block | list-item | inline-list-item | inline-block | table | inline-table | table-cell | table-caption | flex | inline-flex | grid | inline-grid | [ &lt;‘display-inside’&gt; || &lt;‘display-outside’&gt; || &lt;‘display-extras’&gt; ]<td>see individual properties<td>see individual properties<td>see individual properties<td><td>see individual properties<td>see individual properties<td>see individual properties
603-
<tr><th scope=row><a data-property="">box</a><td>normal | none | contents<td>normal<td>all elements<td>no<td>n/a<td>all<td><td>see prose</table></div>
600+
<tr><th scope=row><a data-property="">display-box</a><td>normal | none | contents<td>normal<td>all elements<td>no<td>n/a<td>all<td><td>see prose</table></div>
604601

605602

606603
<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><div class=issue>
@@ -642,10 +639,7 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
642639
Other things that care about the document tree are unaffected, like counter scopes.
643640
Is this what we want?
644641

645-
<a href=#issue-b8422544></a></div><div class=issue>
646-
Is <a class=property data-link-type=propdesc href=#propdef-box title=box>box</a> a good name? What about <a class=property data-link-type=propdesc title=show>show</a>? Other suggestions?
647-
648642

649643

650644

651-
<a href=#issue-74aff657></a></div></div>
645+
<a href=#issue-b8422544></a></div></div>

css-display/Overview.src.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ <h3 id='the-display-outside'>
142142
and does not participate in any formatting context.
143143

144144
Note: This value exists for legacy reasons,
145-
and interacts with the separate 'box' property.
146-
It is recommended that 'box' be used to suppress an element,
145+
and interacts with the separate 'display-box' property.
146+
It is recommended that 'display-box' be used to suppress an element,
147147
so that the element's display type is automatically preserved
148148
for when it's no longer suppressed.
149149

@@ -286,10 +286,10 @@ <h3 id='the-display'>
286286

287287

288288
<h2 id='the-display-box'>
289-
Controlling box generation: the 'box' property</h2>
289+
Controlling box generation: the 'display-box' property</h2>
290290

291291
<pre class="propdef">
292-
Name: box
292+
Name: display-box
293293
Value: normal | none | contents
294294
Initial: normal
295295
Applies to: all elements
@@ -299,12 +299,12 @@ <h2 id='the-display-box'>
299299
Media: all
300300
</pre>
301301

302-
The 'box' property is not part of the 'display' shorthand,
302+
The 'display-box' property is not part of the 'display' shorthand,
303303
so that 'display' can be safely set without accidentally overriding whether an element is being suppressed or not.
304304

305-
The computed value of 'box' is the specified value,
306-
unless 'display-outside' has the value ''display-outside/none'',
307-
in which case the computed value of 'box' is ''box/none'' as well.
305+
If the computed value of 'display-outside' is ''display-outside/none'',
306+
the computed value of 'display-box' is ''display-box/none''.
307+
Otherwise, the computed value is the specified value.
308308

309309
<dl dfn-type="value" dfn-for="box">
310310
<dt><dfn>normal</dfn>
@@ -333,9 +333,6 @@ <h2 id='the-display-box'>
333333
Other things that care about the document tree are unaffected, like counter scopes.
334334
Is this what we want?
335335

336-
<p class='issue'>
337-
Is 'box' a good name? What about 'show'? Other suggestions?
338-
339336

340337

341338

0 commit comments

Comments
 (0)