Skip to content

Commit

Permalink
Trying to prevent word breaking (#2). This restores Firefox's (correc…
Browse files Browse the repository at this point in the history
…t) joining, although the generated content does not join.
  • Loading branch information
hftf committed Sep 12, 2013
1 parent 295b09a commit 8ea5c3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ p {
}
.cluster {
/* Leave this to prevent the first letter from anti-wrapping */
display: inline-block;
/* display: inline-block; */
}
.word .cluster::first-letter {}
.word:hover .cluster::before {
.word:hover .cluster::after {
color: #f5d30b;
-webkit-text-stroke: 1.5px black;
-webkit-text-fill-color: #f5d30b;
Expand All @@ -45,14 +45,14 @@ p {
.word:hover .cluster {
position: relative;
}
.word:hover .cluster::before {
.word:hover .cluster::after {
content: attr(data-letter);
position: absolute;
top: 0;
}
:lang(en) .word:hover .cluster::before {
:lang(en) .word:hover .cluster::after {
left: 0;
}
:lang(he) .word:hover .cluster::before {
:lang(he) .word:hover .cluster::after {
right: 0;
}

0 comments on commit 8ea5c3f

Please sign in to comment.