Skip to content

Commit c2efd0a

Browse files
committed
[CSS2] Get rid of nested a elements
1 parent bbabddb commit c2efd0a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

css2/Overview.bs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ semicolon (;) or the next <a href="#block">block,</a> whichever comes
19631963
first.
19641964
</p>
19651965

1966-
<p>CSS&nbsp;2 user agents must <a data-lt="ignore"><a href="#ignore">ignore</a></a> any <a href="cascade.html#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.
1966+
<p>CSS&nbsp;2 user agents must <a data-lt="ignore" href="#ignore">ignore</a> any <a href="cascade.html#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.
19671967
</p>
19681968

19691969
<div class="illegal example"><p>
@@ -1976,7 +1976,7 @@ h1 { color: blue }
19761976
</code></pre>
19771977

19781978
<p> The second '@import' is illegal according to CSS&nbsp;2. The CSS&nbsp;2 parser
1979-
<a data-lt="ignore"><a href="#ignore">ignores</a></a>
1979+
<a data-lt="ignore" href="#ignore">ignores</a>
19801980
the whole at-rule, effectively reducing the style sheet to:
19811981
</p>
19821982
<pre class="lang-css">
@@ -2054,20 +2054,20 @@ declarations.
20542054
<p>The <dfn><em>selector</em></dfn> (see also the section on <a href="selector.html">selectors</a>) consists of everything up to (but
20552055
not including) the first left curly brace ({). A selector always goes
20562056
together with a declaration block. When a user agent cannot parse the selector (i.e., it
2057-
is not valid CSS&nbsp;2), it must <a data-lt="ignore"><a href="#ignore">ignore</a></a> the selector and the following
2057+
is not valid CSS&nbsp;2), it must <a data-lt="ignore" href="#ignore">ignore</a> the selector and the following
20582058
declaration block (if any) as well.
20592059
</p>
20602060
<p>CSS&nbsp;2 gives a special meaning to the comma (,) in
20612061
selectors. However, since it is not known if the comma may acquire
20622062
other meanings in future updates of CSS, the whole statement should
2063-
be <a data-lt="ignore"><a href="#ignore">ignored</a></a> if there is an error anywhere in the
2063+
be <a data-lt="ignore" href="#ignore">ignored</a> if there is an error anywhere in the
20642064
selector, even though the rest of the selector may look reasonable in
20652065
CSS&nbsp;2.
20662066
</p>
20672067
<div class="illegal example">
20682068
<p>For example, since the "&amp;" is not a valid token in a CSS&nbsp;2
20692069
selector, a CSS&nbsp;2 user agent must
2070-
<a data-lt="ignore"><a href="#ignore">ignore</a></a>
2070+
<a data-lt="ignore" href="#ignore">ignore</a>
20712071
the whole second line, and not set the color of H3 to red:
20722072
</p>
20732073
<pre><code>
@@ -2143,7 +2143,7 @@ is specified separately for each property, but in any case, values are
21432143
built from identifiers, strings, numbers, lengths, percentages, URIs,
21442144
colors, etc.
21452145
</p>
2146-
<p>A user agent must <a data-lt="ignore"><a href="#ignore">ignore</a></a> a declaration with an invalid property
2146+
<p>A user agent must <a data-lt="ignore" href="#ignore">ignore</a> a declaration with an invalid property
21472147
name or an invalid value. Every CSS property has its own syntactic
21482148
and semantic restrictions on the values it accepts.
21492149
</p>
@@ -2159,7 +2159,7 @@ em em { font-style: normal }
21592159

21602160
<p> The second declaration on the first line has an invalid value
21612161
'12pt'. The second declaration on the second line contains an
2162-
undefined property 'font-vendor'. The CSS&nbsp;2 parser will <a data-lt="ignore"><a href="#ignore">ignore</a></a> these
2162+
undefined property 'font-vendor'. The CSS&nbsp;2 parser will <a data-lt="ignore" href="#ignore">ignore</a> these
21632163
declarations, effectively reducing the style sheet to:
21642164
</p>
21652165
<pre class="example"><code class="css">
@@ -2205,7 +2205,7 @@ obey the following rules when they encounter the following
22052205
scenarios:</p>
22062206

22072207
<ul>
2208-
<li><strong>Unknown properties.</strong> User agents must <a data-lt="ignore"><a href="#ignore">ignore</a></a> a <a href="syndata.html#declaration">declaration</a> with an unknown
2208+
<li><strong>Unknown properties.</strong> User agents must <a data-lt="ignore" href="#ignore">ignore</a> a <a href="syndata.html#declaration">declaration</a> with an unknown
22092209
property. For example, if the style sheet is:
22102210

22112211
<pre class="illegal example">
@@ -2229,7 +2229,7 @@ img { border-width: 3 } /* a unit must be specified for length values */
22292229
</code></pre>
22302230

22312231
A CSS&nbsp;2 parser would honor the first rule and
2232-
<a data-lt="ignore"><a href="#ignore">ignore</a></a>
2232+
<a data-lt="ignore" href="#ignore">ignore</a>
22332233
the rest, as if the style sheet had been:
22342234

22352235
<pre class="example"><code class="css">
@@ -2284,7 +2284,7 @@ p @here {color: red} /* ruleset with unexpected at-keyword "@here" */
22842284
<!-- Note that the ") (" in the last line do not count as a balanced
22852285
pair. -->
22862286

2287-
<li><strong>At-rules with unknown at-keywords.</strong> User agents must <a data-lt="ignore"><a href="#ignore">ignore</a></a>
2287+
<li><strong>At-rules with unknown at-keywords.</strong> User agents must <a data-lt="ignore" href="#ignore">ignore</a>
22882288
an invalid at-keyword together with everything following it, up to the
22892289
end of the block that contains the invalid at-keyword, or up to and
22902290
including the next semicolon (;), or up to and including the next
@@ -2303,8 +2303,8 @@ h1 { color: blue }
23032303
</code></pre>
23042304

23052305
<p> The '@three-dee' at-rule is not part of CSS&nbsp;2. Therefore, the whole
2306-
at-rule (up to, and including, the third right curly brace) is <a data-lt="ignore"><a href="#ignore">ignored.</a></a> A
2307-
CSS&nbsp;2 user agent <a data-lt="ignore"><a href="#ignore">ignores</a></a> it, effectively reducing the style sheet
2306+
at-rule (up to, and including, the third right curly brace) is <a data-lt="ignore" href="#ignore">ignored.</a> A
2307+
CSS&nbsp;2 user agent <a data-lt="ignore" href="#ignore">ignores</a> it, effectively reducing the style sheet
23082308
to:</p>
23092309

23102310
<pre class="example"><code class="css">
@@ -3226,7 +3226,7 @@ h1, h2, h3 { font-family: sans-serif }
32263226
<p>CSS offers other "shorthand" mechanisms as well, including
32273227
<dfn>
32283228
<a href="syndata.html#declaration">multiple declarations</a></dfn>
3229-
and <a data-lt="shorthand property"><a href="about.html#shorthand">shorthand properties</a></a>.
3229+
and <a data-lt="shorthand property" href="about.html#shorthand">shorthand properties</a>.
32303230

32313231
<h3 id="universal-selector">Universal selector</h3>
32323232

@@ -4583,7 +4583,7 @@ for both H1 and EM might be, for example, '12pt'.
45834583
</div>
45844584

45854585
<p class="note">Note that inheritance follows the document tree and is
4586-
not intercepted by <a data-lt=""><a href="visuren.html#box-gen">anonymous boxes.</a></a>
4586+
not intercepted by <a data-lt="" href="visuren.html#box-gen">anonymous boxes.</a>
45874587

45884588

45894589
<h4 id="value-def-inherit">The <dfn data-lt="inherit" data-dfn-type="value" data-dfn-for="all">'inherit'</dfn>
@@ -7278,7 +7278,7 @@ may not be higher than the outer top of any <a href="#block-boxes">block</a> or
72787278
earlier in the source document.
72797279
</li>
72807280
<li>The <a href="box.html#outer-edge">outer top</a> of an element's
7281-
floating box may not be higher than the top of any <a data-lt="line-box"><a href="#line-box">line-box</a></a> containing a box
7281+
floating box may not be higher than the top of any <a data-lt="line-box" href="#line-box">line-box</a> containing a box
72827282
generated by an element earlier in the source document.
72837283
</li>
72847284
<li>A left-floating box that has another left-floating box to its left
@@ -13301,7 +13301,7 @@ The actual justification algorithm used depends on the user-agent and the langua
1330113301
of the text.</em>
1330213302
</p>
1330313303
</div>
13304-
<p><em><a data-lt="conformance"><a href="conform.html#conformance">Conforming user agents</a></a> may
13304+
<p><em><a data-lt="conformance" href="conform.html#conformance">Conforming user agents</a> may
1330513305
interpret the value 'justify' as 'left' or 'right', depending on
1330613306
whether the element's default writing direction is left-to-right or
1330713307
right-to-left, respectively.</em>
@@ -14977,7 +14977,7 @@ specifies the distance between the borders of adjoining cells. In this
1497714977
space, the row, column, row group, and column group backgrounds are
1497814978
invisible, allowing the table background to show through. Rows,
1497914979
columns, row groups, and column groups cannot have borders (i.e., user
14980-
agents must <a data-lt="ignore"><a href="syndata.html#ignore">ignore</a></a> the border properties for
14980+
agents must <a data-lt="ignore" href="syndata.html#ignore">ignore</a> the border properties for
1498114981
those elements).
1498214982

1498314983
<div class="example">

0 commit comments

Comments
 (0)