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

Re: Discussing possibilities of a 'CSS-ignore' rule.

From: Lea Verou <lea@w3.org>
Date: Fri, 21 Sep 2012 18:20:42 +0200
Cc: www-style@w3.org
Message-Id: <49895C3C-6745-4C5A-9671-4E3A102E24F8@w3.org>
To: Ketan Singh <singh.ketan7@gmail.com>
This sounds like the all: initial; proposal. Not sure what happened with that.

Lea Verou
W3C developer relations
http://w3.org/people/all#leahttp://lea.verou.me ✿ @leaverou

On Sep 21, 2012, at 01:53, Ketan Singh wrote:

> Hello there!
> I am Ketan, 23. I am a web developer based in India. I am freelancer at digit, which is the leading technology magazine published in India. 
> I've been working on a project this week, which has a PHP script that is meant to open a popup window that contains a 'template' with dynamically generated values plugged in. The template was originally generated by Microsoft Word 2010, using the 'html, featured' (or something like that) saving option. The reason why I went for it instead of using CSS on HTML markup, is because of the complexity of the tables that had to be created, and I am sort of running short of time.
> The tricky part started when I decided to insert the project's theme 'header' and 'footer' into that popup, which required me to include the css file on it as well. Now that the external css file is hooked up with with the popup, I have kind of, lost control on the styling that was originally generated by Microsoft word. Though most of the template markup has inline definitions, still some parts are not showing up as expected.
> This makes me feel a need for something that could be called 'css-ignore'. E.g. If I had a div with id 'my_div', I could have used something like #my_div{  css-ignore:external;  } which could have asked the browser not to associate any external style sheets with 'my_div'. The css-ignore rule could have possible values such as 'inline', 'internal', 'external', which could make the browser ignore css of a certain 'kind' for a particular selection of elements.
> I guess, there are many possible ways this can be achieved, many of them kind of 'hackish' like tweaking it using jQuery; but having a proper legitimate rule for it would certainly be helpful for many of us. 
> In addition, it can also be a great tool for developers, who might need it to test their codes, in case they don't have a proper debugger.
> I'd like to apologize in advance in case something similar to this already exists. I couldn't spare much time to research on this topic. 
> In case there isn't anything similar to this, I'd love to discuss how this can be taken forward.
> Waiting for hearing from you!
> Regards,
> Ketan Singh
Received on Friday, 21 September 2012 16:20:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:04 UTC