Re: Feedback on "CSS Device Adaptation" draft 5/10/11

On 5/25/2011 2:28 AM, Kenneth Rohde Christiansen wrote:
> Are you really sure that it cannot be modified after the page loads?
> It definitely can in the browser that I am working on, and there is no
> code, at least in WebKit, that prohibits that.
>
>
> On Tue, May 24, 2011 at 7:35 PM,<mike.sierra@nokia.com>  wrote:
>> These are a couple of minor concerns about the CSS viewport spec, not necessarily "problems" per se, but issues that should be thought through as potential uncharted territory for CSS:
>>
>> * In current implementations, the viewport is applied once at page load and can't be modified therafter. This seems like a special case that's much different than other at-rules and properties. I didn't see any obvious discussion of the issue within the spec.

Same issue cropped up in webkit on device pixel ratio,
where -webkit-min-device-pixel-ratio does not change.
In Mozilla, it does change, upon user zoom (on the desktop).

With both implementations, window.devicePixelRatio is static.

Microsoft introduced the metrics into window.screen,
I don't believe they support the css extension at this time.

Mozilla will not introduce the metrics into the scripting environment,
they've expressed that they'll only keep them accessible to trusted scripts
and to the css environment.

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


-Charles

Received on Wednesday, 25 May 2011 16:13:05 UTC