W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2007

[whatwg] W3C compatibility

From: Arve Bersvendsen <arveb@opera.com>
Date: Mon, 12 Feb 2007 13:34:57 +0100
Message-ID: <op.tnmykjexbyn2jm@carnage>
On Mon, 12 Feb 2007 12:58:49 +0100, Benjamin Hawkes-Lewis
<bhawkeslewis at googlemail.com> wrote:

>> XHTML5 also has a semantic class name "note" for this very purpose which
>> can be used on <aside>, <p> and <span>.
>
> What's the implied difference between <aside> and <aside class="note">?
> How might a UA treat them differently?

@media screen {
    aside.note {
      float: right;
    }
}

@media projection {
    aside {
      float: right;
    }
    aside.note {
      display: none;
    }
}

(Not really assuming what the default presentation is, just outlining one
possible way - there's lots of different ones)

-- 
Arve Bersvendsen, Web Applications Developer

Opera Software ASA, http://www.opera.com/
Received on Monday, 12 February 2007 04:34:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:32 UTC