What CSS styles are not inherited for tables in quirks mode?

  • Thread starter Kornél Pál
  • Start date
K

Kornél Pál

Hi,

Usually I use standards compliant mode but most search engines are
adding code before DOCTYPE for cached results and I want to present a
reliable layout there as well.

Most quirks mode differences are minor but I really don't like that
tables don't inherint a bunch of CSS styles.

I have created two rule sets:

This works with browsers other than Internet Explorer (except font-size:
1em):

table, caption {
color: inherit;
font-size: 1em;
font-style: inherit;
font-variant: inherit;
font-weight: inherit;
line-height: inherit;
text-decoration: inherit;
white-space: inherit;
}

Internet Exlorer (pre-IE8) has no support for inherit, so I use this
that does the same thing but persumably uses more CPU:

table, caption {
color: expression(this.parentNode.currentStyle.color);
font-style: expression(this.parentNode.currentStyle.fontStyle);
font-variant: expression(this.parentNode.currentStyle.fontVariant);
font-weight: expression(this.parentNode.currentStyle.fontWeight);
line-height: expression(this.parentNode.currentStyle.lineHeight);
text-decoration: expression(this.parentNode.currentStyle.textDecoration);
white-space: expression(this.parentNode.currentStyle.whiteSpace);
}

For open source browsers I was able to analyse their quirks mode style
sheets as a result I came up with the above solution.

Internet Explorer is closed source so I would like to ask you to provide
me with an exact list on what CSS properties are not inherited (that
were otherwise inherited according to CSS specifications) for tables and
captions in quirks mode.

Thank you very much.

Best regards,
Kornél Pál
 
A

Allen Chen [MSFT]

Hi Kornél Pál,
Internet Explorer is closed source so I would like to ask you to provide
me with an exact list on what CSS properties are not inherited (that
were otherwise inherited according to CSS specifications) for tables and
captions in quirks mode.

I have no a handy list but you can look it up on MSDN:

http://msdn.microsoft.com/en-us/library/ms530759(VS.85).aspx

For each property it will tell you whether it's inherited. If you have
additional questions please feel free to ask.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top