W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: Pseudo-element proposal

From: Brian Kardell <bkardell@gmail.com>
Date: Tue, 7 Aug 2012 14:52:50 -0400
Message-ID: <CADC=+jeqQYT6UfmbVkbSkF11xno2btp8BHAj9tPTKybAsFadww@mail.gmail.com>
To: Alan Stearns <stearns@adobe.com>
Cc: "www-style@w3.org" <www-style@w3.org>, Chris Coyier <chriscoyier@gmail.com>
I love that this is available in JS, a few of us have been proposing
that this is an excellent way to get things rolling, etc...

However, even in another thread today we were discussing prefixing,
forward compatibility, etc. and I feel like suggesting that this would
be even better if it did not try to literally polyfill something in
the native space which may or may not be implemented in the future
with similar/partial APIs or differences.  Does anyone else think that
it might be better to prefix the experimental pseudos?  In other
words, instead of:

::nth-last-pseudo(column, odd)

It would be something like...

::-x-nth-last-pseudo(column, odd)

I suppose see related threads for all of the rationale, but this
creates a nice author opt-in model which is clearly emulated at this
early phase -- shouldn't break when native are available even if there
are differences, etc...

-Brian

On Tue, Aug 7, 2012 at 1:47 PM, Alan Stearns <stearns@adobe.com> wrote:
> Dear www-style,
>
> We at Adobe have started working on a new specification extracting the
> notion of Pseudo-Element from the Selectors REC and extending it to
> allow multiple "before" and "after" pseudo-elements created by one
> single element. This is useful for effects like the ones collected in
>
>    http://css-tricks.com/use-cases-for-multiple-pseudo-elements/
>
> but can serve other purposes like creating boxes for CSS Regions.
> It will also simplify the level 4 Selectors spec, separating
> the notion and grammar of pseudo-elements from their syntax and
> rendering definitions.
>
> The proposal is available at
>
>
> http://adobe.github.com/web-platform/utilities/css-pseudo-elements/docs/css
> 4-pseudoelements.html
>
> We have implemented a JavaScript-based prototype to allow us to
> validate the syntax. The code is available at
>
>    https://github.com/adobe/css-pseudo-elements
>
> and demos based on that prototype are available at
>
>    http://adobe.github.com/web-platform/utilities/css-pseudo-elements/
>
> We expect discussion about this proposal to happen during
> the forthcoming CSS WG face-to-face meeting in San Diego
> and will happily respond to all feedback sent to www-style
> with a leading "[css4-pseudos] " in the subject line.
>
> Best regards,
>
> Razvan Caliman, Adobe Systems, Inc.
> Daniel Glazman, Disruptive Innovations SAS
> Alan Stearns, Adobe Systems, Inc.
>
>
>
>
>
>
>
Received on Tuesday, 7 August 2012 18:53:18 GMT

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