Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pagedjs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume
pagedjs
Commits
6f744438
Commit
6f744438
authored
Jun 07, 2020
by
Nellie McKesson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusting target-text spec to work with new nth-of-type handling
parent
13fbd696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
target-text.html
specs/target/target-text/target-text.html
+10
-10
No files found.
specs/target/target-text/target-text.html
View file @
6f744438
...
...
@@ -47,19 +47,19 @@
display
:
block
;
margin-bottom
:
3em
;
}
nav
li
:nth-of-type
(
1
)
a
[
href
]
::after
{
nav
li
#first
a
[
href
]
::after
{
content
:
target-text
(
attr
(
href
url
));
}
nav
li
:nth-of-type
(
2
)
a
[
href
]
::after
{
nav
li
#second
a
[
href
]
::after
{
content
:
target-text
(
attr
(
href
url
),
content
);
}
nav
li
:nth-of-type
(
3
)
a
[
href
]
::after
{
nav
li
#third
a
[
href
]
::after
{
content
:
target-text
(
attr
(
href
url
),
first-letter
);
}
nav
li
:nth-of-type
(
4
)
a
[
href
]
::after
{
nav
li
#fourth
a
[
href
]
::after
{
content
:
target-text
(
attr
(
href
url
),
before
);
}
nav
li
:nth-of-type
(
5
)
a
[
href
]
::after
{
nav
li
#fifth
a
[
href
]
::after
{
content
:
target-text
(
attr
(
href
url
),
after
);
}
...
...
@@ -106,11 +106,11 @@
<nav>
<h1>
Table of contents
</h1>
<ul>
<li><a
href=
"#chap0"
>
target-text:
</a></li>
<li><a
href=
"#chap1"
>
target-text content:
</a></li>
<li><a
href=
"#chap2"
>
target-text first-letter:
</a></li>
<li><a
href=
"#chap3"
>
target-text:: before:
</a></li>
<li><a
href=
"#chap4"
>
target-text:: after:
</a></li>
<li
id=
"first"
><a
href=
"#chap0"
>
target-text:
</a></li>
<li
id=
"second"
><a
href=
"#chap1"
>
target-text content:
</a></li>
<li
id=
"third"
><a
href=
"#chap2"
>
target-text first-letter:
</a></li>
<li
id=
"fourth"
><a
href=
"#chap3"
>
target-text:: before:
</a></li>
<li
id=
"fifth"
><a
href=
"#chap4"
>
target-text:: after:
</a></li>
</ul>
</nav>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment