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

Lachlan Hunt wrote:
> Daniel Schierbeck wrote:
>>
>> Say I have the following piece of XHTML
>>
>>  <object srctype="image/svg+xml" src="graph.svg">
>>    <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?
>
> This list isn't a help desk, least of all a CSS help desk.  However, I 
> believe this will work like that, if and when it's eventually supported.
>
> @media print {
>   object { content: normal; }
> }
>
> http://www.w3.org/TR/css3-content/#content
>
Ahh, I see - I asked the question here because I thought that it was an 
important factor for the definition of <object/>, and that an inability 
to control such a thing through CSS would be a weakness for XHTML 2.0. 
Now I see that it's not a problem.


Cheers,
Daniel

Received on Friday, 24 February 2006 13:37:05 UTC