[Webkit-unassigned] [Bug 268687] New: Absolute positioned elements will not be printed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 3 02:55:28 PST 2024


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

            Bug ID: 268687
           Summary: Absolute positioned elements will not be printed
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Printing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: imbashenk at hotmail.com

When positioning an element absolute on a page. This element won't show up when printing this page.

Below is a reproduction of this issue.

```
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>print safari</title>
  </head>
  <body>
    <style>
      * {
        box-sizing: border-box;
      }

      article {
        position: relative;
        height: 50vh;
      }

      div {
        position: absolute;
        width: 100px;
        height: 100px;
        background-color: red;
      }
    </style>
    <article>
      <div></div>
    </article>
  </body>
</html>
```

-- 
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/20240203/92b161a2/attachment.htm>


More information about the webkit-unassigned mailing list