- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 14 Dec 2011 08:55:22 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/canvas-extensions
In directory hutz:/tmp/cvs-serv875
Modified Files:
Overview.html
Log Message:
styling
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/canvas-extensions/Overview.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Overview.html 14 Dec 2011 08:18:48 -0000 1.3
+++ Overview.html 14 Dec 2011 08:55:20 -0000 1.4
@@ -49,6 +49,11 @@
outline-offset: 4px;
outline: 3px solid blue;
}
+ del { color: red }
+ ins {
+ text-decoration: none;
+ background-color: #e2fff0;
+ }
</style>
<script class='remove'>
function addEllipsis(id) {
@@ -114,6 +119,43 @@
and standardization.
</p>
</section>
+ <section id='introduction'>
+<h2>Introduction</h2>
+ <p>This specification extends and overrides the
+HTML Canvas 2D Context specification
+[[!CANVAS-2D]]
+ with additional features
+ for caret and selection management,
+ for setting the caret blink rate,
+ for returning the vertical offset of a text anchor point,
+ and
+ for drawing a focus ring around the current path.</p>
+ </section>
+ <section id="typographic-conventions">
+<h2>Typographic conventions</h2>
+<p>A hyperlink reference to a definition in the
+HTML Canvas 2D Context specification
+ looks like <a class="upstream-link" href="#">this</a> (hover
+over the link and note the style change).
+<p class=note>
+Because this HTML Canvas 2D Context Extensions specification overrides and
+extends the
+HTML Canvas 2D Context specification,
+ be careful to return to
+this HTML Canvas 2D Context Extensions specification
+ after following any links to
+definitions in the HTML Canvas 2D Context specification. </p>
+<p>Content that is in an IDL for the
+HTML Canvas 2D Context specification
+but that the IDL in
+this HTML Canvas 2D Context Extensions specification
+removes is marked up like <del>this</del>.</p>
+<p>Content that is not in an IDL for the
+HTML Canvas 2D Context specification
+but that the IDL for
+this HTML Canvas 2D Context Extensions specification
+adds is marked up like <ins>this</ins>.</p>
+ </section>
<section id="conformance">
<p>Interfaces are defined in terms of Web IDL [[!WEBIDL]].</p>
<p>This specification is an extension of the
@@ -141,21 +183,6 @@
<code><a href="http://dev.w3.org/html5/2dcontext/#canvasrenderingcontext2d">CanvasRenderingContext2D</a></code>
interface as specified in the following IDL definition.</p>
-<p class=note>Hyperlink references marked up with
-<code>class=upstream</code> in the following IDL and throughout other parts
-of this document
- are links to definitions in the
-HTML Canvas 2D Context specification
-[[!CANVAS-2D]].
-In order to make them easy to identify visually, those links are rendered
-with a blue outline on hover.
-Because this HTML Canvas 2D Context Extensions specification overrides and
-extends the
-HTML Canvas 2D Context specification,
- be careful to return to this HTML
-Canvas 2D Context Extensions specification after visiting the HTML Canvas
-2D Context specification. </p>
-
<pre class="widl">interface <dfn id="canvasrenderingcontext2d">CanvasRenderingContext2D</dfn> {
// back-reference to the canvas
@@ -211,20 +238,22 @@
void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-arc" title="dom-context-2d-arc">arc</a>(double x, double y, double radius, double startAngle, double endAngle, optional boolean anticlockwise);
void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-fill" title="dom-context-2d-fill">fill</a>();
void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-stroke" title="dom-context-2d-stroke">stroke</a>();
-<!--
- void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-drawsystemfocusring" title="dom-context-2d-drawSystemFocusRing">drawSystemFocusRing</a>(<span>Element</span> element);
- boolean <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-drawcustomfocusring" title="dom-context-2d-drawCustomFocusRing">drawCustomFocusRing</a>(<span>Element</span> element);
- void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-scrollpathintoview" title="dom-context-2d-scrollPathIntoView">scrollPathIntoView</a>();
--->
+ <del>void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-drawsystemfocusring" title="dom-context-2d-drawSystemFocusRing">drawSystemFocusRing</a>(<span>Element</span> element);</del>
+ <del>boolean <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-drawcustomfocusring" title="dom-context-2d-drawCustomFocusRing">drawCustomFocusRing</a>(<span>Element</span> element);</del>
+ <del>void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-scrollpathintoview" title="dom-context-2d-scrollPathIntoView">scrollPathIntoView</a>();</del>
void <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-clip" title="dom-context-2d-clip">clip</a>();
boolean <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-ispointinpath" title="dom-context-2d-isPointInPath">isPointInPath</a>(double x, double y);
- // Focus management
- boolean <a href="#dom-context-2d-drawfocusring" title="dom-context-2d-drawFocusRing">drawFocusRing</a>(in <span>Element</span> element);
-
- // Caret and selection management
- long <a href="#dom-context-2d-caretBlinkRate" title="dom-context-2d-caretBlinkRate">caretBlinkRate</a>();
- boolean <a href="#dom-context-2d-setCaretSelectionRect" title="dom-context-2d-setCaretSelectionRect">setCaretSelectionRect</a>(in <span>Element</span> element, in double x, in double y, in double w, in double h);
+<ins>
+
+ // Focus management
+ boolean <a href="#dom-context-2d-drawfocusring" title="dom-context-2d-drawFocusRing">drawFocusRing</a>(in <span>Element</span> element);
+
+ // Caret and selection management
+ long <a href="#dom-context-2d-caretBlinkRate" title="dom-context-2d-caretBlinkRate">caretBlinkRate</a>();
+ boolean <a href="#dom-context-2d-setCaretSelectionRect" title="dom-context-2d-setCaretSelectionRect">setCaretSelectionRect</a>(in <span>Element</span> element, in double x, in double y, in double w, in double h);
+
+</ins>
// text
attribute DOMString <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-context-2d-font" title="dom-context-2d-font">font</a>; // (default 10px sans-serif)
@@ -263,7 +292,8 @@
interface <dfn id="textmetrics">TextMetrics</dfn> {
readonly attribute double <a class="upstream-link" href="http://dev.w3.org/html5/2dcontext/#dom-textmetrics-width" title="dom-textmetrics-width">width</a>;
- readonly attribute double <a href="#dom-textmetrics-baseline" title="dom-textmetrics-baseline">baseline</a>;
+<ins> readonly attribute double <a href="#dom-textmetrics-baseline" title="dom-textmetrics-baseline">baseline</a>;
+</ins>
};
interface <dfn id="imagedata">ImageData</dfn> {
Received on Wednesday, 14 December 2011 08:55:28 UTC