-
Notifications
You must be signed in to change notification settings - Fork 40
/
scroll-hit-test.html
123 lines (114 loc) · 12.8 KB
/
scroll-hit-test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<head>
<title>Compositor thread hit-testing demo</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
.box {
height: 50px;
width: 200px;
margin: 10px;
border: 1px solid blue;
}
</style>
<script>
function block()
{
console.log('Blocking for 1000ms');
var start = Date.now();
var end = 0;
while (end < start + 1000)
end = Date.now();
console.log('Done');
}
setInterval(block, 1200);
function logEvent(e)
{
}
window.addEventListener('load', function() {
var s = document.getElementById('start');
s.addEventListener('touchstart', logEvent)
var m = document.getElementById('move');
m.addEventListener('touchmove', logEvent)
var w = document.getElementById('wheel');
w.addEventListener('mousewheel', logEvent);
});
</script>
</head>
<body>
If your browser has compositor thread hit-testing, then scrolling the document should be consistently smooth. If you start scrolling on
an element with a touch handler, then it will be janky unless the browser stops sending touch events during scrolling (eg. chrome android). If your browser doesn't support compositor thread hit testing, then
scrolling will be janky (or at least be slow to start) in all cases.
If your browser doesn't support touch events (eg. IE10), then touch scrolling should be smooth.
<hr>
This is a random long chunk of text to demonstrate scrolling<br>
An open standard is a standard that is publicly available and has various rights to use associated with it, and may also have various properties of how it was designed (e.g. open process). There is no single definition and interpretations vary with usage.
<hr>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/AfricanWildCat.jpg/220px-AfricanWildCat.jpg" width="220" height="165">
<hr>
<div class='box' id='start'>Has touchstart handler</div>
<div class='box' id='move'>Has touchmove handler</div>
<div class='box' id='wheel'>Has mousewheel handler</div>
<hr>
The terms "open" and "standard" have a wide range of meanings associated with their usage. There are a number of definitions of open standards which emphasize different aspects of openness, including of the resulting specification, the openness of the drafting process, and the ownership of rights in the standard. The term "standard" is sometimes restricted to technologies approved by formalized committees that are open to participation by all interested parties and operate on a consensus basis.
The definitions of the term "open standard" used by academics, the European Union and some of its member governments or parliaments such as Denmark, France, and Spain preclude open standards requiring fees for use, as do the New Zealand, South African and the Venezuelan governments. On the standard organisation side, the World Wide Web Consortium (W3C) ensures that its specifications can be implemented on a royalty-free basis.
Many definitions of the term "standard" permit patent holders to impose "reasonable and non-discriminatory licensing" royalty fees and other licensing terms on implementers and/or users of the standard. For example, the rules for standards published by the major internationally recognized standards bodies such as the IETF, ISO, IEC, and ITU-T permit their standards to contain specifications whose implementation will require payment of patent licensing fees. Among these organizations, only the IETF and ITU-T explicitly refer to their standards as "open standards," while the others refer only to producing "standards." The IETF and ITU-T use definitions of "open standard" that allow "reasonable and non-discriminatory" patent licensing fee requirements.
The term "open standard" is sometimes coupled with "open source" with the idea that a standard is not truly open if it does not have a complete free/open source reference implementation available. [1]
Open standards which specify formats are sometimes referred to as open formats.
Many specifications that are sometimes referred to as standards are proprietary and only available under restrictive contract terms (if they can be obtained at all) from the organization that owns the copyright on the specification. As such these specifications are not considered to be fully Open.
Specific definitions of an open standard
[edit]ITU-T definition
The ITU-T is a standards development organization (SDO) that is one of the three sectors of the International Telecommunications Union (a specialized agency of the United Nations). The ITU-T has a Telecommunication Standardization Bureau director's Ad Hoc group on IPR that produced the following definition in March 2005, which the ITU-T as a whole has endorsed for its purposes since November 2005 [2]:
The ITU-T has a long history of open standards development. However, recently some different external sources have attempted to define the term "Open Standard" in a variety of different ways. In order to avoid confusion, the ITU-T uses for its purpose the term "Open Standards" per the following definition:
"Open Standards" are standards made available to the general public and are developed (or approved) and maintained via a collaborative and consensus driven process. "Open Standards" facilitate interoperability and data exchange among different products or services and are intended for widespread adoption.
Other elements of "Open Standards" include, but are not limited to:
Collaborative process – voluntary and market driven development (or approval) following a transparent consensus driven process that is reasonably open to all interested parties.
Reasonably balanced – ensures that the process is not dominated by any one interest group.
Due process - includes consideration of and response to comments by interested parties.
The European Union adopted the following definition in its European Interoperability Framework:[10]
To reach interoperability in the context of pan-European eGovernment services, guidance needs to focus on open standards.
The word "open" is here meant in the sense of fulfilling the following requirements:
The standard is adopted and will be maintained by a not-for-profit organization, and its ongoing development occurs on the basis of an open decision-making procedure available to all interested parties (consensus or majority decision etc.).
<hr>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/AfricanWildCat.jpg/220px-AfricanWildCat.jpg" width="220" height="165">
<hr>
The standard has been published and the standard specification document is available either freely or at a nominal charge. It must be permissible to all to copy, distribute and use it for no fee or at a nominal fee.
The intellectual property - i.e. patents possibly present - of (parts of) the standard is made irrevocably available on a royalty-free basis.
There are no constraints on the re-use of the standard[11]
[edit]Danish government definition
The Danish government has attempted to make a definition of open standards,[12] which also is used in pan-European software development projects. It states:
An open standard is accessible to everyone free of charge (i.e. there is no discrimination between users, and no payment or other considerations are required as a condition of use of the standard)
Some random long document to demonstrate scrolling.<br><br>
An open standard is a standard that is publicly available and has various rights to use associated with it, and may also have various properties of how it was designed (e.g. open process). There is no single definition and interpretations vary with usage.
<hr>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/AfricanWildCat.jpg/220px-AfricanWildCat.jpg" width="220" height="165">
<hr>
The terms "open" and "standard" have a wide range of meanings associated with their usage. There are a number of definitions of open standards which emphasize different aspects of openness, including of the resulting specification, the openness of the drafting process, and the ownership of rights in the standard. The term "standard" is sometimes restricted to technologies approved by formalized committees that are open to participation by all interested parties and operate on a consensus basis.
The definitions of the term "open standard" used by academics, the European Union and some of its member governments or parliaments such as Denmark, France, and Spain preclude open standards requiring fees for use, as do the New Zealand, South African and the Venezuelan governments. On the standard organisation side, the World Wide Web Consortium (W3C) ensures that its specifications can be implemented on a royalty-free basis.
Many definitions of the term "standard" permit patent holders to impose "reasonable and non-discriminatory licensing" royalty fees and other licensing terms on implementers and/or users of the standard. For example, the rules for standards published by the major internationally recognized standards bodies such as the IETF, ISO, IEC, and ITU-T permit their standards to contain specifications whose implementation will require payment of patent licensing fees. Among these organizations, only the IETF and ITU-T explicitly refer to their standards as "open standards," while the others refer only to producing "standards." The IETF and ITU-T use definitions of "open standard" that allow "reasonable and non-discriminatory" patent licensing fee requirements.
The term "open standard" is sometimes coupled with "open source" with the idea that a standard is not truly open if it does not have a complete free/open source reference implementation available. [1]
Open standards which specify formats are sometimes referred to as open formats.
Many specifications that are sometimes referred to as standards are proprietary and only available under restrictive contract terms (if they can be obtained at all) from the organization that owns the copyright on the specification. As such these specifications are not considered to be fully Open.
Specific definitions of an open standard
[edit]ITU-T definition
The ITU-T is a standards development organization (SDO) that is one of the three sectors of the International Telecommunications Union (a specialized agency of the United Nations). The ITU-T has a Telecommunication Standardization Bureau director's Ad Hoc group on IPR that produced the following definition in March 2005, which the ITU-T as a whole has endorsed for its purposes since November 2005 [2]:
The ITU-T has a long history of open standards development. However, recently some different external sources have attempted to define the term "Open Standard" in a variety of different ways. In order to avoid confusion, the ITU-T uses for its purpose the term "Open Standards" per the following definition:
"Open Standards" are standards made available to the general public and are developed (or approved) and maintained via a collaborative and consensus driven process. "Open Standards" facilitate interoperability and data exchange among different products or services and are intended for widespread adoption.
Other elements of "Open Standards" include, but are not limited to:
Collaborative process – voluntary and market driven development (or approval) following a transparent consensus driven process that is reasonably open to all interested parties.
Reasonably balanced – ensures that the process is not dominated by any one interest group.
Due process - includes consideration of and response to comments by interested parties.
The European Union adopted the following definition in its European Interoperability Framework:[10]
To reach interoperability in the context of pan-European eGovernment services, guidance needs to focus on open standards.
The word "open" is here meant in the sense of fulfilling the following requirements:
The standard is adopted and will be maintained by a not-for-profit organization, and its ongoing development occurs on the basis of an open decision-making procedure available to all interested parties (consensus or majority decision etc.).
<hr>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/AfricanWildCat.jpg/220px-AfricanWildCat.jpg" width="220" height="165">
<hr>
The standard has been published and the standard specification document is available either freely or at a nominal charge. It must be permissible to all to copy, distribute and use it for no fee or at a nominal fee.
The intellectual property - i.e. patents possibly present - of (parts of) the standard is made irrevocably available on a royalty-free basis.
There are no constraints on the re-use of the standard[11]
[edit]Danish government definition
The Danish government has attempted to make a definition of open standards,[12] which also is used in pan-European software development projects. It states:
An open standard is accessible to everyone free of charge (i.e. there is no discrimination between users, and no payment or other considerations are required as a condition of use of the standard)
</body>
</html>