Re: [css-display]? Compositing, expensive things, and laziness

On Fri, Jun 21, 2013 at 10:08 AM, Nicholas Cameron <nick@ncameron.org>wrote:

> What happens with re-sizing? Assuming the display-optionality:optional
> element does not have fixed width/height and is in flow, then when the
> element does get rendered it might cause the rest of the document to need
> reflowing. That seems undesirable - users don't expect the webpage to
> randomly change some time after 'loading' is finished.
>

The idea is that this property has no effect on how layout works.
"Rendering" here just means painting.

Also, an idea: the default value is 'required' for visible elements, could
> we specify the default as 'optional' for invisible elements (display:none,
> visibility:hidden, etc)?
>

No. The default value of a CSS property can't depend on the values of other
properties. You could define an "auto" value that means "required" for
visible elements and "optional" for invisible ones. I'm not sure whether
that's a good idea...

Rob
-- 
Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le
atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids teoa
stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg iyvoeunr, 'm
aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt uIp waanndt
wyeonut thoo mken.o w

Received on Saturday, 22 June 2013 12:44:29 UTC