[webkit-dev] About WebIDL supplemental interfaces
stearns at adobe.com
Thu Jul 19 11:04:58 PDT 2012
Currently, an Element is the only thing represented in the object model
that can become a CSS Region.
Pseudo-elements (::before and ::after) can become CSS Regions, but AFAIK
there isn't yet a representation of those in the OM. I'm hoping this
changes in the future (I'm working on a spec that addresses this), so that
could be a second copy. I can construct a region chain now that includes
pseudo-element Regions, and the NamedFlow interface is supposed to return
a sequence of Regions from its getRegions() method. So ideally we'd have a
way of returning a Region interface for those pseudo-elements that have
been added to the region chain.
On 7/19/12 10:50 AM, "Adam Barth" <abarth at webkit.org> wrote:
>What else can become a region besides an element? If there aren't too
>many interfaces, we can just copy/paste this stanza into each IDL,
>like we do for EventTarget. If there are a lot of them, then I agree
>that you'll probably want a fancier Supplemental feature.
>One way to approach that is to make the [Supplemental] attribute take
>a list of interfaces. That should be straightforward to implement
>given our current implementation of Supplemental.
>On Thu, Jul 19, 2012 at 9:58 AM, Andrei Bucur <abucur at adobe.com> wrote:
>> Hello Adam,
>> The spec does not explicitly states that the Region should be
>> however after raising some issues on www-style (
>> http://lists.w3.org/Archives/Public/www-style/2012Jul/0251.html ) and
>> talking them through (offline) it seemed the best way to solve them was
>> making Region supplemental for Element and any other object that could
>> become region. Right now, I'm feeling out the situation to see how
>> this is to be implemented in WebKit.
>> From: Adam Barth <abarth at webkit.org>
>> Date: Thursday, July 19, 2012 7:31 PM
>> To: Andrei Bucur <abucur at adobe.com>
>> Cc: Kentaro Hara <haraken at chromium.org>, "webkit-dev at lists.webkit.org"
>> <webkit-dev at lists.webkit.org>
>> Subject: Re: [webkit-dev] About WebIDL supplemental interfaces
>> Can you say what specifically in the CSS regions spec is giving you
>webkit-dev mailing list
>webkit-dev at lists.webkit.org
More information about the webkit-dev