- From: poot <cvsmail@w3.org>
- Date: Thu, 10 Sep 2009 18:35:26 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: <style> example. (whatwg r3790) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2959&r2=1.2960&f=h http://html5.org/tools/web-apps-tracker?from=3789&to=3790 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2959 retrieving revision 1.2960 diff -u -d -r1.2959 -r1.2960 --- Overview.html 10 Sep 2009 09:15:57 -0000 1.2959 +++ Overview.html 10 Sep 2009 09:35:07 -0000 1.2960 @@ -10265,7 +10265,30 @@ behaves as defined <a href="#dom-linkstyle-disabled" title="dom-linkstyle-disabled">for the alternative style sheets DOM</a>.<p>The <code>LinkStyle</code> interface is also implemented by this element; the <a href="#styling">styling processing model</a> defines - how. <a href="#refsCSSOM">[CSSOM]</a><h4 id="styling"><span class="secno">4.2.7 </span><dfn title="styling processing model">Styling</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Working draft</i><p>The <code><a href="#the-link-element">link</a></code> and <code><a href="#the-style-element">style</a></code> elements can provide + how. <a href="#refsCSSOM">[CSSOM]</a><div class="example"> + + <p>The following document has its emphasis styled as bright red + text rather than italics text, while leaving titles of works and + latin words in their default italics. It shows how using + appropriate elements enables easier restyling of documents.</p> + + <pre><!DOCTYPE html> +<html lang="en-US"> + <head> + <title>My favorite book</title> + <style> + body { color: black; background: white; } + em { font-style: normal; color: red; } + </style> + </head> + <body> + <p>My <em>favorite</em> book of all time has <em>got</em> to be + <cite>A Cat's Life</cite>. It is a book by P. Rahmel that talks + about the <i lang="la">Felis Catus</i> in modern human society.</p> + </body> +</html></pre> + + </div><h4 id="styling"><span class="secno">4.2.7 </span><dfn title="styling processing model">Styling</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Working draft</i><p>The <code><a href="#the-link-element">link</a></code> and <code><a href="#the-style-element">style</a></code> elements can provide styling information for the user agent to use when rendering the document. The DOM Styling specification specifies what styling information is to be used by the user agent and how it is to be
Received on Thursday, 10 September 2009 09:36:02 UTC