Skip to content

Commit

Permalink
Remove print thead rule (#101)
Browse files Browse the repository at this point in the history
* Update _print.css

The ``thead`` rule is safe to remove -- it was a workaround for browsers that didn't conform to this part of the CSS 2.1 spec. (https://www.w3.org/TR/CSS21/tables.html#table-display)
In practice, this meant IE 6 & IE 7.

* Update README.md
  • Loading branch information
mattbrundage authored Jan 21, 2021
1 parent 1fb3111 commit 5b37a83
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ At printing time, these styles will:
[supporting browsers](https://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28Cascading_Style_Sheets%29#Grammar_and_rules)
that they should:

- ensure the table header (`<thead>`) is [printed on each page spanned by the
table](https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables)
- prevent block quotations, preformatted text, images and table rows from
being split onto two different pages
- ensure that headings never appear on a different page than the text they
Expand Down
8 changes: 0 additions & 8 deletions src/_print.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@
page-break-inside: avoid;
}

/*
* Printing Tables:
* https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
*/
thead {
display: table-header-group;
}

tr,
img {
page-break-inside: avoid;
Expand Down

0 comments on commit 5b37a83

Please sign in to comment.