W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: [css-device-adapt] Bad way to solve circular dependency

From: Rune Lillesveen <rune@opera.com>
Date: Fri, 10 Apr 2015 15:49:28 +0200
Message-ID: <CANz6XvSFPnzjkYrXLXOKO+vAyeC2NVY+oLOvcj7Y4Lk8==WCcQ@mail.gmail.com>
To: Andrea Rendine <master.skywalker.88@gmail.com>
Cc: Florian Rivoal <florian@rivoal.net>, www-style list <www-style@w3.org>
On Fri, Apr 10, 2015 at 1:50 PM, Andrea Rendine
<master.skywalker.88@gmail.com> wrote:
>> There is a proposal to drop min/max-prefixes and rely on media queries instead.
> As I'm unaware of that, I don't understand how this would solve the
> issue though. Sorry.

No, it doesn't solve anything, my two points were about why we have to
handle the circularity one way or another, so why not handle @viewport
inside @media the same way we handle @viewport inside style/link with
media attribute.

>> That was discussed, but the argument against was that we would still need to handle the media query case for the media attribute
> This regards how style is applied, I guess. Couldn't it be solved the same way?
> What is the difference *for the rendering engine* between
> /* CSS */ @media ...
> <link rel="stylesheet" media="..." />
> <style media="..."></style>
> ?

<link> and <style> are the same, I just happened to show <style> as an
example. My point is that we need to handle @viewport depending on
viewport-relative media queries either way. Dropping @viewport inside
stylesheets based on the owner element's media attribute would be
weird.

-- 
Rune Lillesveen
Received on Friday, 10 April 2015 13:49:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC