Skip to content

Commit

Permalink
Suppress scrollable table cells when printing.
Browse files Browse the repository at this point in the history
Much like we suppress most (all?) other block-level scrollframes, see:

  https://searchfox.org/mozilla-central/rev/5c4a45eb17423373ecb71aea9819d41a6231613e/layout/base/nsCSSFrameConstructor.cpp#4392-4394

Otherwise we try to fragment a scrollframe, not good.

Differential Revision: https://phabricator.services.mozilla.com/D200370

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1877591
gecko-commit: 24dacb4bb526be404f5617ca9413a4a12c5314b7
gecko-reviewers: dholbert
  • Loading branch information
emilio authored and moz-wptsync-bot committed Feb 2, 2024
1 parent f10f928 commit 67451f9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions css/printing/table-overflow-quirks-frameset-crash-print.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- quirks -->
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1877591">
<!-- Really a crashtest but since we can't really have print crashtests, we assert that we print something -->
<link rel="mismatch" href="/css/reference/blank.html">
<style>
* {
bottom: 1px;
overflow-y: auto;
}
</style>
<table>
<th>
<span id="a"></span>
</th>
</table>
<script>
a.appendChild(document.createElement("frameset"));
</script>

0 comments on commit 67451f9

Please sign in to comment.