[Webkit-unassigned] [Bug 276039] Add default @page margin box content alignment to UA stylesheet

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 30 17:37:58 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=276039

--- Comment #1 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
/* Pagination */

@media print {
  @page {
    /* https://drafts.csswg.org/css-page-3/#margin-text-alignment */
    @top-left-corner {
      text-align: right;
      vertical-align: middle;
    }
    @top-left {
      text-align: left;
      vertical-align: middle;
    }
    @top-center {
      text-align: center;
      vertical-align: middle;
    }
    @top-right {
      text-align: right;
      vertical-align: middle;
    }
    @top-right-corner {
      text-align: left;
      vertical-align: middle;
    }
    @right-top {
      text-align: center;
      vertical-align: top;
    }
    @right-middle {
      text-align: center;
      vertical-align: middle;
    }
    @right-bottom {
      text-align: center;
      vertical-align: bottom;
    }
    @bottom-right-corner {
      text-align: left;
      vertical-align: middle;
    }
    @bottom-right {
      text-align: right;
      vertical-align: middle;
    }
    @bottom-center {
      text-align: center;
      vertical-align: middle;
    }
    @bottom-left {
      text-align: left;
      vertical-align: middle;
    }
    @bottom-left-corner {
      text-align: right;
      vertical-align: middle;
    }
    @left-bottom {
      text-align: center;
      vertical-align: bottom;
    }
    @left-middle {
      text-align: center;
      vertical-align: middle;
    }
    @left-top {
      text-align: center;
      vertical-align: top;
    }
  }

  /* Allows table headers and footers to print at the top / bottom of each
     page. */
  thead { break-inside: avoid; }
  tfoot { break-inside: avoid; }
}

^ This was added (some old bits as well - which we might not need to add etc.).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240701/99aa1a37/attachment.htm>


More information about the webkit-unassigned mailing list