Skip to content

Commit f043a7c

Browse files
nschonnitabatkins
andauthored
[css2] Bikeshed HTML cleanup (w3c#5950)
Co-authored-by: Tab Atkins Jr <jackalmage@gmail.com>
1 parent b5ad3b0 commit f043a7c

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

css2/Overview.bs

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Required IDs: abs-non-replaced-height, abs-non-replaced-width, absolutely-positi
168168
}
169169
}
170170
</pre>
171-
<style type="text/css">
171+
<style>
172172
span.colorsquare { float:left; width:5em; height:3em; text-align:center; padding:1.2em 0 .8em }
173173
span.colorname { font-weight:bold }
174174
div.colordiagram { width:25em; height:20em; margin:1em auto; font-family:Verdana,sans-serif; font-size:12px }
@@ -1911,7 +1911,7 @@ semicolon (;) or the next <a href="#block">block,</a> whichever comes
19111911
first.
19121912
</p>
19131913

1914-
<p>CSS&nbsp;2 user agents must <a data-lt="ignore" href="#ignore">ignore</a> any <a href="#at-import">''@import''</a> rule that occurs inside a <a href="#block">block</a> or after any non-ignored statement other than an <a data-lt="">@charset</a> or an @import rule.
1914+
<p>CSS&nbsp;2 user agents must <a data-lt="ignore" href="#ignore">ignore</a> any ''@import'' rule that occurs inside a <a href="#block">block</a> or after any non-ignored statement other than an <a data-lt="">@charset</a> or an @import rule.
19151915
</p>
19161916

19171917
<div class="illegal example"><p>
@@ -3713,9 +3713,9 @@ their name, attributes or content; in principle characteristics that
37133713
cannot be deduced from the document tree. Pseudo-classes may be
37143714
dynamic, in the sense that an element may acquire or lose a
37153715
pseudo-class while a user interacts with the document. The exceptions
3716-
are <a href="#first-child">'':first-child''</a>, which <em>can</em> be
3716+
are '':first-child'', which <em>can</em> be
37173717
deduced from the document tree, and
3718-
<a href="#lang">'':lang()''</a>, which can be
3718+
'':lang()'', which can be
37193719
deduced from the document tree in some cases.
37203720
</ul>
37213721

@@ -5666,7 +5666,7 @@ value type, which may take one of the following values:</p>
56665666
<dd>A medium border.
56675667
<dt><dfn id="valdef-border-width-thick">thick</dfn>
56685668
<dd>A thick border.
5669-
<dt><dfn id="valdef-border-width-<<length>>"><<length>></dfn>
5669+
<dt><dfn id="valdef-border-width-length"><<length>></dfn>
56705670
<dd>The border's thickness has an explicit value. Explicit
56715671
border widths cannot be negative.
56725672
</dl>
@@ -6390,21 +6390,20 @@ on <a href="#visibility">visibility</a> for details.
63906390
</dl>
63916391

63926392
<p>The computed value is the same as the specified value, except for
6393-
positioned and floating elements (see <a href="#dis-pos-flo">Relationships between 'display', 'position', and
6394-
'float'</a>) and for the root element.
6393+
positioned and floating elements (see <a href="#dis-pos-flo">Relationships between <css>display</css>, <css>position</css>, and
6394+
<css>float</css></a>) and for the root element.
63956395
<!--
63966396
For the root element, the
63976397
computed value is as follows: 'inline-table' and 'table' become
63986398
'table', 'none' stays 'none', everything else becomes 'block'.
63996399
-->
64006400
For the root element, the computed value is changed as described in
6401-
the section on the <a href="#dis-pos-flo">relationships between 'display', 'position', and 'float'</a>.
6401+
the section on the <a href="#dis-pos-flo">relationships between <css>display</css>, <css>position</css>, and <css>float</css></a>.
64026402
</p>
64036403

6404-
<p>Note that although the <a href="#initial-value">initial
6405-
value</a> of 'display' is
6406-
''inline'', rules in the user agent's <a href="#default-style-sheet">default style sheet</a> may <a href="#assigning">override</a> this value. See the <a href="#html-stylesheet">sample style sheet</a> for HTML 4 in the
6407-
appendix.
6404+
<p>Note that although the <a href="#initial-value">initial value</a> of 'display' is ''inline'',
6405+
rules in the user agent's <a href="#default-style-sheet">default style sheet</a> may <a href="#assigning">override</a> this value.
6406+
See the <a href="#html-stylesheet">sample style sheet</a> for HTML 4 in the appendix.
64086407
</p>
64096408
<div class="example">
64106409
<p>Here are some examples of the 'display' property:
@@ -7312,7 +7311,7 @@ from elements earlier in the source document.
73127311
<dd>No constraint on the box's position with respect to floats.</dd>
73137312
</dl>
73147313

7315-
<p>Values other than ''clear/none'' potentially introduce <dfn><dfn id="clearance">clearance</dfn>.</dfn>
7314+
<p>Values other than ''clear/none'' potentially introduce <dfn id="clearance">clearance</dfn>.
73167315
Clearance inhibits margin collapsing
73177316
and acts as spacing above the margin-top of an element. It is used to
73187317
push the element vertically past the float.
@@ -9070,7 +9069,7 @@ Applies to: all elements but non-replaced inline elements, table columns, and co
90709069
Inherited: no
90719070
Percentages: see prose
90729071
Media: visual
9073-
Computed Value: the percentage or ''auto'' (see prose under <percentage>) or the absolute length
9072+
Computed Value: the percentage or ''auto'' (see prose under <<percentage>>) or the absolute length
90749073
</xmp>
90759074

90769075

@@ -9618,7 +9617,7 @@ Applies to: *
96189617
Inherited: yes
96199618
Percentages: refer to the font size of the element itself
96209619
Media: visual
9621-
Computed Value: for <length> and <percentage> the absolute value; otherwise as specified
9620+
Computed Value: for <<length>> and <<percentage>> the absolute value; otherwise as specified
96229621
</xmp>
96239622

96249623

@@ -9700,7 +9699,7 @@ Applies to: inline-level and ''table-cell'' elements
97009699
Inherited: no
97019700
Percentages: refer to the 'line-height' of the element itself
97029701
Media: visual
9703-
Computed Value: for <percentage> and <length> the absolute length, otherwise as specified
9702+
Computed Value: for <<percentage>> and <<length>> the absolute length, otherwise as specified
97049703
</xmp>
97059704

97069705

@@ -12116,7 +12115,7 @@ Applies to: *
1211612115
Inherited: no
1211712116
Percentages: refer to the size of the box itself
1211812117
Media: visual
12119-
Computed Value: for <length> the absolute value, otherwise a percentage
12118+
Computed Value: for <<length>> the absolute value, otherwise a percentage
1212012119
</xmp>
1212112120

1212212121

0 commit comments

Comments
 (0)