[Webkit-unassigned] [Bug 284634] New: SVG elements with display: contents is visually hidden

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 13 08:54:18 PST 2024


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

            Bug ID: 284634
           Summary: SVG elements with display: contents is visually hidden
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit.jiion at passinbox.com

1. With Epiphany on Ubuntu (also tested with Safari TP 209)
2. Open reduced test case on CodePen : https://codepen.io/ffoodd/pen/WbeowEj?editors=1000


Three SVG <circle> are in the markup: 
1. one without any style, 
2. one with `style="display: contents` on <circle>, 
3. and another with a `<g style="display: contents">` containing the `<circle>`.

Expected: circle are shown.

Actual: circles with `display: contents` are visually hidden.


FWIW, both Chromium and Firefox renders the third circle (`display: contents` on `<g>`) but not the second circle.

I ran onto this behaviour while trying to stop SMIL animations in CSS when `prefers-reduced-motion: reduce` is true, but it seems that this behavior is not related to animations at all.

-- 
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/20241213/449279d4/attachment.htm>


More information about the webkit-unassigned mailing list