[Webkit-unassigned] [Bug 158422] New: matchMedia late by 1px compared to CSS media query

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 6 09:14:51 PDT 2016


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

            Bug ID: 158422
           Summary: matchMedia late by 1px compared to CSS media query
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: yeldinov at gmail.com

@media (min-width: 720px) and (max-width: 989px) {
    #css {
        background-color: orange;
    }
}

window.matchMedia('(min-width: 720px) and (max-width: 989px)').addListener( ... );

At 720px background color will become orange, and only at 721px MediaQueryList will fire an event notifying that breakpoint changed

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160606/2e793b2e/attachment.html>


More information about the webkit-unassigned mailing list