Commit 888954a0 authored by Glenn Adams's avatar Glenn Adams
Browse files

Add initial levels 3 and 4 support.

parent a14c5421
......@@ -25,8 +25,8 @@
# specifications
SPECS = $(SPECS_L1) $(SPECS_L2)
SPECS_L1 = canvas2d cssfontload cssom cssomview custom dom3events dom4 domps ecmascript51 encoding file fullscreen html5 selectors1 sse svg12tiny touchevents typedarray url webgl webmessage websocket webstorage webworkers xhr
SPECS_L2 = css21 cssanimation cssbg csscolor cssfonts cssimage cssmulticol csstext csstransform csstransition cssui csswm
SPECS = $(SPECS_L1) $(SPECS_L2) $(SPECS_L3) $(SPECS_L4)
SPECS_L1 = canvas2d cssfontload cssom cssomview custom dom3events dom4 domps ecmascript51 encoding file fullscreen html5 selectors1 sse svg12tiny touchevents typedarray url webgl webmessage websocket webstorage webworkers xhr
SPECS_L2 = css21 cssanimation cssbg csscolor cssfonts cssimage cssmulticol csstext csstransform csstransition cssui csswm
SPECS_L3 =
SPECS_L4 =
......@@ -24,5 +24,8 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# tools
TOOLS_L1 = fetch extract parse index generate
TOOLS_L2 = fetch generate
TOOLS_L1 = fetch extract parse index generate
TOOLS_L2 = fetch generate
TOOLS_L3 = fetch
TOOLS_L4 = fetch
......@@ -344,11 +344,13 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML Canvas 2D Context</h1>
<p class="no-num no-toc subline">Editor's Draft 12 September 2014</p>
<p class="no-num no-toc subline">Editor's Draft 17 October 2014</p>
</header>
<dl>
<dt>Latest Published Version:</dt>
<dd><a href="http://www.w3.org/TR/2dcontext/">http://www.w3.org/TR/2dcontext/</a></dd>
<dt>Latest Version of HTML:</dt>
<dd><a href="http://www.w3.org/TR/html/">http://www.w3.org/TR/html/</a></dd>
<dt>Latest Editor's Draft:</dt>
<dd><a class="latest-link" href="http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas_CR/">http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas_CR/</a></dd>
......
Fri, 12 Sep 2014 13:10:08 GMT
\ No newline at end of file
Fri, 17 Oct 2014 01:00:09 GMT
\ No newline at end of file
This diff is collapsed.
Wed, 10 Sep 2014 00:35:03 GMT
\ No newline at end of file
Thu, 16 Oct 2014 21:30:03 GMT
\ No newline at end of file
This diff is collapsed.
Thu, 17 Apr 2014 19:35:04 GMT
\ No newline at end of file
Fri, 26 Sep 2014 21:40:03 GMT
\ No newline at end of file
This diff is collapsed.
Thu, 04 Sep 2014 15:05:03 GMT
\ No newline at end of file
Thu, 02 Oct 2014 07:55:03 GMT
\ No newline at end of file
......@@ -119,7 +119,7 @@ interface CSSStyleDeclaration {
void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
DOMString removeProperty(DOMString property);
readonly attribute CSSRule? parentRule;
attribute DOMString cssFloat;
[TreatNullAs=EmptyString] attribute DOMString cssFloat;
};
[NoInterfaceObject]
......
......@@ -1837,7 +1837,16 @@
"idlType": "DOMString"
},
"name": "cssFloat",
"extAttrs": []
"extAttrs": [
{
"name": "TreatNullAs",
"arguments": null,
"rhs": {
"type": "identifier",
"value": "EmptyString"
}
}
]
}
],
"inheritance": null,
......
This diff is collapsed.
Fri, 12 Sep 2014 07:45:03 GMT
\ No newline at end of file
Wed, 15 Oct 2014 09:55:02 GMT
\ No newline at end of file
......@@ -4,6 +4,10 @@ enum ScrollBehavior { "auto", "instant", "smooth" };
dictionary ScrollOptions {
ScrollBehavior behavior = "auto";
};
dictionary ScrollToOptions : ScrollOptions {
double left;
double top;
};
partial interface Window {
MediaQueryList matchMedia(DOMString query);
......@@ -24,9 +28,12 @@ partial interface Window {
readonly attribute double pageXOffset;
readonly attribute double scrollY;
readonly attribute double pageYOffset;
void scroll(unrestricted double x, unrestricted double y, optional ScrollOptions options);
void scrollTo(unrestricted double x, unrestricted double y, optional ScrollOptions options);
void scrollBy(unrestricted double x, unrestricted double y, optional ScrollOptions options);
void scroll(optional ScrollToOptions options);
void scroll(unrestricted double x, unrestricted double y);
void scrollTo(optional ScrollToOptions options);
void scrollTo(unrestricted double x, unrestricted double y);
void scrollBy(optional ScrollToOptions options);
void scrollBy(unrestricted double x, unrestricted double y);
// client
readonly attribute double screenX;
......@@ -76,20 +83,24 @@ interface CaretPosition {
DOMRect? getClientRect();
};
dictionary ScrollOptionsHorizontal : ScrollOptions {
double x;
};
dictionary ScrollOptionsVertical : ScrollOptions {
double y;
enum ScrollLogicalPosition { "start", "end" };
dictionary ScrollIntoViewOptions : ScrollOptions {
ScrollLogicalPosition block = "start";
};
partial interface Element {
DOMRectList getClientRects();
DOMRect getBoundingClientRect();
void scrollIntoView();
void scrollIntoView(boolean top, optional ScrollOptions options);
attribute (unrestricted double or ScrollOptionsVertical) scrollTop;
attribute (unrestricted double or ScrollOptionsHorizontal) scrollLeft;
void scrollIntoView((boolean or object) arg);
void scroll(optional ScrollToOptions options);
void scroll(unrestricted double x, unrestricted double y);
void scrollTo(optional ScrollToOptions options);
void scrollTo(unrestricted double x, unrestricted double y);
void scrollBy(optional ScrollToOptions options);
void scrollBy(unrestricted double x, unrestricted double y);
attribute unrestricted double scrollTop;
attribute unrestricted double scrollLeft;
readonly attribute double scrollWidth;
readonly attribute double scrollHeight;
readonly attribute double clientTop;
......
......@@ -35,6 +35,41 @@
"inheritance": null,
"extAttrs": []
},
{
"type": "dictionary",
"name": "ScrollToOptions",
"partial": false,
"members": [
{
"type": "field",
"name": "left",
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "double"
},
"extAttrs": []
},
{
"type": "field",
"name": "top",
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "double"
},
"extAttrs": []
}
],
"inheritance": "ScrollOptions",
"extAttrs": []
},
{
"type": "interface",
"name": "Window",
......@@ -400,6 +435,42 @@
"name": "pageYOffset",
"extAttrs": []
},
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "void"
},
"name": "scroll",
"arguments": [
{
"optional": true,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "ScrollToOptions"
},
"name": "options"
}
],
"extAttrs": []
},
{
"type": "operation",
"getter": false,
......@@ -446,7 +517,29 @@
"idlType": "unrestricted double"
},
"name": "y"
},
}
],
"extAttrs": []
},
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "void"
},
"name": "scrollTo",
"arguments": [
{
"optional": true,
"variadic": false,
......@@ -457,7 +550,7 @@
"nullable": false,
"array": false,
"union": false,
"idlType": "ScrollOptions"
"idlType": "ScrollToOptions"
},
"name": "options"
}
......@@ -510,7 +603,29 @@
"idlType": "unrestricted double"
},
"name": "y"
},
}
],
"extAttrs": []
},
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "void"
},
"name": "scrollBy",
"arguments": [
{
"optional": true,
"variadic": false,
......@@ -521,7 +636,7 @@
"nullable": false,
"array": false,
"union": false,
"idlType": "ScrollOptions"
"idlType": "ScrollToOptions"
},
"name": "options"
}
......@@ -574,20 +689,6 @@
"idlType": "unrestricted double"
},
"name": "y"
},
{
"optional": true,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "ScrollOptions"
},
"name": "options"
}
],
"extAttrs": []
......@@ -1273,44 +1374,35 @@
"extAttrs": []
},
{
"type": "dictionary",
"name": "ScrollOptionsHorizontal",
"partial": false,
"members": [
{
"type": "field",
"name": "x",
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "double"
},
"extAttrs": []
}
"type": "enum",
"name": "ScrollLogicalPosition",
"values": [
"start",
"end"
],
"inheritance": "ScrollOptions",
"extAttrs": []
},
{
"type": "dictionary",
"name": "ScrollOptionsVertical",
"name": "ScrollIntoViewOptions",
"partial": false,
"members": [
{
"type": "field",
"name": "y",
"name": "block",
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "double"
"idlType": "ScrollLogicalPosition"
},
"extAttrs": []
"extAttrs": [],
"default": {
"type": "string",
"value": "start"
}
}
],
"inheritance": "ScrollOptions",
......@@ -1407,16 +1499,141 @@
"optional": false,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": true,
"idlType": [
{
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "boolean"
},
{
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "object"
}
]
},
"name": "arg"
}
],
"extAttrs": []
},
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "void"
},
"name": "scroll",
"arguments": [
{
"optional": true,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "boolean"
"idlType": "ScrollToOptions"
},
"name": "top"
"name": "options"
}
],
"extAttrs": []
},
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "void"
},
"name": "scroll",
"arguments": [
{
"optional": false,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "unrestricted double"
},
"name": "x"
},
{
"optional": false,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "unrestricted double"
},
"name": "y"
}
],
"extAttrs": []
},
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": false,
"idlType": "void"
},
"name": "scrollTo",
"arguments": [
{
"optional": true,
"variadic": false,
......@@ -1427,7 +1644,7 @@
"nullable": false,
"array": false,
"union": false,
"idlType": "ScrollOptions"
"idlType": "ScrollToOptions"
},
"name": "options"
}
......@@ -1435,19 +1652,29 @@
"extAttrs": []
},
{
"type": "attribute",
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"inherit": false,
"readonly": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"array": false,
"union": true,
"idlType": [
{
"union": false,
"idlType": "void"
},
"name": "scrollTo",
"arguments": [
{
"optional": false,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
......@@ -1455,33 +1682,85 @@
"union": false,
"idlType": "unrestricted double"
},
{
"name": "x"
},
{
"optional": false,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,