[Webkit-unassigned] [Bug 256647] New: [css-nesting] Serialize properties directly in parent group rule only (for the first nested style rule)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 11 08:03:46 PDT 2023


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

            Bug ID: 256647
           Summary: [css-nesting] Serialize properties directly in parent
                    group rule only (for the first nested style rule)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: m_dubet at apple.com

Orphaned properties in group rules are implicitly added to a style rule with '&' as selector ; this implicit rule should not be serialized.

foo {
    @media screen {
        color: green;
    }
}

is implemented as 

foo {
    @media screen {
        & {
            color: green;
        }
    }
}

but this should not appear in the CSS OM serialization

-- 
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/20230511/f5031c8c/attachment.htm>


More information about the webkit-unassigned mailing list