W3C home > Mailing lists > Public > www-style@w3.org > August 2009

Re: multiple backgrounds, shadows, text-fills...

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 17 Aug 2009 15:13:56 -0500
Message-ID: <dd0fbad0908171313r16d7ad61taf3f71d1d22f5977@mail.gmail.com>
To: David Perrell <davidp@hpaa.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, Brad Kemper <brad.kemper@gmail.com>, www-style list <www-style@w3.org>
On Mon, Aug 17, 2009 at 1:51 PM, David Perrell<davidp@hpaa.com> wrote:
> Tab Atkins Jr. wrote:
> | ...Multiple
> | backgrounds and multiple shadows both sort of suck - they basically
> | break the spirit of the cascade, even if they still conform to the
> | letter of it.  Not sure how to solve this.
>
> As regards the DOM-scripting issue when a single value becomes a comma-separated list, the obvious solution is to get rid of them. Anyone needing that complexity can get it with nested divs.

Nested shim divs is *not* generally an acceptable solution.  It's also
sometimes not even a *possible* solution, frex if the element is
display:table-cell.  There's no way to get multiple nested divs to all
fill the exact same space in that situation without specifying
explicit width/heights.

One way around this might be with ::outside and ::inside
pseudoelements, which can be stacked arbitrarily deep.  Dunno if
either of those would quite solve the sizing issue, though.

~TJ
Received on Monday, 17 August 2009 20:15:03 GMT

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