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

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 UTC