[Webkit-unassigned] [Bug 271109] New: [css-cascade] Hover specified only for an implicit scope does not work correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 16 05:08:50 PDT 2024


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

            Bug ID: 271109
           Summary: [css-cascade] Hover specified only for an implicit
                    scope does not work correctly
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kizmarh at ya.ru

Created attachment 470397

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

Saved HTML of the CodePen test case

Steps to reproduce:

1. Open this test-case in Safari TP with the CSS Scoping flag on: https://codepen.io/kizu/pen/ZEZBLpK (or create an element with an implicit scope that contains `:hover` pseudo-class)
2. Hover over the first button.
3. Click on this button.

In Chrome's implementation of CSS scopes the hover works correctly, but in Safari it does not trigger on hover, but is triggered when clicking on the button — probably repaint does not happen when necessary.

This only happens when the `:hover` is applied _only_ as a part of the implicit scope, adding any other `:hover` for this button outside of it (regardless if it will be scoped) fixes the issue, so probably the `:hover` specified inside implicit scopes does not make the element subscribe to the state change?

-- 
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/20240316/0496515f/attachment.htm>


More information about the webkit-unassigned mailing list