W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: [css21] undo style declarations / cascading

From: Pete Boere <pete@the-echoplex.net>
Date: Thu, 8 Nov 2012 10:08:57 +0000
Message-ID: <CAKZZz6ffh==eMRkRJcrj-FMoPONhNs2AyK97szpOe4XFjeG50Q@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: www-style@w3.org
+1
I ran into this too with the new resposive image techniques that are doing
the rounds.

The initial keyword doesn't seem to cover this either, though I may be
wrong.


On 8 November 2012 05:15, Andrew Fedoniouk <news@terrainformatica.com>wrote:

> Consider this markup
>
> <body id=main>
>     ...
>     <div id=editor contenteditable>
>         <table width=700 >...</table>
>     </div>
>
> </body>
>
> And in styles declared somewhere for the page there is such rule:
>
> #main table { width:100%; }
>
> that obviously applies to the #editor>table element and
> that ruins the design of content inside #editor.
>
> So there is a need for something like
>
> #editor>table { width: <use-default-handling>; }
>
> But I simply don't know what to put there. width:auto has different meaning
> for the table and other elements like img, textarea, etc.
>
> Disclaimer: I do know that @width and the like are deprecated but that
> is about editing real documents from the web wilderness.
>
> It should be something to achieve this, no?
>
> --
> Andrew Fedoniouk.
>
> http://terrainformatica.com
>
>


-- 
Pete Boere
Web Developer
Received on Thursday, 8 November 2012 10:09:26 GMT

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