[Webkit-unassigned] [Bug 51190] New: -webkit-min-device-pixel-ratio selector not changing on zoom event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 16 08:54:12 PST 2010


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

           Summary: -webkit-min-device-pixel-ratio selector not changing
                    on zoom event
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: chuck at jumis.com


CSS Pixel metrics are changed when a user zooms in / out of a site:
window.matchMedia('(-webkit-min-device-pixel-ratio: 1)').matches
should change as a result, but does not.


Test (using Mozilla prefixes), from Robert O'Callahan on the whatwg lists:

<style>
div { display:none; }
@media screen and (min--moz-device-pixel-ratio: 1.5) {
  .in { display:block; }
}
@media screen and (max--moz-device-pixel-ratio: 0.66666666) {
  .out { display:block; }
}
</style>
<div class="in">Zoomed in by a factor of at least 1.5</div>
<div class="out">Zoomed out by a factor of at least 1.5</div>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list