W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: [css3-content] "content" property, replaced elements, and width

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Mon, 10 May 2010 17:02:15 +0200
Message-ID: <4BE81FF7.8000109@disruptive-innovations.com>
To: www-style list <www-style@w3.org>
Le 09/05/10 19:04, Tab Atkins Jr. a écrit :

> p { content: url(image); }
> p::before { content: "foo"; }
>
> I presume it should fall under the same "undefined" banner that
> setting img::before does, correct?

Sigh.
Imagine a CMS where the following styles are enforced by the system:

   img.companyLogo {
     content: url(logo.png);
   }

   img:not(.validatedByComDpt).companyLogo::before {
     background-color: red;
     color: black;
     font-weight: bold;
     content: "VALIDATION REQUIRED";
   }

</Daniel>
Received on Monday, 10 May 2010 15:02:47 GMT

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