W3C home > Mailing lists > Public > www-html@w3.org > February 2006

Re: XHTML 2.0 - <object/> elements and CSS

From: Daniel Schierbeck <daniel.schierbeck@gmail.com>
Date: Sat, 25 Feb 2006 13:41:58 +0100
Message-ID: <44005096.4080102@gmail.com>
To: Ignacio Javier <ijavier@efenet.com>
CC: www-html@w3.org

Ignacio Javier wrote:
>
> ----- Original Message ----- From: "Daniel Schierbeck"
> Sent: Friday, February 24, 2006 1:46 PM
> Subject: XHTML 2.0 - <object/> elements and CSS
>>
>> Say I have the following piece of XHTML
>>
>>  <object srctype="image/svg+xml" src="graph.svg">
>
> src=..., not srctype 
> (http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)
Um, I'm talking about XHTML *2.0*
>
>>    <table>
>>      <thead>...</thead>
>>      <tbody>...</thead>
>>    </table>
>>  </object>
>> And that graph.svg is an interactive image that isn't fit for printing.
>>
>> I know that an XHTML 2.0 compliant browser will simply use the 
>> fallback content (<table/>) if it doesn't recognize the content type 
>> of the source, but how can I do the same through, say, CSS?
>>
>> That way the <table/> gets printed, while the SVG image is shown 
>> on-screen.
>
> Element hidding (display, visibility) in CSS does not have not xml 
> inheritance considerations. I think.
> I don't know really if we are talking about this:
>
> @media print {
>    object {
>        display: none;
>    }
>
>    object table {
>        display: table;
>    }
> }
>
>
>
>
Received on Saturday, 25 February 2006 12:41:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:05 GMT