Permalink
Browse files

Add "pointer-events" as a known property.

The "auto" value is not listed in the SVG 1.1 spec, but Chrome
and Firefox seem to support it so it's included here.
  • Loading branch information...
1 parent ebfaeb1 commit 4c7221cb1bc68258e42461c78a06d8e9efcc32b9 ztest committed May 20, 2012
View
5 build/node-parserlib.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
var parserlib = {};
(function(){
@@ -931,7 +931,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3811,6 +3811,7 @@ var Properties = {
"pitch" : 1,
"pitch-range" : 1,
"play-during" : 1,
+ "pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",
"position" : "static | relative | absolute | fixed | inherit",
"presentation-level" : 1,
"punctuation-trim" : 1,
View
5 build/npm/lib/node-parserlib.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
var parserlib = {};
(function(){
@@ -931,7 +931,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3811,6 +3811,7 @@ var Properties = {
"pitch" : 1,
"pitch-range" : 1,
"play-during" : 1,
+ "pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",
"position" : "static | relative | absolute | fixed | inherit",
"presentation-level" : 1,
"punctuation-trim" : 1,
View
2 build/parserlib-core.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
var parserlib = {};
(function(){
View
3 build/parserlib-css.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -2901,6 +2901,7 @@ var Properties = {
"pitch" : 1,
"pitch-range" : 1,
"play-during" : 1,
+ "pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",
"position" : "static | relative | absolute | fixed | inherit",
"presentation-level" : 1,
"punctuation-trim" : 1,
View
21 build/parserlib-tests.js
@@ -2771,6 +2771,27 @@
}
}));
+ suite.add(new ValidationTestCase({
+ property: "pointer-events",
+
+ valid: [
+ "auto",
+ "none",
+ "visiblePainted",
+ "visibleFill",
+ "visibleStroke",
+ "visible",
+ "painted",
+ "fill",
+ "stroke",
+ "all",
+ "inherit"
+ ],
+
+ invalid: {
+ "foo" : "Expected (auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit) but found 'foo'."
+ }
+ }));
suite.add(new ValidationTestCase({
property: "z-index",
View
5 build/parserlib.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
var parserlib = {};
(function(){
@@ -931,7 +931,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 4-May-2012 03:57:04 */
+/* Version v@VERSION@, Build time: 20-May-2012 01:46:33 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3811,6 +3811,7 @@ var Properties = {
"pitch" : 1,
"pitch-range" : 1,
"play-during" : 1,
+ "pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",
"position" : "static | relative | absolute | fixed | inherit",
"presentation-level" : 1,
"punctuation-trim" : 1,
View
1 src/css/Properties.js
@@ -385,6 +385,7 @@ var Properties = {
"pitch" : 1,
"pitch-range" : 1,
"play-during" : 1,
+ "pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",
"position" : "static | relative | absolute | fixed | inherit",
"presentation-level" : 1,
"punctuation-trim" : 1,
View
21 tests/css/Validation.js
@@ -522,6 +522,27 @@
}
}));
+ suite.add(new ValidationTestCase({
+ property: "pointer-events",
+
+ valid: [
+ "auto",
+ "none",
+ "visiblePainted",
+ "visibleFill",
+ "visibleStroke",
+ "visible",
+ "painted",
+ "fill",
+ "stroke",
+ "all",
+ "inherit"
+ ],
+
+ invalid: {
+ "foo" : "Expected (auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit) but found 'foo'."
+ }
+ }));
suite.add(new ValidationTestCase({
property: "z-index",

0 comments on commit 4c7221c

Please sign in to comment.