Skip to content

Commit cde9446

Browse files
committed
Use autolink for HTML elements
1 parent 771f61a commit cde9446

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

css-cascade-3/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ Important Declarations: the ''!important'' annotation</h3>
801801
Precedence of Non-CSS Presentational Hints</h3>
802802

803803
The UA may choose to honor presentational hints in a source document's markup,
804-
for example the <code>bgcolor</code> attribute or <code>&lt;s></code> element in [[HTML5]].
804+
for example the <code>bgcolor</code> attribute or <{s}> element in [[HTML]].
805805
All document language-based styling must be translated to corresponding CSS rules
806806
and either enter the cascade at the user agent level or
807807
be treated as author level rules with a specificity of zero placed at the start of the author style sheet.

css-counter-styles-3/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ Symbolic: ''disc'', ''circle'', ''square'', ''disclosure-open'', ''disclosure-cl
17721772
<dt><dfn id=disclosure-closed>disclosure-closed</dfn>
17731773
<dd>
17741774
Symbols appropriate for indicating an open or closed disclosure widget,
1775-
such as the HTML <code>&lt;details></code> element.
1775+
such as the HTML <{details}> element.
17761776
</dl>
17771777

17781778
The ''disc'' counter-style must not be overridable with a ''@counter-style'' rule,
@@ -1822,7 +1822,7 @@ Symbolic: ''disc'', ''circle'', ''square'', ''disclosure-open'', ''disclosure-cl
18221822
For the ''disclosure-open'' and ''disclosure-closed'' counter styles,
18231823
the marker must be an image or character suitable for indicating
18241824
the open and closed states of a disclosure widget,
1825-
such as HTML's <code>&lt;details></code> element.
1825+
such as HTML's <{details}> element.
18261826
If the image is directional,
18271827
it must respond to the <a>writing mode</a> of the element,
18281828
similar to the <a href="https://drafts.csswg.org/css4-images/#bidi-images">bidi-sensitive images</a> feature of the Images 4 module.

css-images-3/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ Object-Sizing Terminology {#sizing-terms}
10461046
SVG images can also be created with only an <a>intrinsic width</a> or <a lt="intrinsic height">height</a>.
10471047
CSS gradients, defined in this specification, are an example of an object with no intrinsic dimensions at all.
10481048
Another example of this is embedded documents,
1049-
such as the <code>&lt;iframe></code> element in HTML.
1049+
such as the <{iframe}> element in HTML.
10501050
In general, images cannot have only two intrinsic dimensions,
10511051
as any two automatically define the third.
10521052
However some types of replaced elements,
@@ -1095,7 +1095,7 @@ CSS⇋Object Negotiation {#object-negotiation}
10951095

10961096
1. When an image or object is specified in a document,
10971097
such as through a ''url()'' value in a 'background-image' property
1098-
or a <code>src</code> attribute on an <code>&lt;img></code> element,
1098+
or a <{img/src}> attribute on an <{img}> element,
10991099
CSS queries the object for its <a>intrinsic dimensions</a>.
11001100

11011101
2. Using the <a>intrinsic dimensions</a>,

css-images-4/Overview.bs

+4-5
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ Note: No change from [[css3-images]].
506506

507507
<div class='example'>
508508

509-
As a somewhat silly example, a <code>&lt;p></code> element can be reused as a background elsewhere in the document:
509+
As a somewhat silly example, a <{p}> element can be reused as a background elsewhere in the document:
510510

511511
<pre class="lang-html">
512512
&lt;style>
@@ -546,7 +546,7 @@ Note: No change from [[css3-images]].
546546
</pre>
547547

548548
HTML also defines that a handful of elements,
549-
such as <code>&lt;canvas></code>, <code>&lt;img></code>, and <code>&lt;video></code>,
549+
such as <{canvas}>, <{img}>, and <{video}>,
550550
provide a paint source.
551551
This means that CSS can, for example,
552552
reference a canvas that's being drawn into,
@@ -660,8 +660,7 @@ Paint Sources</h4>
660660
without having to do layout or rendering,
661661
and so may be used as images even when they're <a lt='element-not-rendered'>not rendered</a>.
662662

663-
In HTML, the <code>&lt;img></code>, <code>&lt;video></code>, and <code>&lt;canvas></code> elements provide paint sources
664-
(defined in each element's section in <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/'>HTML5</a>).
663+
In HTML, the <{img}>, <{video}>, and <{canvas}> elements provide paint sources.
665664

666665
In SVG, any element that provides a <a href='https://www.w3.org/TR/SVG/pservers.html'>paint server</a> provides a paint source.
667666
<span class='note'>Note: In SVG1.1,
@@ -694,7 +693,7 @@ Using Out-Of-Document Sources: the <code>ElementSources</code> interface</h4>
694693

695694
The ''element()'' function normally selects elements within a document,
696695
but elements that provide a <a>paint source</a> don't necessarily need to be in-document.
697-
For example, an HTML <code>&lt;canvas></code> element can be created, maintained, and drawn into entirely in script,
696+
For example, an HTML <{canvas}> element can be created, maintained, and drawn into entirely in script,
698697
with no need for it to be inserted into the document directly.
699698

700699
All that's needed is a way to refer to the element,

css-lists-3/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,9 @@ Creating and Inheriting Counters</h3>
879879
for a language like HTML,
880880
its the order in which the parser encounters start tags as it reads the document.
881881

882-
In here, the <code>&lt;ul></code> element establishes a new counter named "example",
882+
In here, the <{ul}> element establishes a new counter named "example",
883883
and sets its value to 0.
884-
The <b class='foo'>"foo"</b> element, being the first child of the <code>&lt;ul></code>,
884+
The <b class='foo'>"foo"</b> element, being the first child of the <{ul}>,
885885
inherits this counter.
886886
Its parent is also its immediately preceding element in document order,
887887
so it inherits the value 0 with it,

css-syntax-3/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Description of CSS's Syntax</h2>
7676

7777
In the above rule, "<code>p > a</code>" is the selector,
7878
which, if the source document is HTML,
79-
selects any <code>&lt;a></code> elements that are children of a <code>&lt;p></code> element.
79+
selects any <{a}> elements that are children of a <{p}> element.
8080

8181
"<code>color: blue</code>" is a declaration specifying that,
8282
for the elements that match the selector,

css-writing-modes-3/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@ The Principal Writing Mode</h2>
22462246
and the default <a>page progression</a> direction.
22472247

22482248
<p>As a special case for handling HTML documents,
2249-
if the root element has a <code>&lt;body></code> child element [[!HTML5]],
2249+
if the root element has a <{body}> child element [[!HTML]],
22502250
the <a>principal writing mode</a> is instead taken
22512251
from the values of 'writing-mode' and 'direction' on the first such child element
22522252
instead of taken from the root element.

css-writing-modes-4/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ The Principal Writing Mode</h2>
23982398
and the default <a>page progression</a> direction.
23992399

24002400
<p>As a special case for handling HTML documents,
2401-
if the root element has a <code>&lt;body></code> child element [[!HTML5]],
2401+
if the root element has a <{body}> child element [[!HTML]],
24022402
the <a>principal writing mode</a> is instead taken
24032403
from the values of 'writing-mode' and 'direction' on the first such child element
24042404
instead of taken from the root element.

0 commit comments

Comments
 (0)