W3C home > Mailing lists > Public > www-style@w3.org > November 2014

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

From: Simon Pieters <simonp@opera.com>
Date: Tue, 11 Nov 2014 13:56:51 +0100
To: "Florian Rivoal" <florian@rivoal.net>, "Bruce Lawson" <brucel@opera.com>
Cc: "Bogdan Brinza" <bbrinza@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.xo5vk1wuidj3kv@simons-mbp>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:26 UTC