[Webkit-unassigned] [Bug 78087] Enable the 'resolution' media query by default

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 25 00:35:19 PDT 2021


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

Sam Sneddon [:gsnedders] <gsnedders at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gsnedders at apple.com

--- Comment #17 from Sam Sneddon [:gsnedders] <gsnedders at apple.com> ---
(In reply to Brent Fulgham from comment #16)
> (In reply to Brent Fulgham from comment #15)
> > (In reply to Mattia Astorino from comment #14)
> > > This bug was filed 8 years ago, even IE 9 supports this important media
> > > query. What happened here? ��
> > 
> > The media query has existed in WebKit since 2012. It looks like some details
> > specific to printing were not completed
> > 
> > @Mattia: What issues have you had when you used the 'resolution' media query
> > in Webkit? Were you attempting printing?
> 
> I see - it's present but apparently not enabled by default? I'm trying to
> see what the correct state of this flag should be.

Correct; ENABLE_RESOLUTION_MEDIA_QUERY is not defined for any current port, as far as I can tell (and that's likely been the case since the Blink fork). It doesn't look like there's anything too likely to have bitrotted or is missing there, at least.

(In reply to Theresa O'Connor from comment #5)
> General comment: It's not clear to me why we would implement the resolution
> media query, considering how broken it is.

The thread starting at https://lists.w3.org/Archives/Public/www-style/2012Apr/0674.html is about this brokenness, and summarised in Maciej's response in https://lists.w3.org/Archives/Public/www-style/2012Apr/0747.html:

> For comparison, device-pixel-ratio was first implemented as a vendor extension in 2006[1] and exists (prefixed) in at least WebKit, Presto and Gecko. So I wondered why device-pixel-ratio counts as "add[ing] anything new" but the [first defined in late 2011/early 2012] dppx unit does not. I don't follow closely, so maybe there is some reason for diverging from content and implementations here.

Regardless, while it might be the case that resolution: [n]dppx (and the other <resolution> units, aside from dppx, are confusing) is redundant with -webkit-device-pixel-ratio: n (which is itself now standardised in https://compat.spec.whatwg.org/#css-media-queries-webkit-device-pixel-ratio), I think it's pretty clear the ship here has sailed.

-- 
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/20210825/708b73c1/attachment.htm>


More information about the webkit-unassigned mailing list