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

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

From: Andrea Rendine <master.skywalker.88@gmail.com>
Date: Fri, 10 Apr 2015 17:17:07 +0200
Message-ID: <CAGxST9kh9LPpcJd1Aw_LE1TJxMsCvsaNoebuaOFrLRAgpUEKPQ@mail.gmail.com>
To: Rune Lillesveen <rune@opera.com>
Cc: Florian Rivoal <florian@rivoal.net>, www-style list <www-style@w3.org>
> Dropping @viewport inside stylesheets based on the owner element's media attribute would be weird.
Weird but nonetheless viable or weird period?
However, I guess this thread does not deserve to be sustained any
longer. I guess 100% of situations can be solved by simply avoiding
@viewport inside media query blocks.
As a final note, if the CSS parser copied the content of the
stylesheet inside a "virtual" media query block having the same
condition of the media attribute, it would be perfectly fine to state
that in those cases,@viewport is simply not considered.

The way it works now, by putting @viewport in an inline/linked
stylesheet whose owner element has a media attribute forces the
condition to be re-evaluated (opposite to what happens with @media
rule inside a stylesheet), am I correct?
Received on Friday, 10 April 2015 15:17:34 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:50 UTC