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

[css21] undo style declarations / cascading

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Wed, 7 Nov 2012 21:15:46 -0800
Message-ID: <CALRQH78Keedk_Q=VXVMEd0-DeiTCnoFjL=Y6mEaFgTTGD=xtZw@mail.gmail.com>
To: www-style@w3.org
Consider this markup

<body id=main>
    <div id=editor contenteditable>
        <table width=700 >...</table>


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.

Received on Thursday, 8 November 2012 05:16:13 UTC

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