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

Re: Proposal for image placeholder

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 17 Jan 2014 15:34:57 -0800
Cc: Binyamin <7raivis@inbox.lv>, www-style list <www-style@w3.org>
Message-Id: <2419AFAF-021F-4459-B419-65B924B33BC1@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>


> On Jan 17, 2014, at 11:30 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
> 
>> On Mon, Jan 6, 2014 at 10:44 AM, Binyamin <7raivis@inbox.lv> wrote:
>> I propose to implement a placeholder for img element (maybe also for
>> iframe?). Apply all CSS background properties for placeholder in order to
>> make it customizable as more as possible.
>> 
>> background: color position size repeat origin clip attachment image;
>> placeholder: color position size repeat origin clip attachment image;
>> 
>> High priority need for placeholder is for resource priorities
>> http://www.w3.org/TR/resource-priorities/. And since resource-priorities
>> applies also to background-image, background is not a solution for
>> placeholder. That means there is a need for new property like "placeholder".
> 
> What is the placeholder for?  Why don't resource priorities apply to
> the placeholder image as well?
> 
> ~TJ
> 

Maybe something like this:

img.big { 
    width: 1200px; 
    height: 1200px; 
}
img.big:not-loaded {
    content: "chill, while we load this image";
    border: 2px solid red;
    display: table-cell;
    vertical-align: middle;
    color: white;
    background-color: #444;
}
Received on Friday, 17 January 2014 23:35:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:38 UTC