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

Re: Extending CSSOM Views matchMedium with callback Re: CSS WG comments on View Modes Media Feature spec

From: Arthur Barstow <Art.Barstow@nokia.com>
Date: Tue, 13 Apr 2010 09:39:47 -0400
Message-Id: <65760D3C-9A8C-47BC-8B97-B9C4FB4BF097@nokia.com>
Cc: public-webapps <public-webapps@w3.org>, www-style@w3.org
To: Anne van Kesteren <annevk@opera.com>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, ext Marcos Caceres <marcosc@opera.com>, Simon Fraser <smfr@me.com>, Robin Berjon <robin@berjon.com>
All - FYI, I think the next steps here are to hash out some process  
related issues so I started a related discussion on the public- 
hypertext-cg mail list:

   http://lists.w3.org/Archives/Public/public-hypertext-cg/2010AprJun/ 
0001.html

-Art Barstow


On Apr 12, 2010, at 4:12 PM, ext Marcos Caceres wrote:

>
> On Apr 12, 2010, at 8:50 PM, Simon Fraser <smfr@me.com> wrote:
>
>>
>> On Apr 12, 2010, at 2:25 AM, Marcos Caceres wrote:
>>
>>> On Fri, Mar 26, 2010 at 2:25 PM, Marcos Caceres <marcosc@opera.com>
>>> wrote:
>>>> On Thu, Mar 18, 2010 at 4:02 PM, Simon Fraser <smfr@me.com> wrote:
>>>>> On Mar 18, 2010, at 6:44 AM, Marcos Caceres wrote:
>>>>>
>>>>>>> 4. all these queries could/should have an event-based
>>>>>>> counterpart so the
>>>>>>>  changes are detectable by code. We understand this is outside
>>>>>>> of the
>>>>>>>  scope of this spec but that's still an important comment.
>>>>>>
>>>>>> We have a proposal already for the CSS WG to review:
>>>>>> http://dev.w3.org/2006/waf/widgets-vm/vm-interfaces.src.html
>>>>>
>>>>> It seems like this needs to align to the current CSS OM View spec:
>>>>> <http://dev.w3.org/csswg/cssom-view/>
>>>>>
>>>>> which has a StyleMedia interface available on the window object
>>>>> as 'styleMedia', rather than 'media'.
>>>>>
>>>>> I would expect to see events related to media type changes in the
>>>>> CSS OM View spec too, rather than in a widgets-related spec.
>>>>
>>>> I totally agree, there is much overlap. We should start looking at
>>>> how
>>>> to merge the two specs (or our requirements) into the CSS OM View
>>>> spec. I would be happy for the widgets one to vanish if the CSS OM
>>>> View spec would handled our use cases.
>>>>
>>>> Perhaps we should have a joint teleconf or something to arrange
>>>> how to
>>>> proceed...  I'll leave that up to the chairs, however.
>>>
>>> To make Widget View Modes Interfaces [1] redundant, we would like to
>>> propose extending CSSOM Views' matchMedium method to have a callback
>>> as a second argument.
>>>
>>> This would address the following sections of [1] in the following
>>> ways:
>>>
>>> # 3.2. Media Type Changed Event Types
>>> styleMedia.matchMedium("screen", function() { alert("no
>>> longer screen!") })
>>>
>>> # 3.3. View Mode Changed Event Types
>>> styleMedia.matchMedium("(viewmodesyntax)", ... )
>>>
>>> # 3.4. Resolution Changed Event Types
>>> styleMedia.matchMedium("(resolution:300dpi)", ... )
>>>
>>> # 3.5. Orientation Changed Event Types
>>> styleMedia.matchMedium("(orientation:landscape)", ... )
>>>
>>> The proposal has it's origins on the Mozilla bug list (see comment
>>> from David Baron):
>>> https://bugzilla.mozilla.org/show_bug.cgi?id=542058#c3
>>
>> This is overlapping with ViewModeChanged events:
>> <http://dev.w3.org/2006/waf/widgets-vm/vm- 
>> interfaces.src.html#viewmodechangedeventtypes
>>>
>>
>> Do we really need both?
>>
>
> No, we don't need both. To be clear, we want to kill off  vm-
> interfaces.src.html in favor of CSSOM Views (as we have shown that it
> does more or less what we need).
>
> Kind regards,
> Marcos
Received on Tuesday, 13 April 2010 13:43:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT