Re: [css-content] Inserting and replacing content with the 'content' property

On Tue, 11 Nov 2014 12:35:47 +0100, Bruce Lawson <brucel@opera.com> wrote:

> On 11 November 2014 11:23, Florian Rivoal <florian@rivoal.net> wrote:
>> there were web-compat concerns back at Opera
>
> FYI, there were sites doing "clearfix" but instead of doing
>
> .container:after {
>   content:"";
>   display:table;
>   clear:both;
> }
>
> they'd typo'd it to
>
> .container  {
>   content:"";
> ...
> }
>
> and so replaced all their content with "" in Presto Opera. (and, of
> course, their "clearfix" didn't work in any other browser).

Yep.

If we wanted this functionality in a way that is compatible, we could use  
different syntax for elements, e.g.

#foo { content: replace "hello" }

-- 
Simon Pieters
Opera Software

Received on Tuesday, 11 November 2014 12:57:17 UTC