Skip to content

Commit 83459b4

Browse files
committed
fix WebKit rendering bugs
1 parent 45eb8e5 commit 83459b4

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

Assets/css/Main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/css/Main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Stylesheets/class/declaration.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88

99
a
1010
{
11-
text-decoration: underline dashed;
11+
text-decoration: underline;
12+
text-decoration-style: dashed;
1213
}
1314
a:hover
1415
{
15-
text-decoration: underline;
16+
text-decoration-style: solid;
1617
}
1718

1819
// Specific to declaration snippets.

Stylesheets/class/hero.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@
5555
font-weight: 500;
5656
font-size: 90.625%;
5757

58+
a
59+
{
60+
text-decoration: underline;
61+
}
5862
a:not(:hover)
5963
{
6064
color: var(--fg-semi);
61-
text-decoration: underline dashed;
65+
text-decoration-style: dashed;
6266
}
6367

6468
> *:first-child

Stylesheets/element/pre.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ pre
5353
a
5454
{
5555
color: inherit;
56-
}
57-
a
58-
{
59-
text-decoration: underline dashed;
56+
57+
// WebKit requires separate statements for dashed underline.
58+
text-decoration: underline;
59+
text-decoration-style: dashed;
6060
}
6161
a:hover
6262
{
63-
text-decoration: underline;
63+
text-decoration-style: solid;
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)