[Webkit-unassigned] [Bug 250820] New: [MQ4] (regression) nested media query failure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 18 19:16:37 PST 2023


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

            Bug ID: 250820
           Summary: [MQ4] (regression) nested media query failure
           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: phiw2 at l-c-n.com
                CC: koivisto at iki.fi

Created attachment 464550

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

test case

A nested media query (MQ) prematurely closes the parent MQ, causing subsequent styles to be wrongly applied.

example:<style>
body { background: green; color: white }

@media screen and (min-width:10000px){
  body { border: 2px solid yellow;}
  @media screen { /* any MQ will do */
    .class { font-size: 2em;}
  }
  body { background: red;}
</style>

In Safari TP the background is red instead of green. Safari 16.2, Firefox and Blink all are correct.

I think this started with Safari TP 160.

-- 
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/20230119/0717a2b3/attachment.htm>


More information about the webkit-unassigned mailing list