Skip to content

Commit 0a2e8dd

Browse files
authored
HTML styles: fix style of hr so it works when printed (#10535)
Previously `background-color` was used to style the hr, but this gets ignored when printing. This commit uses `border-top` instead.
1 parent 244156c commit 0a2e8dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

data/templates/styles.html

+1-1
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

+1-1
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

+1-1
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)