Re: Proposing content-hidden for background-image and img content

On 9/8/2011 10:21 AM, Tab Atkins Jr. wrote:
> On Thu, Sep 8, 2011 at 10:06 AM, Charles Pritchard<>  wrote:
>> What about borrowing the current terminology from HTML5, and calling it:
>> "content: transparent;"
>> The transparent keyword would only apply to the element (not the pseudo
>> element, which is already
>> covered by inhibit and other flags).
> What would content:transparent do?  In HTML "transparent" is just a
> term for the semantics of some elements.
> (We've also discussed a display:transparent that would be thematically
> similar to HTML's notion of "transparent" - the element wouldn't
> generate a box in the box tree (similar to display:none), but its
> children still would.)

It would maintain the content box sizing, while not-showing any elements.
Basically, the same thing that <canvas> does.

canvas { content: transparent; }


Received on Thursday, 8 September 2011 17:44:46 UTC