1- <h1>CSS Foo Module Level N</h1>
2-
31<pre class='metadata'>
2+ Title : CSS Foo Module Level 1
43Shortname : css-foo
54Level : 1
65Status : ED
@@ -11,7 +10,6 @@ Work Status: exploring
1110Editor : Name1, Company1, http://example.com/contact
1211Editor : Name2, Company2, name2@example.com
1312Abstract : This module introduces the 'foo' property and related values, which do bar and baz.
14- Ignored Terms : div, dl, dfn
1513</pre>
1614
1715Introduction {#intro}
@@ -33,41 +31,57 @@ Sample section {#sample-topic}
3331 See the <a href="https://github.com/tabatkins/bikeshed/blob/master/README.md">documentation</a> for more precise instructions.
3432 The companion of this template shows the <a href="Overview.html">processed result</a> .
3533
36- To refer to HTML, use [[HTML40 ]] (note the double square brackets in the source).
34+ To refer to HTML, use [[HTML ]] (note the double square brackets in the source).
3735 To make a normative reference,
3836 insert a “!”, like this:
39- [[!CSS3SYN ]]
37+ [[!CSS-SYNTAX-3 ]]
4038 The currently available <a href="https://www.w3.org/Style/Group/css3-src/biblio.ref">list of bibliographic data</a> can of course be extended.
4139
4240 We write about a property such as 'foo' like this
4341 and about a piece of CSS code like this: ''foo: bar'' .
4442 (Note that if it looks like a "property: value",
4543 it'll automatically link to the property.)
4644 Inline HTML and XML are similar,
47- but use the CODE element: <code class=html> <blockquote>...</blockquote></code>
48- and <code class=xml> <r:xyz>...</r:xyz></code> .
45+ but use the CODE element: <code class=lang- html> <blockquote>...</blockquote></code>
46+ and <code class=lang- xml> <r:xyz>...</r:xyz></code> .
4947
5048 Note: Note that the property will automatically be linked to its definition.
5149
52- To define <dfn>terms</dfn> into the <dfn id="dfn-index">index</dfn> ,
53- there are many <dfn title ="variant">variants</dfn> ,
54- but hopefully the <dfn title="simple|simpler|simplest">simplest</dfn>
50+ To define <dfn export >terms</dfn> into the <dfn export id="dfn-index">index</dfn> ,
51+ there are many <dfn export lt ="variant">variants</dfn> ,
52+ but hopefully the <dfn export title="simple|simpler|simplest">simplest</dfn>
5553 will be the most common.
54+ Note that you need to explicitly export any plain <{dfn}> s you want to be linkable from other specs,
55+ but all other types of definition automatically export themselves.
5656
5757 Note: Note that you can add non-normative notes like this.
5858
59- Of course, multi-paragraph notes are also possible: just enclose them in a <a element> div</a > :
59+ Of course, multi-paragraph notes are also possible: just enclose them in a <{ div} > :
6060
6161 <div class=note>
6262 Note that this note is a multi-paragraph note.
6363
6464 It doesn't <em> need</em> to have two paragraphs, but it could.
6565 </div>
6666
67+ <details class=note>
68+ <summary> A longer note</summary>
69+
70+ When you want to insert a longer note
71+ to provide some useful explanation,
72+ but the note itself is not critical to the section it's placed in,
73+ use a <{details}> note instead.
74+
75+ This will hide the note by default,
76+ so it's less distracting to the flow of the section.
77+ (At least, in browsers that support <{details}> ;
78+ legacy browsers will get something like a normal note.)
79+ </details>
80+
6781 Displayed examples come in eight different types:
6882 CSS examples that need no separate paragraph of explanation are put in a simple PRE:
6983
70- <pre class=example>
84+ <pre class=" example lang-css" >
7185 EM { font-style: italic }
7286 </pre>
7387
@@ -77,7 +91,7 @@ Sample section {#sample-topic}
7791 The following example is the same as the previous one,
7892 but now it is explained:
7993
80- <pre> EM { font-style: italic }</pre>
94+ <pre class="lang-css" > EM { font-style: italic }</pre>
8195 </div>
8296
8397 Illegal CSS examples (examples of errors) are the same,
@@ -106,9 +120,9 @@ Internal display model: the 'foo' property {#the-foo-property}
106120 <dl dfn-type="value" dfn-for="foo">
107121 <dt> <dfn>value-name</dfn>
108122 <dd>
109- Define values using a <a element>dl</a > .
110- Note that the <a element>dl</a > wrapper
111- specifies the default <a element> dfn</a > type and what property it's for,
123+ Define values using a <{dl} > .
124+ Note that the <{dl} > wrapper
125+ specifies the default <{ dfn} > type and what property it's for,
112126 so you don't have to repeat that information in each individual definition.
113127 </dl>
114128
@@ -120,7 +134,9 @@ Internal display model: the 'foo' property {#the-foo-property}
120134 which allows the same text to appear as different types of terms without a collision.
121135 The type can often be inferred,
122136 but sometimes it needs to be specified,
123- like when you're linking to a <a interface>Foo</a> WebIDL interface.
137+ like when you're linking to a {{Foo}} WebIDL interface.
138+ (Here, we're using the <em> IDL</em> linking shorthand
139+ to make it clear that this is one of the IDL types.)
124140
125141 And a figure with a caption is done like this:
126142
@@ -139,7 +155,7 @@ Internal display model: the 'foo' property {#the-foo-property}
139155 Issue: An open issue or editorial remark is OK in a WD,
140156 but they should be resolved/removed before the document goes to “CR”
141157 (Candidate Recommendation).
142- Use class=“ issue” on an element,
158+ Use <code class=lang-html> class=" issue" </code> on an element,
143159 or begin a paragraph with “Issue:”.
144160
145161 Issue:
@@ -160,6 +176,32 @@ Internal display model: the 'foo' property {#the-foo-property}
160176 };
161177 </pre>
162178
179+ Shorthands and Descriptors {#shorthands}
180+ ----------------------------------------
181+
182+ Shorthand properties have a smaller set of values to provide:
183+
184+ <pre class="propdef shorthand">
185+ Name : shorthand-foo
186+ Value : foo | bar | baz
187+ </pre>
188+
189+ Adding new values to an existing property? Use a partial:
190+
191+ <pre class="propdef partial">
192+ Name : foo
193+ New values : another-icon
194+ </pre>
195+
196+ Or when defining a descriptor, use a descdef block (partials work here, too):
197+
198+ <pre class=descdef>
199+ Name : descriptor-foo
200+ Value : more | values
201+ Initial : values
202+ For : @some-at-rule
203+ </pre>
204+
163205<h2 class=no-num id=priv-sec>Privacy and Security Considerations</h2>
164206
165207Issue: Make some considerations about privacy and security.
0 commit comments