[Webkit-unassigned] [Bug 272527] New: Elements with border, position: absolute and aspect-ratio: 1 are not square

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 11 08:00:10 PDT 2024


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

            Bug ID: 272527
           Summary: Elements with border, position: absolute and
                    aspect-ratio: 1 are not square
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: alex.reid at growkudos.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 470863

  --> https://bugs.webkit.org/attachment.cgi?id=470863&action=review

A simple page that reproduces the issue

WebKit sizes elements with aspect-ratio: 1 and a border of non-zero width differently when they are position: static and position: absolute. aspect-ratio should force the elements to be perfect squares, but when position: absolute is applied to an element with fixed height and width auto, the element is distorted horizontally by an amount equal to twice the border width. This does not happen if the width of the element is fixed and the height is auto. 


Tested in Safari Technology Preview Release 192 (Safari 17.4, WebKit 19619.1.8.1)

-- 
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/20240411/f46a7d35/attachment.htm>


More information about the webkit-unassigned mailing list