Skip to content

Commit 7917c27

Browse files
nathanlesagechristopherkenny
authored andcommitted
HTML styles: fix style of hr so it works when printed (jgm#10535)
Previously `background-color` was used to style the hr, but this gets ignored when printing. This commit uses `border-top` instead.
1 parent 78b1992 commit 7917c27

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

data/templates/styles.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
overflow: visible;
131131
}
132132
hr {
133-
background-color: #1a1a1a;
134133
border: none;
134+
border-top: 1px solid #1a1a1a;
135135
height: 1px;
136136
margin: 1em 0;
137137
}

test/writer.html4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110
overflow: visible;
111111
}
112112
hr {
113-
background-color: #1a1a1a;
114113
border: none;
114+
border-top: 1px solid #1a1a1a;
115115
height: 1px;
116116
margin: 1em 0;
117117
}

test/writer.html5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110
overflow: visible;
111111
}
112112
hr {
113-
background-color: #1a1a1a;
114113
border: none;
114+
border-top: 1px solid #1a1a1a;
115115
height: 1px;
116116
margin: 1em 0;
117117
}

0 commit comments

Comments
 (0)