Skip to content

Commit d1e1b94

Browse files
committed
updating attr() syntax
1 parent 89d07c0 commit d1e1b94

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

css3-gcpm/Overview.src.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ <h2>Leaders</h2>
582582
<div class="example">
583583
<pre>
584584
ul.toc a::after {
585-
content: leader(". . . ") target-counter(attr(href, url), page);
585+
content: leader(". . . ") target-counter(attr(href url), page);
586586
}
587587
</pre>
588588
</div>
@@ -713,7 +713,7 @@ <h3>The ''target-counter'' and ''target-counters'' values</h3>
713713
is added after a link:
714714

715715
<pre>
716-
a::after { content: "(see page " target-counter(attr(href, url), page, decimal) ")" }
716+
a::after { content: "(see page " target-counter(attr(href url), page, decimal) ")" }
717717
</pre>
718718
</div>
719719

@@ -723,7 +723,7 @@ <h3>The ''target-counter'' and ''target-counters'' values</h3>
723723
is added after a link:
724724

725725
<pre>
726-
a::after { content: "(see section " target-counters(attr(href, url), section, ".", decimal) ")" }
726+
a::after { content: "(see section " target-counters(attr(href url), section, ".", decimal) ")" }
727727
</pre>
728728
</div>
729729

@@ -760,9 +760,9 @@ <h3>The ''target-text'' value</h3>
760760

761761
<pre>
762762
h2 { counter-increment: chapter }
763-
a { content: "Chapter " target-counter(attr(href, url), chapter)
764-
' ("' target-text(attr(href), content-element) '") on page '
765-
target-counter(attr(href, url), page);
763+
a { content: "Chapter " target-counter(attr(href url), chapter)
764+
' ("' target-text(attr(href url), content-element) '") on page '
765+
target-counter(attr(href url), page);
766766
</pre>
767767
</div>
768768

@@ -825,7 +825,7 @@ <h2>Footnotes</h2>
825825
@media print {
826826
.footnote {
827827
float: footnote;
828-
content: target-pull(attr(href, url)) }
828+
content: target-pull(attr(href url)) }
829829
.call { display: none }
830830
}
831831
&lt;/style>
@@ -2175,7 +2175,7 @@ <h2>Bookmarks</h2>
21752175

21762176
<div class="example">
21772177
<pre>
2178-
a { bookmark-label: attr(title, string) }
2178+
a { bookmark-label: attr(title) }
21792179
h1 { bookmark-label: contents }
21802180
h2 { bookmark-label: content-before }
21812181
#frog { bookmark-label: "The green frog" }
@@ -2214,8 +2214,8 @@ <h2>Bookmarks</h2>
22142214
<div class=example>
22152215
<pre>
22162216
.bookmark {
2217-
bookmark-label: attr(title, string);
2218-
bookmark-target: attr(href, url);
2217+
bookmark-label: attr(title);
2218+
bookmark-target: attr(href url);
22192219
}
22202220
...
22212221
&lt;a class="bookmark" title="The green pear" href="#pears"/>

0 commit comments

Comments
 (0)