Search completed in 1.24 seconds.
852 results for "zero":
Your results are loading. Please wait...
JSID_IS_ZERO
test whether a js id is a zero id.
... syntax bool jsid_is_zero(jsid id); name type description id jsid the property identifier to test.
... description jsid_is_zero tests whether a specified js id, id, is zero (0 in its integer representation).
... see also mxr id search for jsid_is_zero bug 601457 ...
JSVAL_ZERO
syntax jsval_zero description jsval_zero is equivalent to int_to_jsval(0).
... see also mxr id search for jsval_zero int_to_jsval js_newcontext jsval_null jsval_void jsval_true jsval_false jsval_one bug 1177825 -- removed ...
dateLeadingZero - Archive of obsolete content
« xul reference dateleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the date when it is less than 10.
hourLeadingZero - Archive of obsolete content
« xul reference hourleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the hour when it is less than 10.
minuteLeadingZero - Archive of obsolete content
« xul reference minuteleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the minute when it is less than 10.
monthLeadingZero - Archive of obsolete content
« xul reference monthleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the month when it is less than 10.
secondLeadingZero - Archive of obsolete content
« xul reference secondleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the second when it is less than 10.
yearLeadingZero - Archive of obsolete content
« xul reference yearleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the year when it is less than 1000.
sslfnc.html
rsa_fips_with_des_cbc_sha ssl_rsa_with_des_cbc_sha tls_rsa_export1024_with_rc4_56_sha tls_rsa_export1024_with_des_cbc_sha ssl_rsa_export_with_rc4_40_md5 ssl_rsa_export_with_rc2_cbc_40_md5 ssl_fortezza_dms_with_null_sha ssl_rsa_with_null_sha (not enabled by default) ssl_rsa_with_null_md5 (not enabled by default) enabled if nonzero, the specified cipher is enabled.
... if zero, the cipher is disabled.
...if nonzero, the specified cipher is enabled.
...And 18 more matches
Index - Web APIs
WebAPIIndex
user-supplied code is run in the audioworkletglobalscope global execution context in a separate web audio rendering thread along with other nodes, allowing for zero-latency audio processing.
...zero degrees represents true true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees).
...the index must be in the range from zero to the number of items minus one.
...And 12 more matches
MMgc - Archive of obsolete content
/** * flags to be passed as second argument to alloc */ enum allocflags { kzero=1, kcontainspointers=2, kfinalize=4, krcobject=8 }; kzero zeros out the memory.
...}; class myothermanagedgcobject : public mmgc::gcobject { drcwb(myobject*) myobject; }; class myothermanagedrcobject : public mmgc::rcobject { drcwb(myobject*) myobject; }; the rcobject must zero itself out on deletion.
...declare a destructor that zeros out all of the fields of your rcobject.
...And 11 more matches
mozIStorageStatement
finalize will be called for you when the reference count on the statement goes to zero.
... autf8string getparametername( in unsigned long aparamindex ); parameters aparamindex the zero-based numerical index for the parameter to be bound.
... return value the zero-based numerical index for the parameter to be bound.
...And 9 more matches
Expressions and operators - JavaScript
these operators work as they do in most other programming languages when used with floating point numbers (in particular, note that division by zero produces infinity).
... bitwise operators a bitwise operator treats their operands as a set of 32 bits (zeros and ones), rather than as decimal, hexadecimal, or octal numbers.
... bitwise or a | b returns a zero in each bit position for which the corresponding bits of both operands are zeros.
...And 8 more matches
Functions - JavaScript
zero arguments need to be indicated with ().
...argn zero or more names to be used by the function as formal parameters.
...argn zero or more names to be used by the function as formal argument names.
...And 7 more matches
Math.clz32() - JavaScript
the math.clz32() function returns the number of leading zero bits in the 32-bit binary representation of a number.
... return value the number of leading zero bits in the 32-bit binary representation of the given number.
... description "clz32" is short for countleadingzeroes32.
...And 7 more matches
Index
MozillaTechXPCOMIndex
in this document the term array refers to a container for multiple objects with a numeric, zero-based index.
...the whole text can be defined by passing the indices zero and iaccessibletext.ncharacters().
... 255 doaction this method performs the accessible action at the given zero-based index.
...And 6 more matches
Equality comparisons and sameness - JavaScript
there are four equality algorithms in es2015: abstract equality comparison (==) strict equality comparison (===): used by array.prototype.indexof, array.prototype.lastindexof, and case-matching samevaluezero: used by %typedarray% and arraybuffer constructors, as well as map and set operations, and also string.prototype.includes and array.prototype.includes since es2016 samevalue: used in all other places javascript provides three different value-comparison operations: === - strict equality comparison ("strict equality", "identity", "triple equals") == - abstract equality comparison ("loose equality", "double equals") object.is provides samevalue (new in es2015).
...the first is that floating point zero is either positively or negatively signed.
...(this use case demonstrates an instance of the liskov substitution principle.) one instance occurs when an attempt is made to mutate an immutable property: // add an immutable negative_zero property to the number constructor.
...And 6 more matches
Numbers and dates - JavaScript
decimal numbers 1234567890 42 // caution when using leading zeros: 0888 // 888 parsed as decimal 0777 // parsed as octal in non-strict mode (511 in decimal) note that decimal literals can start with a zero (0) followed by another decimal digit, but if every digit after the leading 0 is smaller than 8, the number gets parsed as an octal number.
... binary numbers binary number syntax uses a leading zero followed by a lowercase or uppercase latin letter "b" (0b or 0b).
... var flt_signbit = 0b10000000000000000000000000000000; // 2147483648 var flt_exponent = 0b01111111100000000000000000000000; // 2139095040 var flt_mantissa = 0b00000000011111111111111111111111; // 8388607 octal numbers octal number syntax uses a leading zero.
...And 6 more matches
Mozilla internal string guide
cache-friendly means that the zero terminator for c compatibility is written after the new content of the string has been written, so the result is a forward-only linear write access pattern instead of a non-linear back-and-forth sequence resulting from using setlength() followed by beginwriting().
...each ascii value is stored in exactly one byte in the array with the most-significant 8th bit set to zero.
...latin1 converts to utf-16 by zero-extending each byte to a 16-bit code unit.
...And 5 more matches
mozIStorageBindingParams
void bindbyindex( in unsigned long aindex, in nsivariant avalue ); parameters aindex the zero-based numerical index for the parameter to be bound.
... void bindblobbyindex( in unsigned long aindex, [array, const, size_is(avaluesize)] in octet avalue, in unsigned long avaluesize ); parameters aindex the zero-based numerical index for the parameter to be bound.
... void binddoublebyindex( in unsigned long aindex, in double avalue ); parameters aindex the zero-based numerical index for the parameter to be bound.
...And 5 more matches
mozIStorageValueArray
long gettypeofindex( in unsigned long aindex ); parameters aindex the zero-based numerical index for the column to get the data from.
... long getint32( in unsigned long aindex ); parameters aindex the zero-based numerical index for the column to get the data from.
... long long getint64( in unsigned long aindex ); parameters aindex the zero-based numerical index for the column to get the data from.
...And 5 more matches
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
see the following example: myarray = ['zero', 'one', 'two']; myarray.mymethod = function (sproperty) { alert(arguments.length > 0 ?
... this[sproperty] : this); }; myarray.mymethod(); // prints "zero,one,two" myarray.mymethod(1); // prints "one" the above works because when mymethod is called, its this is set to myarray by the call, so within the function, this[sproperty] is equivalent to myarray[sproperty].
...call(myarray, myarray.mymethod, 2.0*1000); // error: "ns_error_xpc_bad_op_on_wn_proto: illegal operation on wrappednative prototype object" settimeout.call(myarray, myarray.mymethod, 2.5*1000, 2); // same error possible solutions a common way to solve the problem is to use a wrapper function that sets this to the required value: settimeout(function(){myarray.mymethod()}, 2.0*1000); // prints "zero,one,two" after 2 seconds settimeout(function(){myarray.mymethod('1')}, 2.5*1000); // prints "one" after 2.5 seconds arrow functions are a possible alternative, too: settimeout(() => {myarray.mymethod()}, 2.0*1000); // prints "zero,one,two" after 2 seconds settimeout(() => {myarray.mymethod('1')}, 2.5*1000); // prints "one" after 2.5 seconds another possible way to solve the "this" problem is t...
...And 5 more matches
Lexical grammar - JavaScript
unicode format-control characters code point name abbreviation description u+200c zero width non-joiner <zwnj> placed between characters to prevent being connected into ligatures in certain languages (wikipedia).
... u+200d zero width joiner <zwj> placed between characters that would not normally be connected in order to cause the characters to be rendered using their connected form in certain languages (wikipedia).
... decimal 1234567890 42 // caution when using with a leading zero: 0888 // 888 parsed as decimal 0777 // parsed as octal, 511 in decimal note that decimal literals can start with a zero (0) followed by another decimal digit, but if all digits after the leading 0 are smaller than 8, the number is interpreted as an octal number.
...And 5 more matches
Index - Archive of obsolete content
1408 dateleadingzero xul properties, xul reference no summary!
... 1454 hourleadingzero xul properties, xul reference no summary!
... 1495 minuteleadingzero xul properties, xul reference no summary!
...And 4 more matches
Index - Archive of obsolete content
ArchiveMozillaXULIndex
677 dateleadingzero xul properties, xul reference no summary!
... 723 hourleadingzero xul properties, xul reference no summary!
... 764 minuteleadingzero xul properties, xul reference no summary!
...And 3 more matches
ssltyp.html
when you call cert_destroycertificate, the function decrements the reference count and, if the reference count reaches zero as a result, frees the memory.
...when you call seckey_destroyprivatekey, the function both frees the memory and sets all the bits to zero.
... secitem_zfreeitem zeroes and frees the memory associated with a secitem structure.
...And 3 more matches
imgIContainer
in the case of any error, zero is returned, and an exception will be thrown.
...in the case of any error, zero is returned, and an exception will be thrown.
...an image will not be discarded as long as the lock count is nonzero.
...And 3 more matches
Unsigned right shift (>>>) - JavaScript
the unsigned right shift operator (>>>) (zero-fill right shift) shifts the first operand the specified number of bits to the right.
...zero bits are shifted in from the left.
...unlike the other bitwise operators, zero-fill right shift returns an unsigned 32-bit integer.
...And 3 more matches
stroke-linecap - SVG: Scalable Vector Graphics
on a zero length subpath, the path will not be rendered at all.
... example html,body,svg { height:100% } <svg viewbox="0 0 6 4" xmlns="http://www.w3.org/2000/svg"> <!-- effect of the "butt" value --> <path d="m1,1 h4" stroke="black" stroke-linecap="butt" /> <!-- effect of the "butt" value on a zero length path --> <path d="m3,3 h0" stroke="black" stroke-linecap="butt" /> <!-- the following pink lines highlight the position of the path for each stroke --> <path d="m1,1 h4" stroke="pink" stroke-width="0.025" /> <circle cx="1" cy="1" r="0.05" fill="pink" /> <circle cx="5" cy="1" r="0.05" fill="pink" /> <circle cx="3" cy="3" r="0.05" fill="pink" /> </svg> round the round value indicates that at the end of each subpath the stroke will be extended by a half circle with a diameter equal to the stroke width.
... on a zero length subpath, the stroke consists of a full circle centered at the subpath's point.
...And 3 more matches
Table Cellmap - Archive of obsolete content
the value zero ("0") means that the cell spans all rows from the current row to the last row of the table section (thead, tbody, or tfoot) in which the cell is defined.
...the value zero ("0") means that the cell spans all columns from the current column to the last column of the column group (colgroup) in which the cell is defined.
... the handling of zero spans introduces overhead as one can not mark in advance the corresponding cells as spanned by the zero spans.
...And 2 more matches
Index
often freeing is combined with immediately erasing (zeroing, zfree) the memory associated to the arena, in order to make it more difficult for attackers to extract keys from a memory dump.
...each option may take zero or more arguments.
...each option may take zero or more arguments.
...And 2 more matches
Index
its value is the logical or of zero or more of the following constants: 93 jsconstdoublespec jsapi reference, spidermonkey jsconstdoublespecs is used to define a set of double values that are assigned as properties to an object using js_defineconstdoubles.
... 120 jsid_is_zero jsapi reference, reference, référence(2), spidermonkey jsid_is_zero tests whether a specified js id, id, is zero (0 in its integer representation).
... 180 jsval_zero jsapi reference, obsolete, spidermonkey jsval_zero is equivalent to int_to_jsval(0).
...And 2 more matches
WebGLRenderingContext.blendFuncSeparate() - Web APIs
the default value is gl.zero.
...the default value is gl.zero.
... following constants can be used for srcrgb, dstrgb, srcalpha, and dstalpha the formulas for the blending factors can be described like this (all rgba values are between 0 and 1): color(rgb) = (sourcecolor * srcrgb) + (destinationcolor * dstrgb) color(a) = (sourcealpha * srcalpha) + (destinationalpha * dstalpha) constant rgb factor alpha factor description gl.zero 0,0,0 0 multiplies all colors by 0.
...And 2 more matches
WindowOrWorkerGlobalScope.setInterval() - Web APIs
return value the returned intervalid is a numeric, non-zero value which identifies the timer created by the call to setinterval(); this value can be passed to windoworworkerglobalscope.clearinterval() to cancel the timeout.
...see the following example (which uses settimeout() instead of setinterval() – the problem, in fact, is the same for both timers): myarray = ['zero', 'one', 'two']; myarray.mymethod = function (sproperty) { alert(arguments.length > 0 ?
... this[sproperty] : this); }; myarray.mymethod(); // prints "zero,one,two" myarray.mymethod(1); // prints "one" settimeout(myarray.mymethod, 1000); // prints "[object window]" after 1 second settimeout(myarray.mymethod, 1500, "1"); // prints "undefined" after 1,5 seconds // passing the 'this' object with .call won't work // because this will change the value of this inside settimeout itself // while we want to change the value of this inside myarray.mymethod // in fact, it will be an error because settimeout code expects this to be the window object: settimeout.call(myarray, myarray.mymethod, 2000); // error: "ns_error_xpc_bad_op_on_wn_proto: illegal operation on wrappednative prototype object" settimeout.call(myarray, myarray.mymethod, 2500, 2); // same error as you can see there are no way...
...And 2 more matches
Date and time formats used in HTML - HTML: Hypertext Markup Language
for the purposes of html dates, years are always at least four digits long; years prior to the year 1000 are padded with leading zeroes ("0"), so the year 72 is written as 0072.
...001 (september 10-16, 2001) 1953-w01 week 1, 1953 (december 29, 1952-january 4, 1953) 1948-w53 week 53, 1948 (december 27, 1948-january 2, 1949) 1949-w01 week 1, 1949 (january 3-9, 1949) 0531-w16 week 16, 531 (april 13-19, 531) 0042-w04 week 4, 42 (january 21-27, 42) note that both the year and week numbers are padded with leading zeroes, with the year padded to four digits and the week to two.
... notice that all years are at least four characters long; years that are fewer than four digits long are padded with leading zeroes.
...And 2 more matches
Grammar and types - JavaScript
this section describes the following types of literals: array literals boolean literals floating-point literals numeric literals object literals regexp literals string literals array literals an array literal is a list of zero or more expressions, each of which represents an array element, enclosed in square brackets ([]).
... a decimal numeric literal is a sequence of digits without a leading 0 (zero).
... a leading 0 (zero) on a numeric literal, or a leading 0o (or 0o) indicates it is in octal.
...And 2 more matches
The "codecs" parameter in common media types - Web media technologies
each component is a fixed number of characters long; if the value is less than that length, it must be padded with leading zeros.
... thus, the syntaxes for each of the supported codecs look like this: cccc[.pp]* (generic iso bmff) where cccc is the four-character id for the codec and pp is where zero or more two-character encoded property values go.
...currently, only flags 0 through 2 are used; the other five bits must be zero.
...And 2 more matches
fill-rule - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following eight elements: <altglyph>, <path>, <polygon>, <polyline>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="-10 -10 220 120" xmlns="http://www.w3.org/2000/svg"> <!-- default value for fill-rule --> <polygon fill-rule="nonzero" stroke="red" points="50,0 21,90 98,35 2,35 79,90"/> <!-- the center of the shape has two path segments (shown by the red stroke) between it and infinity.
... --> <polygon fill-rule="evenodd" stroke="red" points="150,0 121,90 198,35 102,35 179,90"/> </svg> usage notes value nonzero | evenodd default value nonzero animatable yes the fill-rule attribute provides two options for how the inside (that is, the area to be filled) of a shape is determined: nonzero the value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray.
... starting with a count of zero, add one each time a path segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left.
...And 2 more matches
Property - Archive of obsolete content
ger completedefaultindex container contentdocument contentprincipal contenttitle contentview contentvieweredit contentviewerfile contentwindow contextmenu control controller controllers crop current currentindex currentitem currentnotification currentpage currentpane currentset currenturi customtoolbarcount database datasources date dateleadingzero datevalue decimalplaces decimalsymbol defaultbutton defaultvalue description dir disableautocomplete disableautocomplete disableautoselect disabled disablekeynavigation dlgtype docshell documentcharsetinfo editable editingcolumn editingrow editingsession editor editortype emptytext deprecated since gecko 2 enablecolumndrag eventnode firstordinalc...
...olumn firstpermanentchild flex focused focuseditem forcecomplete group handlectrlpageupdown handlectrltab hasuservalue height hidden hideseconds highlightnonmatches homepage hour hourleadingzero id ignoreblurwhilesearching image increment inputfield inverted is24hourclock ispm issearching iswaiting itemcount label labelelement lastpermanentchild lastselected left linkedpanel listboxobject locked markupdocumentviewer max maxheight maxlength maxrows maxwidth menu menuboxobject menupopup min minheight minresultsforpopup minwidth minute minuteleadingzero mode month monthleadingzero name next nomatch notificationshidden object observes onfirstpage onlastpage open ordinal ...
... persistence placeholder pmindicator popup popupboxobject popupopen position predicate preferenceelements preferencepanes preferences priority radiogroup readonly readonly ref resource resultspopup scrollboxobject scrollincrement scrollheight scrollwidth searchbutton searchcount searchlabel searchparam searchsessions second secondleadingzero securityui selected selectedbrowser selectedcount selectedindex selecteditem selecteditems selectedpanel selectedtab selectionend selectionstart selstyle seltype sessioncount sessionhistory showcommentcolumn showpopup size smoothscroll spinbuttons src state statusbar statustext stringbundle strings style subject suppressonselect tabconta...
...iner tabindex tabs tabscrolling tabpanels tag textlength textvalue timeout title toolbarname toolbarset tooltip tooltiptext top treeboxobject type uri useraction value valuenumber view webbrowserefind webnavigation webprogress width wizardpages wraparound year yearleadingzero related dom element properties dom:element.attributes dom:element.baseuri dom:element.childelementcount dom:element.childnodes dom:element.children dom:element.clientheight dom:element.clientleft dom:element.clienttop dom:element.clientwidth dom:element.clonenode dom:element.firstchild dom:element.firstelementchild dom:element.lastchild dom:element.lastelementchild dom:element.localname dom:element.namespaceuri dom:element.nextel...
datepicker - Archive of obsolete content
attributes disabled, firstdayofweek, readonly, type, tabindex, value properties date, dateleadingzero, datevalue, disabled, month, monthleadingzero, open, readonly, tabindex, value, year, yearleadingzero examples <datepicker type="grid" value="2007-03-26"/> attributes disabled type: boolean indicates whether the element is disabled or not.
... dateleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the date when it is less than 10.
... monthleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the month when it is less than 10.
... yearleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the year when it is less than 1000.
timepicker - Archive of obsolete content
attributes disabled, hideseconds, increment, readonly, tabindex, value properties amindicator, datevalue, disabled, hideseconds, hour, hourleadingzero, increment, is24hourclock, ispm, minute, minuteleadingzero, pmindicator, readonly, second, secondleadingzero, tabindex, value examples <timepicker value="12:05"/> attributes disabled type: boolean indicates whether the element is disabled or not.
... hourleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the hour when it is less than 10.
... minuteleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the minute when it is less than 10.
... secondleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the second when it is less than 10.
PRCallOnceType
syntax #include <prinit.h> typedef struct prcalloncetype { printn initialized; print32 inprogress; prstatus status; } prcalloncetype; fields the structure has these fields: initialized if not zero, the initialization process has been completed.
... inprogress if not zero, the initialization process is currently being executed.
... calling threads that observe this status block until inprogress is zero.
... description the client is responsible for initializing the prcalloncetype structure to all zeros.
PR_dtoa
this gives a return value similar to that of ecvt, except that trailing zeros are suppressed.
...this gives a return value similar to that from fcvt, except that trailing zeros are suppressed, and ndigits can be negative.
...trailing zeros are suppressed.
... sufficient space is allocated to the return value to hold the suppressed trailing zeros.
nss tech note1
a "null template" is a template that is all zeros, having a zero kind.† the term "null-terminated array", as used throughout this document, means an array of templates, the last of which is a null template.
...universal is the default tag class and does not have to be specified, as the value of the class type is zero.
...a sec_asn1_primitive macro is also provided, but does not need to be included as it is zero.
...this requires that the subtemplate contains a non-zero size field.
Using XPCOM Utilities to Make Things Easier
historically, it gets called in the constructor for your class and sets mrefcnt to zero.
... the following table summarizes the macro usage in this portion of the weblock.cpp source file: common xpcom macros ns_impl_isupportsn implements nsisupports for a given class with n number of interfaces ns_decl_isupports declares methods of nsisupports including mrefcnt ns_init_isupports initializes mrefcnt to zero.
...in c++, the string literal "xpcom", for example, consists of 6 consecutive bytes, where `x' is at byte offset zero and a null character is at byte offset 5.
...instead, to explicitly release the object being held by a nscomptr, you can assign zero to that pointer.
nsIAccessible
getchildat this method returns nth accessible child using zero-based index or last child if index than less than zero.
... getactionname this method retrieves the name of the accessible action at the given zero-based index.
... getactiondescription this method retrieves the description of the accessible action at the given zero-based index.
... doaction this method performs the accessible action at the given zero-based index.
nsIAccessibleSelectable
void addchildtoselection( in long index ); parameters index the zero-based accessible child index.
...boolean ischildselected( in long index ); parameters index the zero-based accessible child index.
...nsiaccessible refselection( in long index ); parameters index zero-based selected accessible child index.
...void removechildfromselection( in long index ); parameters index zero-based accessible child index.
AudioWorkletProcessor.process - Web APIs
if there is no active node connected to the n-th input of the node, inputs[n] will be an empty array (zero input channels available).
...each of the output channels is filled with zeros by default — the processor will output silence unless the output arrays are modified.
... a node that transforms its input, but has a so-called tail-time — this means that it will produce an output for some time even after its inputs are disconnected or are inactive (producing zero-channels).
... a processor implementing such a node should return true from the process method for the period of the tail-time, beginning as soon as inputs are found that contain zero-channels.
Web Video Text Tracks Format (WebVTT) - Web APIs
zero or more cues or comments.
... zero or more blank lines.
... zero or more characters other than those noted above.
...there can be zero or more of them, and they can be used in any order so long as each setting is used no more than once.
Using media queries - CSS: Cascading Style Sheets
aspect-ratio width-to-height aspect ratio of the viewport color number of bits per color component of the output device, or zero if the device isn't color color-gamut approximate range of colors that are supported by the user agent and output device added in media queries level 4.
... color-index number of entries in the output device's color lookup table, or zero if the device does not use such a table device-aspect-ratio width-to-height aspect ratio of the output device deprecated in media queries level 4.
... monochrome bits per pixel in the output device's monochrome frame buffer, or zero if the device isn't monochrome orientation orientation of the viewport overflow-block how does the output device handle content that overflows the viewport along the block axis?
...} if you create a media feature query without specifying a value, the nested styles will be used as long as the feature's value is not zero (or none, in level 4).
<basic-shape> - CSS: Cascading Style Sheets
possible values are nonzero and evenodd.
... default value when omitted is nonzero.
...possible values are nonzero and evenodd.
... default value when omitted is nonzero.
font-variant-numeric - CSS: Cascading Style Sheets
syntax font-variant-numeric: normal; font-variant-numeric: ordinal; font-variant-numeric: slashed-zero; font-variant-numeric: lining-nums; /* <numeric-figure-values> */ font-variant-numeric: oldstyle-nums; /* <numeric-figure-values> */ font-variant-numeric: proportional-nums; /* <numeric-spacing-values> */ font-variant-numeric: tabular-nums; /* <numeric-spacing-values> */ font-variant-numeric: diagonal-fractions; /* <numeric-fraction-values> */ font-variant-numeric: stacked...
... slashed-zero this keyword forces the use of a 0 with a slash; this is useful when a clear distinction between o and 0 is needed.
... it corresponds to the opentype values zero.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | [ <numeric-figure-values> | <numeric-spacing-values> | <numeric-fraction-values> | ordinal | slashed-zero ]where <numeric-figure-values> = [ lining-nums | oldstyle-nums ]<numeric-spacing-values> = [ proportional-nums | tabular-nums ]<numeric-fraction-values> = [ diagonal-fractions | stacked-fractions ] examples setting ordinal numeric forms html <p class="ordinal">1st, 2nd, 3rd, 4th, 5th</p> css /* this example uses the source sans pro opentype font, developed by adobe and used here under the t...
Indexed collections - JavaScript
so emp[0] would be employee number zero, emp[1] employee number one, and so on.
... to create an array with non-zero length, but without any items, either of the following can be used: // this...
... // // this is equivalent to: let arr = [] arr.length = 42 calling array(n) results in a rangeerror, if n is a non-whole number whose fractional portion is non-zero.
...suppose you define the following array: let myarray = ['wind', 'rain', 'fire'] you can refer to the first element of the array as myarray[0], the second element of the array as myarray[1], etc… the index of the elements begins with zero.
Memory Management - JavaScript
an object is said to be "garbage", or collectible if there are zero references pointing to it.
... y = 'mozilla'; // the object that was originally in 'x' has now zero // references to it.
... z = null; // the 'a' property of the object originally in x // has zero references to it.
... this algorithm is an improvement over the previous one since an object having zero references is effectively unreachable.
Math - JavaScript
math.clz32(x) returns the number of leading zeroes of the 32-bit integer x.
... math.max([x[, y[, …]]]) returns the largest of zero or more numbers.
... math.min([x[, y[, …]]]) returns the smallest of zero or more numbers.
... math.sign(x) returns the sign of the x, indicating whether x is positive, negative, or zero.
Block and Line Layout Cheat Sheet - Archive of obsolete content
is this where the "tending towards zero width" stuff comes in?
...the flag is also set when reflowing a frame whose computed top border padding is zero.
...the flag is also set when reflowing a frame whose computed bottom border padding is zero.
getLastError - Archive of obsolete content
getlasterror returns the most recent nonzero error code.
...returns the most recent nonzero error code.
...description use getlasterror method to obtain the most recent nonzero error code since initinstall or reseterror were called.
resetError - Archive of obsolete content
reseterror resets a saved error code to zero.
...description the reseterror method resets any saved error code to zero.
...example to reset the last error code to zero: reseterror(); ...
Reading from Files - Archive of obsolete content
the following methods are available: readboolean will read a single byte from a stream and return false if the byte is zero and true if the byte has a non-zero value.
...if you want the sign bit to be interpreted such that negative values can be read, you can use a simple calculation to convert the value: var val = stream.read16(); if (val > 0x7fff) val = ~(0x10000 - val - 1); sometimes, a file will contain bytes that have the value zero.
...the read and readstring methods may not be suitable for this due to zero-values.
Download
this value starts at zero, and may be updated regardless of the value of hasprogress.
... totalbytes read only number when hasprogress is true, this indicates the total number of bytes to be transferred before the download finishes; this value can be zero if the file is empty.
... when hasprogress is false, this property is always zero.
DownloadTarget
size read only number the size of the target file, in bytes, or zero if the download has not yet been completed.
... it is possible for this property to have a non-zero value even if the target file no longer exists, if the value is available in download metadata.
... if that metadata is no longer available and the file has been deleted, then this value is zero.
BloatView
(should be zero!) objects total - the total count of objects allocated of a given class.
...(should be zero!) interesting things to look for: are your classes in the list?
...(see below for how to fix this.) the bytes leaked for your classes should be zero!
NSPR Poll Method
return value if the poll method stores a nonzero value in *out_flags, the return value will be the value of in_flags.
...therefore, nspr clients should only use the return value as described in how to use the poll method section below.) if the poll method stores zero in *out_flags, the return value will be the bottom layer's desires with respect to the in_flags.
...on return, if (new_flags & out_flags) is nonzero, you can try pr_recv or pr_send immediately.
PR_EnterMonitor
if the monitor's entry count is greater than zero and the calling thread is recognized as the holder of the lock, pr_entermonitor increments the entry count by one and returns.
... if the entry count is greater than zero and the calling thread is not recognized as the holder of the lock, the thread is blocked until the entry count reaches zero.
... when the entry count reaches zero (or if it is already zero), the entry count is incremented by one and the calling thread is recorded as the lock's holder.
PR_Poll
if this parameter is zero, pr_poll is equivalent to pr_sleep with a timeout.
...if this time expires without any i/o becoming ready, pr_poll returns zero.
...a count of the number of ready descriptors is returned unless a timeout occurs, in which case zero is returned.
NSS 3.55 release notes
bug 1649648 - don't memcpy zero bytes (sanitizer fix).
... bug 1649316 - don't memcpy zero bytes (sanitizer fix).
... bug 1649322 - don't memcpy zero bytes (sanitizer fix).
NSS Tools certutil
each option may take zero or more arguments.
...the default serial number is 0 (zero).
...in each category position use zero or more of the following attribute codes: p prohibited (explicitly distrusted) p trusted peer c valid ca t trusted ca to issue client certificates (implies c) c trusted ca to issue server certificates (ssl only) (implies c) u certificate can be used for authentication or signing w send warning (use with other attributes to include...
64-bit Compatibility
the compiler can implicitly sign or zero extend operands with unintended side effects.
... for example, consider this code: #define pointer_tagbits 3 static inline uintptr_t unmaskpointer(uintptr_t v) { return v & ~pointer_tagbits; } the value 3 will be inverted to 0xfffffffc, then zero-extended to 0x00000000fffffffc - a subtle and nasty bug, assuming it is unintended.
... lir_u2q - zero-extends a 32-bit integer to a 64-bit integer.
JS::CallArgs
js::mutablehandlevalue operator[](unsigned i) const returns the i-th zero-indexed argument.
... js::handlevalue get(unsigned i) const returns the i-th zero-indexed argument, or undefined if there's no such argument.
... bool hasdefined(unsigned i) const returns true if the i-th zero-indexed argument is present and is not undefined.
JS_DefineConstDoubles
the last array element must contain zero-valued members.
...the last array element must contain zero-valued members.
...js_defineconstdoubles/js_defineconstintegers create one property for each element in the array what contains a non-zero name field.
Secure Development Guidelines
exit(exit_failure); memcpy(ptr, user_data, size1); } casting issues: sign extension example: int main() { int32_t new_size = 0; int8_t size = 0xff; new_size = size; printf("0x%08x\r\n", new_size); } casting issues: sign extension prevention be careful with signed integers use unsigned integers for sizes, offsets, and indexes denial of service: divide by zero example: int main() { int a, b; if (argc != 3) return 1; a = atoi(argv[1]); b = atoi(argv[2]); return a/b; } denial of service: divide int_min by -1 example: int main(int argc, char **argv) { int a, b; if (argc != 3) return 1; a = atoi(argv[1]); b = atoi(argv[2]); return b ?
...s to be set in windows int main(int argc, char **argv, char **envp) { int fd = open("/etc/shadow", o_rdwr); setreuid(getuid(), getuid()); excve("/bin/sh", argv, envp); } suid root applications file i/o: file descriptors and handles potential overflows when using select fd_set struct, static length, holds a bitmask of fds manipulated with fd_set, fd_isset, fd_clr and fd_zero macros fd_set’s size depends on the operating system if the os allows opening more fds, then fd_set can hold could overflow fd_set file i/o: file descriptors and handles good solution: dynamically allocate fd_set structs int main(void) { int i, fd; fd_set fdset; for( i = 0; i < 2000; i++) { fd = open("/dev/null", o_rdwr); } fd_set(fd, &fdset); } file i...
... pl_strcatn the size argument for this function is the size of the buffer and it guarantees zero termination.
GetChildAt
« nsiaccessible page summary this method returns nth accessible child using zero-based index.
...return value returns nth accessible child using zero-based index.
... if child index is less than zero then returns last child.
nsIScriptError
this is zero if the error was initialized by calling nsiscripterror.init() instead of initwithwindowid().
...this is zero if the error was initialized by calling nsiscripterror.init() instead of initwithwindowid().
... timestamp long long elapsed time, in milliseconds, from a platform-specific zero time to the time the message was created.
nsIScriptError2
this is zero if the error was initialized by calling nsiscripterror.init() instead of initwithwindowid().
...this is zero if the error was initialized by calling nsiscripterror.init() instead of initwithwindowid().
... timestamp long long elapsed time, in milliseconds, from a platform-specific zero time to the time the message was created.
nsITextInputProcessor
if this is specified with non-zero location attribute value, this causes throwing an exception since it doesn't make sense.
... key_keep_keycode_zero 0x00000010 one of akeyflags.
...if this is specified with non-zero keycode attribute value, this causes throwing an excepction since it doesn't make sense.
DataTransfer - Web APIs
the index is in the range from zero to the number of items minus one.
...the index should be in the range from zero to the number of items minus one.
... datatransfer.mozsetdataat() a data transfer may store multiple items, each at a given zero-based index.
Streams API concepts - Web APIs
after the calculation is performed, chunk generation will be slowed down/sped up as appropriate to keep the stream flowing as fast as possible while keeping the desired size above zero.
... if the value falls to zero (or below in the case of writable streams), it means that chunks are being generated faster than the stream can cope with, which results in problems.
... note: what happens in the case of zero or negative desired size hasn’t really been defined in the spec so far.
TextEncoder.prototype.encodeInto() - Web APIs
however, in that case, it makes sense not to implement the usual multiplying by two of the already written buffer length, because in such a case if a second reallocation happened, it would always overallocate compared to the original length times three.the above advice assumes that you don't need to allocate space for a zero terminator.
... that is, on the wasm side you are working with rust strings or a non-zero-terminating c++ class.
... no zero-termination if the input string contains the character u+0000 in the input, encodeinto() will write a 0x00 byte in the output.
WebGL model view projection - Web APIs
when the w component is a non-zero real number then homogeneous coordinate easily translates back into a normal point in cartesian space.
... now what happens if the w component is zero?
... when numbers are extremely large (or extremely small) on computers they begin to become less and less precise because there are only so many ones and zeros that are used to represent them.
Inputs and input sources - Web APIs
profile strings each input source can have zero or more input profile name strings, found in the array profiles, each of which describes a preferred visual representation of the input source within the 3d world as well as how the input source functions.
... added an array of zero or more xrinputsource objects indicating the input sources that have been newly added to the xr system.
... removed an array of zero or more xrinputsource objects indicating any input sources that have been removed from the xr system.
@media - CSS: Cascading Style Sheets
WebCSS@media
aspect-ratio width-to-height aspect ratio of the viewport color number of bits per color component of the output device, or zero if the device isn't color color-gamut approximate range of colors that are supported by the user agent and output device added in media queries level 4.
... color-index number of entries in the output device's color lookup table, or zero if the device does not use such a table device-aspect-ratio width-to-height aspect ratio of the output device deprecated in media queries level 4.
... monochrome bits per pixel in the output device's monochrome frame buffer, or zero if the device isn't monochrome orientation orientation of the viewport overflow-block how does the output device handle content that overflows the viewport along the block axis?
OpenType font features guide - CSS: Cascading Style Sheets
ordinals are also supported (such as '1st' or '3rd'), as is a slashed zero if present in the font.
... lining and oldstyle figures fractions, ordinals, and slashed zero east asian (font-variant-east-asian) this allows access to various alternate forms of glyphs within a font.
... the general syntax looks like this: .small-caps { font-feature-settings: "smcp", "c2sc"; } according to the specification you can either supply just the 4-character feature code or supply a 1 following the code (for enabling that feature) or a 0 (zero) to disable it.
box-flex - CSS: Cascading Style Sheets
WebCSSbox-flex
content elements that have zero flex do not grow.
... if only one content element has nonzero flex, then it grows to fill the available space.
...height: 0), and the same box-flex value greater than zero (e.g.
font-variant - CSS: Cascading Style Sheets
<numeric-figure-values>, <numeric-spacing-values>, <numeric-fraction-values>, ordinal, slashed-zero specifies the keywords related to the font-variant-numeric longhand property.
... the possible values are: lining-nums, oldstyle-nums, proportional-nums, tabular-nums, diagonal-fractions, stacked-fractions, ordinal, and slashed-zero.
... ) | historical-forms | styleset( <feature-value-name># ) | character-variant( <feature-value-name># ) | swash( <feature-value-name> ) | ornaments( <feature-value-name> ) | annotation( <feature-value-name> ) | [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] | <numeric-figure-values> | <numeric-spacing-values> | <numeric-fraction-values> | ordinal | slashed-zero | <east-asian-variant-values> | <east-asian-width-values> | ruby ]where <common-lig-values> = [ common-ligatures | no-common-ligatures ]<discretionary-lig-values> = [ discretionary-ligatures | no-discretionary-ligatures ]<historical-lig-values> = [ historical-ligatures | no-historical-ligatures ]<contextual-alt-values> = [ contextual | no-contextual ]<feature-value-name> = <custom-ident><numeric-...
HTML attribute: multiple - HTML: Hypertext Markup Language
when multiple is set on the email input type, the user can inlclude zero (if not also required), one or more comma-separated email addresses.
... the multiple attribute on the <select> element represents a control for selecting zero or more options from the list of options.
... select the multiple attribute on the <select> element represents a control for selecting zero or more options from the list of options.
<input type="email"> - HTML: Hypertext Markup Language
WebHTMLElementinputemail
however, if you add the multiple attribute, a list of zero e-mail addresses (an empty string, or one which is entirely whitespace) is a valid value.
...the value must be a number greater than zero, and the default value is 20.
...in addition, by using the multiple attribute, the box is configured to allow the user to enter zero or more e-mail addresses, separated by commas, as described in allowing multiple e-mail addresses.
Using the application cache - HTML: Hypertext Markup Language
the first line of the cache manifest must consist of the string cache manifest (with a single u+0020 space between the two words), followed by zero or more space or tab characters.
... the remainder of the cache manifest must be comprised of zero or more of the following lines: blank line you may use blank lines comprised of zero or more space and tab characters.
... comment comments consist of zero or more tabs or spaces followed by a single # character, followed by zero or more characters of comment text.
Warning: 08/09 is not a legal ECMA-262 octal constant - JavaScript
decimal literals can start with a zero (0) followed by another decimal digit, but if all digits after the leading 0 are smaller than 8, the number is interpreted as an octal number.
...with ecmascript 6 and later, the syntax uses a leading zero followed by a lowercase or uppercase latin letter "o" (0o or 0o).
... examples invalid octal numbers 08; 09; // syntaxerror: 08 is not a legal ecma-262 octal constant // syntaxerror: "0"-prefixed octal literals and octal escape sequences // are deprecated valid octal numbers use a leading zero followed by the letter "o"; 0o755; 0o644; ...
Array.prototype.copyWithin() - JavaScript
syntax arr.copywithin(target[, start[, end]]) parameters target zero-based index at which to copy the sequence to.
... start optional zero-based index at which to start copying elements from.
... end optional zero-based index at which to end copying elements from.
Map - JavaScript
key equality key equality is based on the samevaluezero algorithm.
...ery nan is not equal to itself (nan !== nan is true), the following example works because nans are indistinguishable from each other: let mymap = new map() mymap.set(nan, 'not a number') mymap.get(nan) // "not a number" let othernan = number('foo') mymap.get(othernan) // "not a number" iterating map with for..of maps can be iterated using a for..of loop: let mymap = new map() mymap.set(0, 'zero') mymap.set(1, 'one') for (let [key, value] of mymap) { console.log(key + ' = ' + value) } // 0 = zero // 1 = one for (let key of mymap.keys()) { console.log(key) } // 0 // 1 for (let value of mymap.values()) { console.log(value) } // zero // one for (let [key, value] of mymap.entries()) { console.log(key + ' = ' + value) } // 0 = zero // 1 = one iterating map with foreach() maps c...
...an be iterated using the foreach() method: mymap.foreach(function(value, key) { console.log(key + ' = ' + value) }) // 0 = zero // 1 = one relation with array objects let kvarray = [['key1', 'value1'], ['key2', 'value2']] // use the regular map constructor to transform a 2d key-value array into a map let mymap = new map(kvarray) mymap.get('key1') // returns "value1" // use array.from() to transform a map into a 2d key-value array console.log(array.from(mymap)) // will show you exactly the same array as kvarray // a succinct way to do the same, using the spread syntax console.log([...mymap]) // or use the keys() or values() iterators, and convert them to an array console.log(array.from(mymap.keys())) // ["key1", "key2"] cloning and merging maps just like arrays, maps can be cloned...
Number.NEGATIVE_INFINITY - JavaScript
any positive value divided by negative_infinity is negative zero.
... any negative value divided by negative_infinity is positive zero.
... zero multiplied by negative_infinity is nan.
Number.POSITIVE_INFINITY - JavaScript
any positive number divided by positive_infinity is positive zero.
... any negative number divided by positive_infinity is negative zero.
... zero multiplied by positive_infinity is nan.
Iteration protocols - JavaScript
in order to be iterable, an object must implement the @@iterator method, meaning that the object (or one of the objects up its prototype chain) must have a property with a @@iterator key which is available via constant symbol.iterator: property value [symbol.iterator] a zero-argument function that returns an object, conforming to the iterator protocol.
... note that when this zero-argument function is called, it is invoked as a method on the iterable object.
... an object is an iterator when it implements a next() method with the following semantics: property value next() a zero-argument function that returns an object with at least the following two properties: done (boolean) has the value false if the iterator was able to produce the next value in the sequence.
Strict mode - JavaScript
the octal syntax isn't part of ecmascript 5, but it's supported in all browsers by prefixing the octal number with a zero: 0644 === 420 and "\045" === "%".
... var a = 0o10; // es2015: octal novice developers sometimes believe a leading zero prefix has no semantic meaning, so they use it as an alignment device — but this changes the number's meaning!
... a leading zero syntax for the octals is rarely useful and can be mistakenly used, so strict mode makes it a syntax error: 'use strict'; var sum = 015 + // !!!
kernelUnitLength - SVG: Scalable Vector Graphics
if a negative or zero value is specified the default value will be used instead.
... if a negative or zero value is specified the default value will be used instead.
... if a negative or zero value is specified the default value will be used instead.
SVG documentation index - SVG: Scalable Vector Graphics
WebSVGIndex
118 kerning deprecated, svg, svg attribute the kerning attribute indicates whether the spacing between glyphs should be adjusted based on kerning tables that are included in the relevant font (i.e., enable auto-kerning) or instead disable auto-kerning and set the spacing between them to a specific length (typically, zero).
...the leftmost column of the matrix is column number zero.
...the topmost row of the matrix is row number zero.
Localization - Archive of obsolete content
for example, english has two forms: a singular form for "one", and a plural form for "everything else, including zero": one tomato no tomatoes two tomatoes but russian has different forms for numbers ending in 1 (except 11), numbers ending in 2-4 (except 12-14) and other numbers: один помидор // one tomato два помидора // two tomatoes пять помидоров // five tomatoes the sdk uses the unicode cldr data to describe the different plural forms used by different langu...
...in this scheme a language maps each distinct range of numbers on to one of up to six forms, identified by the following categories: zero, one, two, few, many, and other.
Forms related code snippets - Archive of obsolete content
style.zindex = nzindex++; otable.style.position = "absolute"; otable.style.left = otarget.offsetleft + "px"; otable.style.top = (otarget.offsettop + otarget.offsetheight) + "px"; otarget.parentnode.insertbefore(otable, otarget); }; ainstances.push(this); } datepicker.prototype.writedays = function () { const nendblanks = (this.current.getday() + bzeroismonday * 6) % 7, nend = amonthlengths[this.current.getmonth()] + nendblanks, ntotal = nend + ((7 - nend % 7) % 7); var otd, otr; if (this.otbody) { this.container.removechild(this.otbody); } this.otbody = document.createelement("tbody"); for (var nday, oday, niter = 0; niter < ntotal; niter++) { if (niter % 7 === 0) { otr = document.createelem...
...elds = document.getelementsbyclassname(sdpclass), nlen = afields.length; for (var nitem = 0; nitem < nlen; new datepicker(afields[nitem++])); } const /* customizable by user */ sprefs = "zdp"; sdpclass = "date-picker", smonthsnames = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], sdays = ["m", "t", "w", "t", "f", "s", "s"], bzeroismonday = true, /* internal usage */ ainstances = [], amonthlengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], rbgnnan = /^\d+/, rbgnandend = /^\d+|\d+\d+$/g, rmonth = /\-month\-/, rdecrease = /\-decr\-/; var /* customizable by user */ nzindex = 1000; window.addeventlistener ?
Using microformats - Archive of obsolete content
if provided, this is a javascript object that contains zero or more of the following flags: recurseexternalframes if true, child frames are included in the search.
...if provided, this is a javascript object that contains zero or more of the following flags: recurseexternalframes if true, child frames that reference external content are included in the search.
JavaScript Client API - Archive of obsolete content
setting it to zero means "i have no need to sync".
...your tracker score is automatically reset to zero after each time your engine syncs.
Modularization techniques - Archive of obsolete content
an objects reference count generally starts at zero.
...if a call to release() causes the reference count to hit zero, the object will generally free itself.
Monitoring downloads - Archive of obsolete content
the remaining rows are set to zeroes since that's not information we have at the moment.
...these methods take as a parameter the zero-based index number of the column whose value you wish to retrieve.
LIR - Archive of obsolete content
13 line void source line number for debug symbols 14 comment void a comment shown, on its own line, in lir dumps 15 not in use load 16 not in use 17 ldc2i integer load char and sign-extend to an int 18 lds2i integer load short and sign-extend to an int 19 lduc2ui integer load unsigned char and zero-extend to an unsigned int 20 ldus2ui integer load unsigned short and zero-extend to an unsigned int 21 ldi integer load int 22 ldq quad 64 bit load quad 23 ldd double load double 24 ldf2d double load float and extend to a double store 25 sti2c void store int truncated to char 26 sti2s void store int ...
... 105 cmovi integer conditional move int 106 cmovq quad 64 bit conditional move quad 107 cmovd double conditional move double conversions 108 i2q quad 64 bit sign-extend int to quad 109 ui2uq quad 64 bit zero-extend unsigned int to unsigned quad 110 q2i integer 64 bit truncate quad to int (removes the high 32 bits) 111 i2d double convert int to double 112 ui2d double convert unsigned int to double 113 d2i integer convert double to int (no exceptions raised) 114 dasq quad 64 bit interpret the bits of a double as a quad 115 qasd d...
Treehydra Manual - Archive of obsolete content
e.g., nonzero.
...for example, if the current abstract value of a variable x is nonzero, and the analysis goes inside an if statement with the condition x == 1, then in the new abstract value of x will be nonzero meet 1.
Using Breakpoints in Venkman - Archive of obsolete content
if the breakpoint script returns a true value (it doesn't have to strictly be a boolean true, any non-null, non-empty string, non-zero, non-undefined, and non-false value will do), execution will continue normally.
... these meta comments can be used to insert debug-only code in your scripts with zero impact on production code.
Methods - Archive of obsolete content
getlasterror returns the most recent non-zero error code.
... reseterror resets a saved error code to zero.
Writing to Files - Archive of obsolete content
in either case, if the file already exists, it will be truncated to zero length.
...the write32 method performs a similar operation except that the value 1000 is written using four bytes, padding the unused bits with zeroes.
Textbox (XPFE autocomplete) - Archive of obsolete content
a zero value will always open the popup unless the textbox is empty.
...new in thunderbird 3requires seamonkey 2.0 a zero value will always open the popup.
XUL Changes for Firefox 1.5 - Archive of obsolete content
<listbox> the removeitemat method was sometime non zero-based due to a bug (bug 236068).
... this has been fixed in firefox 1.5 and all code depending on this non zero-based behaviour should be changed.
listbox - Archive of obsolete content
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
...the item index is zero-based, thus this example will return the first selected item: getselecteditem(0).
richlistbox - Archive of obsolete content
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
...the item index is zero-based, thus this example will return the first selected item: getselecteditem(0).
GetObject - Archive of obsolete content
if pathname is a zero-length string (""), getobject returns a new object instance of the specified type.
...with a single-instance object, getobject always returns the same instance when called with the zero-length string ("") syntax, and it causes an error if the pathname argument is omitted.
Extra lives - Game development
d.height-5); game.input.ondown.addonce(function(){ lifelosttext.visible = false; ball.body.velocity.set(150, -150); }, this); } else { alert('you lost, game over!'); location.reload(); } } instead of instantly printing out the alert when you lose a life, we first subtract one life from the current number and check if it's a non-zero value.
... when the number of available lives reaches zero, the game is over and the game over alert message will be shown.
Choosing the right approach - Learn web development
this means ten microsecond precision and zero time as performance.now().
...this means millisecond precision and zero time as date.now().
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
zero or more values that represent any parameters you want to pass to the function when it is run.
... you'll want to include a leading zero on your display values if the amount is less than 10, so it looks more like a traditional clock/watch.
Deployment and next steps - Learn web development
in the previous articles we went from zero knowledge about svelte to building and deploying a complete application.
... in this article we've learned about a couple of zero-fuss options to deploy our app in production and seen how to setup a basic pipeline to deploy our app to gitlab on every commit.
Building SpiderMonkey with UBSan
/bin/sh if [ -z $1 ] ; then echo "usage: $0 <dirname>" elif [ -d $1 ] ; then echo "directory $1 already exists" else autoconf2.13 autoconf213 mkdir $1 cd $1 llvm_root="$home/llvm" sanflag="-fsanitize=undefined -fno-sanitize=alignment,float-cast-overflow,float-divide-by-zero,vptr -dxmalloc=myxmalloc" \ cc="$llvm_root/build/release+asserts/bin/clang" \ cxx="$llvm_root/build/release+asserts/bin/clang++" \ cflags="$sanflag" \ cxxflags="$sanflag" \ moz_llvm_hacks=1 \ ../configure --enable-debug --disable-optimize make -j 8 fi 3.
...this enables all the cheap undefined behavior checks other than: alignment, which hits known bugs in spidermonkey, and is more implementation-defined (slow on x86 / crash on arm) than undefined behavior float-cast-overflow, which hits known bugs in spidermonkey, and isn't exploited by today's compilers float-divide-by-zero, which jesse doesn't think is actually undefined behavior (aside from the question of whether cpu overflow flags are set) vptr, a check that requires rtti, which is disabled by default in spidermonkey 4.
DownloadSummary
this is zero if no downloads are currently in progress.
... this is zero if no downloads are currently in progress.
PerfMeasurement.jsm
note: these values are all zeroed (or set to -1, for events not being measured) when you initialize the perfmeasurement object, then they are not zeroed again unless you explicitly call the reset() method.
...reset() resets all the enabled counters to zero.
source-editor.jsm
number getlineend( number alineindex, [optional] boolean aincludedelimiter ); parameters alineindex zero-based offset to the line number to which to return the end offset.
... number getlinestart( number alineindex ); parameters alineindex zero-based offset to the line number to which to return the end offset.
Mozilla Web Developer FAQ
when the paragraph markup is called for but the default margins are unwanted, zero margins can be suggested using css.
... lengths other than zero should be followed by a proper unit without a space between the number and the unit (eg.
Memory reporting
for example: void foobar::addsizeofexcludingthis(nsmallocsizeoffun amallocsizeof, size_t *afoosizeout, size_t* abarsizeout) const { *afoosizeout += ...; *abarsizeout += ...; } alternatively, you could create a struct: struct foobarsizes { size_t mfoo; size_t mbar; foobarsizes() { mozilla::podzero(this); } } void foobar::addsizeofexcludingthis(nsmallocsizeoffun amallocsizeof, foobarsizes* asizes) const { asizes->mfoo += ...; asizes->mbar += ...; } note the add prefix that makes this incrementing behaviour clear.
... obviously, if you increment you have to zero the values at some point.
Refcount tracing and balancing
each call site has a balance factor, which is positive if more addref()s than release()es have happened at the site, zero if the number of addref()s and release()es are equal, and negative if more release()es than addref()s have happened at the site.
...the make-tree.pl script accepts an option --ignore-balanced, which tells it not to bother printing out the children of a node whose balance factor is zero.
tools/power/rapl
if the processor does not support gpu or ram estimates then " n/a " will be printed in the relevant column instead of a number, and it will contribute zero to the total.
...data is shown: 10 samples taken over a period of 10.000 seconds distribution of 'total' values: mean = 8.85 w std dev = 3.50 w 0th percentile = 5.17 w (min) 5th percentile = 5.17 w 25th percentile = 5.17 w 50th percentile = 8.13 w 75th percentile = 11.16 w 95th percentile = 14.63 w 100th percentile = 14.63 w (max) the distribution data is omitted if there was zero or one samples taken.
Monitors
when the entry count for a thread reaches zero, the thread releases the monitor's lock, and other threads that were blocked while trying to enter the monitor will be rescheduled.
... a call to pr_wait temporarily returns the entry count to zero.
PR_EnumerateHostEnt
to begin an enumeration, this argument is set to zero.
...the enumeration is complete when a value of zero is returned.
PR_ExitMonitor
decrements the entry count associated with a specified monitor and, if the entry count reaches zero, releases the monitor's lock.
... description if the decremented entry count is zero, pr_exitmonitor releases the monitor's lock.
PR_GetRandomNoise
returns prsize value equal to the size of the random number actually generated, or zero.
...a return value of zero means that pr_getrandomnoise is not implemented on this platform, or there is no available noise to be returned at the time of the call.
nss tech note8
me = ssl_time(); sid->expirationtime = sid->creationtime + ssl_sid_timeout; (*ss->sec.cache)(sid); for ssl3: sid->lastaccesstime = sid->creationtime = ssl_time(); sid->expirationtime = sid->creationtime + ssl3_sid_timeout; (*ss->sec.cache)(sid); the cache api was defined such that the caller must set creationtime properly, and may set expirationtime to the desired value or to zero.
... if zero, then the called cache function would compute the correct expiration time by adding the chosen timeout (from one of those two global variables) to the sid's creationtime, giving the expirationtime.
PKCS #11 Module Specs
passwordrequired zero length passwords are not acceptable (valid only if there is a keydb).
... passwordrequired zero length passwords are not acceptable (valid only if there is a keydb).
FC_SetOperationState
hencryptionkey [in] handle of the encryption or decryption key to be used in in a stored session or zero if no key is needed.
... hauthenticationkey [in] handle of the authentication key to be used in the stored session or zero if none is needed.
Rhino JavaScript compiler
may not be combined with optimization at an optlevel greater than zero.
...if optlevel is greater than zero, -debug may not be specified.
Bytecode Descriptions
jsop::zero, jsop::one, jsop::int8, jsop::uint16, and jsop::uint24 are all compact encodings for jsop::int32.
... zero stack: ⇒ 0 push the number 0.
JSErrorReport
column unsigned zero-based column index in line in the source that caused the error.
... flags unsigned the logical or of zero or more of the following flags: jsreport_warning this "error" is really only a warning.
JSPrincipals
when refcount reaches zero, the principals are no longer in use and are destroyed.
...when refcount reaches zero, the principals are no longer in use and are destroyed.
JSVAL_TRUE
jsval values must not be used as c true/false values; there is no guarantee that the c bit-pattern of any particular jsval is zero or nonzero.
... see also mxr id search for jsval_true mxr id search for jsval_false jsval_null jsval_void jsval_zero jsval_one bug 1177825 -- removed ...
JS_ConstructObject
this may be null if argc is zero.
... js_constructobjectwitharguments is the same but additionally passes zero or more arguments to the constructor.
JS_DefineFunction
flags unsigned the logical or of zero or more property attributes.
...flags is the logical or of zero or more property attributes, which apply to the new property.
JS_DefineFunctions
description js_definefunctions creates zero or more functions and makes them properties (methods) of a specified object, obj, as if by calling js_definefunction repeatedly.
...(the macro js_fs_end can be used for the last element.) js_definefunctions creates one function for each non-zero element in the array.
JS_SetOptions
this is the logical or of zero or more flags described below.
...to turn individual options on or off, use js_setoptions with js_getoptions: // turn on warnings for dubious practices js_setoptions(cx, js_getoptions(cx) | jsoption_extra_warnings); // turn off those extra warnings js_setoptions(cx, js_getoptions(cx) & ~jsoption_extra_warnings); the options parameter and the return value are the logical or of zero or more constants from the following table: option description jsoption_extra_warnings warn on dubious practice.
Property attributes
any object property can have zero or more property attributes set.
... the jsapi expresses property attributes as a value of type unsigned, the bitwise or of zero or more of the jsprop flags described below.
JSAPI reference
ermonkey 38 js::value constants: js::nullhandlevalue added in spidermonkey 24 js::undefinedhandlevalue added in spidermonkey 24 js::truehandlevalue added in spidermonkey 38 js::falsehandlevalue added in spidermonkey 38 jsval constants: jsval_null obsolete since jsapi 42 jsval_void obsolete since jsapi 42 jsval_true obsolete since jsapi 42 jsval_false obsolete since jsapi 42 jsval_zero obsolete since jsapi 42 jsval_one obsolete since jsapi 42 function and macros for checking the type of a jsval: enum jstype js_typeofvalue all of the following are deprecated.
...sidarray class js::autoidarray added in spidermonkey 17 js_idarraylength added in spidermonkey 17 js_idarrayget added in spidermonkey 17 js_destroyidarray js_getobjectid obsolete since jsapi 31 jsid constants: jsid_void jsid_voidhandle added in spidermonkey 31 jsid_empty jsid_emptyhandle added in spidermonkey 31 function for checking and converting the type of a jsid: jsid_is_zero jsid_is_void jsid_is_empty jsid_is_string jsid_to_string interned_string_to_jsid added in spidermonkey 38 jsid_to_flat_string added in spidermonkey 17 jsid_is_int jsid_to_int int_fits_in_jsid int_to_jsid jsid_is_symbol added in spidermonkey 38 jsid_to_symbol added in spidermonkey 38 symbol_to_jsid added in spidermonkey 38 jsid_is_gcthing jsid_to_gcthing jsid_is_object obsolete ...
Animated PNG graphics
MozillaTechAPNG
fully transparent black means red, green, blue and alpha components are all set to zero.
...if nonzero, the animation should come to rest on the final frame at the end of the last play.
IAccessibleText
given a point return the zero-based index of the character under that point.
...the whole text can be requested by passing the indices zero and ncharacters().
mozIStorageRow
last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) inherits from: mozistoragevaluearray method overview nsivariant getresultbyindex(in unsigned long aindex); nsivariant getresultbyname(in autf8string aname); methods getresultbyindex() returns the value from a specific column in the row, using a zero-based index to identify the column.
... nsivariant getresultbyindex( in unsigned long aindex ); parameters aindex the zero-based index of the column number whose value is to be returned.
DoAction
« nsiaccessible page summary this method performs the accessible action at the given zero-based index.
... void doaction( in pruint8 aindex ); parameters aindex[in] the zero-based index.
GetActionDescription
« nsiaccessible page summary this method retrieves the description (localized name) of the accessible action at the given zero-based index.
... astring getactiondescription( in pruint8 aindex ); parameters aindex[in] the zero-based index.
GetActionName
« nsiaccessible page summary this method retrieves the name of the accessible action at the given zero-based index.
... astring getactionname( in pruint8 aindex ); parameters aindex[in] the zero-based index.
nsIAsyncInputStream
pass zero to specify no flags.
...the caller may pass zero to indicate no preference.
nsIAsyncOutputStream
pass zero to specify no flags.
...the caller may pass zero to indicate no preference.
nsIDOMGeoPositionCoords
zero if the device doesn't support altitude detection.
...zero if the device doesn't support altitude detection.
nsIDOMProgressEvent
if the total size is unknown, this value is zero.
...if lengthcomputable is false, this must be zero.
nsITransactionManager
a value of zero means the transaction manager will execute each transaction, then immediately release all references it has to the transaction without pushing it on the undo stack.
... a value greater than zero indicates the max number of transactions that can exist at any time on both the undo and redo stacks.
nsIWebProgressListener
for any given request, onstatechange() is called once with the state_start flag, zero or more times with the state_transferring flag or once with the state_redirecting flag, and then finally once with the state_stop flag.
...progress totals are reset to zero when all requests in awebprogress complete (corresponding to onstatechange() being called with astateflags including the state_stop and state_is_window flags).
Performance
vacuuming and zero-fill sqlite has a vacuum command to compress unused space from the database.
...zero-filling can have significant performance overhead in some situations.
AbstractRange - Web APIs
a collapsed range is one whose start position and end position are the same, resulting in a zero-character-long range.
... ranges and the hierarchy of the dom in order to define a range of characters within a document in a way that is able to span across zero or more node boundaries, and which is as resilient as possible to changes to the dom, you can't simply specify the offset to the first and last characters in the html.
BaseAudioContext.createIIRFilter() - Web APIs
the maximum length of this array is 20, and at least one value must be nonzero.
...this array may have up to 20 members, the first of which must not be zero.
CanvasRenderingContext2D.clip() - Web APIs
possible values: "nonzero": the non-zero winding rule.
...the "evenodd" rule creates a hole where the clipping rectangles intersect; by default (with the "nonzero" rule), there would be no hole.
CanvasRenderingContext2D.fill() - Web APIs
possible values: "nonzero": the non-zero winding rule.
...a hole is left unfilled in the object's center by using the "evenodd" rule; by default (with the "nonzero" rule), the hole would also be filled.
Applying styles and colors - Web APIs
< linecap.length; i++) { ctx.linewidth = 15; ctx.linecap = linecap[i]; ctx.beginpath(); ctx.moveto(25 + i * 50, 10); ctx.lineto(25 + i * 50, 140); ctx.stroke(); } } <canvas id="canvas" width="150" height="150"></canvas> draw(); screenshotlive sample a linejoin example the linejoin property determines how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are skipped).
... two values are possible: "nonzero": the non-zero winding rule, which is the default rule.
DataTransferItemList.DataTransferItem() - Web APIs
syntax dataitem = datatransferitem[index]; parameters index the zero-based index of the item in the drag data list to return.
...if the index is less than zero or greater than or equal to the number of items in the list (as indicated by the list's length property, undefined is returned.
DataTransferItemList.remove() - Web APIs
if the index is less than zero or greater than one less than the length of the list, the list will not be changed.
... syntax datatransferitemlist.remove(index); parameters index the zero-based index number of the item in the drag data list to remove.
HTMLImageElement.srcset - Web APIs
the specified width must be a positive, non-zero, integer, and must match the intrinsic width of the referenced image.
...this is written by stating the pixel density as a positive, non-zero floating-point value followed by the lower-case letter "x".
HTMLImageElement.x - Web APIs
t.queryselector("pre"); let tbl = document.getelementbyid("userinfo") let log = msg => { logbox.innerhtml += `${msg}<br>`; } let cell = tbl.rows[1].cells[2]; let image = cell.queryselector("img"); log(`image's global x: ${image.x}`); log(`image's global y: ${image.y}`); this uses the <table>'s rows property to get a list of the rows in the table, from which it looks up row 1 (which, being a zero-based index, means the second row from the top).
...the third cell is taken from that row (once again, specifying 2 as the zero-based offset).
HTMLImageElement.y - Web APIs
t.queryselector("pre"); let tbl = document.getelementbyid("userinfo") let log = msg => { logbox.innerhtml += `${msg}<br>`; } let cell = tbl.rows[1].cells[2]; let image = cell.queryselector("img"); log(`image's global x: ${image.x}`); log(`image's global y: ${image.y}`); this uses the <table>'s rows property to get a list of the rows in the table, from which it looks up row 1 (which, being a zero-based index, means the second row from the top).
...the third cell is taken from that row (once again, specifying 2 as the zero-based offset).
Option() - Web APIs
s = document.getelementbyid('s'); var options = [four, five, six]; options.foreach(function(element,key) { s[key] = new option(element,key); }); append options with different parameters /* assuming we have the following html <select id="s"> <option>first</option> <option>second</option> <option>third</option> </select> */ var s = document.getelementbyid('s'); var options = [ 'zero', 'one', 'two' ]; options.foreach(function(element, key) { if (element == 'zero') { s[s.options.length] = new option(element, s.options.length, false, false); } if (element == 'one') { s[s.options.length] = new option(element, s.options.length, true, false); // will add the "selected" attribute } if (element == 'two') { s[s.options.length] = new option(element, s.options.le...
...ngth, false, true); // just will be selected in "view" } }); /* result <select id="s"> <option value="0">zero</option> <option value="1" selected="">one</option> <option value="2">two</option> // user will see this as 'selected' </select> */ specification specification status comment html5 the definition of 'option' in that specification.
HTMLTableRowElement - Web APIs
if the given position is greater (or equal as it starts at zero) than the amount of cells in the row, or is smaller than 0, it raises a domexception with the indexsizeerror value.
...if the given position is greater (or equal as it starts at zero) than the amount of cells in the row, or is smaller than -1, it raises a domexception with the indexsizeerror value.
HTMLTableSectionElement - Web APIs
if the given position is greater (or equal as it starts at zero) than the amount of rows in the section, or is smaller than 0, it raises a domexception with the indexsizeerror value.
...if the given position is greater (or equal as it starts at zero) than the amount of rows in the section, or is smaller than -1, it raises a domexception with the indexsizeerror value.
Using microtasks in JavaScript with queueMicrotask() - Web APIs
log("before enqueueing the microtask"); queuemicrotask(() => { log("the microtask has run.") }); log("after enqueueing the microtask"); result timeout and microtask example in this example, a timeout is scheduled to fire after zero milliseconds (or "as soon as possible").
... the code below schedules a timeout to occur in zero milliseconds, then enqueues a microtask.
IIRFilterNode - Web APIs
iirfilternodes have a tail-time reference; they continue to output non-silent audio with zero input.
... as an iir filter, the non-zero input continues forever, but this can be limited after some finite time in practice, when the output has approached zero closely enough.
Checking when a deadline is due - Web APIs
the + operator in this case converts numbers with leading zeros into their non leading zero equivalents, e.g.
...this is needed because javascript date number values never have leading zeros, but our data might.
Intersection Observer API - Web APIs
defaults to all zeros.
... note that it's possible to have a non-zero intersection rectangle, which can happen if the intersection is exactly along the boundary between the two or the area of boundingclientrect is zero.
performance.clearResourceTimings() - Web APIs
the clearresourcetimings() method removes all performance entries with an entrytype of "resource" from the browser's performance data buffer and sets the size of the performance data buffer to zero.
...e a resource timing performance entry by loading an image load_resource(); var supported = typeof performance.clearresourcetimings == "function"; if (supported) { console.log("run: performance.clearresourcetimings()"); performance.clearresourcetimings(); } else { console.log("performance.clearresourcetimings() not supported"); return; } // getentries should now return zero var p = performance.getentriesbytype("resource"); if (p.length == 0) console.log("...
PerformanceResourceTiming.secureConnectionStart - Web APIs
if a secure connection is not used, the property returns zero.
...if a secure connection is not used, this property returns zero.
Range.setEnd() - Web APIs
WebAPIRangesetEnd
endoffset an integer greater than or equal to zero representing the offset for the end of the range from the start of endnode.
... indexsizeerror the value specified by endoffset is either greater than or equal to the length of the node or is less than zero.
Using the Resource Timing API - Web APIs
performance.clearresourcetiming() = not supported"); return; } // getentries should now return zero var p = performance.getentriesbytype("resource"); if (p.length == 0) console.log("...
..."https://developer.mozilla.org/static/img/opengraph-logo.png"; var image2 = new image(); image2.src = "http://mozorg.cdn.mozilla.net/media/img/firefox/firefox-256.e2c1fc556816.jpg" // set a callback if the resource buffer becomes filled performance.onresourcetimingbufferfull = buffer_full; } coping with cors when cors is in effect, many of the timing properties' values are returned as zero unless the server's access policy permits these values to be shared.
SVGTransform - Web APIs
for svg_transform_matrix, svg_transform_translate and svg_transform_scale, angle will be zero.
...when the rotation is around the center point (0, 0), e and f will be zero.
UIEvent.detail - Web APIs
WebAPIUIEventdetail
the uievent.detail read-only property, when non-zero, provides the current (or next, depending on the event) click count.
... for all other uievent objects, uievent.detail is always zero.
WebGL2RenderingContext.getBufferSubData() - Web APIs
exceptions an invalid_value error is generated if: offset + returneddata.bytelength would extend beyond the end of the buffer returneddata is null offset is less than zero.
... an invalid_operation error is generated if: zero is bound to target target is transform_feedback_buffer, and any transform feedback object is currently active.
WebGLRenderingContext.blendFunc() - Web APIs
the default value is gl.zero.
... constant factor description gl.zero 0,0,0,0 multiplies all colors by 0.
WebGLRenderingContext.stencilOp() - Web APIs
gl.zero sets the stencil buffer value to 0.
...wraps stencil buffer value to zero when incrementing the maximum representable unsigned value.
WebGLRenderingContext.stencilOpSeparate() - Web APIs
gl.zero sets the stencil buffer value to 0.
...wraps stencil buffer value to zero when incrementing the maximum representable unsigned value.
WebGL best practices - Web APIs
a good pattern for "always give me the highest precision": #ifdef gl_fragment_precision_high precision highp float; #else precision mediump float; #endif essl100 minimum requirements (webgl 1) float think range min above zero precision highp float24* (-2^62, 2^62) 2^-62 2^-16 relative mediump ieee float16 (-2^14, 2^14) 2^-14 2^-10 relative lowp 10-bit signed fixed (-2, 2) 2^-8 2^-8 absolute int think range highp int17 (-2^16, 2^16) mediump int11 (-2^10, 2^10) lowp int9 (-2^8, 2^8...
...) *float24: sign bit, 7-bit for exponent, 16-bit for mantissa essl300 minimum requirements (webgl 2) float think range min above zero precision highp ieee float32 (-2^126, 2^127) 2^-126 2^-24 relative mediump ieee float16 (-2^14, 2^14) 2^-14 2^-10 relative lowp 10-bit signed fixed (-2, 2) 2^-8 2^-8 absolute (u)int think int range unsigned int range highp (u)int32 [-2^31, 2^31] [0, 2^32] mediump (u)int16 [-2^15, 2^15] [0, 2^16] lowp (u)int9 [-2^8, 2^8] [0, 2^9] prefer builtins like dot, mix, and normalize instead of buiding your own at best, custom implementations of builtins might run as fast as the builtins ...
WebSocket.bufferedAmount - Web APIs
this value resets to zero once all queued data has been sent.
... this value does not reset to zero when the connection is closed; if you keep calling send(), this will continue to climb.
Writing a WebSocket server in C# - Web APIs
the value is zero until networkstream.dataavailable is true.
... rsv1, rsv2, rsv3: these bits must be 0 unless an extension is negotiated which supplies a nonzero value to them.
Geometry and reference spaces in WebXR - Web APIs
the space's origin is the point (0, 0, 0), at the center of the space and at the zero position along each axis.
...if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).
Using IIR filters - Web APIs
when setting our coefficients, the feedforward values can't all be set to zero, otherwise nothing would be sent to the filter.
... something like this is acceptable: let feedforward = [0.00020298, 0.0004059599, 0.00020298]; our feedback values cannot start with zero, otherwise on the first pass nothing would be sent back: let feedbackward = [1.0126964558, -1.9991880801, 0.9873035442]; note: these values are calculated based on the lowpass filter specified in the filter characteristics of the web audio api specification.
Using Web Workers - Web APIs
it accepts zero or more uris as parameters to resources to import; all of the following examples are valid: importscripts(); /* imports nothing */ importscripts('foo.js'); /* imports just "foo.js" */ importscripts('foo.js', 'bar.js'); /* imports two scripts */ importscripts('//example.com/hello.js'); /* you can import scripts from other origins */ the browser loads...
...transferable objects are transferred from one context to another with a zero-copy operation, which results in a vast performance improvement when sending large data sets.
XRInputSourcesChangeEvent.added - Web APIs
the read-only xrinputsourceschangeevent property added is a list of zero or more input sources, each identified using an xrinputsource object, which have been newly made available for use.
... syntax let addedinputs = xrinputsourceschangeevent.added; value an array of zero or more xrinputsource objects, each representing one input device added to the xr system.
XRInputSourcesChangeEvent.removed - Web APIs
the read-only xrinputsourceschangeevent property removed is an array of zero or more xrinputsource objects representing the input sources which have been removed from the xrsession.
... syntax removedinputs = xrinputsourceschangeevent.removed; value an array of zero or more xrinputsource objects, each representing one input device removed from the xr system.
XRInputSourcesChangeEvent - Web APIs
properties added read only an array of zero or more xrinputsource objects, each representing an input device which has been newly connected or enabled for use.
... removed read only an array of zero or more xrinputsource objects representing the input devices newly connected or enabled for use.
XRInputSourcesChangeEventInit.removed - Web APIs
the xrinputsourceschangeeventinit property removed is an array of zero or more xrinputsource objects, each representing one input source which has been removed from the xrsession.
...putsourceschangeeventinit("inputsourceschange", inputsourceseventinit); myinputsourceschangeevent = new xrinputsourceschangeeventinit("inputsourceschange", { session: xrsession, added: addeddevicelist, removed: removeddevicelist }); value an array of zero or more xrinputsource objects, each representing one input device removed from the xr system.
XRInputSourcesChangeEventInit - Web APIs
properties added read only an array of zero or more xrinputsource objects, each representing one input device which is newly available to use.
... removed read only an array of zero or more xrinputsource objects representing the input devices which are no longer available.
XRWebGLLayer.getNativeFramebufferScaleFactor() static method - Web APIs
if the scaling factor is greater than zero, then the frame buffer is smaller than the diplay's native dimensions, resulting in the output being up-scaled for display to the screen after rendering into the frame buffer.
... if the scaling factor is less than zero, the frame buffer is larger than the native resolution of the display, resulting in the frame buffer's contents being scaled down for display to the xr device.
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
implement only what's needed -- supporting everything would take too long for zero results.
... until the wm_getobject message is processed, the gecko accessibility service is not used, and thus the accessibility.dll is not loaded, so there is almost zero overhead for accessibility api support in mozilla or gecko, in the general case.
Keyboard - Accessibility
see also tabindex global html attribute global event handlers: onkeydown global event handlers: onkeyup avoid using tabindex attribute greater than zero the tabindex attribute indicates that an element is focusable using the keyboard.
... a value of zero indicates that the element is part of the default focus order, which is based on the ordering of elements in the html document.
:nth-last-child() - CSS: Cascading Style Sheets
functional notation <an+b> represents elements whose numeric position in a series of siblings matches the pattern an+b, for every positive integer or zero value of n.
...(since n starts at zero, while the last element begins at one, n and n+1 will both select the same elements.) p:nth-last-child(1) or p:nth-last-child(0n+1) represents every <p> that is the first element among a group of siblings, counting from the end.
CSS Containment - CSS: Cascading Style Sheets
it will end up being zero-sized in most cases, if you don't manually give it a size.
...it does not apply size containment, so you would not be at risk of a box ending up zero-sized due to a reliance on the size of its children.
Controlling Ratios of Flex Items Along the Main Axis - CSS: Cascading Style Sheets
a small item won’t shrink to zero before a larger item has been noticeably reduced.” the second reason is that flexbox prevents small items from shrinking to zero size during this removal of negative free space.
... is flex-basis a length unit, but not zero?
Using z-index - CSS: Cascading Style Sheets
the z-index property can be specified with an integer value (positive, zero, or negative), which represents the position of the element along the z-axis.
... top layer (closest to the observer) notes: when no z-index property is specified, elements are rendered on the default rendering layer 0 (zero).
Value definition syntax - CSS: Cascading Style Sheets
asterisk (*) the asterisk multiplier indicates that the entity may appear zero, one or several times.
... question mark (?) the question mark multiplier indicates that the entity is optional, and must appear zero or one time.
Visual formatting model - CSS: Cascading Style Sheets
in the visual formatting model, each element in the document tree generates zero or more boxes according to the box model.
... then, for each element, css generates zero or more boxes as specified by that element’s display property value.
background - CSS: Cascading Style Sheets
the syntax of each layer is as follows: each layer may include zero or one occurrences of any of the following values: <attachment> <bg-image> <position> <bg-size> <repeat-style> the <bg-size> value may only be included immediately after <position>, separated with the '/' character, like this: "center/80%".
... the <box> value may be included zero, one, or two times.
counters() - CSS: Cascading Style Sheets
WebCSScounters
></li> <li></li> <li></li> </ol> </li> </ol> </li> </ol> css ol { counter-reset: listcounter; } li { counter-increment: listcounter; } li::marker { content: counters(listcounter, '.', upper-roman) ') '; } li::before { content: counters(listcounter, ".") " == " counters(listcounter, ".", lower-roman) ; } result decimal-leading-zero compared to lower-alpha html <ol> <li> <ol> <li></li> <li></li> <li></li> </ol> </li> <li></li> <li></li> <li> <ol> <li></li> <li> <ol> <li></li> <li></li> <li></li> </ol> </li> </ol> </li> </ol> css ol { counter-reset: count; } li { counter-inc...
...rement: count; } li::marker { content: counters(count, '.', upper-alpha) ') '; } li::before { content: counters(count, ".", decimal-leading-zero) " == " counters(count, ".", lower-alpha); } result specifications specification status comment css lists module level 3the definition of 'css counters' in that specification.
env() - CSS: Cascading Style Sheets
WebCSSenv
for rectangular viewports, like your average laptop monitor, their value is equal to zero.
...</p> p { width: 300px; border: 2px solid red; padding: env(safe-area-inset-top, 50px) env(safe-area-inset-right, 50px) env(safe-area-inset-bottom, 50px) env(safe-area-inset-left, 50px); } example values padding: env(safe-area-inset-bottom, 50px); /* zero for all rectangular user agents */ padding: env(safe-area-inset-bottom, 50px); /* 50px because ua properties are case sensitive */ padding: env(x, 50px 20px); /* as if padding: '50px 20px' were set because x is not a valid environment variable */ padding: env(x, 50px, 20px); /* ignored because '50px, 20px' is not a valid padding value and x is not a valid environment variable */ the syntax of t...
<frequency-percentage> - CSS: Cascading Style Sheets
+0hz zero, with a leading + and a unit -0khz zero, with a leading - and a unit invalid frequency values 12.0 this is a <number>, not an <frequency>, because it is missing a unit.
...0 although unitless zero is an allowable <length>, it's an invalid <frequency>.
<frequency> - CSS: Cascading Style Sheets
WebCSSfrequency
+0hz zero, with a leading + and a unit -0khz zero, with a leading - and a unit invalid frequency values 12.0 this is a <number>, not an <frequency>, because it is missing a unit.
...0 although unitless zero is an allowable <length>, it's an invalid <frequency>.
list-style-type - CSS: Cascading Style Sheets
一, 二, 三, ..., 九八, 九九, 一〇〇 decimal-leading-zero decimal numbers padded by initial zeros e.g.
...to address this, add a zero-width space as pseudo content before each list item to ensure the list is announced properly.
shape-outside - CSS: Cascading Style Sheets
if list values are not one of those types but are identical (such as finding nonzero in the same list position in both lists), those values do interpolate.
...| [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]<fill-rule> = nonzero | evenodd<image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percentage>?
transform - CSS: Cascading Style Sheets
WebCSStransform
)<scalex()> = scalex( <number> )<scaley()> = scaley( <number> )<rotate()> = rotate( [ <angle> | <zero> ] )<skew()> = skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]?
... )<skewx()> = skewx( [ <angle> | <zero> ] )<skewy()> = skewy( [ <angle> | <zero> ] )<matrix3d()> = matrix3d( <number>#{16} )<translate3d()> = translate3d( <length-percentage> , <length-percentage> , <length> )<translatez()> = translatez( <length> )<scale3d()> = scale3d( <number> , <number> , <number> )<scalez()> = scalez( <number> )<rotate3d()> = rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )<rotatex()> = rotatex( [ <angle> | <zero> ] )<rotatey()> = rotatey( [ <angle> | <zero> ] )<rotatez()> = rotatez( [ <angle> | <zero> ] )<perspective()> = perspective( <length> )where <length-percentage> = <length> | <percentage> examples translating and rotating an element html <div>transformed element</div> css div { border: solid red; transform: translate(30px, 20px) rotate(20...
transition - CSS: Cascading Style Sheets
it includes: zero or one value representing the property to which the transition should apply.
... zero or one <single-transition-timing-function> value representing the timing function to use zero, one, or two <time> values.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
WebHTMLElementaudio
permitted content if the element has a src attribute: zero or more <track> elements followed by transparent content that contains no <audio> or <video> media elements.
... else: zero or more <source> elements followed by zero or more <track> elements followed by transparent content that contains no <audio> or <video> media elements.
<input type="time"> - HTML: Hypertext Markup Language
WebHTMLElementinputtime
appointment time: </label> <input id="appt-time" type="time" name="appt-time" value="13:30"> you can also get and set the date value in javascript using the htmlinputelement.value property, for example: var timecontrol = document.queryselector('input[type="time"]'); timecontrol.value = '15:30'; time value format the value of the time input is always in 24-hour format that includes leading zeros: hh:mm, regardless of the input format, which is likely to be selected based on the user's locale (or by the user agent).
...("0" + i) : i; minuteselect.appendchild(option); } } // make it so that if the hour is 18, the minutes value is set to 00 // — you can't select times past 18:00 function setminutestozero() { if(hourselect.value === '18') { minuteselect.value = '00'; } } hourselect.onchange = setminutestozero; minuteselect.onchange = setminutestozero; specifications specification status comments html living standardthe definition of '<input type="time">' in that specification.
<menu> - HTML: Hypertext Markup Language
WebHTMLElementmenu
permitted content if the element is in the list menu state: flow content, or alternatively, zero or more occurrences of <li>, <script>, and <template>.
... (list menu is the default state, unless the parent element is a <menu> in the context menu state.) if the element is in the context menu state: zero or more occurrences, in any order, of <menu> (context menu state only), <menuitem>, <hr>, <script>, and <template>.
<picture>: The Picture element - HTML: Hypertext Markup Language
WebHTMLElementpicture
the html <picture> element contains zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.
... content categories flow content, phrasing content, embedded content permitted content zero or more <source> elements, followed by one <img> element, optionally intermixed with script-supporting elements.
Set-Cookie - HTTP
header type response header forbidden header name no forbidden response-header name yes syntax set-cookie: <cookie-name>=<cookie-value> set-cookie: <cookie-name>=<cookie-value>; expires=<date> set-cookie: <cookie-name>=<cookie-value>; max-age=<non-zero-digit> set-cookie: <cookie-name>=<cookie-value>; domain=<domain-value> set-cookie: <cookie-name>=<cookie-value>; path=<path-value> set-cookie: <cookie-name>=<cookie-value>; secure set-cookie: <cookie-name>=<cookie-value>; httponly set-cookie: <cookie-name>=<cookie-value>; samesite=strict set-cookie: <cookie-name>=<cookie-value>; samesite=lax set-cookie: <cookie-name>=<cookie-value>; samesite=non...
...a zero or negative number will expire the cookie immediately.
Concurrency model and the event loop - JavaScript
console.log("ran after " + (new date().getseconds() - s) + " seconds"); }, 500) while (true) { if (new date().getseconds() - s >= 2) { console.log("good, looped for 2 seconds") break; } } zero delays zero delay doesn't actually mean the call back will fire-off after zero milliseconds.
... calling settimeout with a delay of 0 (zero) milliseconds doesn't execute the callback function after the given interval.
SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated - JavaScript
with ecmascript 2015 and later, the standardized syntax uses a leading zero followed by a lowercase or uppercase latin letter "o" (0o or 0o).
... examples "0"-prefixed octal literals "use strict"; 03; // syntaxerror: "0"-prefixed octal literals and octal escape sequences // are deprecated octal escape sequences "use strict"; "\251"; // syntaxerror: "0"-prefixed octal literals and octal escape sequences // are deprecated valid octal numbers use a leading zero followed by the letter "o" or "o": 0o3; for octal escape sequences, you can use hexadecimal escape sequences instead: '\xa9'; ...
SyntaxError: JSON.parse: bad parsing - JavaScript
json.parse("{'foo': 1}"); // syntaxerror: json.parse: expected property name or '}' // at line 1 column 2 of the json data instead write "foo": json.parse('{"foo": 1}'); leading zeros and decimal points you cannot use leading zeros, like 01, and decimal points must be followed by at least one digit.
... json.parse('{"foo": 01}'); // syntaxerror: json.parse: expected ',' or '}' after property value // in object at line 1 column 2 of the json data json.parse('{"foo": 1.}'); // syntaxerror: json.parse: unterminated fractional number // at line 1 column 2 of the json data instead write just 1 without a zero and use at least one digit after a decimal point: json.parse('{"foo": 1}'); json.parse('{"foo": 1.0}'); ...
Array.prototype.includes() - JavaScript
values of zero are all considered to be equal, regardless of sign.
... note: technically speaking, includes() uses the samevaluezero algorithm to determine whether the given element is found.
Array.prototype.shift() - JavaScript
description the shift method removes the element at the zeroeth index and shifts the values at consecutive indexes down, then returns the removed value.
...objects which do not contain a length property reflecting the last in a series of consecutive, zero-based numerical properties may not behave in any meaningful manner.
Array.prototype.slice() - JavaScript
syntax arr.slice([start[, end]]) parameters start optional zero-based index at which to start extraction.
... end optional zero-based index before which to end extraction.
Array - JavaScript
console.log(vegetables) // ["cabbage", "carrot"] (the original array is changed) console.log(removeditems) // ["turnip", "radish"] copy an array let shallowcopy = fruits.slice() // this is how to make a copy // ["strawberry", "mango"] accessing array elements javascript arrays are zero-indexed.
... "cdbbdbsbz" index read only the zero-based index of the match in the string.
ArrayBuffer.prototype.slice() - JavaScript
syntax arraybuffer.slice(begin[, end]) parameters begin zero-based byte index at which to begin slicing.
...if the computed length of the new arraybuffer would be negative, it is clamped to zero.
Date.prototype.toUTCString() - JavaScript
sun, mon, ...) dd day of month, as two digits with leading zero if required mmm month, as three letters (e.g.
... jan, feb, ...) yyyy year, as four or more digits with leading zeroes if required hh hour, as two digits with leading zero if required mm minute, as two digits with leading zero if required ss seconds, as two digits with leading zero if required prior to ecmascript 2018, the format of the return value varied according to the platform.
Intl.NumberFormat() constructor - JavaScript
signdisplay when to display the sign for the number; defaults to "auto" "auto" sign display for negative numbers only "never" never display sign "always" always display sign "exceptzero" sign display for positive and negative numbers, but not zero style the formatting style to use , the default is "decimal".
...intl.numberformat('zh-cn', { notation: "compact" }).format(987654321); // → 9.9亿 new intl.numberformat('fr', { notation: "compact", compactdisplay: "long" }).format(987654321); // → 988 millions new intl.numberformat('en-gb', { notation: "compact", compactdisplay: "short" }).format(987654321); // → 988m displaying signs display a sign for positive and negative numbers, but not zero: new intl.numberformat("en-us", { style: "percent", signdisplay: "exceptzero" }).format(0.55); // → '+55%' note that when the currency sign is "accounting", parentheses might be used instead of a minus sign: new intl.numberformat('bn', { style: 'currency', currency: 'usd', currencysign: 'accounting', signdisplay: 'always' }).format(-3500); // → '($3,500.00)' specification...
Intl.PluralRules.select() - JavaScript
return value a string representing the pluralization category of the number, can be one of zero, one, two, few, many or other.
... examples using select() new intl.pluralrules('ar-eg').select(0); // → 'zero' new intl.pluralrules('ar-eg').select(1); // → 'one' new intl.pluralrules('ar-eg').select(2); // → 'two' new intl.pluralrules('ar-eg').select(6); // → 'few' new intl.pluralrules('ar-eg').select(18); // → 'many' specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.pluralrules.select()' in that specification.
Math.fround() - JavaScript
var exp = math.floor(math.log(arg) / math.ln2); var powexp = math.pow(2, math.max(-126, math.min(exp, 127))); // handle subnormals: leading digit is zero if exponent bits are all zero.
...0 : 1; // compute 23 bits of mantissa, inverted to round toward zero.
Math.sign() - JavaScript
if the argument is positive zero, returns 0.
... if the argument is negative zero, returns -0.
Number.prototype.toFixed() - JavaScript
the number is rounded if necessary, and the fractional part is padded with zeros if necessary so that it has the specified length.
... examples using tofixed let numobj = 12345.6789 numobj.tofixed() // returns '12346': note rounding, no fractional part numobj.tofixed(1) // returns '12345.7': note rounding numobj.tofixed(6) // returns '12345.678900': note added zeros (1.23e+20).tofixed(2) // returns '123000000000000000000.00' (1.23e-10).tofixed(2) // returns '0.00' 2.34.tofixed(1) // returns '2.3' 2.35.tofixed(1) // returns '2.4'.
SharedArrayBuffer.prototype.slice() - JavaScript
syntax sab.slice() sab.slice(begin) sab.slice(begin, end) parameters begin optional zero-based index at which to begin extraction.
... end optional zero-based index before which to end extraction.
String.prototype.slice() - JavaScript
syntax str.slice(beginindex[, endindex]) parameters beginindex the zero-based index at which to begin extraction.
... endindex optional the zero-based index before which to end extraction.
String.prototype.split() - JavaScript
zero length) string, which appears at the first (or last) position of the returned array.
... the original string is: "jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec" the separator is: "," the array has 12 elements: jan / feb / mar / apr / may / jun / jul / aug / sep / oct / nov / dec removing spaces from a string in the following example, split() looks for zero or more spaces, followed by a semicolon, followed by zero or more spaces—and, when found, removes the spaces and the semicolon from the string.
TypedArray.prototype.slice() - JavaScript
syntax typedarray.slice([begin[, end]]) parameters begin optional zero-based index at which to begin extraction.
... end optional zero-based index before which to end extraction.
isNaN() - JavaScript
for example, dividing zero by zero results in a nan — but dividing other numbers by zero does not.
...thus for non-numbers that when coerced to numeric type result in a valid non-nan numeric value (notably the empty string and boolean primitives, which when coerced give numeric values zero or one), the "false" returned value may be unexpected; the empty string, for example, is surely "not a number." the confusion stems from the fact that the term, "not a number", has a specific meaning for numbers represented as ieee-754 floating-point values.
parseInt() - JavaScript
if radix is undefined, 0, or unspecified, javascript assumes the following: if the input string begins with "0x" or "0x" (a zero, followed by lowercase or uppercase x), radix is assumed to be 16 and the rest of the string is parsed as a hexidecimal number.
... if the input string begins with "0" (a zero), radix is assumed to be 8 (octal) or 10 (decimal).
Left shift (<<) - JavaScript
zero bits are shifted in from the right.
...zero bits are shifted in from the right.
async function - JavaScript
description async functions can contain zero or more await expressions.
... for example, the following: async function foo() { return 1 } ...is equivalent to: function foo() { return promise.resolve(1) } the body of an async function can be thought of as being split by zero or more await expressions.
SVG Presentation Attributes - SVG: Scalable Vector Graphics
value: nonezero|evenodd|inherit; animatable: yes color it provides a potential indirect value (currentcolor) for the fill, stroke, stop-color, flood-color and lighting-color presentation attributes.
... value: nonzero|evenodd|inherit; animatable: yes filter it defines the filter effects defined by the <filter> element that shall be applied to its element.
clip-rule - SVG: Scalable Vector Graphics
/> </g> as a presentation attribute, it also can be used as a property directly inside a css stylesheet usage context categories presentation attribute value nonzero | evenodd | inherit animatable yes normative document svg 1.1 (2nd edition) nonzero see description of fill-rule property.
...g width="100" viewbox="0 0 100 90" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- define star path --> <defs> <path d="m50,0 21,90 98,35 2,35 79,90z" id="star" /> </defs> <!-- left: evenodd --> <clippath id="emptystar"> <use xlink:href="#star" clip-rule="evenodd" /> </clippath> <rect clip-path="url(#emptystar)" width="50" height="90" fill="blue" /> <!-- right: nonzero --> <clippath id="filledstar"> <use xlink:href="#star" clip-rule="nonzero" /> </clippath> <rect clip-path="url(#filledstar)" width="50" height="90" x="50" fill="red" /> </svg> elements the following elements can use the clip-rule attribute, but only if they are inside a <clippath> element.
edgeMode - SVG: Scalable Vector Graphics
none this value indicates that the input image is extended with pixel values of zero for r, g, b and a.
... none this value indicates that the input image is extended with pixel values of zero for r, g, b and a.
order - SVG: Scalable Vector Graphics
WebSVGAttributeorder
the values provided must be <integer>s greater than zero.
...rounded to the closest integer value towards zero.
r - SVG: Scalable Vector Graphics
WebSVGAttributer
with a value lower or equal to zero the circle won't be drawn at all.
...a value of lower or equal to zero will cause the area to be painted as a single color using the color and opacity of the last gradient <stop>.
stdDeviation - SVG: Scalable Vector Graphics
a value of zero disables the effect of the given filter primitive (i.e., the result is the filter input image).
... if stddeviation is 0 in only one of x or y, then the effect is that the blur is only applied in the direction that has a non-zero value.
Content type - SVG: Scalable Vector Graphics
anything <anything> the basic type <anything> is a sequence of zero or more characters.
...the three-digit rgb notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros.
round - XPath
WebXPathFunctionsround
notes -0.5 rounds to negative zero.
... 0.4 rounds to postive zero.
string - XPath
positive zero is converted to the string 0.
... negative zero is converted to the string 0.
<xsl:decimal-format> - XSLT: Extensible Stylesheet Language Transformations
syntax <xsl:decimal-format name=name decimal-separator=character grouping-separator=character infinity=string minus-sign=character nan=string percent=character per-mille=charater zero-digit=character digit=character pattern-separator=character /> required attributes none.
... zero-digit specifies the digit zero character.
simple-storage - Archive of obsolete content
constructing arrays be careful to construct array objects conditionally in your code, or you may zero them each time the construction code runs.
io/file - Archive of obsolete content
this means that: if the file does not exist it is created if the file exists, its length is truncated to zero it is not possible to open the file in append mode.
cfx - Archive of obsolete content
--profile-memory=profilememory if this option is given and profilememory is any non-zero integer, then cfx dumps detailed memory usage information to the console when the tests finish.
Enhanced Extension Installation - Archive of obsolete content
the install operation finalization process loops continuously installing, upgrading and uninstalling items at progressively lower locations until the size of the pending operations list is finally zero.
JavaScript Object Management - Archive of obsolete content
this post suggests a way to achieve a true zero ms timeout, as a simple way to achieve parallelism in js code.
MozOrientation - Archive of obsolete content
in weightlessness, all values would be zero when the device is not moving, regardless of orientation, and would only change when being accelerated.
progress - Archive of obsolete content
if the total size is unknown, this value is zero.
JavaScript OS.Shared - Archive of obsolete content
global object os.shared.type properties void_t voidptr_t char jschar int unsigned_int int32_t uint32_t int64_t uint64_t long bool off_t size_t ssize_t fd (unix only) negativeone_or_fd (unix only) negativeone_or_nothing (unix only) string (unix only) null_or_string (unix only) handle (windows only) maybe_handle (windows only) dword (windows only) negative_or_dword (windows only) zero_or_dword (windows only) zero_or_nothing (windows only) declareffi() intn_t() uintn_t()instances of os.shared.type convert_from_c() releasewith() attributes global object os.shared.hollowstructure in_ptr out_ptr inout_ptr ...
Menu - Archive of obsolete content
ArchiveMozillaJetpackUIMenu
an integer target indicates a zero-based index within a menu.
Microsummary XML grammar reference - Archive of obsolete content
the <pages> element can contain zero or more <include> and <exclude> child elements, each of which must contain a valid javascript-compatible regular expression.
Nanojit - Archive of obsolete content
then it wraps the lirbufwriter in zero or more other lirwriter objects, all of which implement the same interface as lirbufwriter.
Actionscript Acceptance Tests - Archive of obsolete content
the exitcode is optional, but must be defined in this file if non-zero.
Elements - Archive of obsolete content
bindings contains zero or more binding elements as children.
init - Archive of obsolete content
when maj, min, rev, and bld are provided as parameters, all four parameters are required, but all of them can be zero.
createKey - Archive of obsolete content
returns 0 if it succeeded; a nonzero number if it failed to schedule the creation.
deleteKey - Archive of obsolete content
returns 0 if it succeeded; a nonzero number if it failed to schedule the deletion.
deleteValue - Archive of obsolete content
returns 0 if it succeeded; a nonzero number if it failed to schedule the deletion.
setValue - Archive of obsolete content
returns 0 if it succeeded; a nonzero number if it failed to schedule the action.
setValueNumber - Archive of obsolete content
returns 0 if it succeeded; a nonzero number if it failed to schedule the action.
setValueString - Archive of obsolete content
returns 0 if it succeeded; a nonzero number if it failed to schedule the action.
chromemargin - Archive of obsolete content
this value may be -1 to use the default margin for that side on the current platform, 0 to have no system border (that is, to extend the client area to the edge of the window), or a value greater than zero to indicate how much less than the default default width you wish the margin on that side to be.
minresultsforpopup - Archive of obsolete content
new in thunderbird 3requires seamonkey 2.0 a zero value will always open the popup.
persistence - Archive of obsolete content
« xul reference home persistence type: integer the persistence may be set to a non-zero value so that the notificationbox's removetransientnotifications method does not remove them.
textbox.minResultsForPopup - Archive of obsolete content
a zero value will always open the popup unless the textbox is empty.
command - Archive of obsolete content
ArchiveMozillaXULEventscommand
view read only windowproxy document.defaultview (window of the document) detail read only long (float) unused; always zero.
getIndexOfItem - Archive of obsolete content
« xul reference home getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
getSelectedItem - Archive of obsolete content
the item index is zero-based, thus this example will return the first selected item: getselecteditem(0).
removeTransientNotifications - Archive of obsolete content
« xul reference home removetransientnotifications( ) return type: no return value remove only those notifications that have a persistence value of zero, and decrements by one the persistence value of those that have a non-zero value.
OpenClose - Archive of obsolete content
after the popup is positioned, you can further position the popup by specifying non-zero values for these offsets.
textbox (Toolkit autocomplete) - Archive of obsolete content
new in thunderbird 3requires seamonkey 2.0 a zero value will always open the popup.
The Joy of XUL - Archive of obsolete content
the ui for the xul application required zero porting effort because it worked with almost no alteration on both new platforms.
Creating a Skin - Archive of obsolete content
the upper left border of the first tab and the upper right border of the second tab are rounded by four pixels and the other corners have a round corner of zero pixels, which is equivalent to no rounding.
Creating an Installer - Archive of obsolete content
if the result is non-zero, an error occured and the value is an error code.
Focus and Selection - Archive of obsolete content
values are zero-based, so the first character is 0, the second is 1 and so on.
Stacks and Decks - Archive of obsolete content
pages are numbered starting from zero.
box - Archive of obsolete content
ArchiveMozillaXULbox
examples <box orient="horizontal"> <label value="zero"/> <box orient="vertical"> <label value="one"/> <label value="two"/> </box> <box orient="horizontal"> <label value="three"/> <label value="four"/> </box> </box> attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, f...
menu - Archive of obsolete content
ArchiveMozillaXULmenu
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
menulist - Archive of obsolete content
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
notification - Archive of obsolete content
persistence type: integer the persistence may be set to a non-zero value so that the notificationbox's removetransientnotifications method does not remove them.
notificationbox - Archive of obsolete content
removetransientnotifications( ) return type: no return value remove only those notifications that have a persistence value of zero, and decrements by one the persistence value of those that have a non-zero value.
radiogroup - Archive of obsolete content
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
tabs - Archive of obsolete content
ArchiveMozillaXULtabs
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
window - Archive of obsolete content
this value may be -1 to use the default margin for that side on the current platform, 0 to have no system border (that is, to extend the client area to the edge of the window), or a value greater than zero to indicate how much less than the default default width you wish the margin on that side to be.
2006-10-26 - Archive of obsolete content
ubuntu firefox ua string a user questions ubuntu 6.10 and their firefox's ua string, the zeros seem to be wrong.
2006-10-27 - Archive of obsolete content
ubuntu firefox ua string a user questions ubuntu 6.10 and their firefox's ua string, the zeros seem to be wrong.
NPClass - Archive of obsolete content
deallocate called by npn_releaseobject() when an object's reference count reaches zero.
NPP_WriteReady - Archive of obsolete content
if the browser receives a value of zero, the data flow temporarily stops.
NPStream - Archive of obsolete content
can be zero for streams of unknown length, such as streams returned from older ftp servers or generated "on the fly" by cgi scripts.
Using the W3C DOM - Archive of obsolete content
css 1 and css 2.x specifications require that non-zero values must be specified with a length unit; otherwise, the css declaration will be ignored.
Browser Detection and Cross Browser Support - Archive of obsolete content
since the numeric values could potentially be zero, the script tests the type of the objects to make sure they are numbers instead.
-ms-filter - Archive of obsolete content
gradienttype default: 0 (equivalent to linear-gradient(to bottom, …)) set to a non-zero value to make the gradient horizontal (equivalent to linear-gradient(to right, …)) startcolor the end color, supports only opaque colors in the #rrggbb notation.
ArrayBuffer.transfer() - Archive of obsolete content
the static arraybuffer.transfer() method returns a new arraybuffer whose contents have been taken from the oldbuffer's data and then is either truncated or zero-extended by newbytelength.
Array comprehensions - Archive of obsolete content
even strings may be used as input; to achieve the filter and map actions (under array-like objects) above: var str = 'abcdef'; var consonantsonlystr = [for (c of str) if (!(/[aeiouaeiou]/).test(c)) c].join(''); // 'bcdf' var interpolatedzeros = [for (c of str) c + '0' ].join(''); // 'a0b0c0d0e0f0' again, the input form is not preserved, so we have to use join() to revert back to a string.
VBArray.lbound - Archive of obsolete content
since the safe array is created in vbscript rather than visual basic, the lower bound will always be zero.
@set - Archive of obsolete content
term zero or more unary operators followed by a constant, conditional compilation variable, or parenthesized expression.
New in JavaScript 1.1 - Archive of obsolete content
isnan() now works on every platform (not only unix anymore) parsefloat() and parseint() now return nan on all platforms, if the first character of the specified string cannot be converted to a number; in previous releases, it returned nan on solaris and irix and zero on all other platforms.
Archived JavaScript Reference - Archive of obsolete content
you can use the more general proxy object instead.arraybuffer.transfer()the static arraybuffer.transfer() method returns a new arraybuffer whose contents have been taken from the oldbuffer's data and then is either truncated or zero-extended by newbytelength.
JavaArray - Archive of obsolete content
use zero-based indexes to access the elements in a javaarray object, just as you do to access elements in an array in java.
Game promotion - Game development
there are many ways to promote your game — most of them being free, so even if you're struggling to make a living as an indie dev with zero budget you can still do a lot to let people know about your great new game.
Publishing games - Game development
there are many game promotion techniques — many of them free — so even if you're struggling to make a living as an indie dev with zero budget you can still do a lot to let people know about your great new game.
Building up a basic demo with PlayCanvas editor - Game development
in our case we're modifying the scale of the cylinder on the y axis, giving it as a value the math.sin() of the timer, with math.abs() applied to the result of that to have the values always above zero (0-1; sin values are normally between -1 and 1.) this gives us a nice scaling effect as a result.
Audio for Web games - Game development
note: playing part of your file at zero volume could also work if the browser allows you to change volume (see below).
Bounce off the walls - Game development
remembering that the coordinate system starts from the top left, we can come up with something like this: if(y + dy < 0) { dy = -dy; } if the y value of the ball position is lower than zero, change the direction of the movement on the y axis by setting it equal to itself, reversed.
Mouse controls - Game development
if the relative x pointer position is greater than zero and lower than the canvas width, the pointer is within the canvas boundaries, and the paddlex position (anchored on the left edge of the paddle) is set to the relativex value minus half the width of the paddle, so that the movement will actually be relative to the middle of the paddle.
Animations and tweens - Game development
({x:0,y:0}, 200, phaser.easing.linear.none); killtween.oncomplete.addonce(function(){ brick.kill(); }, this); killtween.start(); let's walk through this so you can see what's happening here: when defining a new tween you have to specify which property will be tweened — in our case, instead of hiding the bricks instantly when hit by the ball, we will make their width and height scale to zero, so they will nicely disappear.
Physics - Game development
at the moment, the physics engine has gravity and friction set to zero.
Gecko FAQ - Gecko Redirect 1
xcept for abouteach, abouteachprefix, and parsetype javascript 1.5, including ecma-262 edition 3 (ecmascript) compliance, except for date.todatestring and date.totimestring, which are not implemented transfer protocols: http 1.1 (including gzip compression), ftp ssl unicode oji (open java interface) image formats png gif jpeg, pjpeg does "full support" mean that gecko has zero bugs today or will have zero bugs at some point in the future?
Falsy - MDN Web Docs Glossary: Definitions of Web-related terms
there are 8 falsy values: false the keyword false 0 the number zero -0 the number negative zero 0n bigint, when used as a boolean, follows the same rule as a number.
NaN - MDN Web Docs Glossary: Definitions of Web-related terms
for example, nans can represent infinity, result of division by zero, missing value, or the square root of a negative (which is imaginary, whereas a floating-point number is real).
Whitespace - MDN Web Docs Glossary: Definitions of Web-related terms
in javascript ecmascript® 2015 language specification specifies several unicode codepoints as white space: u+0009 character tabulation <tab>, u+000b line tabulation <vt>, u+000c form feed <ff>, u+0020 space <sp>, u+00a0 no-break space <nbsp>, u+feff zero width no-break space <zwnbsp> and other category “zs” any other unicode “separator, space” code point <usp>.
Array - MDN Web Docs Glossary: Definitions of Web-related terms
in javascript, arrays start at index zero and can be manipulated with various methods.
Styling lists - Learn web development
<li>toast pita, leave to cool, then slice down the edge.</li> <li>fry the halloumi in a shallow, non-stick pan, until browned on both sides.</li> <li>wash and chop the salad.</li> <li>fill pita with salad, hummus, and fried halloumi.</li> </ol> gives you this output: note: if there are more list items in a reversed list than the value of the start attribute, the count will continue to zero and then into negative values.
Making decisions in your code — conditionals - Learn web development
for example: if (x === 5 || 7 || 10 || 20) { // run my code } in this case the condition inside if(...) will always evaluate to true since 7 (or any other non-zero value) always evaluates to true.
Third-party APIs - Learn web development
the second function works nearly exactly the same way in reverse, but we also have to take the extra step of checking that pagenumber is not already zero before decrementing it — if the fetch request runs with a minus page url parameter, it could cause errors.
Video and Audio APIs - Learn web development
if so, they add a leading zero to the values, in the same way that a digital clock display works.
Storing the information you need — Variables - Learn web development
you might have noticed that arrays in javascript are zero-indexed: the first element is at index 0.
Getting started with Svelte - Learn web development
<script> // logic goes here </script> <style> /* styles go here */ </style> <!-- markup (zero or more html elements) goes here --> note: for more information on the component format, have a look at the svelte documentation.
Command line crash course - Learn web development
since then, the terminal has remained a constant feature of all operating systems — from desktop machines, to servers tucked away in the cloud (it’s not really a cloud), to microcomputers like the raspberry pi zero, and even to mobile phones.
Deploying our app - Learn web development
in our build script, npm run test is called, then you see the string && — this means "if the thing on the left succeeded (exited with zero), then do this thing on the right".
Gecko info for Windows accessibility vendors
how to track where the event happened, within your own offscreen model ordinary zero-indexed child ids are not practical for representing events.
Choosing the right memory allocator
pr_alloc() (do not use, no users and only exists in /security/; use pr_malloc() instead) pr_malloc() == pr_malloc pr_calloc() == pr_calloc pr_realloc() == pr_realloc pr_free() pr_new (pass in a struct to allocate its size) pr_newzap (same as pr_new, but zeros memory) pr_delete (pr_free() and also clears the pointer) pr_freeif special cases pr_smprintf(), pr_sprintf_append(), pr_vsmprintf() and pr_vsprintf_append() must be freed with pr_smprintf_free() pl_strdup(), pl_strndup() must be freed with pl_strfree() nscrt::strdup/nscrt::strndup must be freed with nscrt::free allocating memory within plugins there are special memory allocati...
Creating JavaScript callbacks in components
using javascript functions as callback handlers for components can be a nice convenience to developers and there is virtually zero work to expose the feature.
Error codes returned by Mozilla APIs
error_xpc_cant_add_prop_to_wrapped_native (0x8057002e) ns_error_xpc_call_to_scriptable_failed (0x8057002f) ns_error_xpc_jsobject_has_no_function_named (0x80570030) ns_error_xpc_bad_id_string (0x80570031) ns_error_xpc_bad_initializer_name (0x80570032) ns_error_xpc_has_been_shutdown (0x80570033) ns_error_xpc_cant_modify_prop_on_wn (0x80570034) ns_error_xpc_bad_convert_js_zero_isnot_null (0x80570035) ns_error_xpc_com_unknown (0x80570036) ns_error_xpc_com_error (0x80570037) ns_error_xpc_com_invalid_class_id (0x80570038) ns_error_xpc_com_create_failed (0x80570039) ns_error_xpc_idispatch_not_enabled (0x8057003a) xpath errors errors that can occur when using xpath expressions.
HTML parser threading
subsequent buffers get their start index reset back to zero.
Gecko's "Almost Standards" Mode
what differs in almost-standards mode is roughly this: inline boxes that have no non-whitespace text as a child and have no border, padding, or margin: do not influence the size of the line box (that is, their line-height is ignored) do not get a height (e.g., for their background) larger than that of their descendants, even if their font size is larger (if they have no descendants, they are zero-height positioned at their baseline) other than this one difference, "almost standards" and "standards" modes are exactly the same in terms of layout and other behaviors.
HTTP Cache
for the disk cache entries we keep some of the most recent and most used cache entries' meta data in memory for immediate zero-thread-loop opening.
How to add a build-time test
(example to run the testcookie program) in the test program: if the test fails, exit with a non-zero status and/or print the string "fail" to stdout if the test passes, exit with a zero status and don't print the string "fail" (bonus points for printing "pass" :) ) write the test so that you expect it to pass on all platforms, since if the test fails, the tree will go orange (once we've set this up - see bug 352240 for status).
How to Report a Hung Firefox
); let browser = win.gbrowser.selectedbrowser; if (browser.isremotebrowser) { browser.messagemanager.loadframescript('data:,let appinfo = components.classes["@mozilla.org/xre/app-info;1"];if (appinfo && appinfo.getservice(components.interfaces.nsixulruntime).processtype != components.interfaces.nsixulruntime.process_type_default) {components.utils.import("resource://gre/modules/ctypes.jsm");var zero = new ctypes.intptr_t(8);var badptr = ctypes.cast(zero, ctypes.pointertype(ctypes.int32_t));var crash = badptr.contents;}', true); } other techniques on os x if you use a nightly build (>= firefox 16), you can use activity monitor's "sample process" feature to generate a sample.
DeferredTask.jsm
the task will always be executed on a different tick of the event loop, even if the delay specified on construction is zero.
NetUtil.jsm
this works even if some of those bytes are zeros, instead of terminating the string at the first zero byte.
Localization: Frequently asked questions
you can simply format the value to be of zero width, i.e., use %1$0.s ...
Mozilla Framework Based on Templates (MFBT)
they behave like integers, but safely check for integer overflow and divide-by-zero.
Mozilla Quirks Mode Behavior
in quirks mode, tables with no rows/rowgroups have zero height even when a height is specified (bug 241161).
JS::PerfMeasurement
void reset() resets all enabled counters to zero.
Measuring performance using the PerfMeasurement.jsm code module
the monitor object automatically accumulates counts over start/stop cycles (that is, it doesn't automatically zero the counters each time you start recording).
Profiling with the Firefox Profiler
because of the non-zero overhead of the instrumentation, the sample label shouldn't be placed inside hot loops.
perf
sudo perf stat -a -r 1 \ -e "power/energy-pkg/" \ -e "power/energy-cores/" \ -e "power/energy-gpu/" \ -e "power/energy-ram/" \ <command> the -a is necessary; it means "all cores", and without it all the measurements will be zero.
AsyncTestUtils extended framework
cc: (none) a list of recipients like 'to', but in this case the default is zero recipients.
NSPR LOG MODULES
description specify a modulename that is associated with the name argument in a call to pr_newlogmodule and a non-zero level value to enable logging for the named modulename.
PLHashComparator
it returns a nonzero value if the two values are equal, and 0 if the two values are not equal.
PL_strdup
a null argument, like a zero-length argument, results in a pointer to a one-byte block of memory containing the null value.
PRErrorCode
nspr assumes error numbers starting at -6000 (decimal) and progressing towards zero.
PRLinger
if polarity is set to pr_true and linger is nonzero, the runtime lingers when the socket is closed.
PR_ASSERT
when the result is zero (false) the application terminates; otherwise the application continues.
PR_Calloc
allocates zeroed memory from the heap for a number of objects of a given size.
PR_CExitMonitor
if the decremented entry count is zero, the monitor is exited.
PR_CLIST_IS_EMPTY
description pr_clist_is_empty returns a non-zero value if the specified list is an empty list, otherwise returns zero.
PR_CallOnce
initially (before any threading issues exist), the object must be initialized to all zeros.
PR_CreateThread
if you pass zero in this parameter, pr_createthread chooses the most favorable machine-specific stack size.
PR_GMTParameters
this is a trivial function; for any input, it returns a prtimeparameters structure with both fields set to zero.
PR_GetErrorText
if the result is zero, text is unaffected.
PR_GetErrorTextLength
syntax #include <prerror.h> print32 pr_geterrortextlength(void) returns if a zero is returned, no error text is currently set.
PR_MSEC_PER_SEC
a convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of milliseconds in a second.
PR_NEWZAP
description this macro allocates an instance of the specified type from the heap and sets the content of that memory to zero.
PR_NSEC_PER_MSEC
a convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of nanoseconds in a millisecond.
PR_NSEC_PER_SEC
a convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of nanoseconds in a second.
PR_NewMonitor
description a newly created monitor has an entry count of zero.
PR_Recv
flags must be zero or pr_msg_peek.
PR_RecvFrom
flags this obsolete parameter must always be zero.
PR_STATIC_ASSERT
when the result is zero (false) program compilation will fail with a compiler error; otherwise compilation completes successfully.
PR_Send
flags this obsolete parameter must always be zero.
PR_SendTo
flags this obsolete parameter must always be zero.
PR_SetError
if there is no appropriate os error number, a zero may be supplied.
PR_SetErrorText
if not null, and if text is zero, the string is assumed to be a null-terminated c string.
PR_USEC_PER_MSEC
a convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of microseconds in a millisecond.
PR_USEC_PER_SEC
a convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of microseconds in a second.
Running NSPR tests
timetest passed tpd passed udpsrv passed vercheck passed version passed writev passed xnotify passed zerolen passed end mon mar 12 11:55:47 pdt 2007 how to determine if the test suite passed if all the tests reported passed as the results, the test suite passed.
An overview of NSS Internals
often freeing is combined with immediately erasing (zeroing, zfree) the memory associated to the arena, in order to make it more difficult for attackers to extract keys from a memory dump.
NSS 3.12.4 release notes
r msvc++ bug 490154: cryptokey framework requires module to implement generatekey when they support keypairgeneration bug 491044: remove support for vms (a.k.a., openvms) from nss bug 491174: cert_pkixverifycert reports wrong error code when ee cert is expired bug 491919: cert.h doesn't have valid functions prototypes bug 492131: a failure to import a cert from a p12 file leaves error code set to zero bug 492385: crash freeing named crl entry on shutdown bug 493135: bltest crashes if it can't open the input file bug 493364: can't build with --disable-dbm option when not cross-compiling bug 493693: sse2 instructions for bignum are not implemented on os/2 bug 493912: sqlite3_reset should be invoked in sdb_findobjectsinit when error occurs bug 494073: update rsa/dsa powerupself tests to be compli...
NSS 3.12.5 release_notes
if the string parameter is null (as opposed to empty, zero length), then the softoken default is used.
NSS 3.19.1 release notes
thus, the seckey_publickeystrength and seckey_publickeystrengthinbits functions could report smaller values for values that have leading zero values.
NSS 3.24 release notes
additional csps are zeroed in the code.
NSS 3.33 release notes
in secport.h nss_securememcmpzero - check if a memory region is all zero in constant time.
NSS 3.36.5 release notes
this is a patch release to fix cve-2018-12384 bugs fixed in nss 3.36.5 bug 1483128 - nss responded to an sslv2-compatible clienthello with a serverhello that had an all-zero random (cve-2018-12384) compatibility nss 3.36.5 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.39 release notes
cn = opentrust root ca g2 sha-256 fingerprint: 27995829fe6a7515c1bfe848f9c4761db16c225929257bf40d0894f29ea8baf2 cn = opentrust root ca g3 sha-256 fingerprint: b7c36231706e81078c367cb896198f1e3208dd926949dd8f5709a410f75b6292 bugs fixed in nss 3.39 bug 1483128 - nss responded to an sslv2-compatible clienthello with a serverhello that had an all-zero random (cve-2018-12384) this bugzilla query returns all the bugs fixed in nss 3.39: https://bugzilla.mozilla.org/buglist.cgi?resolution=fixed&classification=components&query_format=advanced&product=nss&target_milestone=3.39 compatibility nss 3.39 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.45 release notes
74b73cbb1d620884e01c34e51ccb3978da125f0e33268883bf4158 bugs fixed in nss 3.45 bug 1540541 - don't unnecessarily strip leading 0's from key material during pkcs11 import (cve-2019-11719) bug 1515342 - more thorough input checking (cve-2019-11729) bug 1552208 - prohibit use of rsassa-pkcs1-v1_5 algorithms in tls 1.3 (cve-2019-11727) bug 1227090 - fix a potential divide-by-zero in makepfromqandseed from lib/freebl/pqg.c (static analysis) bug 1227096 - fix a potential divide-by-zero in pqg_verifyparams from lib/freebl/pqg.c (static analysis) bug 1509432 - de-duplicate code between mp_set_long and mp_set_ulong bug 1515011 - fix a mistake with chacha20-poly1305 test code where tags could be faked.
NSS API Guidelines
the security code often wants to be sure to zero memory, when it's being freed; we'll add it to the primitives to deal with.
nss tech note7
use pk11_freesymkey() to release a reference to a symmetric key (pk11symkey *); the symmetric key is destroyed when its reference count becomes zero.
NSS PKCS11 Functions
passwordrequired - zero length passwords are not acceptable(valid only if there is a keydb).
Python binding for NSS
thus it's major version number is still at zero.
FC_FindObjects
description fc_findobjects returns the next set of object handles matching the criteria set up by the previous call to fc_findobjectsinit and sets the object count variable to their number or to zero if there are none.
NSS Key Functions
when you call cert_destroycertificate or seckey_destroyprivatekey, the function decrements the reference count and, if the reference count reaches zero as a result, both frees the memory and sets all the bits to zero.
NSS tools : cmsutil
each option may take zero or more arguments.
NSS tools : crlutil
each option may take zero or more arguments.
sslcrt.html
when you call cert_destroycertificate or seckey_destroyprivatekey, the function decrements the reference count and, if the reference count reaches zero as a result, both frees the memory and sets all the bits to zero.
sslkey.html
when you call cert_destroycertificate or seckey_destroyprivatekey, the function decrements the reference count and, if the reference count reaches zero as a result, both frees the memory and sets all the bits to zero.
NSS Tools cmsutil
each option may take zero or more arguments.
NSS Tools crlutil
each option may take zero or more arguments.
NSS Tools modutil
each option may take zero or more arguments.
NSS Tools pk12util
options may take zero or more arguments.
certutil
the default serial number is 0 (zero).
NSS tools : cmsutil
MozillaProjectsNSStoolscmsutil
each option may take zero or more arguments.
NSS tools : crlutil
MozillaProjectsNSStoolscrlutil
each option may take zero or more arguments.
NSS tools : signtool
a value of 0 (zero) is the default and gives full information.
Tutorial: Embedding Rhino
(note that because the java -jar option preempts the rest of the classpath, we can't use that and access the counter class.) $ java -cp "js.jar;examples" org.mozilla.javascript.tools.shell.main js> defineclass("counter") js> c = new counter(7) [object counter] js> c.count 7 js> c.count 8 js> c.count 9 js> c.resetcount() js> c.count 0 counter's constructors the zero-argument constructor is used by rhino runtime to create instances.
Rhino scopes and contexts
only when the counter reaches zero will it be disassociated from the thread.
Creating JavaScript jstest reftests
however, an uncaught error or exception will not cause the browser to terminate with a non-zero exit code.
Tracing JIT
an assembler runs in a single pass over its input, transforming one lins value to zero or more nins values.
JSAPI User Guide
these functions convert their char * arguments to 16-bit strings by zero-extending each 8-bit char to 16 bits—unless js_c_strings_are_utf8 is defined or js_setcstringsareutf8 has been called, in which case each char * string is interpreted as utf-8 unicode text.
JS::AutoVectorRooter
bool empty() const determines if the array is empty (length is zero).
JS::Value
js type jsval type tests jsval constants and constructors jsval accessors null jsval_is_null(v) jsval_null undefined jsval_is_void(v) jsval_void boolean jsval_is_boolean(v) jsval_true, jsval_false, boolean_to_jsval(b) jsval_to_boolean(v) number jsval_is_number(v), jsval_is_int(v), jsval_is_double(v) jsval_zero, jsval_one, int_to_jsval(i), double_to_jsval(d) jsval_to_int(v), jsval_to_double(v) string jsval_is_string(v) string_to_jsval(str) jsval_to_string(v), js_getstringchars(str), js_getstringlength(str) object !jsval_is_primitive(v) object_to_jsval(obj) jsval_to_object(v) there was also a further method, jsval_is_object(v), which did not what you would ...
JSClass.flags
its value is the logical or of zero or more of the following constants: flag meaning jsclass_has_private this class uses private data.
JSNewEnumerateOp
if idp is non-null and the number of enumerable properties can't be computed in advance, *idp should be set to jsval_zero.
JSNewResolveOp
flags the flags argument is the logical or of zero or more of the following flags.
JSObjectOps.destroyObjectMap
the jsobjectops.destroyobjectmap callback is called to destroy a jsobjectmap when its reference count goes to zero.
JSObjectOps.getRequiredSlot
note: the slot parameter is a zero-based index into obj slots, unlike the index parameter to the js_getreservedslot and js_setreservedslot api entry points, which is a zero-based index into the jsclass_reserved_slots(clasp) reserved slots that come after the initial well-known slots: proto, parent, class, and optionally, the private data slot.
JSPropertySpec
this value should be zero if you are not using tinyids (i.e.
JSVAL_NULL
see also mxr id search for jsval_null jsval_void jsval_true jsval_false jsval_zero jsval_one bug 1177825 -- removed ...
JSVAL_ONE
see also mxr id search for jsval_one int_to_jsval js_newcontext jsval_null jsval_void jsval_true jsval_false jsval_zero bug 1177825 -- removed ...
JSVAL_VOID
see also mxr id search for jsval_void jsval_null jsval_true jsval_false jsval_zero jsval_one bug 1177825 -- removed ...
JS_AddArgumentFormatter
the js_true passed for fromjs tells the formatter to convert zero or more jsvals at sp to zero or more c values accessed via pointers-to-values at ap, updating both sp (via *vpp) and ap (via *app) to point past the converted arguments and their result pointers on the c stack.
JS_ClearContextThread
when the function is used properly, the return value is always zero, indicating that no thread was previously associated with the context.
JS_ConcatStrings
the result could be the same as one of the input strings, if the other string is zero length.
JS_GetFunctionFlags
function flags are a value of type unsigned int, the bitwise or of zero or more of the jsfun flags described below.
JS_GetGCParameter
jsgc_compaction_enabled / "compactingenabled" non-zero to enable compacting, zero to disable.
JS_GetOptions
this function returns a uint32 value that is the logical or of zero or more of the jsoption flags described in js_setoptions.
JS_GetPositiveInfinityValue
for example, any nonzero value multiplied by infinity is infinity with the expected sign, and any finite value divided by infinity is zero (again with the expected sign).
JS_GetPropertyAttributes
if the property exists and belongs to obj, then *foundp is set to js_true, *attrsp is set to the logical or of zero or more property attributes flags, and the function returns js_true.
JS_GetStringChars
it may also contain zeroes.
JS_NewArrayObject
(this means that if length is nonzero and vector is null, the result is like the javascript expression new array(length).
JS_NewExternalString
(ultimately, the string will be garbage collected, and the javascript engine will call the string finalizer callback, allowing the application to free the array.) the array does not need to be zero-terminated.
JS_ScheduleGC
when it reaches zero, we do either a full or a compartmental gc.
JS_SetPropertyAttributes
it is the bitwise or of zero or more of the following values: flag purpose jsprop_enumerate property is visible in for and in loops.
JS_SuspendRequest
if savedepth is nonzero and garbage collection is underway, js_resumerequest blocks until the garbage collector is done.
JS_ToggleOptions
this is the logical or of zero or more flags described at js_setoptions.
JS_ValueToECMAInt32
all three functions first convert v to a floating-point number as if by calling js_valuetonumber; nan values are then converted to zero.
JS_updateMallocCounter
it runs from maxmallocbytes down to zero.
jschar
it may also contain zeroes ('\0').
Running Automated JavaScript Tests
the test is considered to pass if the exit code of the js shell is zero (i.e., js didn't crash and there were no js errors).
Shell global objects
asserteq(actual, expected[, msg]) throw if the first two arguments are not the same (both +0 or both -0, both nan, or non-zero and ===).
Redis Tips
bit strings bit strings are just that: compact representations of ones and zeroes.
The Rust programming language
in addition, rust offers zero-cost abstractions, move semantics, guaranteed memory safety, threads with no data races, trait-based generics, pattern matching, type inference, and efficient c bindings, with a minimum runtime size.
Exploitable crashes
if the address is always zero (or close to zero, such as 0x0000001c), it's probably a null dereference bug.
Frecency algorithm
invalid places have a frecency value of zero, and will not show up in autocomplete results.
Using the Places annotation service
if no expiration is specified, the annotation is expired when the number of visits to the url is set to zero.
XPCOM array guide
MozillaTechXPCOMGuideArrays
in this document the term array refers to a container for multiple objects with a numeric, zero-based index.
Avoiding leaks in JavaScript XPCOM components
when this count goes to zero, the object destroys itself.
An Overview of XPCOM
when all clients lose interest in the component, the reference count hits zero, and the component deletes itself.
Starting WebLock
when the counter goes to zero or the pointer points to a non-element, hasmoreelements will return false.
XPCOM guide
MozillaTechXPCOMGuide
in this document the term array refers to a container for multiple objects with a numeric, zero-based index.xpcom changes in gecko 2.0several changes that affect xpcom component compatibility are taking place in gecko 2.
Interfacing with the XPCOM cycle collector
this is the idle stage of the collector's operation, in which special variants of nsautorefcnt register and unregister themselves very rapidly with the collector, as they pass through a "suspicious" refcount event (from n+1 to n, for nonzero n).
Introduction to XPCOM for the DOM
when the reference count of an object hits 0 (zero), the object deletes itself.
Components.isSuccessCode
note: a non-zero xpcom return code (that is, not ns_ok) does not necessarily indicate failure.
NS_Realloc
asize [in] the size in bytes of the block to allocate, or zero if the given block is to be freed.
Append
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Assign
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Insert
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Replace
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Append
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Assign
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Insert
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Replace
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
nsEmbedCString
remarks the default constructor sets the string's internal buffer to point to a static empty (zero-length) buffer.
nsEmbedString
remarks the default constructor sets the string's internal buffer to point to a static empty (zero-length) buffer.
IAccessibleAction
hresult nactions( [out] long nactions ); parameters nactions the returned value of the number of actions is zero if there are no actions.
IAccessibleEditableText
the whole text can be defined by passing the indices zero and iaccessibletext.ncharacters().
IAccessibleHypertext
if iaccessibletext is used to represent the text containing the link, then the character index is only valid if it is greater than or equal to zero and lower than the number of characters in the text.
mozIAsyncFavicons
note that the callback's adatalen will be 0, adata will be null, and amimetype will be empty -- only auri will be non-zero/null/empty.
mozITXTToHTMLConv
you must set this value to zero before calling this method.
nsIAccessNode
nsiaccessnode getchildnodeat( in long childnum ); parameters childnum zero-based child index.
GetKeyBindings
exceptions thrown ns_error_invalid_arg the given index doesn't correspond to default action (not zero).
GetRelation
remark currently we do not support multiple relations so the zero index may be valid only.
nsIAccessibleRelation
nsiaccessible gettarget( in unsigned long index ); parameters index zero-based index of relation target.
nsIArray
indexes are zero-based, such that the last element in the array is stored at the index length-1.
nsIDOMWindowUtils
wheel_event_expected_overflow_delta_x_zero 0x0010 wheel_event_expected_overflow_delta_x_positive 0x0020 wheel_event_expected_overflow_delta_x_negative 0x0040 wheel_event_expected_overflow_delta_y_zero 0x0100 wheel_event_expected_overflow_delta_y_positive 0x0200 wheel_event_expected_overflow_delta_y_negative 0x0400 mousescroll_prefer_widget_at_p...
nsIDebug2
this is normally zero in release builds, but does include calls to nsidebug.assertion().
nsIDownloadManager
should always be set to nsidownloadmanager.download_type_download (that is, zero).
nsIDragService
if level is zero, dragging is re-enabled.
nsIDragSession
aitemindex which of multiple drag items, zero-based.
nsIHttpChannel
if zero, the channel will fail to redirect and will generate a ns_error_redirect_loop failure status.
nsIINIParserWriter
ini files contain zero or more sections, denoted by a name in square brackets, followed by zero or more lines of text with a property name on the left, then an equals sign ("="), then the value of the property.
nsIMsgHeaderParser
note that some of the strings may be zero-length.
nsINavHistoryResultNode
the members of result.children have an indentlevel value of zero, their children have an indentlevel of 1, and so forth.
nsINavHistoryResultObserver
this method is called after the item has been removed from the parent, but before any other action is taken (including zeroing out the item's parent reference).
nsINavHistoryResultViewer
remarks this method is called after the item has been removed from the parent, but before any other action is taken (including zeroing out the item's parent reference).
nsIOutputStream
this method should not call the reader with zero bytes to provide.
nsIPromptService
if the value for a button position is zero, the button will not be shown.
nsIServerSocket
in the case of an ip socket, the ip address field would be zeroed out to indicate a server socket bound to all network devices.
nsIUpdate
if the update is not in the "failed" state, this value is zero.
nsIVariant
return value if possible, the internal value is converted to a double, which is then compared to zero.
nsIVersionComparator
numbers are base-10, and are zero if left out.
nsIWebProgressListener2
progress totals are reset to zero when all requests in awebprogress complete (corresponding to onstatechange being called with astateflags including the state_stop and state_is_window flags).
nsIXMLHttpRequestEventTarget
onprogress nsidomeventlistener a javascript function object that gets invoked zero or more times, after the loadstart event, but before any abort, error, or load events occur.
nsIXPCScriptable
if idp is non-null and the number of enumerable properties cannot be computed in advance, idp should be set to jsval_zero.
nsIXPConnect
this method will turn debug mode on or off when the context stack reaches zero length.
nsMsgFolderFlagType
* (note that directories may have zero children.) */ const nsmsgfolderflagtype directory = 0x00000008; /** whether the children of this folder are currently hidden in the listing.
NS_CStringContainerInit2
if this value is zero, then the array referenced by adata (if any) will be copied.
NS_CStringGetMutableData
this value will be zero if the function failed to resize its internal buffer to the size requested.
nsIAbCard/Thunderbird3
of particular note is that boolean variables are converted to integers as in c/c++ (true is a non-zero value), so that false will be converted to a string of 0 and not false<code>.
Storage
similarly, the c++ looks like this: nscomptr<mozistoragestatement> statement; rv = dbconn->createstatement(ns_literal_cstring("select * from table_name where column_name = ?1"), getter_addrefs(statement)); ns_ensure_success(rv, rv); this example uses the numbered placeholder indexed by zero for a parameter to be bound later (described in binding parameters).
Getting Started Guide
when that count goes to zero, the interface may delete itself.
Xptcall Porting Guide
i believe that the non-assembly parts of these files can be copied and reused with minimal (but not zero) platform specific tweaks.
Building a Thunderbird extension 6: Adding JavaScript
because the month is zero-based we also need to add one to the month.
Using popup notifications
a popup notification can include a text message, a button action, and zero or more additional actions provided in a drop-down menu accessed through the notification's button.
Working with data
creating uninitialized cdata objects there are three forms of the syntax for creating cdata objects without immediately assigning them a value: var mycdataobj = new type; var mycdataobj = new type(); var mycdataobj = type(); these all do the same thing: they return a new cdata object of the specified type, whose data buffer has been populated entirely with zeroes.
FunctionType
argtypen zero or more ctype objects indicating the types of each of the parameters passed into the c function.
Library
argtype1...argtypen zero or more parameter ctype may be specified for the parameters of the function being declared.
Debugger.Frame - Firefox Developer Tools
depth the depth of this frame, counting from oldest to youngest; the oldest frame has a depth of zero.
Debugger.Script - Firefox Developer Tools
sourcestart if the instance refers to a jsscript, the character within the debugger.source instance given by source at which this script’s code starts; zero-based.
Examine and edit HTML - Firefox Developer Tools
if these auto generated text nodes are inline level, browsers will give them a non-zero width and height.
Web Audio Editor - Firefox Developer Tools
within that context they then construct a number of audio nodes, including: nodes providing the audio source, such as an oscillator or a data buffer source nodes performing transformations such as delay and gain nodes representing the destination of the audio stream, such as the speakers each node has zero or more audioparam properties that configure its operation.
AbstractRange.collapsed - Web APIs
a collapsed range is one in which the start and end positions are the same, resulting in a zero-character-long range..
Animation.updatePlaybackRate() - Web APIs
this may be a positive number (to speed up or slow down the animation), a negative number (to make it play backwards), or zero (to effectively pause the animation).
AudioContext() - Web APIs
syntax var audioctx = new audiocontext(); var audioctx = new audiocontext(options); parameters options optional an object based on the audiocontextoptions dictionary that contains zero or more optional properties to configure the new context.
AudioNode - Web APIs
WebAPIAudioNode
a source node has zero inputs but one or multiple outputs, and can be used to generate sound.
AudioScheduledSourceNode - Web APIs
silence is represented, as always, by a stream of samples with the value zero (0).
AudioWorkletNode() - Web APIs
options optional an object based on the audioworkletnodeoptions dictionary, which contains zero or more optional properties to configure the new node.
Background Tasks API - Web APIs
lay(); let n = getrandomintinclusive(100, 200); for (i=0; i<n; i++) { let taskdata = { count: getrandomintinclusive(75, 150), text: "this text is from task number " + (i+1).tostring() + " of " + n }; enqueuetask(logtaskhandler, taskdata); } } document.getelementbyid("startbutton").addeventlistener("click", decodetechnostuff, false); decodetechnostuff() starts by zeroing the values of totaltaskcount (the number of tasks added to the queue so far) and currenttasknumber (the task currently being run), and then calls updatedisplay() to reset the display to its "nothing's happened yet" state.
BaseAudioContext.createScriptProcessor() - Web APIs
note: it is invalid for both numberofinputchannels and numberofoutputchannels to be zero.
BlobEvent.timecode - Web APIs
note that the timecode in the first produced blobevent does not need to be zero.
BlobEvent - Web APIs
WebAPIBlobEvent
note that the timecode in the first produced blobevent does not need to be zero.
CSSStyleDeclaration.item() - Web APIs
the index is zero-based.
CSSStyleSheet.insertRule() - Web APIs
nged selectorandrule.substring(0, openbracketpos), // the selector selectorandrule.substring(closebracketpos), // the rule arguments[3] // the insert index ); } // works by if the char code is a backslash, then isescaped // gets flipped (xor-ed by 1), and if it is not a backslash // then isescaped gets xored by itself, zeroing it isescaped ^= newcharcode===92?1:isescaped; // 92 = "\\".charcodeat(0) } // else, there is no unescaped bracket return originalinsertrule.call(this, selectorandrule, "", arguments[2]); }; } })(cssstylesheet.prototype); specifications specification status comment css object model (cssom)the definition of 'cssstylesheet.insertrule' in ...
CanvasRenderingContext2D.addHitRegion() - Web APIs
possible values: nonzero: the non-zero winding rule.
CanvasRenderingContext2D.createImageData() - Web APIs
errors thrown indexsizeerror thrown if either of the width or height arguments is zero.
CanvasRenderingContext2D.drawImage() - Web APIs
exceptions thrown index_size_err if the canvas or source rectangle width or height is zero.
CanvasRenderingContext2D.getImageData() - Web APIs
exceptions indexsizeerror thrown if either sw or sh are zero.
CanvasRenderingContext2D.isPointInPath() - Web APIs
possible values: "nonzero": the non-zero winding rule.
CanvasRenderingContext2D.lineJoin - Web APIs
degenerate segments with a length of zero (i.e., with all endpoints and control points at the exact same position) are also ignored.
CanvasRenderingContext2D.lineWidth - Web APIs
zero, negative, infinity, and nan values are ignored.
CanvasRenderingContext2D.miterLimit - Web APIs
zero, negative, infinity, and nan values are ignored.
CanvasRenderingContext2D.shadowBlur - Web APIs
one of the shadowblur, shadowoffsetx, or shadowoffsety properties must be non-zero, as well.
CanvasRenderingContext2D.shadowColor - Web APIs
one of the shadowblur, shadowoffsetx, or shadowoffsety properties must be non-zero, as well.
CanvasRenderingContext2D.shadowOffsetX - Web APIs
one of the shadowblur, shadowoffsetx, or shadowoffsety properties must be non-zero, as well.
CanvasRenderingContext2D.shadowOffsetY - Web APIs
one of the shadowblur, shadowoffsetx, or shadowoffsety properties must be non-zero, as well.
CanvasRenderingContext2D.stroke() - Web APIs
the stroke is drawn using the non-zero winding rule, which means that path intersections will still get filled.
CanvasRenderingContext2D - Web APIs
this must be one of evenodd or nonzero (default).
Manipulating video using canvas - Web APIs
every pixel in the frame's image data that is found that is within the parameters that are considered to be part of the green screen has its alpha value replaced with a zero, indicating that the pixel is entirely transparent.
Pixel manipulation with canvas - Web APIs
all pixels are preset to transparent black (all zeroes i.e rgba(0,0,0,0)).
console.assert() - Web APIs
WebAPIConsoleassert
msg a javascript string containing zero or more substitution strings.
Console.countReset() - Web APIs
ven code like this: let user = ""; function greet() { console.count(); return "hi " + user; } user = "bob"; greet(); user = "alice"; greet(); greet(); console.count(); console.countreset(); console output will look something like this: "default: 1" "default: 2" "default: 3" "default: 4" "default: 0" note that the call to console.counterreset() resets the value of the default counter to zero.
console.debug() - Web APIs
WebAPIConsoledebug
msg a javascript string containing zero or more substitution strings, which are replaced with subst1 through substn in consecutive order.
Console.error() - Web APIs
WebAPIConsoleerror
msg a javascript string containing zero or more substitution strings.
Console.info() - Web APIs
WebAPIConsoleinfo
msg a javascript string containing zero or more substitution strings.
console.log() - Web APIs
WebAPIConsolelog
msg a javascript string containing zero or more substitution strings.
console.trace() - Web APIs
WebAPIConsoletrace
syntax console.trace( [...any, ...data ]); parameters ...any, ...data optional zero or more objects to be output to console along with the trace.
Console.warn() - Web APIs
WebAPIConsolewarn
msg a javascript string containing zero or more substitution strings.
console - Web APIs
WebAPIConsole
there are two ways to use each of the output methods; you can simply pass in a list of objects whose string representations get concatenated into one string, then output to the console, or you can pass in a string containing zero or more substitution strings followed by a list of objects to replace them.
DOMPoint - Web APIs
WebAPIDOMPoint
constructor dompoint() creates and returns a new dompoint object given the values of zero or more of its coordinate components and optionally the w perspective value.
DataTransfer.mozClearDataAt() - Web APIs
the index must be in the range from zero to the number of items minus one.
DataTransfer.mozGetDataAt() - Web APIs
this method returns null if the specified item does not exist or if the index is not in the range from zero to the number of items minus one.
DataTransfer.mozSetDataAt() - Web APIs
a data transfer may store multiple items, each at a given zero-based index.
DeviceProximityEvent - Web APIs
ususally zero.
Document.cookie - Web APIs
WebAPIDocumentcookie
you can delete a cookie by simply updating its expiration time to zero.
Document.createTouchList() - Web APIs
syntax var list = documenttouch.createtouchlist([touch1 [, touch2 [, ...]]]); parameters touches zero or more touch objects.
Document.forms - Web APIs
WebAPIDocumentforms
if the document has no forms, the returned collection is empty, with a length of zero.
Document.timeline - Web APIs
WebAPIDocumenttimeline
the time values for this timeline are calculated as a fixed offset from the global clock such that the zero time corresponds to the navigationstart moment plus a signed delta known as the origin time.
DocumentTimeline.DocumentTimeline() - Web APIs
currently the only supported option is the origintime member which specifies the zero time for the documenttimeline as a real number of milliseconds relative to the navigationstart moment of the active document for the current browsing context.
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
html <body> <input type="button" value="set paragraph background color" onclick="set_background()"> <p>hi</p> <p>hello</p> </body> javascript function set_background() { // get a list of all the body elements (there will only be one), // and then select the zeroth (or first) such element mybody = document.getelementsbytagname("body")[0]; // now, get all the p elements that are descendants of the body mybodyelements = mybody.getelementsbytagname("p"); // get the second item of the list of p elements myp = mybodyelements[1]; myp.style.background = "rgb(255,0,0)"; } in this example, we set the myp variable to the dom object for the second p...
EffectTiming.duration - Web APIs
exceptions typeerror the specified value is either a string other than "auto", a number less than zero, nan, or some other type of object entirely.
Element.clientHeight - Web APIs
the element.clientheight read-only property is zero for elements with no css or inline layout boxes; otherwise, it's the inner height of an element in pixels.
Element.clientTop - Web APIs
WebAPIElementclientTop
(actually might be math.round(parsefloat()).) for example, if the computed "border-top-width" is zero, then clienttop is also zero.
Element.clientWidth - Web APIs
the element.clientwidth property is zero for inline elements and elements with no css; otherwise, it's the inner width of an element in pixels.
Element.currentStyle - Web APIs
* http://creativecommons.org/publicdomain/zero/1.0/ */ if (!("currentstyle" in element.prototype)) { object.defineproperty(element.prototype, "currentstyle", { get: function() { return window.getcomputedstyle(this); } }); } specification not part of any specification.
Element.getBoundingClientRect() - Web APIs
if all the element's border-boxes are empty, then a rectangle is returned with a width and height of zero and where the top and left are the top-left of the border-box for the first css box (in content order) for the element.
Element: mousewheel event - Web APIs
bubbles yes cancelable yes interface mousewheelevent event handler property onmousewheel the detail property the value of the detail property is always zero, except in opera, which uses detail similarly to the firefox-only dommousescroll event's detail value, which indicates the scroll distance in terms of lines, with negative values indicating the scrolling movement is either toward the bottom or toward the right, and positive values indicating scrolling to the top or left.
FileList - Web APIs
WebAPIFileList
file item( index ); parameters index the zero-based index of the file to retrieve from the list.
FileSystemFlags - Web APIs
methods which accept an options parameter of this type may specify zero or more of these flags as fields in an object, like this: datadirectoryentry.getdirectory("workspace", { create: true }, function(entry) { }); here, we see that the create property is provided, with a value of true, indicating that the directory should be created if it's not already there.
Gamepad.buttons - Web APIs
WebAPIGamepadbuttons
each entry in the array is 0 if the button is not pressed, and non-zero (typically 1.0) if the button is pressed.
GeolocationCoordinates.heading - Web APIs
zero degrees represents true true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees).
GeolocationCoordinates.longitude - Web APIs
note: the zero meridian (also known as the prime meridian or the reference meridian) is not precisely the same as the greenwhich meridian that most people think of.
GlobalEventHandlers.onanimationiteration - Web APIs
var box = document.getelementbyid("box"); var iterationcounter = 0; box.onanimationiteration = function(event) { box.style.animationplaystate = "paused"; document.getelementbyid("play").innerhtml = "start iteration #" + (iterationcounter+1); }; this sets up two global variables: box, which references the "box" element that we're animating, and iterationcounter, which is initially zero, which indicates how many iterations of the animation have occurred.
GlobalEventHandlers.ontransitioncancel - Web APIs
note: elapsedtime does not include time prior to the transition effect beginning; that means that the value of transition-delay doesn't affect the value of elapsedtime, which is zero until the delay period ends and the animation begins.
GlobalEventHandlers.ontransitionend - Web APIs
elapsedtime does not include time prior to the transition effect beginning; that means that the value of transition-delay doesn't affect the value of elapsedtime, which is zero until the delay period ends and the animation begins.
HTMLCollection.item - Web APIs
return value the node at the specified index, or null if index is less than zero or greater than or equal to the length property.
HTMLCollection - Web APIs
methods htmlcollection.item() returns the specific node at the given zero-based index into the list.
HTMLProgressElement - Web APIs
htmlprogresselement.max is a double value reflecting the content attribute of the same name, limited to numbers greater than zero.
HTMLVideoElement.videoHeight - Web APIs
let v = document.getelementbyid("myvideo"); v.addeventlistener("resize", ev => { let w = v.videowidth; let h = v.videoheight; if (w && h) { v.style.width = w; v.style.height = h; } }, false); note that this only applies the change if both the videowidth and the videoheight are non-zero.
HTMLVideoElement.videoWidth - Web APIs
let v = document.getelementbyid("myvideo"); v.addeventlistener("resize", ev => { let w = v.videowidth; let h = v.videoheight; if (w && h) { v.style.width = w; v.style.height = h; } }, false); note that this only applies the change if both the videowidth and the videoheight are non-zero.
The HTML DOM API - Web APIs
this code looks at the length of the current value of the input; if it's zero, then the "send" button is disabled if it's not already disabled.
Headers - Web APIs
WebAPIHeaders
a headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.
IDBCursor.advance() - Web APIs
WebAPIIDBCursoradvance
typeerror the value passed into the count parameter was zero or a negative number.
IDBFactory.open() - Web APIs
WebAPIIDBFactoryopen
exceptions this method may raise a domexception of the following types: exception description typeerror the value of version is zero or a negative number or not a number.
IdleDeadline.timeRemaining() - Web APIs
if the idledeadline object's didtimeout property is true, this method returns zero.
IntersectionObserverEntry.intersectionRatio - Web APIs
if the area of the target's bounds rectangle is zero, the returned value is 1 if isintersecting is true or 0 if not.
Timing element visibility with the Intersection Observer API - Web APIs
if laststarted is non-zero—meaning the timer is currently running, we compute the difference between the current time and the start time to determine the number of milliseconds the timer has been visible since the last time it became visible.
LockedFile.location - Web APIs
summary the location property is a zero-based index representing the position of the read/write pointer within the file.
MediaPositionState.position - Web APIs
this value should always be zero or more.
MediaSession.setPositionState() - Web APIs
the playbackrate is zero.
Capabilities, constraints, and settings - Web APIs
this object contains zero or more individual constraints, as well as an optional sub-object named advanced, which contains another set of zero or more constraints which the user agent must satisfy if at all possible.
Media Capture and Streams API (Media Stream) - Web APIs
a mediastream consists of zero or more mediastreamtrack objects, representing various audio or video tracks.
MerchantValidationEvent() - Web APIs
options optional an optional dictionary which may contain zero or more of the following properties: methodname optional a domstring containing the payment method identifier for the payment handler being used.
MouseEvent.button - Web APIs
WebAPIMouseEventbutton
users may change the configuration of buttons on their pointing device so that if an event's button property is zero, it may not have been caused by the button that is physically left–most on the pointing device; however, it should behave as if the left button was clicked in the standard button layout.
Navigator.vibrate() - Web APIs
WebAPINavigatorvibrate
passing a value of 0, an empty array, or an array containing all zeros will cancel any currently ongoing vibration pattern.
NodeList.item() - Web APIs
WebAPINodeListitem
the index is zero-based.
PaymentMethodChangeEvent - Web APIs
options optional an optional paymentmethodchangeeventinit dictionary which may contain zero or more of the following properties: methodname optional a domstring containing the payment method identifier for the payment handler being used.
PerformanceResourceTiming.redirectEnd - Web APIs
when fetching a resource, if there are multiple http redirects, and any of the redirects have an origin that is different from the current document, and the timing allow check algorithm passes for each redirected resource, this property returns the time immediately after receiving the last byte of the response of the last redirect; otherwise, zero is returned.
PerformanceResourceTiming.redirectStart - Web APIs
if there are http redirects when fetching the resource and if any of the redirects are not from the same origin as the current document, but the timing allow check algorithm passes for each redirected resource, this property returns the starting time of the fetch that initiates the redirect; otherwise, zero is returned.
PerformanceResourceTiming.transferSize - Web APIs
if the resource is fetched from a local cache, or if it is a cross-origin resource, this property returns zero.
Pointer Lock API - Web APIs
if that happens, movementx and movementy could be set to zero.
Pointer events - Web APIs
terminology active buttons state the condition when a pointer has a non-zero value for the buttons property.
RTCConfiguration.iceServers - Web APIs
]; value an array of zero or more rtciceserver objects, each of which describes one stun or turn server for the ice agent to use during the connection's negotiation.
RTCIceCandidate.sdpMLineIndex - Web APIs
the read-only sdpmlineindex property on the rtcicecandidate interface is a zero-based index of the m-line describing the media associated with the candidate.
RTCIceCandidate - Web APIs
sdpmlineindex read only if not null, sdpmlineindex indicates the zero-based index number of the media description (as defined in rfc 4566) in the sdp with which the candidate is associated.
RTCIceCandidateInit - Web APIs
sdpmlineindex optional the zero-based index of the m-line within the sdp of the media description with which the candidate is associated, or null if no such associated exists.
RTCInboundRtpStreamStats.bytesReceived - Web APIs
this value can be used to calculate an approximation of the average media data rate: avgdatarate = rtcinboundrtpstreamstats.bytesreceived / elapsedtime; this value gets reset to zero if the sender's ssrc identifier changes for any reason.
RTCPeerConnection.getConfiguration() - Web APIs
exponent: new uint8array([1, 0, 1]) }).then(function(cert) { configuration.certificates = [cert]; mypeerconnection.setconfiguration(configuration); }); } this example fetches the current configuration of the rtcpeerconnection, then looks to see if it has any certificates set by examining whether or not (a) the configuration has a value for certificates, and (b) whether its length is zero.
RTCPeerConnection.onremovestream - Web APIs
the rtcpeerconnection api is now track-based, so having zero tracks in the remote stream is equivalent to the remote stream being removed and the old removestream event.
RTCPeerConnection: removestream event - Web APIs
the rtcpeerconnection api is now track-based, so having zero tracks in the remote stream is equivalent to the remote stream being removed, which caused a removestream event.
RTCRtpParameters - Web APIs
headerextensions an array of zero or more rtp header extensions, each identifying an extension supported by the sender or receiver.
Range.comparePoint() - Web APIs
offset an integer greater than or equal to zero representing the offset inside the referencenode.
Range.setStart() - Web APIs
WebAPIRangesetStart
startoffset an integer greater than or equal to zero representing the offset for the start of the range from the start of startnode.
Resource Timing API - Web APIs
when cors is in effect, many of these values are returned as zero unless the server's access policy permits these values to be shared.
SVGAnimationElement - Web APIs
svganimationelement.getcurrenttime() returns a float representing the current time in seconds relative to time zero for the given time container.
SVGMarkerElement - Web APIs
if markerunits is svg_marker_orient_angle, the angle value for attribute orient; otherwise, it will be set to zero.
SVGRect - Web APIs
WebAPISVGRect
a value of zero disables rendering of the element svgrect.height this represents the height of the rectangle.a value that is negative results to an error.a value of zero disables rendering of the element.
Selection.anchorOffset - Web APIs
this number is zero-based.
Selection.focusOffset - Web APIs
this number is zero-based.
Selection.getRangeAt() - Web APIs
syntax range = sel.getrangeat(index) parameters index the zero-based index of the range to return.
Selection.isCollapsed - Web APIs
keep in mind that a collapsed selection may still have one (or more, in gecko) ranges, so selection.rangecount may not be zero.
StaticRange.collapsed - Web APIs
a collapsed range is one in which the start and end positions are the same, resulting in a zero-character-long range..
Storage.key() - Web APIs
WebAPIStoragekey
this is a zero-based index.
Supporting both TouchEvent and MouseEvent - Web APIs
// touchmove handler function process_touchmove(ev) { // call preventdefault() to prevent any further handling ev.preventdefault(); } event order although the specific ordering of touch and mouse events is implementation-defined, the standard indicates the following order is typical: for single input: touchstart zero or more touchmove events, depending on movement of the finger(s) touchend mousemove mousedown mouseup click if the touchstart, touchmove or touchend event is canceled during an interaction, no mouse or click events will be fired, and the resulting sequence of events would just be: touchstart zero or more touchmove events, depending on movement of the finger(s) touchend community ...
ValidityState.stepMismatch - Web APIs
if the remainder of the form control's value less the min value, divided by the step value (which defaults to 1 if ommitted) is not zero, there is a mismatch.
Vibration API - Web APIs
canceling existing vibrations calling navigator.vibrate() with a value of 0, an empty array, or an array containing all zeros will cancel any currently ongoing vibration pattern.
WebGLRenderingContext.checkFramebufferStatus() - Web APIs
when using a webgl 2 context, the following values can be returned additionally: gl.framebuffer_incomplete_multisample: the values of gl.renderbuffer_samples are different among attached renderbuffers, or are non-zero if the attached images are a mix of renderbuffers and textures.
WebGLRenderingContext.vertexAttribPointer() - Web APIs
for better performance, we align the data to 32 bits by also storing a fourth zero-valued component, bringing the total size to 4 bytes.
WebGL constants - Web APIs
constant name value description zero 0 passed to blendfunc or blendfuncseparate to turn off a component.
Lighting in WebGL - Web APIs
if this value is less than zero, then we pin the value to zero, since you can't have less than zero light.
Signaling and video calling - Web APIs
if the array's length is zero, meaning there are no tracks left in the stream, we end the call by calling closevideocall().
Taking still photos with WebRTC - Web APIs
then, if the width and height are both non-zero (meaning that there's at least potentially valid image data), we set the width and height of the canvas to match that of the captured frame, then call drawimage() to draw the current frame of the video into the context, filling the entire canvas with the frame image.
Movement, orientation, and motion: A WebXR example - Web APIs
y: verticaldistance, z: axialdistance}, {x: inverseorientation[0], y: inverseorientation[1], z: inverseorientation[2], w: inverseorientation[3]}); mat4.copy(mousematrix, newtransform.matrix); return refspace.getoffsetreferencespace(newtransform); } if all the input offsets are zero, we just return the original reference space.
Advanced techniques: Creating and sequencing audio - Web APIs
function nextnote() { const secondsperbeat = 60.0 / tempo; nextnotetime += secondsperbeat; // add beat length to last beat time // advance the beat number, wrap to zero currentnote++; if (currentnote === 4) { currentnote = 0; } } we want to create a reference queue for the notes that are to be played, and the functionality to play them using the functions we've previously created: const notesinqueue = []; function schedulenote(beatnumber, time) { // push the note on the queue, even if we're not playing.
Basic concepts behind Web Audio API - Web APIs
establish connections from the audio sources through zero or more effects, eventually ending at the chosen destination.
Using the Web Storage API - Web APIs
for example, safari browser in private browsing mode gives us an empty localstorage object with a quota of zero, effectively making it unusable.
Window.mozPaintCount - Web APIs
the window.mozpaintcount value is a long long, and starts at zero when the document is first created, incrementing by one each time the document is painted.
Window.openDialog() - Web APIs
WebAPIWindowopenDialog
if the features parameter is a zero-length string, or contains only one or more of the behavior features (chrome, dependent, dialog and modal) the chrome features are assumed "os' choice." that is, window creation code is not given specific instructions, but is instead allowed to select the chrome that best fits a dialog on that operating system.
Window: popstate event - Web APIs
if the goal is to catch the moment when the new document state is already fully in place, a zero-delay settimeout() method call should be used to effectively put its inner callback function that does the processing at the end of the browser event loop: window.onpopstate = () => settimeout(dosomething, 0); when popstate is sent when the transition occurs, either due to the user triggering the browser's "back" button or otherwise, the popstate event is near the end of the process to transit...
Window.requestAnimationFrame() - Web APIs
this is a non-zero value, but you may not make any other assumptions about its value.
WritableStreamDefaultWriter.desiredSize - Web APIs
the value will be null if the stream cannot be successfully written to (due to either being errored, or having an abort queued up), and zero if the stream is closed.
Using XMLHttpRequest - Web APIs
however, if the lengthcomputable field is false, the total length is not known and will be zero.
XRInputSourcesChangeEventInit.added - Web APIs
putsourceschangeeventinit("inputsourceschange", inputsourceseventinit); myinputsourceschangeevent = new xrinputsourceschangeeventinit("inputsourceschange", { session: xrsession, added: addeddevicelist, removed: removeddevicelist }); value an array of zero or more xrinputsource objects, each representing one input device added to the xr system.
XRPermissionDescriptor.optionalFeatures - Web APIs
if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).
XRPermissionDescriptor.requiredFeatures - Web APIs
if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).
XRPermissionStatus.granted - Web APIs
if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).
XRReferenceSpace - Web APIs
if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).
XRReferenceSpaceType - Web APIs
if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).
XRSession.requestAnimationFrame() - Web APIs
return value an integer value which serves as a unique, non-zero id or handle you may pass to cancelanimationframe() if you need to remove the pending animation frame request.
XRSession.requestReferenceSpace() - Web APIs
if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).
Keyboard-navigable JavaScript widgets - Accessibility
zero (i.e.
Mobile accessibility checklist - Accessibility
our colour contrast must comply with wcag 2.1 aa level requirements: contrast ratio of 4.5:1 for normal text (less than 18 point or 14 point bold.) contrast ratio of 3:1 for large text (at least 18 point or 14 point bold.) information conveyed via colour must be also available by other means too (underlined text for links, etc.) visibility content hiding techniques such as zero opacity, z-index order and off-screen placement must not be used exclusively to handle visibility.
::-moz-progress-bar - CSS: Cascading Style Sheets
syntax ::-moz-progress-bar examples html <progress value="30" max="100">30%</progress> <progress max="100">indeterminate</progress> css ::-moz-progress-bar { background-color: red; } /* force indeterminate bars to have zero width */ :indeterminate::-moz-progress-bar { width: 0; } result specifications not part of any standard.
color-index - CSS: Cascading Style Sheets
(this value is zero if the device does not use such a table.) it is a range feature, meaning that you can also use the prefixed min-color-index and max-color-index variants to query minimum and maximum values, respectively.
color - CSS: Cascading Style Sheets
WebCSS@mediacolor
if the device is not a color device, the value is zero.
monochrome - CSS: Cascading Style Sheets
WebCSS@mediamonochrome
if the device is not a monochrome device, the value is zero.
bleed - CSS: Cascading Style Sheets
WebCSS@pagebleed
otherwise it computes to zero.
Using URL values for the cursor property - CSS: Cascading Style Sheets
syntax the basic (css 2.1) syntax for this property is: cursor: [ <url> , ]* <keyword> this means that zero or more urls may be specified (comma-separated), which must be followed by one of the keywords defined in the css specification, such as auto or pointer.
Mastering margin collapsing - CSS: Cascading Style Sheets
these rules apply even to margins that are zero, so the margin of a descendant ends up outside its parent (according to the rules above) whether or not the parent's margin is zero.
Using CSS gradients - CSS: Cascading Style Sheets
to fine-tune their locations, you can give each one zero, one, or two percentage or, for radial and linear gradients, absolute length values.
Consistent list indentation - CSS: Cascading Style Sheets
if you want to reset lists to have no indentation, then you still have to zero out both padding and margin: ul {margin-left: 0; padding-left: 0;} remember, though, that in so doing, you'll have the bullets hanging outside the list and its parent element.
Stacking context example 1 - CSS: Cascading Style Sheets
if div #2 is assigned a positive (non-zero and non-auto) z-index value, it is rendered above all the other divs.
CSS data types - CSS: Cascading Style Sheets
WebCSSCSS Types
dimension> <filter-function> <flex> <frequency> <frequency-percentage> <gradient> <ident> <image> <integer> <length> <length-percentage> <number> <number-percentage> <percentage> <position> <quote> <ratio> <resolution> <shape-box> <shape-radius> <string> <time> <time-percentage> <timing-function> <toggle-value> <transform-function> <type-or-unit> <url> <url-modifier> <zero> specifications specification status comment css values and units module level 4 editor's draft css values and units module level 3 candidate recommendation initial definition.
CSS values and units - CSS: Cascading Style Sheets
ch average character advance of a narrow glyph in the element’s font, as represented by the “0” (zero, u+0030) glyph.
Specificity - CSS: Cascading Style Sheets
appears on the screen like this: the :where() exception the specificity-adjustment pseudo-class :where() always has its specificity replaced with zero.
animation-duration - CSS: Cascading Style Sheets
the value must be positive or zero and the unit is required.
animation - CSS: Cascading Style Sheets
WebCSSanimation
each individual animation is specified as: zero or one occurrences of the following values: <single-transition-timing-function> <single-animation-iteration-count> <single-animation-direction> <single-animation-fill-mode> <single-animation-play-state> an optional name for the animation, which may be none, a <custom-ident>, or a <string> zero, one, or two <time> values the order of values within each animation definiti...
background-position - CSS: Cascading Style Sheets
the right container edge) -250px (left image edge 250px to the left of the container, in this example that puts the right edge of the 300px-wide image in the center of the container) it's worth mentioning that if your background-size is equal to the container size for a given axis, then a percentage position for that axis will have no effect because the "container-image difference" will be zero.
border-width - CSS: Cascading Style Sheets
er-top-width: a length formal syntax <line-width>{1,4}where <line-width> = <length> | thin | medium | thick examples a mix of values and lengths html <p id="sval"> one value: 6px wide border on all 4 sides</p> <p id="bival"> two different values: 2px wide top and bottom border, 10px wide right and left border</p> <p id="treval"> three different values: 0.3em top, 9px bottom, and zero width right and left</p> <p id="fourval"> four different values: "thin" top, "medium" right, "thick" bottom, and 1em left</p> css #sval { border: ridge #ccc; border-width: 6px; } #bival { border: solid red; border-width: 2px 10px; } #treval { border: dotted orange; border-width: 0.3em 0 9px; } #fourval { border: solid lightgreen; border-width: thin medium thick 1em; } p { ...
box-shadow - CSS: Cascading Style Sheets
q>you may shoot me with your words,<br/> you may cut me with your eyes,<br/> you may kill me with your hatefulness,<br/> but still, like air, i'll rise.</q> <p>&mdash; maya angelou</p> </blockquote> css blockquote { padding: 20px; box-shadow: inset 0 -3em 3em rgba(0,0,0,0.1), 0 0 0 2px rgb(255,255,255), 0.3em 0.3em 1em rgba(0,0,0,0.3); } result setting zero for offset and blur when the x-offset, y-offset, and blur are all zero, the box shadow will be a solid-colored outline of equal-size on all sides.
calc() - CSS: Cascading Style Sheets
WebCSScalc
division by zero results in an error being generated by the html parser.
clip-path - CSS: Cascading Style Sheets
WebCSSclip-path
| [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]<fill-rule> = nonzero | evenodd<box> = border-box | padding-box | content-box examples comparison of html and svg <svg class="defs"> <defs> <clippath id="mypath" clippathunits="objectboundingbox"> <path d="m0.5,1 c0.5,1,0,0.7,0,0.3 a0.25,0.25,1,1,1,0.5,0.3 a0.25,0.25,1,1,1,1,0.3 c1,0.7,0.5,1,0.5,1 z" /> </clippath> </defs> </svg> <div class="grid"> <div class="col"> <div class="note">clip-...
column-gap (grid-column-gap) - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies tomulti-column elements, flex containers, grid containersinheritednopercentagesrefer to corresponding dimension of the content areacomputed valueas specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typea length, percentage or calc(); formal syntax normal | <length-percentage>where <length-percentage> = <length> | <percentage> examples flex layout html <div id="flexbox"> <div></div> <div></div> <div></div> </div> css #flexbox { display: flex; height: 100px; column-gap: 20px; } #flexbox > div { border: 1px solid green; backgro...
column-width - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toblock containers except table wrapper boxesinheritednocomputed valuethe absolute length, zero or largeranimation typea length formal syntax <length> | auto examples setting column width in pixels html <p class="content-box"> lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
columns - CSS: Cascading Style Sheets
WebCSScolumns
formal definition initial valueas each of the properties of the shorthand:column-width: autocolumn-count: autoapplies toblock containers except table wrapper boxesinheritednocomputed valueas each of the properties of the shorthand:column-width: the absolute length, zero or largercolumn-count: as specifiedanimation typeas each of the properties of the shorthand:column-width: a lengthcolumn-count: an integer formal syntax <'column-width'> | <'column-count'> examples setting three equal columns html <p class="content-box"> this is a bunch of text split into three columns using the css `columns` property.
counter() - CSS: Cascading Style Sheets
WebCSScounter
unter-style-name> | symbols()where <counter-style-name> = <custom-ident> examples default value compared to upper roman html <ol> <li></li> <li></li> <li></li> </ol> css ol { counter-reset: listcounter; } li { counter-increment: listcounter; } li::after { content: "[" counter(listcounter) "] == [" counter(listcounter, upper-roman) "]"; } result decimal-leading-zero compared to lower-alpha html <ol> <li></li> <li></li> <li></li> </ol> css ol { counter-reset: count; } li { counter-increment: count; } li::after { content: "[" counter(count, decimal-leading-zero) "] == [" counter(count, lower-alpha) "]"; } result specifications specification status comment css lists module level 3the definition of ...
cursor - CSS: Cascading Style Sheets
WebCSScursor
syntax /* keyword value */ cursor: pointer; cursor: auto; /* url, with a keyword fallback */ cursor: url(hand.cur), pointer; /* url and coordinates, with a keyword fallback */ cursor: url(cursor1.png) 4 12, auto; cursor: url(cursor2.png) 2 2, pointer; /* global values */ cursor: inherit; cursor: initial; cursor: unset; the cursor property is specified as zero or more <url> values, separated by commas, followed by a single mandatory keyword value.
<custom-ident> - CSS: Cascading Style Sheets
also, quite a few predefined values are implemented by the different browsers: disc, circle, square, decimal, cjk-decimal, decimal-leading-zero, lower-roman, upper-roman, lower-greek, lower-alpha, lower-latin, upper-alpha, upper-latin, arabic-indic, armenian, bengali, cambodian, cjk-earthly-branch, cjk-heavenly-stem, cjk-ideographic, devanagari, ethiopic-numeric, georgian, gujarati, gurmukhi, hebrew, hiragana, hiragana-iroha, japanese-formal, japanese-informal, kannada, katakana, katakana-iroha, khmer, korean-hangul-formal, korean-hanja-...
<easing-function> - CSS: Cascading Style Sheets
not all cubic bézier curves are suitable as easing functions as not all are mathematical functions; i.e., curves that for a given abscissa have zero or one value.
font-feature-settings - CSS: Cascading Style Sheets
examples enabling various font features /* use small-cap alternate glyphs */ .smallcaps { font-feature-settings: "smcp" on; } /* convert both upper and lowercase to small caps (affects punctuation also) */ .allsmallcaps { font-feature-settings: "c2sc", "smcp"; } /* use zeros with a slash through them to differentiate from "o" */ .nicezero { font-feature-settings: "zero"; } /* enable historical forms */ .hist { font-feature-settings: "hist"; } /* disable common ligatures, usually on by default */ .noligs { font-feature-settings: "liga" 0; } /* enable tabular (monospaced) figures */ td.tabular { font-feature-settings: "tnum"; } /* enable automatic fractions */ .f...
font-size-adjust - CSS: Cascading Style Sheets
0 yields text of zero height (hidden text).
gap (grid-gap) - CSS: Cascading Style Sheets
WebCSSgap
formal definition initial valueas each of the properties of the shorthand:row-gap: normalcolumn-gap: normalapplies tomulti-column elements, flex containers, grid containersinheritednocomputed valueas each of the properties of the shorthand:row-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementscolumn-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typeas each of the properties of the shorthand:row-gap: a length, percentage or calc();column-gap: a length, percentage or calc(); formal syntax <'row-gap'> <'column-gap'>?
grid-auto-columns - CSS: Cascading Style Sheets
as a minimum, it is treated as zero (or minimal content, if the grid container is sized under a minimal content constraint).
grid-auto-rows - CSS: Cascading Style Sheets
as a minimum, it is treated as zero (or minimal content, if the grid container is sized under a minimal content constraint).
grid - CSS: Cascading Style Sheets
WebCSSgrid
mplate-areas: as specifiedgrid-auto-rows: the percentage as specified or the absolute lengthgrid-auto-columns: the percentage as specified or the absolute lengthgrid-auto-flow: as specifiedgrid-column-gap: the percentage as specified or the absolute lengthgrid-row-gap: the percentage as specified or the absolute lengthcolumn-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsrow-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typediscrete formal syntax <'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense?
image() - CSS: Cascading Style Sheets
image-src optional zero or more <url>s or <string>s specifying the image sources, with optional image fragment identifiers.
initial-letter - CSS: Cascading Style Sheets
values must be greater than zero.
<integer> - CSS: Cascading Style Sheets
WebCSSinteger
examples valid integers 12 positive integer (without a leading + sign) +123 positive integer (with a leading + sign) -456 negative integer 0 zero +0 zero, with a leading + -0 zero, with a leading - invalid integers 12.0 this is a <number>, not an <integer>, though it represents an integer.
<length> - CSS: Cascading Style Sheets
WebCSSlength
ch represents the width, or more precisely the advance measure, of the glyph "0" (zero, the unicode character u+0030) in the element's font.
list-style - CSS: Cascading Style Sheets
to address this, add a zero-width space as pseudo-content before each list item to ensure the list is recognized properly.
margin-bottom - CSS: Cascading Style Sheets
its value can be positive, zero, or negative.
margin-left - CSS: Cascading Style Sheets
its value can be positive, zero, or negative.
margin-right - CSS: Cascading Style Sheets
its value can be positive, zero, or negative.
margin-top - CSS: Cascading Style Sheets
its value can be positive, zero, or negative.
margin-trim - CSS: Cascading Style Sheets
in-flow for in-flow boxes contained by this box, block-axis margins adjacent to the box's edges are truncated to zero.
<number> - CSS: Cascading Style Sheets
WebCSSnumber
4.01 positive fraction -456.8 negative fraction 0.0 zero +0.0 zero, with a leading + -0.0 zero, with a leading - .60 fractional number without a leading zero 10e3 scientific notation -3.4e-2 complicated scientific notation invalid numbers 12.
offset-path - CSS: Cascading Style Sheets
<string> )<basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()><geometry-box> = <shape-box> | fill-box | stroke-box | view-boxwhere <length-percentage> = <length> | <percentage><fill-rule> = nonzero | evenodd<inset()> = inset( <length-percentage>{1,4} [ round <'border-radius'> ]?
repeat() - CSS: Cascading Style Sheets
WebCSSrepeat
for the purpose of finding the number of auto-repeated tracks, the user agent floors the track size to a user agent specified value (e.g., 1px), to avoid division by zero.
row-gap (grid-row-gap) - CSS: Cascading Style Sheets
WebCSSrow-gap
formal definition initial valuenormalapplies tomulti-column elements, flex containers, grid containersinheritednopercentagesrefer to corresponding dimension of the content areacomputed valueas specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typea length, percentage or calc(); formal syntax normal | <length-percentage>where <length-percentage> = <length> | <percentage> examples flex layout html <div id="flexbox"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </div> css #flexbox { display: flex; flex-wrap: wrap; width: 300px; row-gap: 20...
scroll-padding-block-end - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-block-start - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-block - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-bottom - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-inline-end - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-inline-start - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-inline - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-left - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-right - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding-top - CSS: Cascading Style Sheets
this will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate.
scroll-padding - CSS: Cascading Style Sheets
this will generally be 0px, but the user agent is free to detect and do something else if a non-zero value is more appropriate.
<time-percentage> - CSS: Cascading Style Sheets
+0s zero with a leading + and a unit -0ms zero with a leading - and a unit invalid times 0 although unitless zero is allowed for <length>s, it's invalid for <time>s.
<time> - CSS: Cascading Style Sheets
WebCSStime
+0s zero with a leading + and a unit -0ms zero with a leading - and a unit invalid times 0 although unitless zero is allowed for <length>s, it's invalid for <time>s.
transition-delay - CSS: Cascading Style Sheets
the delay may be zero, positive, or negative: a value of 0s (or 0ms) will begin the transition effect immediately.
visibility - CSS: Cascading Style Sheets
for xul elements, the computed size of the element is always zero, regardless of other styles that would normally affect the size, although margins still take effect.
HTML attribute: max - HTML: Hypertext Markup Language
WebHTMLAttributesmax
if present, must have a value greater than zero and be a valid floating point number.
<applet>: The Embed Java Applet element - HTML: Hypertext Markup Language
WebHTMLElementapplet
permitted content zero or more <param> elements, then transparent.
<col> - HTML: Hypertext Markup Language
WebHTMLElementcol
set a to zero and b to the position of the column in the table, e.g.
<colgroup> - HTML: Hypertext Markup Language
WebHTMLElementcolgroup
if the attribute is not present: zero or more <col> element tag omission the start tag may be omitted, if it has a <col> element as its first child and if it is not preceded by a <colgroup> whose end tag has been omitted.
<datalist>: The HTML Data List element - HTML: Hypertext Markup Language
WebHTMLElementdatalist
permitted content either phrasing content or zero or more <option> elements.
<dl>: The Description List element - HTML: Hypertext Markup Language
WebHTMLElementdl
permitted content either: zero or more groups each consisting of one or more <dt> elements followed by one or more <dd> elements, optionally intermixed with <script> and <template> elements.
<head>: The Document Metadata (Header) element - HTML: Hypertext Markup Language
WebHTMLElementhead
permitted content if the document is an <iframe> srcdoc document, or if title information is available from a higher level protocol (like the subject line in html email), zero or more elements of metadata content.
<input type="password"> - HTML: Hypertext Markup Language
WebHTMLElementinputpassword
the value must be a number greater than zero, and the default value is 20.
<input type="search"> - HTML: Hypertext Markup Language
WebHTMLElementinputsearch
the value must be a number greater than zero, and the default value is 20.
<input type="tel"> - HTML: Hypertext Markup Language
WebHTMLElementinputtel
the value must be a number greater than zero, and the default value is 20.
<input type="text"> - HTML: Hypertext Markup Language
WebHTMLElementinputtext
the value must be a number greater than zero, and the default value is 20.
<input type="url"> - HTML: Hypertext Markup Language
WebHTMLElementinputurl
the value must be a number greater than zero, and the default value is 20.
<keygen> - HTML: Hypertext Markup Language
WebHTMLElementkeygen
if no challenge string is provided, then it will be encoded as an ia5string of length zero.
<noscript> - HTML: Hypertext Markup Language
WebHTMLElementnoscript
permitted content when scripting is disabled and when it is a descendant of the <head> element: in any order, zero or more <link> elements, zero or more <style> elements, and zero or more <meta> elements.
<object> - HTML: Hypertext Markup Language
WebHTMLElementobject
permitted content zero or more <param> elements, then transparent.
<ol>: The Ordered List element - HTML: Hypertext Markup Language
WebHTMLElementol
permitted content zero or more <li>, <script> and <template> elements.
<optgroup> - HTML: Hypertext Markup Language
WebHTMLElementoptgroup
permitted content zero or more <option> elements.
<select>: The HTML Select element - HTML: Hypertext Markup Language
WebHTMLElementselect
technical summary content categories flow content, phrasing content, interactive content, listed, labelable, resettable, and submittable form-associated element permitted content zero or more <option> or <optgroup> elements.
<table>: The Table element - HTML: Hypertext Markup Language
WebHTMLElementtable
content categories flow content permitted content in this order: an optional <caption> element, zero or more <colgroup> elements, an optional <thead> element, either one of the following: zero or more <tbody> elements one or more <tr> elements an optional <tfoot> element tag omission none, both the starting and ending tag are mandatory.
<tbody>: The Table Body element - HTML: Hypertext Markup Language
WebHTMLElementtbody
permitted content zero or more <tr> elements.
<tfoot>: The Table Foot element - HTML: Hypertext Markup Language
WebHTMLElementtfoot
permitted content zero or more <tr> elements.
<thead>: The Table Head element - HTML: Hypertext Markup Language
WebHTMLElementthead
permitted content zero or more <tr> elements.
<tr>: The Table Row element - HTML: Hypertext Markup Language
WebHTMLElementtr
technical summary content categories none permitted content zero or more <td> and/or <th> elements; script-supporting elements (<script> and <template>) are also allowed tag omission start tag is mandatory.
<ul>: The Unordered List element - HTML: Hypertext Markup Language
WebHTMLElementul
permitted content zero or more <li>, <script> and <template> elements.
<video>: The Video Embed element - HTML: Hypertext Markup Language
WebHTMLElementvideo
permitted content if the element has a src attribute: zero or more <track> elements, followed by transparent content that contains no media elements–that is no <audio> or <video> else: zero or more <source> elements, followed by zero or more <track> elements, followed by transparent content that contains no media elements–that is no <audio> or <video>.
<wbr> - HTML: Hypertext Markup Language
WebHTMLElementwbr
notes on utf-8 encoded pages, <wbr> behaves like the u+200b zero-width space code point.
HTML elements reference - HTML: Hypertext Markup Language
WebHTMLElement
<picture> the html <picture> element contains zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.
HTML documentation index - HTML: Hypertext Markup Language
WebHTMLIndex
175 <picture>: the picture element element, graphics, html, html embedded content, images, reference, web, webp, picture the html <picture> element contains zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.
Access-Control-Expose-Headers - HTTP
access-control-expose-headers: * directives <header-name> a list of exposed headers consisting of zero or more header names other than the cors-safelisted request headers that the resource might use and can be exposed.
Age - HTTP
WebHTTPHeadersAge
the age header is usually close to zero.
Index - HTTP
WebHTTPHeadersIndex
105 timing-allow-origin cors, http, reference, timing-allow-origin, header the timing-allow-origin response header specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
Set-Cookie2 - HTTP
se header forbidden header name no syntax set-cookie2: <cookie-name>=<cookie-value> set-cookie2: <cookie-name>=<cookie-value>; comment=<value> set-cookie2: <cookie-name>=<cookie-value>; commenturl=<http-url> set-cookie2: <cookie-name>=<cookie-value>; discard set-cookie2: <cookie-name>=<cookie-value>; domain=<domain-value> set-cookie2: <cookie-name>=<cookie-value>; max-age=<non-zero-digit> set-cookie2: <cookie-name>=<cookie-value>; path=<path-value> set-cookie2: <cookie-name>=<cookie-value>; port=<port-number> set-cookie2: <cookie-name>=<cookie-value>; secure set-cookie2: <cookie-name>=<cookie-value>; version=<version-number> // multiple directives are also possible, for example: set-cookie2: <cookie-name>=<cookie-value>; domain=<domain-value>; secure // multiple cookies a...
Timing-Allow-Origin - HTTP
the timing-allow-origin response header specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
Transfer-Encoding - HTTP
the terminating chunk is a regular chunk, with the exception that its length is zero.
User-Agent - HTTP
<comment> zero or more comments containing more details; sub-product information, for example.
HTTP headers - HTTP
WebHTTPHeaders
timing-allow-origin specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
HTTP Index - HTTP
WebHTTPIndex
186 timing-allow-origin cors, http, reference, timing-allow-origin, header the timing-allow-origin response header specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
JavaScript data types and data structures - JavaScript
however, you are able to notice this when you divide by zero: > 42 / +0 infinity > 42 / -0 -infinity although a number often represents only its value, javascript provides binary (bitwise) operators.
Details of the object model - JavaScript
note: this may not work as expected if the constructor function is called with arguments which convert to false (like 0 (zero) and empty string ("").
Keyed collections - JavaScript
key and value equality of map and set both the key equality of map objects and the value equality of set objects, are based on the "same-value-zero algorithm": equality works like the identity comparison operator ===.
Loops and iteration - JavaScript
(note that it's possible that number could be zero!) the various loop mechanisms offer different ways to determine the start and end points of the loop.
Assertions - JavaScript
in other words, the length of a matched word boundary is zero.
Regular expression syntax cheatsheet - JavaScript
in other words, the length of a matched word boundary is zero.
Regular expressions - JavaScript
for example, to match a single "a" followed by zero or more "b"s followed by "c", you'd use the pattern /ab*c/: the * after "b" means "0 or more occurrences of the preceding item." in the string "cbbabbbbcdebc", this pattern will match the substring "abbbbc".
Working with objects - JavaScript
for example, let's create an object named mycar and give it properties named make, model, and year as follows: var mycar = new object(); mycar.make = 'ford'; mycar.model = 'mustang'; mycar.year = 1969; the above example could also be written using an object initializer, which is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed in curly braces ({}): var mycar = { make: 'ford', model: 'mustang', year: 1969 }; unassigned properties of an object are undefined (and not null).
The legacy Iterator protocol - JavaScript
property value next a zero arguments function that returns an value.
SyntaxError: illegal character - JavaScript
var foo = 'bar';​ // syntaxerror: illegal character when inspecting this code in an editor like vim, you can see that there is actually a zero-width space (zwsp) (u+200b) character.
The arguments object - JavaScript
note: “array-like” means that arguments has a length property and properties indexed from zero, but it doesn't have array's built-in methods like foreach() or map().
getter - JavaScript
note the following when working with the get syntax: it can have an identifier which is either a number or a string; it must have exactly zero parameters (see incompatible es5 change: literal getter and setter functions must now have exactly zero or one arguments for more information); it must not appear in an object literal with another get or with a data entry for the same property ({ get x() { }, get x() { } } and { x: ..., get x() { } } are forbidden).
setter - JavaScript
note the following when working with the set syntax: it can have an identifier which is either a number or a string; it must have exactly one parameter (see incompatible es5 change: literal getter and setter functions must now have exactly zero or one arguments for more information); it must not appear in an object literal with another set or with a data entry for the same property.
Array.prototype.filter() - JavaScript
rray: const array = [-3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; function isprime(num) { for (let i = 2; num > i; i++) { if (num % i == 0) { return false; } } return num > 1; } console.log(array.filter(isprime)); // [2, 3, 5, 7, 11, 13] filtering invalid entries from json the following example uses filter() to create a filtered json of all elements with non-zero, numeric id.
Array.prototype.pop() - JavaScript
objects which do not contain a length property reflecting the last in a series of consecutive, zero-based numerical properties may not behave in any meaningful manner.
Array.prototype.reverse() - JavaScript
objects which do not contain a length property reflecting the last in a series of consecutive, zero-based numerical properties may not behave in any meaningful manner.
Array.prototype.sort() - JavaScript
var items = [ { name: 'edward', value: 21 }, { name: 'sharpe', value: 37 }, { name: 'and', value: 45 }, { name: 'the', value: -12 }, { name: 'magnetic', value: 13 }, { name: 'zeros', value: 37 } ]; // sort by value items.sort(function (a, b) { return a.value - b.value; }); // sort by name items.sort(function(a, b) { var namea = a.name.touppercase(); // ignore upper and lowercase var nameb = b.name.touppercase(); // ignore upper and lowercase if (namea < nameb) { return -1; } if (namea > nameb) { return 1; } // names must be equal return 0; }); ...
Array.prototype.splice() - JavaScript
examples remove 0 (zero) elements before index 2, and insert "drum" let myfish = ['angel', 'clown', 'mandarin', 'sturgeon'] let removed = myfish.splice(2, 0, 'drum') // myfish is ["angel", "clown", "drum", "mandarin", "sturgeon"] // removed is [], no elements removed remove 0 (zero) elements before index 2, and insert "drum" and "guitar" let myfish = ['angel', 'clown', 'mandarin', 'sturgeon'] let removed = myfish.sp...
Array.prototype.toLocaleString() - JavaScript
if len is zero, return the empty string.
Array.prototype.unshift() - JavaScript
objects which do not contain a length property—reflecting the last in a series of consecutive, zero-based numerical properties—may not behave in any meaningful manner.
BigInt.asUintN() - JavaScript
const max = 2n ** 64n - 1n; bigint.asuintn(64, max); // ↪ 18446744073709551615n bigint.asuintn(64, max + 1n); // ↪ 0n // zero because of overflow specifications specification ecmascript (ecma-262)the definition of 'bigint.asuintn()' in that specification.
BigInt.prototype.toString() - JavaScript
examples using tostring 17n.tostring(); // '17' 66n.tostring(2); // '1000010' 254n.tostring(16); // 'fe' -10n.tostring(2); // -1010' -0xffn.tostring(2); // '-11111111' negative-zero bigint there is no negative-zero bigint as there are no negative zeros in integers.
BigInt - JavaScript
bitwise operators are supported as well, except >>> (zero-fill right shift) as all bigints are signed.
BigInt64Array() constructor - JavaScript
syntax new bigint64array(); new bigint64array(length); new bigint64array(typedarray); new bigint64array(object); new bigint64array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
BigUint64Array() constructor - JavaScript
syntax new biguint64array(); new biguint64array(length); new biguint64array(typedarray); new biguint64array(object); new biguint64array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Boolean() constructor - JavaScript
examples creating boolean objects with an initial value of false var bnoparam = new boolean(); var bzero = new boolean(0); var bnull = new boolean(null); var bemptystring = new boolean(''); var bfalse = new boolean(false); creating boolean objects with an initial value of true var btrue = new boolean(true); var btruestring = new boolean('true'); var bfalsestring = new boolean('false'); var bsulin = new boolean('su lin'); var barrayproto = new boolean([]); var bobjproto = new boolean({}); specifi...
Boolean - JavaScript
examples creating boolean objects with an initial value of false var bnoparam = new boolean(); var bzero = new boolean(0); var bnull = new boolean(null); var bemptystring = new boolean(''); var bfalse = new boolean(false); creating boolean objects with an initial value of true var btrue = new boolean(true); var btruestring = new boolean('true'); var bfalsestring = new boolean('false'); var bsulin = new boolean('su lin'); var barrayproto = new boolean([]); var bobjproto = new boolean({}); specif...
DataView.prototype.setBigUint64() - JavaScript
upon overflow, it will be zero (0n).
DataView - JavaScript
const bigint = window.bigint, bigthirtytwo = bigint(32), bigzero = bigint(0); function getuint64bigint(dataview, byteoffset, littleendian) { // split 64-bit number into two 32-bit (4-byte) parts const left = bigint(dataview.getuint32(byteoffset|0, !!littleendian)>>>0); const right = bigint(dataview.getuint32((byteoffset|0) + 4|0, !!littleendian)>>>0); // combine the two 32-bit values and return return littleendian ?
Date.prototype.getMonth() - JavaScript
the getmonth() method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year).
Date.prototype.getTime() - JavaScript
// since month is zero based, birthday will be january 10, 1995 var birthday = new date(1994, 12, 10); var copy = new date(); copy.settime(birthday.gettime()); measuring execution time subtracting two subsequent gettime() calls on newly generated date objects, give the time span between these two calls.
Date.prototype.getUTCMonth() - JavaScript
the getutcmonth() returns the month of the specified date according to universal time, as a zero-based value (where zero indicates the first month of the year).
Date.prototype.setMonth() - JavaScript
syntax dateobj.setmonth(monthvalue[, dayvalue]) versions prior to javascript 1.3 dateobj.setmonth(monthvalue) parameters monthvalue a zero-based integer representing the month of the year offset from the start of the year.
Date.prototype.toDateString() - JavaScript
the todatestring() method returns the date portion of a date object in english in the following format separated by spaces: first three letters of the week day name first three letters of the month name two digit day of the month, padded on the left a zero if necessary four digit year (at least), padded on the left with zeros if necessary e.g.
Date.prototype.toISOString() - JavaScript
the timezone is always zero utc offset, as denoted by the suffix "z".
Date.prototype.toString() - JavaScript
"26" space the string "gmt" timezone offset sign, either: "+" for positive offsets (0 or greater) "-" for negative offsets (less than zero) two digit hour offset, e.g.
Float32Array() constructor - JavaScript
syntax new float32array(); // new in es2017 new float32array(length); new float32array(typedarray); new float32array(object); new float32array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Float64Array() constructor - JavaScript
syntax new float64array(); // new in es2017 new float64array(length); new float64array(typedarray); new float64array(object); new float64array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Function.prototype.bind() - JavaScript
a full implementation—depending on the length of the target function and the number of pre-specified arguments—may return a non-zero length.
Int16Array() constructor - JavaScript
syntax new int16array(); // new in es2017 new int16array(length); new int16array(typedarray); new int16array(object); new int16array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Int32Array() constructor - JavaScript
syntax new int32array(); // new in es2017 new int32array(length); new int32array(typedarray); new int32array(object); new int32array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Int8Array() constructor - JavaScript
syntax new int8array(); // new in es2017 new int8array(length); new int8array(typedarray); new int8array(object); new int8array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Intl.Collator() constructor - JavaScript
sensitivity which differences in the strings should lead to non-zero result values.
Intl.PluralRules.prototype.resolvedOptions() - JavaScript
pluralcategories an array of plural categories used by the given locale, seleced from the list "zero", "one", "two", "few", "many" and "other".
Intl.PluralRules - JavaScript
in order to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: // arabic has different plural rules new intl.pluralrules('ar-eg').select(0); // → 'zero' new intl.pluralrules('ar-eg').select(1); // → 'one' new intl.pluralrules('ar-eg').select(2); // → 'two' new intl.pluralrules('ar-eg').select(6); // → 'few' new intl.pluralrules('ar-eg').select(18); // → 'many' specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.pluralrules' in that specification.
JSON - JavaScript
numbers leading zeros are prohibited.
Math.ceil() - JavaScript
*/ function decimaladjust(type, value, exp) { // if the exp is undefined or zero...
Math.floor() - JavaScript
*/ function decimaladjust(type, value, exp) { // if the exp is undefined or zero...
Math.max() - JavaScript
the math.max() function returns the largest of the zero or more numbers given as input parameters.
Math.min() - JavaScript
zero or more numbers among which the lowest value will be selected and returned.
Math.round() - JavaScript
note that this differs from many languages' round() functions, which often round this case to the next integer away from zero, instead giving a different result in the case of negative numbers with a fractional part of exactly 0.5.
Number.MAX_SAFE_INTEGER - JavaScript
polyfill if (!number.max_safe_integer) { number.max_safe_integer = 9007199254740991; // math.pow(2, 53) - 1; } examples return value of max_safe_integer number.max_safe_integer; // 9007199254740991 numbers higher than safe integer this returns 2 because in floating points, the value is actually the decimal trailing "1" except for in subnormal precision cases such as zero.
Number.isSafeInteger() - JavaScript
in contrast, 253 is not a safe integer: it can be exactly represented in ieee-754, but the integer 253 + 1 can't be directly represented in ieee-754 but instead rounds to 253 under round-to-nearest and round-to-zero rounding.
Number - JavaScript
number.min_value the smallest positive representable number—that is, the positive number closest to zero (without actually being zero).
Object.is() - JavaScript
two values are the same if one of the following holds: both undefined both null both true or both false both strings of the same length with the same characters in the same order both the same object (means both object have same reference) both numbers and both +0 both -0 both nan or both non-zero and both not nan and both have the same value this is not the same as being equal according to the == operator.
Promise - JavaScript
"use strict"; // to experiment with error handling, "threshold" values cause errors randomly const threshold_a = 8; // can use zero 0 to guarantee error function tetheredgetnumber(resolve, reject) { try { settimeout( function() { const randomint = date.now(); const value = randomint % 10; try { if(value >= threshold_a) { throw new error(`too large: ${value}`); } } catch(msg) { reject(`error in callback ${msg}`); } resolve(va...
Reflect.get() - JavaScript
examples using reflect.get() // object let obj = { x: 1, y: 2 } reflect.get(obj, 'x') // 1 // array reflect.get(['zero', 'one'], 1) // "one" // proxy with a get handler let x = {p: 1}; let obj = new proxy(x, { get(t, k, r) { return k + 'bar' } }) reflect.get(obj, 'foo') // "foobar" //proxy with get handler and receiver let x = {p: 1, foo: 2}; let y = {foo: 3}; let obj = new proxy(x, { get(t, prop, receiver) { return receiver[prop] + 'bar' } }) reflect.get(obj, 'foo', y) // "3bar" speci...
RegExpInstance.lastIndex - JavaScript
console.log(re.exec('hi')); console.log(re.lastindex); returns ["", undefined], an empty array whose zeroth element is the match string.
Set.prototype.has() - JavaScript
note: technically speaking, has() uses the samevaluezero algorithm to determine whether the given element is found.
String.prototype.localeCompare() - JavaScript
examples using localecompare() // the letter "a" is before "c" yielding a negative value 'a'.localecompare('c'); // -2 or -1 (or some other negative value) // alphabetically the word "check" comes after "against" yielding a positive value 'check'.localecompare('against'); // 2 or 1 (or some other positive value) // "a" and "a" are equivalent yielding a neutral value of zero 'a'.localecompare('a'); // 0 sort an array localecompare() enables case-insensitive sorting for an array.
String.prototype.match() - JavaScript
// the 'index' property (22) is the zero-based index of the whole match.
TypedArray.prototype.subarray() - JavaScript
description the range specified by begin and end is clamped to the valid index range for the current array; if the computed length of the new array would be negative, it's clamped to zero.
TypedArray - JavaScript
parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Uint16Array() constructor - JavaScript
syntax new uint16array(); // new in es2017 new uint16array(length); new uint16array(typedarray); new uint16array(object); new uint16array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Uint32Array() constructor - JavaScript
syntax new uint32array(); // new in es2017 new uint32array(length); new uint32array(typedarray); new uint32array(object); new uint32array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Uint8Array() constructor - JavaScript
syntax new uint8array(); // new in es2017 new uint8array(length); new uint8array(typedarray); new uint8array(object); new uint8array(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Uint8ClampedArray() constructor - JavaScript
syntax new uint8clampedarray(); // new in es2017 new uint8clampedarray(length); new uint8clampedarray(typedarray); new uint8clampedarray(object); new uint8clampedarray(buffer [, byteoffset [, length]]); parameters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
Bitwise AND (&) - JavaScript
syntax a & b description the operands are converted to 32-bit integers and expressed by a series of bits (zeroes and ones).
Bitwise NOT (~) - JavaScript
syntax ~a description the operands are converted to 32-bit integers and expressed by a series of bits (zeroes and ones).
Bitwise OR (|) - JavaScript
syntax a | b description the operands are converted to 32-bit integers and expressed by a series of bits (zeroes and ones).
Bitwise XOR (^) - JavaScript
syntax a ^ b description the operands are converted to 32-bit integers and expressed by a series of bits (zeroes and ones).
Division (/) - JavaScript
syntax operator: x / y examples basic division 1 / 2 // 0.5 math.floor(3 / 2) // 1 1.0 / 2.0 // 0.5 division by zero 2.0 / 0 // infinity 2.0 / 0.0 // infinity, because 0.0 === 0 2.0 / -0.0 // -infinity specifications specification ecmascript (ecma-262)the definition of 'division operator' in that specification.
Object initializer - JavaScript
an object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed in curly braces ({}).
Spread syntax (...) - JavaScript
spread syntax (...) allows an iterable such as an array expression or string to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected, or an object expression to be expanded in places where zero or more key-value pairs (for object literals) are expected.
Expressions and operators - JavaScript
binary bitwise operators bitwise operators treat their operands as a set of 32 bits (zeros and ones) and return standard javascript numerical values.
block - JavaScript
a block statement (or compound statement in other languages) is used to group zero or more statements.
export - JavaScript
syntax there are two types of exports: named exports (zero or more exports per module) default exports (one per module) // exporting individual features export let name1, name2, …, namen; // also var, const export let name1 = …, name2 = …, …, namen; // also var, const export function functionname(){...} export class classname {...} // export list export { name1, name2, …, namen }; // renaming exports export { variable1 as name1, variable2 ...
Statements and declarations - JavaScript
control flow block a block statement is used to group zero or more statements.
MathML attribute reference - MathML
separators <mfenced> a sequence of zero or more characters to be used for different separators.
<merror> - MathML
WebMathMLElementmerror
examples <math> <merror> <mrow> <mtext> division by zero: </mtext> <mfrac> <mn> 1 </mn> <mn> 0 </mn> </mfrac> </mrow> </merror> </math> specifications specification status comment mathml 3.0the definition of 'merror' in that specification.
<mfenced> - MathML
separators a sequence of zero or more characters to be used for different separators, optionally divided by white space, which is ignored.
Web audio codec guide - Web media technologies
example: audio clips for professional mixing when compressing audio that will be getting mixed or remixed, you typically want zero or close to zero loss of fidelity, which suggests a lossless codec may be in order.
Web video codec guide - Web media technologies
supported bit rates up to 2 gbps supported frame rates arbitrary; any non-zero value is supported.
Using images in HTML - Web media technologies
WebMediaimages
<picture> the html <picture> element contains zero or more <source> elements and one <img> element which provides versions of an image for different display/device scenarios.
bias - SVG: Scalable Vector Graphics
WebSVGAttributebias
usage notes value <number> default value 0 animatable yes one application of bias is when it is desirable to have 0.5 gray value be the zero response of the filter.
filterRes - SVG: Scalable Vector Graphics
note that negative values or zero values disable the rendering of the element which referenced the filter.
font-size-adjust - SVG: Scalable Vector Graphics
0 yields text of zero height (hidden text).
font-variant - SVG: Scalable Vector Graphics
ical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ] default value normal animatable yes for a description of the values, please refer to the css font-variant property.
kerning - SVG: Scalable Vector Graphics
WebSVGAttributekerning
the kerning attribute indicates whether the spacing between glyphs should be adjusted based on kerning tables that are included in the relevant font (i.e., enable auto-kerning) or instead disable auto-kerning and set the spacing between them to a specific length (typically, zero).
markerHeight - SVG: Scalable Vector Graphics
a value of zero disables rendering of the element and negative values are an error.
markerWidth - SVG: Scalable Vector Graphics
a value of zero disables rendering of the element and negative values are an error.
panose-1 - SVG: Scalable Vector Graphics
the initial value zero for each panose digit means "any", i.e.
radius - SVG: Scalable Vector Graphics
WebSVGAttributeradius
a negative or zero value disables the effect of the given filter primitive (i.e., the result is the filter input image).
rx - SVG: Scalable Vector Graphics
WebSVGAttributerx
with a value lower or equal to zero the ellipse won't be drawn at all.
ry - SVG: Scalable Vector Graphics
WebSVGAttributery
with a value lower or equal to zero the ellipse won't be drawn at all.
targetX - SVG: Scalable Vector Graphics
WebSVGAttributetargetX
the leftmost column of the matrix is column number zero.
targetY - SVG: Scalable Vector Graphics
WebSVGAttributetargetY
the topmost row of the matrix is row number zero.
<circle> - SVG: Scalable Vector Graphics
WebSVGElementcircle
a value lower or equal to zero disables rendering of the circle.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
implemented (bug 1239142) auto-start-reverse value for <marker>'s orient attribute implemented (bug 879659) svgpaint removed implementation status unknown fill and stroke taking multiple paints implementation status unknown z-index not implemented (bug 360148 child(<integer>) paint value implementation status unknown display of zero-length subpaths depends on stroke-linecap attribute implementation status unknown markers on all shapes implementation status unknown <marker> element display defined in ua style sheet implementation status unknown only single paints for fills and strokes implementation status unknown color change notes color managed images ...
Gradients in SVG - SVG: Scalable Vector Graphics
it essentially scales the gradient to the size of your object, so you only have to specify coordinates in values from zero to one, and they're scaled to the size of your object automatically for you.
Transport Layer Security - Web security
a server can enable a 0-rtt (zero round trip time) handshake.
boolean - XPath
notes a number evaluates to false if it is positive or negative zero or nan.
position - XPath
notes note that a node's position in a context is not zero-based.
substring - XPath
notes as in other xpath functions, the position is not zero-based.