aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/values.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/values.rs')
-rw-r--r--components/script/dom/values.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/values.rs b/components/script/dom/values.rs
new file mode 100644
index 00000000000..95bea039a97
--- /dev/null
+++ b/components/script/dom/values.rs
@@ -0,0 +1,7 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// https://html.spec.whatwg.org/multipage#reflecting-content-attributes-in-idl-attributes:idl-unsigned-long
+// https://html.spec.whatwg.org/multipage#limited-to-only-non-negative-numbers-greater-than-zero
+pub const UNSIGNED_LONG_MAX: u32 = 2147483647;