Re: [css3-gcpm] new editor's draft; page lists, page floats, text-replace

On Wed, Sep 3, 2008 at 9:49 AM, Håkon Wium Lie <howcome@opera.com> wrote:

>  - text-replace: there was a debate at the F2f whether (a) this
>    funcionality should be offered as part of CSS, or (b) if it can be
>    expressed in a different way. Here is one possible solution:
>
>       *:text("Soviet Union") { content: "Russia" }
>
>    which, potentiall, could be even mover powerful:
>
>       *:text("Soviet Union") { content: "Russia"; color: red }


I'm not entirely sure how this is supposed to work.  Is the :text
pseudoclass meant to match only if the element contains *only* that text and
nothing else?  That seems to be the only way to square it with the operation
of the content: property.  It also makes it fairly useless.  It would likely
be more sensical to use a ::text() pseudoelement.

I'm assuming that this doesn't cross element boundaries either, as I think
that was the reason why a very similar proposal was dropped from an earlier
draft of Selectors.  This makes the operator somewhat fragile for its
intended purpose.

~TJ

Received on Wednesday, 3 September 2008 17:03:32 UTC