Re: Amaya freeze with @media style

Hi David,

The value of an attribute style cannot include selectors and @media
instructions. If you want to use @media you have to process another way:

You add a style element in the head
<style type="text/css">
@media print {p.invisible {display: none}}
</style>

Then you can use the style
<p class="invisible".......</p>

> Amaya V4.3 freezes when I open a file containing the following HTML:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>  "http://www.w3.org/TR/html4/strict.dtd">
> <html>
>  <head><title>Freeze Amaya</title></head>
>  <body>
>   <p style="@media print {display: none}">Freeze Amaya</p>
>   <p>Okay</p>
>  </body>
> </html>
> 
> It freezes also with: <p style="@media print {p {display:
> none}}">Text</p>
> It doesn't freeze if replaced with the following in <head>:
>  <style>@media print {display: none}</style>
> I'm running Windows 98 Me.
> 
> David
> 

-- 
     Irene.

Received on Wednesday, 7 March 2001 03:01:52 UTC