Search completed in 1.07 seconds.
3535 results for "specified":
Your results are loading. Please wait...
Specified value - CSS: Cascading Style Sheets
the specified value of a css property is the value it receives from the document's style sheet.
... the specified value for a given property is determined according to the following rules: if the document's style sheet explicitly specifies a value for the property, the given value will be used.
... examples html <p>my specified color is given explicitly in the css.</p> <div>the specified values of all my properties default to their initial values, because none of them are given in the css.</div> <div class="fun"> <p>the specified value of my font family is not given explicitly in the css, so it is inherited from my parent.
Index - Web APIs
WebAPIIndex
32 addresserrors.country api, addresserrors, error, payment request, payment request api, property, reference, validation, country, payment an object based on addresserrors includes a country property if during validation of the address the specified value of country was determined to be invalid.
... 85 animationeffect.updatetiming() api, animation, experimental, method, reference, web animations, waapi, web animations api the updatetiming() method of the animationeffect interface updates the specified timing properties for an animation effect.
... 102 attr.prefix api, dom, property, reference the attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified.
...And 290 more matches
Index
20 int_fits_in_jsval jsapi reference, obsolete, spidermonkey determines if a specified c integer value, i, lies within the range allowed for integer jsvals.
... 28 js::call jsapi reference, reference, spidermonkey js::call calls a specified function, fun, on an object, thisobj.
... 35 js::construct jsapi reference, reference, référence(2), spidermonkey js::construct calls a specified function as a constructor, fun.
...And 102 more matches
Index - Archive of obsolete content
301 supporting search suggestions in search plugins add-ons, opensearch, search, search plugins firefox supports search suggestions in opensearch plugins; as the user types in the search bar, firefox queries the url specified by the search plugin to fetch live search suggestions.
...the decision about when to apply css-specified formatting and when to apply legacy formatting is controlled by the document's doctype specification.
...the element that the binding is attached to, called the bound element, acquires the new behavior specified by the binding.
...And 42 more matches
Index
189 nss tech notes nss newsgroup: mozilla.dev.tech.crypto 190 nss tech note1 the main non-streaming apis for these two decoders have an identical prototype : 191 nss tech note2 the logger displays all activity between nss and a specified pkcs #11 module.
... -i import a crl to the cert database -e erase all crls of specified type from the cert database -l list existing crl located in cert database file.
...if options -m|-g is used and -c crl-script-file is not specified, crlutil will read script data from standard input.
...And 38 more matches
nsIDOMWindowUtils
constants constant value description modifier_alt 0x0001 getmodifierstate("alt") of the send event will return true if this is specified for amodifiers of send*event() except sendnative*event().
... modifier_control 0x0002 getmodifierstate("control") of the send event will return true if this is specified for amodifiers of send*event() except sendnative*event().
... modifier_shift 0x0004 getmodifierstate("shift") of the send event will return true if this is specified for amodifiers of send*event() except sendnative*event().
...And 37 more matches
Date - JavaScript
description the ecmascript epoch and timestamps a javascript date is fundamentally specified as the number of milliseconds that have elapsed since midnight on january 1, 1970, utc.
... instance methods date.prototype.getdate() returns the day of the month (1–31) for the specified date according to local time.
... date.prototype.getday() returns the day of the week (0–6) for the specified date according to local time.
...And 32 more matches
sslfnc.html
description nss_init opens the certn.db, keyn.db, and secmod.db files (wheren is a numeric digit) in the specified directory.
... description nss_initreadwrite opens the certn.db, keyn.db, and secmod.db files (wheren is a numeric digit) with both read and write permission in the specified directory.
... ssl_optionsetdefault changes the default value of a specified ssl option for all subsequently opened sockets as long as the current application program is running.
...And 30 more matches
OS.File for the main thread
to specify options, pass an object that may contain some of the following flags: unixflags (ignored under non-unix platforms) if specified, file opening flags, as per libc function open.
... if unspecified, build these flags from the contents of mode.
... unixmode (ignored under non-unix platforms) if specified, file creation mode, as per libc function open.
...And 29 more matches
Index
MozillaTechXPCOMIndex
it returns a reference to the clone: 33 components.utils.createobjectin add-ons, developing mozilla, extensions, javascript, reference, référence(2), xpcom:language bindings, xpconnect components.utils.createobjectin creates a new javascript object in the scope of the specified object's compartment.
... 43 components.utils.makeobjectpropsnormal add-ons, developing mozilla, extensions, javascript, needstechnicalreview, xpcom:language bindings, xpconnect ensures that the specified object's methods are all in the object's scope, and aren't cross-component wrappers.
...coordinates used by the functions of this interface are specified in different coordinate systems.
...And 27 more matches
mozIStorageBindingParams
methods bindbyindex() binds a to the specified index.
... avalue to be bound to the specified index.
... bindblobbyindex() binds a blob to the specified index.
...And 27 more matches
nsITextInputProcessor
when this is specified, defaultprevented attribute of dispatching keyboard events true.
...when you attempt to dispatch a non-printable key's events, it's recommented this be specified.
...if this flag is not specified in such case, non-printable keyboard events will be dispatched.
...And 27 more matches
WebIDL bindings
[alias=propname] this extended attribute can be specified on a method and indicates that another property with the specified name will also appear on the interface prototype object and will have the same function object value as the property for the method.
...this is specified by writing [alias="@@iterator"].
... [bindingalias=propname] this extended attribute can be specified on an attribute and indicates that another property with the specified name will also appear on the interface prototype object and will call the same underlying c++ implementation for the getter and setter.
...And 25 more matches
Introduction to the JavaScript shell
-e script runs the specified script, which is a literal string containing the code to execute.
... -f filename runs the javascript program specified by filename.
... clone(function, [scope]) clones the specified function object.
...And 24 more matches
cfx - Archive of obsolete content
the path may be specified as a full path or may be relative to the current directory.
... -b binary, --binary=binary use the host application binary specified in binary.
... binary may be specified as a full path or as a path relative to the current directory.
...And 23 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
WebHTMLElementinput
if this attribute is not specified, the default type adopted is text.
...if this attribute isn't specified, the <input> element is associated with the nearest containing form, if any.
...if no maxlength is specified, or an invalid value is specified, the field has no maximum length.
...And 23 more matches
IAccessibleTable
olumns, [out] long ncolumns ); [propget] hresult selectedrows([in] long maxrows, [out, size_is(,maxrows), length_is(, nrows)] long rows, [out] long nrows ); hresult selectrow([in] long row ); [propget] hresult summary([out] iunknown accessible ); hresult unselectcolumn([in] long column ); hresult unselectrow([in] long row ); methods accessibleat() returns the accessible object at the specified row and column in the table.
...cellindex returns the 0 based index of the cell at the specified row and column indexes.
...columndescription() returns the description text of the specified column in the table.
...And 19 more matches
mozIStorageStatement
getparametername() obtains the name of the parameter for the specified index.
... return value an autf8string representing the parameter name for the specified index.
... getparameterindex() obtains the index of the parameter with the specified name.
...And 18 more matches
SVGLength - Web APIs
WebAPISVGLength
interface overview also implement none methods void newvaluespecifiedunits(in unsigned short unittype, in float valueinspecifiedunits) void converttospecifiedunits(in unsigned short unittype) properties readonly unsigned short unittype float value float valueinspecifiedunits domstring valueasstring constants svg_lengthtype_unknown = 0 svg_lengthtype_number = 1 svg_lengthtype_percentage = 2 svg_lengthtype_ems = 3 svg_lengthtype_exs ...
... normative document svg 1.1 (2nd edition) example <svg height="200" onload="start();" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"> <script type="text/javascript"><![cdata[ function start() { var rect = document.getelementbyid("myrect"); var val = rect.x.baseval; // read x in pixel and cm units console.log("value: " + val.value + ", valueinspecifiedunits: " + val.unittype + ": " + val.valueinspecifiedunits + ", valueasstring: " + val.valueasstring); // set x = 20pt and read it out in pixel and pt units val.newvaluespecifiedunits(svglength.svg_lengthtype_pt, 20); console.log("value: " + val.value + ", valueinspecifiedunits " + val.unittype + ": " + val.valueinspecifiedunits + ", valueasstring: " + va...
...l.valueasstring); // convert x = 20pt to inches and read out in pixel and inch units val.converttospecifiedunits(svglength.svg_lengthtype_in); console.log("value: " + val.value + ", valueinspecifiedunits " + val.unittype + ": " + val.valueinspecifiedunits + ", valueasstring: " + val.valueasstring); } ]]></script> <rect id="myrect" x="1cm" y="1cm" fill="green" stroke="black" stroke-width="1" width="1cm" height="1cm" /> </svg> results on a desktop monitor (pixel units will be dpi-dependent): value: 37.7952766418457, valueinspecifiedunits: 6: 1, valueasstring: 1cm value: 26.66666603088379, valueinspecifiedunits 9: 20, valueasstring: 20pt value: 26.66666603088379, valueinspecifiedunits 8: 0.277777761220932, valueasstring: 0.277778in const...
...And 18 more matches
Scaling of SVG backgrounds - CSS: Cascading Style Sheets
if the image specifies a size, and the size isn't modified by constrain or cover, that specified size wins.
... svg source one specified dimension and proportionless this image specifies a width of 100 pixels but no height or intrinsic ratio.
... svg source one specified dimension with intrinsic ratio this image specifies a 100 pixel height but no width.
...And 18 more matches
tabs/utils - Archive of obsolete content
globals functions activatetab(tab, window) set the specified tab as the active, or selected, tab.
... returns tabcontainer : gettabs(window) returns the tabs for the specified window.
... getownerwindow(tab) get the browser window that owns the specified tab.
...And 17 more matches
tabbrowser - Archive of obsolete content
}) return type: tab element opens a new tab that loads a page with the specified url.
... getbrowseratindex( index ) return type: browser element returns a browser at the specified tab index.
... getbrowserindexfordocument( document ) return type: integer returns the index of the browser for the specified document in the tabbrowser the method was invoked on.
...And 17 more matches
source-editor.jsm
acallback the function to call when the specified event occurs.
...if not specified, the currently selected text in the editor is used as the search string.
...it may have the following properties: property type description backwards boolean if true, the search begins at start (or the end of the text, if start is not specified) and progresses toward the beginning of the text.
...And 17 more matches
<input type="email"> - HTML: Hypertext Markup Language
WebHTMLElementinputemail
<input> elements of type email are used to let the user enter and edit an e-mail address, or, if the multiple attribute is specified, a list of e-mail addresses.
... if and only if the multiple attribute is specified, the value can be a list of properly-formed comma-separated e-mail addresses.
...if no maxlength is specified, or an invalid value is specified, the email input has no maximum length.
...And 17 more matches
DataView - JavaScript
instance methods dataview.prototype.getint8() gets a signed 8-bit integer (byte) at the specified byte offset from the start of the view.
... dataview.prototype.getuint8() gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the view.
... dataview.prototype.getint16() gets a signed 16-bit integer (short) at the specified byte offset from the start of the view.
...And 17 more matches
nsIContentPrefService
note: prior to gecko 2.0, the site could only be specified by nsiuri.
... nsivariant getpref( in nsivariant agroup, in astring aname, in nsicontentprefcallback acallback optional ); parameters agroup the group for which to retrieve a preference; this may be specified as either a uri or as a string; in either case, the group consists of all sites matching the hostname portion of the specified uri.
...the result may be null (nsidatatype:vtype_empty) if the preference's value is either null, or undefined (nsidatatype:vtype_void) if there is no saved preference by the specified name.
...And 14 more matches
system - CSS: Cascading Style Sheets
if the algorithm specified in the system descriptor is unable to construct the representation for a particular counter value, then that value's representation will be constructed using the fallback system provided.
...at least one symbol must be specified in the symbols descriptor, or the counter style is not valid.
... fixed defines a finite set of symbols are specified.
...And 14 more matches
NSS Tools modutil
if any of these databases already exist in a specified directory, the security module database tool displays an error message.
...the security mechanisms are specified with the -mechanisms mechanism-list argument.
...the security mechanisms are specified with the -mechanisms mechanism-list argument.
...And 13 more matches
<input type="url"> - HTML: Hypertext Markup Language
WebHTMLElementinputurl
if no maxlength is specified, or an invalid value is specified, the url input has no maximum length.
...this must be an non-negative integer value smaller than or equal to the value specified by maxlength.
... if no minlength is specified, or an invalid value is specified, the url input has no minimum length.
...And 13 more matches
Index - Archive of obsolete content
ArchiveMozillaXULIndex
544 openpopup xul methods, xul reference opens the popup relative to a specified node at a specific location.
... 918 template guide xul, xul_template_guide basics of xul templates 919 actions xul, xul_template_guide the content to generate in a template is specified using the action element which should either be the next sibling of the query element (if no rules need be specified) or be a direct child of a rule element.
...in xul, the datasource is specified by placing the datasources attribute on an element.
...And 12 more matches
PKCS #11 Module Specs
if the library is not specified, the line represents some application specific meta configuration data.
... if the name is not specified, the application can use the library path to describe the pkcs #11 library in any ui it may have.
... if the parameter is not specified, no parameters are passed to the pkcs #11 module.
...And 12 more matches
Element - Web APIs
WebAPIElement
most functionality is specified further down the class hierarchy.
... element.prefix read only a domstring representing the namespace prefix of the element, or null if no prefix is specified.
... element.attachshadow() attaches a shadow dom tree to the specified element and returns a reference to its shadowroot.
...And 12 more matches
SVG documentation index - SVG: Scalable Vector Graphics
WebSVGIndex
14 svg conditional processing attributes intermediate, needsexample, property, reference, svg the svg conditional processing attributes are all the attributes that can be specified on some svg elements to control whether or not the element on which it appears should be rendered.
... 15 svg core attributes attribute, intermediate, reference, svg the svg core attributes are all the common attributes that can be specified on any svg element.
...they specifies some script to run when the event of the given type is dispatched to the element on which the attributes are specified.
...And 12 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
methods used to access elements method description document.getelementbyid( aid ) returns a reference to the element with the specified id.
... document.getelementsbytagname( atagname ) returns an array of elements with the specified name in the document.
... getattribute( aattributename ) returns the value for the specified attribute.
...And 11 more matches
NSS tools : modutil
if any of these databases already exist in a specified directory, modutil returns an error message.
...the security mechanisms are specified with the -mechanisms argument.
... -rawlist display the module specs for a specified module or for all loadable modules.
...And 11 more matches
NSS tools : modutil
MozillaProjectsNSStoolsmodutil
if any of these databases already exist in a specified directory, modutil returns an error message.
...the security mechanisms are specified with the -mechanisms argument.
... -rawlist display the module specs for a specified module or for all loadable modules.
...And 11 more matches
nsISessionStore
methods deletetabvalue() deletes a value from a specified tab.
... deletewindowvalue() deletes a value from a specified window.
... duplicatetab() duplicates a specified tab as thoroughly as possible.
...And 11 more matches
DOMMatrixReadOnly - Web APIs
dommatrixreadonly.multiply() returns a new dommatrix created by computing the dot product of the source matrix and the specified matrix: a⋅b.
... if no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is 0 except the bottom-right corner and the element immediately above and to its left: m33 and m34.
... dommatrixreadonly.rotateaxisangle() returns a new dommatrix created by rotating the source matrix by the given angle around the specified vector.
...And 11 more matches
background-size - CSS: Cascading Style Sheets
und-size: 50% auto; background-size: 3em 25%; background-size: auto 6px; background-size: auto auto; /* multiple backgrounds */ background-size: auto, auto; /* not to be confused with `auto auto` */ background-size: 50%, 25%, 25%; background-size: 6px, auto, contain; /* global values */ background-size: inherit; background-size: initial; background-size: unset; the background-size property is specified in one of the following ways: using the keyword values contain or cover.
... <length> stretches the image in the corresponding dimension to the specified length.
... <percentage> stretches the image in the corresponding dimension to the specified percentage of the background positioning area.
...And 11 more matches
<input type="image"> - HTML: Hypertext Markup Language
WebHTMLElementinputimage
value none — the value attribute should not be specified.
...the path to the image to be displayed is specified in the src attribute.
... if specified, the value of the formenctype attribute overrides the owning form's action attribute.
...And 11 more matches
Proxy Auto-Configuration (PAC) file - HTTP
return value format the javascript function returns a single string if the string is null, no proxies should be used the string can contain any number of the following building blocks, separated by a semicolon: direct connections should be made directly, without any proxies proxy host:port the specified proxy should be used socks host:port the specified socks server should be used recent versions of firefox support as well: http host:port the specified proxy should be used https host:port the specified https proxy should be used socks4 host:port socks5 host:port the specified socks server (with the specified sock version) should be used if there are multiple semicolon-separated se...
... if all proxies are down, and there was no direct option specified, the browser will ask if proxies should be temporarily ignored, and direct connections attempted.
... description is true if the hostname matches exactly the specified hostname, or if there is no domain name part in the hostname, but the unqualified hostname matches.
...And 11 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
as of gecko 1.9.1, this attribute is now always specified in lower case.
...as of gecko 1.9.1, this attribute is now always specified in lower case.
...as of gecko 1.9.1, this attribute is now always specified in lower case.
...And 10 more matches
IAccessibleTable2
cellat() returns the accessible object at the specified row and column in the table.
...columndescription() returns the description text of the specified column in the table.
...description returns the description text of the specified column in the table if such a description exists.
...And 10 more matches
mozIStorageValueArray
getint32() obtains a int32 from the specified index.
... return value the int32 for the specified entry.
... getint64() obtains a int64 from the specified index.
...And 10 more matches
DOMMatrix - Web APIs
WebAPIDOMMatrix
dommatrix.multiplyself() modifies the matrix by post-multiplying it with the specified dommatrix.
... dommatrix.premultiplyself() modifies the matrix by pre-multiplying it with the specified dommatrix.
... dommatrix.translateself() modifies the matrix by applying the specified vector.
...And 10 more matches
d - SVG: Scalable Vector Graphics
WebSVGAttributed
e="red" d="m 10,10 h 10 m 0,10 h 10 m 0,10 h 10 m 40,20 h 10 m 0,10 h 10 m 0,10 h 10 m 0,10 h 10 m 50,50 h 10 m-20,10 h 10 m-20,10 h 10 m-20,10 h 10" /> </svg> lineto path commands lineto instructions draw a straight line from the current point (po; {xo, yo}) to the end point (pn; {xn, yn}), based on the parameters specified.
... command parameters notes l (x, y)+ draw a line from the current point to the end point specified by x,y.
... formula: po′ = pn = {xo + dx, yo + dy} h x+ draw a horizontal line from the current point to the end point, which is specified by the x parameter and the current point's y coordinate.
...And 10 more matches
Using microformats - Archive of obsolete content
note: if a microformat by the specified name already exists, it is replaced by the new one.
... count() counts the number of microformats in a document that match specified criteria.
... return value an integer value indicating the number of microformats that match the specified criteria.
...And 9 more matches
NPAPI plugin reference - Archive of obsolete content
npn_enumerate gets the names of the properties and methods of the specified npobject.
... npn_evaluate evaluates a script in the scope of the specified npobject.
... npn_getproperty gets the value of a property on the specified npobject.
...And 9 more matches
NetUtil.jsm
note: prior to gecko 2, the input source was required to be specified as an nsichannel.
...this may be specified as an nsiuri, nsifile, nsichannel, nsiinputstream or as a string specifying the url to open.
... newchannel() creates a new channel for the specified uri string, nsiuri, or nsifile.
...And 9 more matches
nsILoginManagerStorage
gecko 1.9.1 note default values for the nsiloginmetainfo properties are created if the specified login doesn't explicitly specify them.
... countlogins() implement this method to return the number of logins matching the specified criteria.
... return value the number of logins that match the specified criteria.
...And 9 more matches
nsIScriptableIO
files are located by starting at a known directory, specified using a location key string.
... for example, if the location key is specified as "desk" and the file name is specified as "foo.txt", the file reference generated will refer to a file named "foo.txt" on the user's desktop.
... return value returns an nsifile object referencing the specified file location.
...And 9 more matches
KeyframeEffect.setKeyframes() - Web APIs
element.animate([ { // from opacity: 0, color: "#fff" }, { // to opacity: 1, ​ color: "#000" } ], 2000); offsets for each keyframe can be specified by providing an offset value.
...keyframes without a specified offset will be evenly spaced between adjacent keyframes.
... the easing to apply between keyframes can be specified by providing an easing value as illustrated below.
...And 9 more matches
TextRange - Web APIs
WebAPITextRange
textrange.expand() expand the range to include the full range of specified units.
... textrange.findtext() searches the specified text in the original range and adjusts the range to include the first match.
... textrange.inrange() returns whether the current range contains the specified range.
...And 9 more matches
Keyframe Formats - Web APIs
element.animate([ { // from opacity: 0, color: "#fff" }, { // to opacity: 1, ​ color: "#000" } ], 2000); offsets for each keyframe can be specified by providing an offset value.
...keyframes without a specified offset will be evenly spaced between adjacent keyframes.
... the easing to apply between keyframes can be specified by providing an easing value as illustrated below.
...And 9 more matches
HTTP Index - HTTP
WebHTTPIndex
29 reason: cors request not http cors, corsrequestnothttp, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting cors requests may only use the https url scheme, but the url specified by the request is of a different type.
... 31 reason: did not find method in cors header ‘access-control-allow-methods’ cors, corsmethodnotfound, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the http method being used by the cors request is not included in the list of methods specified by the response's access-control-allow-methods header.
... this header specifies a comma-delineated list of the http methods which may be used when using cors to access the url specified in the request; if the request is using any other method, this error occurs.
...And 9 more matches
panel - Archive of obsolete content
its content is specified as html and you can execute scripts in it, so the appearance and behavior of the panel is limited only by what you can do using html, css, and javascript.
... panel content the panel's content is specified as html, which is loaded from the url supplied in the contenturl option to the panel's constructor.
... the add-on consists of six files: main.js: the main add-on code, that creates the button and panel get-text.js: the content script that interacts with the panel content text-entry.html: the panel content itself, specified as html icon-16.png, icon-32.png, and icon-64.png: icons for the button in three different sizes "main.js" is saved in your add-on's lib directory, and the other files go in your add-on's data directory: my-addon/ data/ get-text.js icon-16.png icon-32.png icon-64.png text-entry.html lib/ main.js the "main.js" looks like this: var data...
...And 8 more matches
listbox - Archive of obsolete content
suppressonselect type: boolean if this attribute is not specified, a select event is fired whenever an item is selected, either by the user or by calling one of the select methods.
... ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the displayed items are scrolled so that it is.
... ensureindexisvisible( index ) return type: no return value if the item at the specified index is not currently visible to the user the displayed items are scrolled so that it is.
...And 8 more matches
richlistbox - Archive of obsolete content
suppressonselect type: boolean if this attribute is not specified, a select event is fired whenever an item is selected, either by the user or by calling one of the select methods.
... ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the displayed items are scrolled so that it is.
... ensureindexisvisible( index ) return type: no return value if the item at the specified index is not currently visible to the user the displayed items are scrolled so that it is.
...And 8 more matches
NSS tools : certutil
-b run a series of commands from the specified batch file.
...if you don't use the -k argument, the option looks for an rsa key matching the specified nickname.
... nss recognizes the following prefixes: · sql: requests the newer database · dbm: requests the legacy database if no prefix is specified the default type is retrieved from nss_default_db_type.
...And 8 more matches
Shell global objects
readlinebuf([ buf ]) emulate readline() on the specified string.
... functions available if --fuzzing-safe is not specified clone(fun[, scope]) clone function object.
...the list of flags is available by calling this function with help as the flag's name wasmloop(filename, imports) performs an afl-style persistent loop reading data from the given file and passing it to thewasmeval function together with the specified imports object.
...And 8 more matches
inIDOMUtils
value state 1 :active 2 :focus 4 :hover 8 :-moz-drag-over 16 :target 1<<29 :-moz-focusring methods getbindingurls() returns an array of nsiuri objects representing the current xml binding for the specified element.
... getchildrenfornode() returns a list of dom nodes that are children of the specified node.
... return value a bitmask of one of the 6 supported content state flags specified in content state flags.
...And 8 more matches
nsIZipReader
subsequent attempts to access a nsizipentry obtained from this zip reader will cause unspecified behavior.
... example demonstrating this function: list contents of xpi and read file contents extract() extracts a zip entry into a local file specified by outfile.
...(in the former case, the behavior specified for '[^az]' will happen.) [a-z] matches any character between a and z.
...And 8 more matches
nsIZipWriter
ns_error_file_already_exists the specified path already exists in the zip file.
... ns_error_file_already_exists the specified path already exists in the zip file.
...if the specified file is a directory, this call is equivalent to: addentrydirectory(azipentry, afile.lastmodifiedtime, aqueue); void addentryfile( in autf8string azipentry, in print32 acompression, in nsifile afile, in boolean aqueue ); parameters azipentry the path of the file entry to add to the zip file.
...And 8 more matches
<input type="password"> - HTML: Hypertext Markup Language
WebHTMLElementinputpassword
if the required property is specified, then the password edit box must contain a value other than an empty string to be valid.
... if the pattern attribute is specified, the content of a password control is only considered valid if the value passes validation; see validation for more information.
...if no maxlength is specified, or an invalid value is specified, the password field has no maximum length.
...And 8 more matches
<meter>: The HTML Meter element - HTML: Hypertext Markup Language
WebHTMLElementmeter
this must be between the minimum and maximum values (min attribute and max attribute) if they are specified.
... if unspecified or malformed, the value is 0.
... if specified, but not within the range given by the min attribute and max attribute, the value is equal to the nearest end of the range.
...And 8 more matches
HTML documentation index - HTML: Hypertext Markup Language
WebHTMLIndex
every html element can have an itemprop attribute specified, and an itemprop consists of a name-value pair.
...if the max attribute is present by is not specified or is invalid, no max value is applied.
...if a value is specified for min that isn't a valid number, the input has no minimum value.
...And 8 more matches
Atomics - JavaScript
static methods atomics.add() adds the provided value to the existing value at the specified index of the array.
... atomics.and() computes a bitwise and on the value at the specified index of the array with the provided value.
... atomics.compareexchange() stores a value at the specified index of the array, if it equals a value.
...And 8 more matches
Codecs used by WebRTC - Web media technologies
max-br if specified and supported by the software, the max-br parameter specifies the maximum video bit rate in units of 1,000 bps for vcl and 1,200 bps for nal.
... max-cpb if specified and supported by the software, max-cpb specifies the maximum coded picture buffer size.
... max-dpb if specified and supported, max-dpb indicates the maximum decoded picture buffer size, given in units of 8/3 macroblocks.
...And 8 more matches
Content type - SVG: Scalable Vector Graphics
angle <angle> angles are specified in one of two ways.
...in presentation attributes for all properties, whether defined in svg1.1 or in css2, the angle identifier, if specified, must be in lower case.
...this ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display.
...And 8 more matches
Install Manifests - Archive of obsolete content
this means that the add-on will work with the application identified by the id property (<em:id>) specified (for a comprehensive list of application ids and valid min/maxversions for them see valid application versions for add-on developers), from the minimum version (<em:minversion>) up to and including the maximum version (<em:maxversion>).
... for firefox/thunderbird 1.0, the format must conform to the rules specified in extension versioning, update and compatibility.
...if this property is specified, in the about:addons extensions list, the about...
...And 7 more matches
Positioning - Archive of obsolete content
first, the position can be specified when using the popup's openpopup method.
...second, the position can be specified using several attributes placed on the menupopup, panel or tooltip element.
... the position attribute can be specified either as a single word offering pre-defined alignment positions, or as 2 words specifying exactly which part of the popup and associated element should be aligned.
...And 7 more matches
menupopup - Archive of obsolete content
left type: integer overrides the horizontal position of the popup specified by the showpopup method.
... this value can be specified either as a single word offering pre-defined alignment positions, or as 2 words specifying exactly which part of the anchor and popup should be aligned.
... if specified as 2 words, the value indicates which corner or edge of the anchor (the first word) is aligned which which corner of the popup (the second word).
...And 7 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
these functions are: settimeout() execute a specified block of code once after a specified time has elapsed.
... setinterval() execute a specified block of code repeatedly with a fixed time delay between each call.
...executes a specified block of code before the browser next repaints the display, allowing an animation to be run at a suitable framerate regardless of the environment it is being run in.
...And 7 more matches
PRIOMethods
read read up to the specified number of bytes into buffer.
... write write specified number of bytes from buffer.
... connect connect to the specified network address.
...And 7 more matches
certutil
-b run a series of commands from the specified batch file.
...if you don't use the -k argument, the option looks for an rsa key matching the specified nickname.
...unless specified otherwise the default token is an internal slot (specifically, internal slot 2).
...And 7 more matches
nsIAccessibleTable
methods return the accessible object at the specified row and column in the table.
... getcolumndescription() return the description text of the specified column in the table.
... getcolumnextentat() return the number of columns occupied by the accessible cell at the specified row and column in the table.
...And 7 more matches
Int64
this may be specified as an integer (if the value can be represented as a 32-bit value), another 64-bit integer object (either signed or unsigned), or as a string, which may consist of an optional minus sign, followed by either a decimal number or "0x" or "0x" followed by a hexadecimal number.
... return value a new object representing the specified value.
... exceptions thrown typeerror the specified value cannot be converted into a 64-bit integer.
...And 7 more matches
UInt64
this may be specified as an integer (if the value can be represented as a 32-bit value), another 64-bit integer object (either signed or unsigned), or as a string, which may consist of an optional minus sign, followed by either a decimal number or "0x" or "0x" followed by a hexadecimal number.
... return value a new object representing the specified value.
... exceptions thrown typeerror the specified value cannot be converted into a 64-bit integer.
...And 7 more matches
Network request list - Firefox Developer Tools
reload the page to test it with the specified url blocked.
... domain:mozilla.org remote-ip shows resources coming from a server with the specified ip.
... cause:js cause:stylesheet cause:img transferred shows resources having a specific transferred size or a transferred size close to the one specified.
...And 7 more matches
CSSCounterStyleRule - Web APIs
if the descriptor was not specified in the associated rule, the attribute returns an empty string.
...if the descriptor was not specified in the associated rule, the attribute returns an empty string.
...if the descriptor was not specified in the associated rule, the attribute returns an empty string.
...And 7 more matches
Document - Web APIs
WebAPIDocument
document.preferredstylesheetsetread only returns the preferred style sheet set as specified by the page author.
... document.xmlversion obsolete since gecko 10 returns the version number as specified in the xml declaration or "1.0" if the declaration is absent.
... document.caretrangefrompoint() gets a range object for the document fragment under the specified coordinates.
...And 7 more matches
<input type="search"> - HTML: Hypertext Markup Language
WebHTMLElementinputsearch
if no maxlength is specified, or an invalid value is specified, the search field has no maximum length.
...this must be a non-negative integer value smaller than or equal to the value specified by maxlength.
... if no minlength is specified, or an invalid value is specified, the search input has no minimum length.
...And 7 more matches
<input type="tel"> - HTML: Hypertext Markup Language
WebHTMLElementinputtel
if no maxlength is specified, or an invalid value is specified, the telephone number field has no maximum length.
...this must be an non-negative integer value smaller than or equal to the value specified by maxlength.
... if no minlength is specified, or an invalid value is specified, the telephone number input has no minimum length.
...And 7 more matches
<textarea> - HTML: Hypertext Markup Language
WebHTMLElementtextarea
if the autocomplete attribute is not specified on a <textarea> element, then the browser uses the autocomplete attribute value of the <textarea> element's form owner.
... the form owner is either the <form> element that this <textarea> element is a descendant of or the form element whose id is specified by the form attribute of the input element.
...only one form-associated element in a document can have this attribute specified.
...And 7 more matches
page-mod - Archive of obsolete content
private windows if your add-on has not opted into private browsing, then your page-mods will not attach content scripts to documents loaded into private windows, even if their urls match the pattern you have specified.
... each script is supplied as a separate file under your add-on's "data" directory, and is specified by a url typically constructed using the url() method of the self module's data object.
... var data = require("sdk/self").data; var pagemod = require("sdk/page-mod"); pagemod.pagemod({ include: "*", contentscriptfile: [data.url("jquery.min.js"), data.url("my-script.js")] }); content scripts specified using this option are loaded before those specified by the contentscript option.
...And 6 more matches
Space Manager Detailed Design - Archive of obsolete content
*/ nsiframe* getframe() const { return mframe; } /** * translate the current origin by the specified (dx, dy).
... * * @return pr_true if there are bands and pr_false if there are no bands */ prbool ymost(nscoord& aymost) const; /** * returns a band starting at the specified y-offset.
...must not be null * @param aunavailablespace the bounding rect of the unavailable space * @return ns_ok if successful * ns_error_failure if there is already a region tagged with aframe */ nsresult addrectregion(nsiframe* aframe, const nsrect& aunavailablespace); /** * resize the rectangular region associated with aframe by the specified * deltas.
...And 6 more matches
Command line options
multiple command line options can be specified.
... -override /path/to/override.ini load the specified override.ini file to override application.ini (browser/app/application.ini).
...if news_url (optional) is given, open the specified newsgroup.
...And 6 more matches
NSS Tools certutil
if you don't use the -k argument, the option looks for an rsa key matching the specified nickname.
...unless specified otherwise the default token is an internal slot (specifically, internal slot 2).
... -q pqgfile read an alternate pqg value from the specified file when generating dsa key pairs.
...And 6 more matches
nsIComponentManager
bject(in nscidref aclass, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); void getclassobjectbycontractid(in string acontractid, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); void removebootstrappedmanifestlocation(in nsilocalfile alocation); methods addbootstrappedmanifestlocation() loads a "bootstrapped" chrome.manifest file from the specified directory or xpi file.
... createinstance() creates an instance of the class specified by classid.
... exceptions thrown ns_error_factory_not_registered indicates that the specified class is not registered.
...And 6 more matches
nsILoginManager
note: default values for the nsiloginmetainfo properties are created if the specified login doesn't explicitly specify them.
... nsiautocompleteresult autocompletesearch( in astring asearchstring, in nsiautocompleteresult apreviousresult, in nsidomhtmlinputelement aelement ); parameters asearchstring missing description apreviousresult missing description aelement missing description return value missing description countlogins() returns the number of logins matching the specified criteria.
... findlogins() searches for logins matching the specified criteria.
...And 6 more matches
<input type="text"> - HTML: Hypertext Markup Language
WebHTMLElementinputtext
if no maxlength is specified, or an invalid value is specified, the text input has no maximum length.
...this must be an non-negative integer value smaller than or equal to the value specified by maxlength.
... if no minlength is specified, or an invalid value is specified, the text input has no minimum length.
...And 6 more matches
<video>: The Video Embed element - HTML: Hypertext Markup Language
WebHTMLElementvideo
autoplay a boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.
... controlslist the controlslist attribute, when specified, helps the browser select what controls to show on the media element whenever the browser shows its own set of controls (e.g.
... when the controls attribute is specified).
...And 6 more matches
String - JavaScript
string literals can be specified using single or double quotes, which are treated identically, or using the backtick character `.
... static methods string.fromcharcode(num1 [, ...[, numn]]) returns a string created by using the specified sequence of unicode values.
... string.fromcodepoint(num1 [, ...[, numn) returns a string created by using the specified sequence of code points.
...And 6 more matches
kernelUnitLength - SVG: Scalable Vector Graphics
if the attribute is not specified, the default value is one pixel in the offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable.
... if a negative or zero value is specified the default value will be used instead.
...if the x value is not specified, it defaults to the same value as x.
...And 6 more matches
jpm - Archive of obsolete content
jpm creates a skeleton add-on, as a starting point for your add-on development, with the following file structure: my-addon index.js package.json test test-index.js jpm run this command runs a new instance of firefox with the add-on installed: jpm run jpm run accepts the following options: -b --binary binary use the version of firefox specified in binary.
... binary may be specified as a full path or as a path relative to the current directory.
...if -o is specified and path is omitted, jpm looks for the jetpack_root environment variable and use its value as the path.
...And 5 more matches
Anonymous Content - Archive of obsolete content
when specified on the left-hand side of the pair it indicates that the attribute on the right-hand side should be stored as text nodes underneath the anonymous element.
... xpath selectors specified using the includes attribute determine which insertion point a given child should be placed under.
... [actually, only tag names may be specified; see the includes attribute description in <children> element reference, bug 174614 and bug 51527.] if no attribute is specified, an insertion point is considered generic and will match on all content.
...And 5 more matches
panel - Archive of obsolete content
ArchiveMozillaXULpanel
left type: integer overrides the horizontal position of the popup specified by the showpopup method.
... this value can be specified either as a single word offering pre-defined alignment positions, or as 2 words specifying exactly which part of the anchor and popup should be aligned.
... if specified as 2 words, the value indicates which corner or edge of the anchor (the first word) is aligned which which corner of the popup (the second word).
...And 5 more matches
tooltip - Archive of obsolete content
<label value="click here to see more information"/> <label value="really!" style="color: red;"/> </tooltip> <vbox> <button label="simple" tooltiptext="a simple popup"/> <button label="more" tooltip="moretip"/> </vbox> attributes crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
... this value can be specified either as a single word offering pre-defined alignment positions, or as 2 words specifying exactly which part of the anchor and popup should be aligned.
... if specified as 2 words, the value indicates which corner or edge of the anchor (the first word) is aligned which which corner of the popup (the second word).
...And 5 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
64 canonical order canonical order, codingscripting, glossary in css, canonical order is used to refer to the order in which separate values need to be specified (or parsed) or are to be serialized as part of a css property value.
... it is defined by the formal syntax of the property and normally refers to the order in which longhand values should be specified as part of a single shorthand value.
... 140 fallback alignment css, glossary, alignment in css box alignment, a fallback alignment is specified in order to deal with cases where the requested alignment cannot be fullfilled.
...And 5 more matches
Getting Started with Chat
simply type them into the message box at the bottom of the screen and press enter: /join #channel joins you to the specified channel until you quit your irc client or quit the channel /leave leave the current channel /mode #channel +k password sets a password for the channel.
... if #channel is not specified, the command is executed for the current channel.
... /mode #channel +o nickname sets specified user as an owner or moderator of the specified channel.
...And 5 more matches
FileUtils.jsm
perms_directory 0755 default permissions when creating directories methods getfile() gets a file at the specified hierarchy under a nsidirectoryservice key.
... nsifile getfile( string key, array patharray, bool followlinks ); parameters key the nsidirectoryservice key to start from (see getting special files for more info) patharray an array of path components to locate beneath the directory specified by key.
... return value returns a nsifile object for the file specified.
...And 5 more matches
sslcrt.html
some of the pk11 functions require a pin argument (see ssl_setpkcs11pinarg for details), which must be specified in the wincx parameter.
... cert_verifycertname compares the common name specified in the subject dn for a certificate with a specified hostname.
... cert_checkcertvalidtimes checks whether a specified time is within a certificate's validity period.
...And 5 more matches
NSS tools : signtool
this option causes the specified directory to be signed and tags its entries as inline javascript.
...directory specifies the nickname (key) of the certificate you want to sign with and signs the files in the specified directory.
... the directory to sign is always specified as the last command-line argument.
...And 5 more matches
Rhino shell
deserialize(filename) restore from the specified file an object previously written by a call to serialize.
... readfile(path [, charactercoding]) read given file and convert its bytes to a string using the specified character coding or default character coding if explicit coding argument is not given.
... readurl(url [, charactercoding]) open an input connection to the given string url, read all its bytes and convert them to a string using the specified character coding or default character coding if explicit coding argument is not given.
...And 5 more matches
IAccessibleAction
g([in] long actionindex, [in] long nmaxbindings, [out, size_is(,nmaxbindings), length_is(, nbindings)] bstr keybindings, [out] long nbindings ); [propget] hresult localizedname([in] long actionindex, [out] bstr localizedname ); hresult nactions([out,retval] long nactions ); [propget] hresult name([in] long actionindex, [out] bstr name ); methods description() returns a description of the specified action of the object.
...description the returned value is a localized string of the specified action.
...doaction() performs the specified action on the object.
...And 5 more matches
nsITransport
flags have the following meaning: open_blocking if specified, then the resulting stream will have blocking stream semantics.
...if this flag is not specified, then the stream has non-blocking stream semantics.
...open_unbuffered if specified, the resulting stream may not support readsegments.
...And 5 more matches
CanvasRenderingContext2D - Web APIs
canvasrenderingcontext2d.createpattern() creates a pattern using the specified image (a canvasimagesource).
... it repeats the source in the directions specified by the repetition argument.
... canvasrenderingcontext2d.lineto() connects the last point in the current sub-path to the specified (x, y) coordinates with a straight line.
...And 5 more matches
EventTarget.addEventListener() - Web APIs
the eventtarget method addeventlistener() sets up a function that will be called whenever the specified event is delivered to the target.
... addeventlistener() works by adding a function or an object that implements eventlistener to the list of event listeners for the specified event type on the eventtarget on which it's called.
... listener the object that receives a notification (an object that implements the event interface) when an event of the specified type occurs.
...And 5 more matches
HTMLButtonElement - Web APIs
only one form-associated element in a document can have this attribute specified.
...if specified, this attribute overrides the action attribute of the <form> element that owns this element.
...if specified, this attribute overrides the enctype attribute of the <form> element that owns this element.
...And 5 more matches
Notification - Web APIs
notification.actions read only the actions array of the notification as specified in the constructor's options parameter.
... notification.body read only the body string of the notification as specified in the constructor's options parameter.
... notification.dir read only the text direction of the notification as specified in the constructor's options parameter.
...And 5 more matches
RTCPeerConnection.addTrack() - Web APIs
the specified track doesn't necessarily have to already be part of any of the specified streams.
... exceptions invalidaccesserror the specified track (or all of its underlying streams) is already part of the rtcpeerconnection.
... streamless tracks if no streams are specified, then the track is streamless.
...And 5 more matches
RTCPeerConnection.setRemoteDescription() - Web APIs
the rtcpeerconnection method setremotedescription() sets the specified session description as the remote peer's current offer or answer.
... return value a promise which is fulfilled once the value of the connection's remotedescription is successfully changed or rejected if the change cannot be applied (for example, if the specified description is incompatible with one or both of the peers on the connection).
... invalidstateerror the rtcpeerconnection is closed, or it's in a state which isn't compatible with the specified description's type.
...And 5 more matches
SVGAngle - Web APIs
WebAPISVGAngle
svg_angletype_unspecified a unitless <number> interpreted as a value in degrees.
... properties unittype the type of the value as specified by one of the svg_angletype_* constants defined on this interface.
...setting this attribute will cause valueinspecifiedunits and valueasstring to be updated automatically to reflect this setting.
...And 5 more matches
WebGLRenderingContext.bufferData() - Web APIs
possible values: gl.static_draw: the contents are intended to be specified once by the application, and used many times as the source for webgl drawing and image specification commands.
... gl.dynamic_draw: the contents are intended to be respecified repeatedly by the application, and used many times as the source for webgl drawing and image specification commands.
... gl.stream_draw: the contents are intended to be specified once by the application, and used at most a few times as the source for webgl drawing and image specification commands.
...And 5 more matches
Inputs and input sources - Web APIs
the grip space's native origin, located around the center of the player's fist, is (0, 0, 0) within the input source's local coordinate system, while the xrspace specified by gripspace can be used at any time to convert coordinates or vectors from the input source's space into world coordinates (or vice-versa).
... let primaryinputsource = xrsession.inputsources[0]; for (let i=0; i < xrsession.inputsources.length; i++) { if (xrsession.inputsources[i].handedness === user.handedness) { primaryinputsource = inputsources[i]; break; } } this snippet of code starts by assuming that the first input source is the primary, but then looks for one whose handedness matches the one specified in the user object.
... then pickupobject() is called, specifying the targeted object as the object to remove from the scene and place into the specified hand.
...And 5 more matches
Window.open() - Web APIs
WebAPIWindowopen
the window interface's open() method loads the specified resource into the new or existing browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new browsing context is opened in a new tab or a new window, and the specified resource is loaded into it.
...if the empty string ("") is specified as url, a blank page is opened into the targeted browsing context.
...And 5 more matches
Window - Web APIs
WebAPIWindow
domparser is specified in dom parsing and serialization.
... window.getcomputedstyle() gets computed style for the specified element.
... window.getdefaultcomputedstyle() gets default computed style for the specified element, ignoring author stylesheets.
...And 5 more matches
@counter-style - CSS: Cascading Style Sheets
for representations larger than the specified pad value, the marker is constructed as normal.
... fallback specifies a system to fall back into if either the specified system is unable to construct the representation of a counter value or if the counter value outside the specified range.
... if the specified fallback also fails to represent the value, then the fallback style's fallback is used, if one is specified.
...And 5 more matches
border-image-width - CSS: Cascading Style Sheets
-width: 25%; /* <number> value */ border-image-width: 3; /* vertical | horizontal */ border-image-width: 2em 3em; /* top | horizontal | bottom */ border-image-width: 5% 15% 10%; /* top | right | bottom | left */ border-image-width: 5% 2em 10% auto; /* global values */ border-image-width: inherit; border-image-width: initial; border-image-width: unset; the border-image-width property may be specified using one, two, three, or four values chosen from the list of values below.
... when one value is specified, it applies the same width to all four sides.
... when two values are specified, the first width applies to the top and bottom, the second to the left and right.
...And 5 more matches
border-style - CSS: Cascading Style Sheets
le: groove; border-style: ridge; border-style: inset; border-style: outset; /* vertical | horizontal */ border-style: dotted solid; /* top | horizontal | bottom */ border-style: hidden double dashed; /* top | right | bottom | left */ border-style: none solid dotted dashed; /* global values */ border-style: inherit; border-style: initial; border-style: unset; the border-style property may be specified using one, two, three, or four values.
... when one value is specified, it applies the same style to all four sides.
... when two values are specified, the first style applies to the top and bottom, the second to the left and right.
...And 5 more matches
display - CSS: Cascading Style Sheets
WebCSSdisplay
syntax the css display property is specified using keyword values.
... note: browsers that support the two value syntax, on finding the outer value only, such as when display: block or display: inline is specified, will set the inner value to flow.
... note: browsers that support the two value syntax, on finding the inner value only, such as when display: flex or display: grid is specified, will set their outer value to block.
...And 5 more matches
mask-border-width - CSS: Cascading Style Sheets
k-border-width: 25%; /* <number> value */ mask-border-width: 3; /* vertical | horizontal */ mask-border-width: 2em 3em; /* top | horizontal | bottom */ mask-border-width: 5% 15% 10%; /* top | right | bottom | left */ mask-border-width: 5% 2em 10% auto; /* global values */ mask-border-width: inherit; mask-border-width: initial; mask-border-width: unset; the mask-border-width property may be specified using one, two, three, or four values chosen from the list of values below.
... when one value is specified, it applies the same width to all four sides.
... when two values are specified, the first width applies to the top and bottom, the second to the left and right.
...And 5 more matches
mask-size - CSS: Cascading Style Sheets
WebCSSmask-size
a <bg-size> can be specified in one of three ways: using the keyword contain using the keyword cover using width and height values to specify a size using width and height, you can supply one or two values: if only one value is given it sets the width, with the height set to auto.
... values <length> a <length> value scales the mask image to the specified length in the corresponding dimension.
... <percentage> a <percentage> value scales the mask image in the corresponding dimension to the specified percentage of the mask positioning area, which is determined by the value of mask-origin.
...And 5 more matches
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
all components must be specified using the same number of digits.
...the alpha channel is specified by 0xaa; the lower this value is, the more translucent the color becomes.
...the alpha channel is specified by 0xaa; the lower this value is, the more translucent the color becomes.
...And 5 more matches
HTML attribute reference - HTML: Hypertext Markup Language
color <basefont>, <font>, <hr> this attribute sets the text color using either a named color or a color specified in the hexadecimal #rrggbb format.
...if this attribute is specified, it overrides the enctype attribute of the button's form owner.
...if this attribute is specified, it overrides the method attribute of the button's form owner.
...And 5 more matches
Statements and declarations - JavaScript
if...else executes a statement if a specified condition is true.
... functions and classes function declares a function with the specified parameters.
... async function declares an async function with the specified parameters.
...And 5 more matches
Binding Implementations - Archive of obsolete content
the methods and properties of an implementation can be defined declaratively using method and property tags in xml, or an external implementation (e.g., a binary implementation) can be specified using the src attribute.
... when the src attribute is specified, any children of the implementation element are ignored.
...the parameters specified are bound to their names in the method body.
...And 4 more matches
Elements - Archive of obsolete content
includes - the includes attribute can be used to indicate that only certain content should be placed at the insertion point specified by the children element.
...if no name attribute is specified then the binding's document uri and id are used to uniquely reference the binding's implementation.
...a property getter can also be specified as a child of the property element using the getter tag.
...And 4 more matches
Client-side form validation - Learn web development
if the data entered in a form field follows all of the rules specified by the above attributes, it is considered valid.
...you can find full details of all the available properties in the validitystate reference page; below is listed a few of the more common ones: patternmismatch: returns true if the value does not match the specified pattern, and false if it does match.
... toolong: returns true if the value is longer than the maximum length specified by the maxlength attribute, or false if it is shorter than or equal to the maximum.
...And 4 more matches
NSPR Error Handling
pr_access_fault_error one of the arguments of the preceding function specified an invalid memory address.
... pr_illegal_access_error one of the arguments of the preceding function specified an invalid memory address.
... pr_io_timeout_error the i/o operation has not completed in the time specified for the preceding function.
...And 4 more matches
NSS PKCS11 Functions
nss parameters may be specified in module specs used by secmod_loadusermodule.
...if configdir is not specified, and nocertdb and nokeydb is not specified, the load will fail.
...(if not specified, certprefix will be used).
...And 4 more matches
NSS Tools crlutil
-i import a crl to the cert database -e erase all crls of specified type from the cert database -l list existing crl located in cert database file.
...if options -m|-g is used and -c crl-script-file is not specified, crlutil will read script data from standard input.
... reasoncode non-critical code where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on ...
...And 4 more matches
JS_GetPropertyAttributes
get the attributes of a specified property.
...if the specified property is found on obj, *attrsp receives its attributes.
...if no error occurs, *foundp receives js_true if the specified property is found and js_false if it is not found.
...And 4 more matches
IAccessibleTableCell
the result is greater than 1 if the specified cell spans multiple columns.
... [propget] hresult columnextent( [out] long ncolumnsspanned ); parameters ncolumnsspanned returns the 1 based column extent of the specified cell.
...[propget] hresult columnindex( [out] long columnindex ); parameters columnindex returns the 0 based column index of the cell of the specified cell or the index of the first column if the cell spans multiple columns.
...And 4 more matches
IAccessibleText
characterextents() returns the bounding box of the specified position.
...offsetatpoint() returns the text() position for the specified screen position.
...scrollsubstringtopoint() moves the top left of a substring to a specified location.
...And 4 more matches
nsIAccessibleSelectable
constants constant value description eselection_add 0 eselection_remove 1 eselection_getstate 2 methods addchildtoselection() adds the specified accessible child of the object to the object's selection.
... if the specified object is already selected, then it does nothing.
... exceptions thrown ns_error_failure if the specified object is not selectable.
...And 4 more matches
nsIDOMStorage
getitem() returns from session storage the data corresponding to the specified key.
... return value an nsidomstorageitem object describing the data corresponding to the specified key, or null if no data exists for the given key.
... key() returns the key for the item stored at the specified index in the data store.
...And 4 more matches
nsIDOMStorage2
getitem() returns from local storage the data corresponding to the specified key.
... return value a string containing the data corresponding to the specified key, or null if no data exists for the given key.
... key() returns the key for the item stored at the specified index in the data store.
...And 4 more matches
nsIDownloadManager
2: files are downloaded to the local path specified by the browser.download.dir preference.
... canceldownload() cancels the download with the specified id if it's currently in-progress.
... return value the download with the specified id.
...And 4 more matches
nsIWebBrowserPersist
encode_flags_wrap 32 wrap documents at the specified column.
...may also be combined with encode_flags_lf_linebreaks and if neither is specified, the platform default format is used.
...may also be combined with encode_flags_cr_linebreaks and if neither is specified, the platform default format is used.
...And 4 more matches
Drawing and Event Handling - Plugins
for windowless plug-ins, the platform-specific window information specified in window->window is a platform-specific handle to a drawable.
...the instance must restrict its drawing to a specified area of the shared window, and it must always save the current settings, set up the drawing environment, and restore the shared drawing environment to the previous settings.
...both methods perform the same operations: they invalidate the specified drawing area prior to repainting or refreshing.
...And 4 more matches
Intersection Observer API - Web APIs
number of pixels that overlap or specifically which ones they are; however, it covers the much more common use case of "if they intersect by somewhere around n%, i need to do something." intersection observer concepts and usage the intersection observer api allows you to configure a callback that is called: (1) whenever one element, called the target, intersects either the device viewport or a specified element; for the purpose of this api, this is called the root element or root (2) and whenever the observer is asked to watch a target for the very first time typically, you'll want to watch for intersection changes with regard to the element's closest scrollable ancestor, or, if the element isn't a descendant of a scrollable element, the viewport.
...tion observer by calling its constructor and passing it a callback function to be run whenever a threshold is crossed in one direction or the other: let options = { root: document.queryselector('#scrollarea'), rootmargin: '0px', threshold: 1.0 } let observer = new intersectionobserver(callback, options); a threshold of 1.0 means that when 100% of the target is visible within the element specified by the root option, the callback is invoked.
...defaults to the browser viewport if not specified or if null.
...And 4 more matches
MediaDevices.getUserMedia() - Web APIs
either or both must be specified.
... if the browser cannot find all media tracks with the specified types that meet the constraints given, then the returned promise is rejected with notfounderror.
... the following requests both audio and video without any specific requirements: { audio: true, video: true } if true is specified for a media type, the resulting stream is required to have that type of track in it.
...And 4 more matches
RTCPeerConnection.addIceCandidate() - Web APIs
the same is the case if the value of the specified object's candidate is either missing or an empty string (""), it signals that all remote candidates have been delivered.
... if no candidate object is specified, or its value is null, an end-of-candidates signal is sent to the remote peer using the end-of-candidates a-line, formatted simply like this: a=end-of-candidates deprecated parameters in older code and documentation, you may see a callback-based version of this function.
... exceptions when an error occurs while attempting to add the ice candidate, the promise returned by this method is rejected, returning one of the errors below as the name attribute in the specified domexception object passed to the rejection handler.
...And 4 more matches
RTCPeerConnection - Web APIs
its properties from: eventtargetcantrickleicecandidatesthe read-only rtcpeerconnection property cantrickleicecandidates returns a boolean which indicates whether or not the remote peer can accept trickled ice candidates.connectionstate the read-only connectionstate property of the rtcpeerconnection interface indicates the current state of the peer connection by returning one of the string values specified by the enum rtcpeerconnectionstate.currentlocaldescription read only the read-only property rtcpeerconnection.currentlocaldescription returns an rtcsessiondescription object describing the local end of the connection as it was most recently successfully negotiated since the last time the rtcpeerconnection finished negotiating and connecting to a remote peer.
...if sctp hasn't been negotiated, this value is null.signalingstate read only the read-only signalingstate property on the rtcpeerconnection interface returns one of the string values specified by the rtcsignalingstate enum; these values describe the state of the signaling process on the local end of the connection while connecting or reconnecting to another peer.
... of data for a mediastreamtrack on an rtcpeerconnectiongetsenders()the rtcpeerconnection method getsenders() returns an array of rtcrtpsender objects, each of which represents the rtp sender responsible for transmitting one track's data.getstats()the rtcpeerconnection method getstats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified mediastreamtrack.getstreambyid() the rtcpeerconnection.getstreambyid() method returns the mediastream with the given id that is associated with local or remote end of the connection.
...And 4 more matches
Movement, orientation, and motion: A WebXR example - Web APIs
handling the startup and shutdown ui then we call the setupxrbutton() function, which handles configuring the "enter/exit webxr" button to enable or disable it as necessary depending on the availability of webxr support for the session type specified in the session_type constant.
...the origin of the new space is located at the world coordinates specified by the viewerstartposition and its orientation set to cubeorientation.
...its job is to obtain the viewer's reference space, compute how much movement needs to be applied to any animated objects given the amount of time that's elapsed since the last frame, and then to render each of the views specified by the viewer's xrpose.
...And 4 more matches
Shorthand properties - CSS: Cascading Style Sheets
tricky edge cases even if they are very convenient to use, there are a few edge cases to keep in mind when using them: a value which is not specified is set to its initial value.
...can be simplified as: border: 1px solid #000; margin and padding properties shorthand versions of margin and padding values work similarly; the margin property allows for shorthand values to be specified using one, two, three, or four values.
... margin: 10px 5px 10px 5px; margin shorthand rules for one, two, three and four value declarations are: when one value is specified, it applies the same margin to all four sides.
...And 4 more matches
animation-timing-function - CSS: Cascading Style Sheets
none); animation-timing-function: steps(5, jump-both); animation-timing-function: steps(6, start); animation-timing-function: steps(8, end); /* multiple animations */ animation-timing-function: ease, step-start, cubic-bezier(0.1, 0.7, 1.0, 0.1); /* global values */ animation-timing-function: inherit; animation-timing-function: initial; animation-timing-function: unset; timing functions may be specified on individual keyframes in a @keyframes rule.
... if no animation-timing-function is specified on a keyframe, the corresponding value of animation-timing-function from the element to which the animation is applied is used for that keyframe.
... a keyframe's timing function is applied on a property-by-property basis from the keyframe on which it is specified until the next keyframe specifying that property, or until the end of the animation if there is no subsequent keyframe specifying that property.
...And 4 more matches
border-image-slice - CSS: Cascading Style Sheets
the border-image-slice css property divides the image specified by border-image-source into regions.
...* vertical | horizontal */ border-image-slice: 10% 30%; /* top | horizontal | bottom */ border-image-slice: 30 30% 45; /* top | right | bottom | left */ border-image-slice: 7 12 14 5; /* using the `fill` keyword */ border-image-slice: 10% fill 7 12; /* global values */ border-image-slice: inherit; border-image-slice: initial; border-image-slice: unset; the border-image-slice property may be specified using one to four <number-percentage> values to represent the position of each image slice.
... when one position is specified, it creates all four slices at the same distance from their respective sides.
...And 4 more matches
border-image - CSS: Cascading Style Sheets
syntax /* source | slice */ border-image: linear-gradient(red, blue) 27; /* source | slice | repeat */ border-image: url("/images/border.png") 27 space; /* source | slice | width */ border-image: linear-gradient(red, blue) 27 / 35px; /* source | slice | width | outset | repeat */ border-image: url("/images/border.png") 27 23 / 50px 30px / 1rem round space; the border-image property may be specified with anywhere from one to five of the values listed below.
...up to four values may be specified.
...up to four values may be specified.
...And 4 more matches
box-shadow - CSS: Cascading Style Sheets
if a border-radius is specified on the element with a box shadow, the box shadow takes on the same rounded corners.
... the z-ordering of multiple box shadows is the same as multiple text shadows (the first specified shadow is on top).
... values inset if not specified (default), the shadow is assumed to be a drop shadow (as if the box were raised above the content).
...And 4 more matches
position - CSS: Cascading Style Sheets
WebCSSposition
syntax the position property is specified as a single keyword chosen from the list of values below.
...it's treated as relatively positioned until its containing block crosses a specified threshold (such as setting top to value other than auto) within its flow root (or the container it scrolls within), at which point it is treated as "stuck" until meeting the opposite edge of its containing block.
...however, non-replaced, absolutely positioned elements can be made to fill the available vertical space by specifying both top and bottom and leaving height unspecified (that is, auto).
...And 4 more matches
<button>: The Button element - HTML: Hypertext Markup Language
WebHTMLElementbutton
text/plain: specified as a debugging aid; shouldn’t be used for real form submission.
... if this attribute is specified, it overrides the enctype attribute of the button's form owner.
... if specified, this attribute overrides the method attribute of the button's form owner.
...And 4 more matches
<img>: The Image Embed element - HTML: Hypertext Markup Language
WebHTMLElementimg
the image's metadata is corrupted in such a way that it's impossible to retrieve its dimensions, and no dimensions were specified in the <img> element's attributes.
... if the crossorigin attribute is not specified, then a non-cors request is sent (without the origin request header), and the browser marks the image as tainted and restricts access to its image data, preventing its usage in <canvas> elements.
... if the crossorigin attribute is specified, then a cors request is sent (with the origin request header); but if the server does not opt into allowing cross-origin access to the image data by the origin site (by not sending any access-control-allow-origin response header, or by not including the site's origin in any access-control-allow-origin response header it does send), then the browser marks the image as tainted and restricts access to its image data, preventing its usage in <canvas> elements.
...And 4 more matches
<input type="month"> - HTML: Hypertext Markup Language
WebHTMLElementinputmonth
this value must specify a year-month pairing later than or equal to the one specified by the min attribute.
...if a value is specified for min that isn't a valid year and month string, the input has no minimum value.
... this value must be a year-month pairing which is earlier than or equal to the one specified by the max attribute.
...And 4 more matches
Loops and iteration - JavaScript
the statements for loops provided in javascript are: for statement do...while statement while statement labeled statement break statement continue statement for...in statement for...of statement for statement a for loop repeats until a specified condition evaluates to false.
... = 0; i < selectobject.options.length; i++) { if (selectobject.options[i].selected) { numberselected++; } } return numberselected; } let btn = document.getelementbyid('btn'); btn.addeventlistener('click', function() { alert('number of options selected: ' + howmany(document.selectform.musictypes)); }); </script> do...while statement the do...while statement repeats until a specified condition evaluates to false.
... let i = 0; do { i += 1; console.log(i); } while (i < 5); while statement a while statement executes its statements as long as a specified condition evaluates to true.
...And 4 more matches
Object - JavaScript
object.create() creates a new object with the specified prototype object and properties.
... object.getprototypeof() returns the prototype (internal [[prototype]] property) of the specified object.
... object.prototype.__lookupgetter__() returns the function associated with the specified property by the __definegetter__() method.
...And 4 more matches
Introduction to using XPath in JavaScript - XPath
they are explained below in the section "specifying the return type." result: if an existing xpathresult object is specified, it will be reused to return the results.
... return value returns xpathresult, which is an xpathresult object of the type specified in the resulttype parameter.
... simple types when the desired result type in resulttype is specified as either: number_type - a double string_type - a string boolean_type - a boolean we obtain the returned value of the expression by accessing the following properties respectively of the xpathresult object.
...And 4 more matches
Running Tamarin performance tests - Archive of obsolete content
other tests may be specified by selecting ./runtests.py -c [misc,scimark,jsbench].
...if more than 2 repetitions are specified the 95% percentile confidence rating is calculated.
...502, use this if cannot be calculated from executable --vm2version specify version of avm2 --vmargs2 args to pass to avm2, if not specified --vmargs will be used --nooptimize do not optimize files when compiling --perfm parse the perfm results from avm --csv= also output to csv file, filename required --csvappend append to csv file instead of overwriting --score compute and print geometric mean of scores --index= index file to use (must end with .py) --saveindex= s...
...And 3 more matches
menulist - Archive of obsolete content
crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
... contains( item ) return type: boolean returns true if the menulist contains the specified menuitem as one of its items.
... getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
...And 3 more matches
calICalendarViewController - Archive of obsolete content
urrence aoccurrence, in calidatetime anewstarttime, in calidatetime anewendtime); void deleteoccurrence (in caliitemoccurrence aoccurrence); }; methods createnewevent void createnewevent (in calicalendar acalendar, in calidatetime astarttime, in calidatetime aendtime); the createnewevent method is used for creating a new calievent in the calicalendar specified by the acalendar parameter.
...if astarttime is specified, then the calievent is meant to be created 'silently', that is, without a more detailed dialog appearing.
... the calievent should have its enddate set to aendtime, if this parameter is specified.
...And 3 more matches
Gecko Compatibility Handbook - Archive of obsolete content
(more about css) content differs in gecko browsers and internet explorer incorrect layout mode specified by doctype.
... incorrect layout mode specified by doctype.
... standards mode layout has been specified by the doctype.
...And 3 more matches
Third-party APIs - Learn web development
the api key, which has to be specified in the api-key url parameter (the value is taken from the key variable).
... the page number, which has to be specified in the page url parameter (the value is taken from the pagenumber variable).
... the search term, which has to be specified in the q url parameter (the value is taken from the value of the searchterm text <input>).
...And 3 more matches
IME handling guide
background color, foreground color (text color) and underline color can be specified with following prefs.
...awinputbackground ui.imerawinputforeground ui.imerawinputunderline ui.imeselectedrawtextbackground ui.imeselectedrawtextforeground ui.imeselectedrawtextunderline ui.imeconvertedtextbackground ui.imeconvertedtextforeground ui.imeconvertedtextunderline ui.imeselectedconvertedtextbackground ui.imeselectedconvertedtextforeground ui.imeselectedconvertedtextunderline underline style can be specified with the following prefs.
... ui.imerawinputunderlinestyle ui.imeselectedrawtextunderlinestyle ui.imeconvertedtextunderlinestyle ui.imeselectedconvertedtextunderlinestyle underline width can be specified with "ui.imeunderlinerelativesize" pref.
...And 3 more matches
XPCOMUtils.jsm
category: "some-category", // optional, defaults to the object's classdescription entry: "entry name", // optional, defaults to the object's contractid (unless // 'service' is specified) value: "...", // optional, defaults to false.
... when set to true, and only if 'value' // is not specified, the concatenation of the string "service," and the // object's contractid is passed as avalue parameter of addcategoryentry.
...] // if this is defined, the component is registered in this // category only on the specified applications.
...And 3 more matches
nss tech note1
if only an asn.1 tag is specified without a modifier, then the decoder will enforce the presence of a component of that type, and fail if it does not match.
... asn.1 tags asn.1 tags are specified in the lower byte of the kind field of the template, as noted above.
...it is specified in the upper 2 tag bits (number 6 and 7).
...And 3 more matches
sslerr.html
error_bad_cert_domain -12276 "unable to communicate securely with peer: requested domain name does not match the server's certificate." this error code should be returned by the certificate authentication callback function when it detects that the common name in the remote server's certificate does not match the hostname sought by the local client, according to the matching rules specified for cert_verifycertname.
... "ssl peer was unable to negotiate an acceptable set of security parameters." ssl_error_illegal_parameter_alert -12226 "ssl peer rejected a handshake message for unacceptable content." ssl_error_unsupported_cert_alert -12225 "ssl peer does not support certificates of the type it received." ssl_error_certificate_unknown_alert -12224 "ssl peer had some unspecified issue with the certificate it received." ssl_error_decryption_failed_alert -12197 "peer was unable to decrypt an ssl record it received." ssl_error_record_overflow_alert -12196 "peer received an ssl record that was longer than is permitted." ssl_error_unknown_ca_alert -12195 "peer does not recognize and trust the ca that issued your certificate." ...
...rtificate from the supplied url." ssl_error_unrecognized_name_alert -12182 "ssl peer has no certificate for the requested dns name." ssl_error_bad_cert_status_response_alert -12181 "ssl peer was unable to get an ocsp response for its certificate." ssl_error_bad_cert_hash_value_alert -12180 "ssl peer reported bad certificate hash value." unspecified errors that occurred while attempting some operation: all the error codes in the following block describe the operation that was being attempted at the time of the unspecified failure.
...And 3 more matches
JS_SetPropertyAttributes
set the attributes for a specified property.
...flag indicating whether or not the specified property was located.
... description js_setpropertyattributes sets the attributes for a specified property, name of an object obj.
...And 3 more matches
IAccessibleEditableText
the substrings used with this interface are specified as follows: if startoffset is less than endoffset, the substring starts with the character at startoffset and ends with the character just before endoffset.
...the specified text between the two given indices is copied into the system clipboard.
...inserttext() inserts text at the specified position.
...And 3 more matches
nsIApplicationCacheService
n acstring key); nsiapplicationcache createapplicationcache(in acstring group); void deactivategroup(in acstring group); nsiapplicationcache getactivecache(in acstring group); nsiapplicationcache getapplicationcache(in acstring clientid); void getgroups([optional] out unsigned long count, [array, size_is(count), retval] out string groupids); methods cacheopportunistically() flags the specified key as one that should be cached opportunistically.
... chooseapplicationcache() tries to find the best application cache to serve a specified resource.
...createapplicationcache() creates a new, empty application cache for the specified cache group.
...And 3 more matches
nsICommandLine
return value the value of the specified argument.
...exceptions thrown ns_error_invalid_arg the specified index is out of bounds.
... handleflag() finds the specified flag, removing it from the array of flags.
...And 3 more matches
nsIController
inherits from: nsisupports last changed in gecko 1.7 method overview void docommand(in string command); boolean iscommandenabled(in string command); void onevent(in string eventname); boolean supportscommand(in string command); methods docommand() when this method is called, your implementation should execute the command with the specified name.
... iscommandenabled() implement this method to indicate whether or not the specified command is enabled.
... return value return true if the specified command is currently available to be used; otherwise, it should return false.
...And 3 more matches
nsIDOMHTMLTimeRanges
methods end() returns the time offset to the end of the specified time range.
... return value the time at which the specified range ends, in seconds measured from the beginning of the timeline represented by the object.
... exceptions thrown index_size_err the specified index is not valid.
...And 3 more matches
nsINavHistoryContainerResultNode
methods findnodebydetails() returns a node matching specified details.
... return value an nsinavhistoryresultnode of a node matching the specified details or null if no match is found.
... getchild() returns the child node at the specified index.
...And 3 more matches
URLs - Plugins
« previousnext » this chapter describes retrieving urls and displaying them on specified target pages, posting data to an http server, uploading files to an ftp server, and sending mail.
... gopher (gopher protocol) locates specified items on a gopher server.
... getting urls posting urls getting urls to retrieve a url and display it on a specified target page, use the npn_geturl, npn_geturlnotify, and npp_urlnotify functions.
...And 3 more matches
AudioParam.setValueCurveAtTime() - Web APIs
syntax var paramref = param.setvaluecurveattime(values, starttime, duration); parameters values an array of floating-point numbers representing the value curve the audioparam will change through along the specified duration.
... duration a double representing the total time (in seconds) over which the parameter's value will change following the specified curve.
... the specified values are spaced equally along this duration.
...And 3 more matches
CSSPrimitiveValue - Web APIs
cssprimitivevalue.getfloatvalue() this method is used to get a float value in a specified unit.
... if this css value doesn't contain a float value or can't be converted into the specified unit, a domexception is raised.
... cssprimitivevalue.setfloatvalue() a method to set the float value with a specified unit.
...And 3 more matches
Drawing shapes with canvas - Web APIs
clearrect(x, y, width, height) clears the specified rectangular area, making it fully transparent.
... moveto(x, y) moves the pen to the coordinates specified by x and y.
... lineto(x, y) draws a line from the current drawing position to the position specified by x and y.
...And 3 more matches
CharacterData - Web APIs
nondocumenttypechildnode.nextelementsibling read only returns the element immediately following the specified one in its parent's children list, or null if the specified element is the last one in the list.
... nondocumenttypechildnode.previouselementsibling read only returns the element immediately prior to the specified one in its parent's children list, or null if the specified element is the first one in the list.
... characterdata.deletedata() removes the specified amount of characters, starting at the specified offset, from the characterdata.data string; when this method returns, data contains the shortened domstring.
...And 3 more matches
console - Web APIs
WebAPIConsole
for example: console.log("failed to open the specified link") this page documents the methods available on the console object and gives a few usage examples.
... console.dir() displays an interactive listing of the properties of a specified javascript object.
... console.dirxml() displays an xml/html element representation of the specified object if possible or the javascript object view if it is not possible.
...And 3 more matches
Document.querySelector() - Web APIs
the document method queryselector() returns the first element within the document that matches the specified selector, or group of selectors.
... return value an htmlelement object representing the first element in the document that matches the specified set of css selectors, or null is returned if there are no matches.
... if you need a list of all elements matching the specified selectors, you should use queryselectorall() instead.
...And 3 more matches
Element.msZoomTo() - Web APIs
WebAPIElementmsZoomTo
the mszoomto method scrolls and/or zooms an element to its specified coordinate with animation.
...if no value is specified, defaults to the current centerpoint of visible content, horizontally.
...if no value is specified, defaults to the current centerpoint of visible content, vertically.
...And 3 more matches
HTMLImageElement.sizes - Web APIs
each condition is specified using the same conditional format used by media queries.
...it may be specified using font-relative units (such as em or ex), absolute units (such as px or cm), or the vw unit, which lets you specify the width as a percentage of the viewport width (1vw being 1% of the viewport width).
... note: the source size value must not be specified as a percentage of the container size; that is, lengths such as 50% or 100% are not allowed, as there would be uncertainty as to what the specified value is a percentage of.
...And 3 more matches
HTMLImageElement - Web APIs
this is different from a client-side image map, specified using an <img> element and a corresponding <map> which contains <area> elements indicating the clickable areas in the image.
...the size may be specified either the width or a size multiple.
... the specified src url is the same as the url of the page the user is currently on.
...And 3 more matches
IDBObjectStore - Web APIs
idbobjectstore.delete() returns an idbrequest object, and, in a separate thread, deletes the store object selected by the specified key.
... idbobjectstore.deleteindex() destroys the specified index in the connected database, used during a version upgrade.
... idbobjectstore.get() returns an idbrequest object, and, in a separate thread, returns the store object store selected by the specified key.
...And 3 more matches
MediaDevices.getDisplayMedia() - Web APIs
overconstrainederror after creating the stream, applying the specified constraints fails because no compatible stream could be generated.
... typeerror the specified constraints include constraints which are not permitted when calling getdisplaymedia().
... the specified constraints can't be used to limit the options available to the user.
...And 3 more matches
MediaRecorder() - Web APIs
the mediarecorder() constructor creates a new mediarecorder object that will record a specified mediastream.
...this can be specified instead of the above two properties.
... if this is specified along with one or the other of the above properties, this will be used for the one that isn't specified.
...And 3 more matches
Capabilities, constraints, and settings - Web APIs
how constraints are defined a single constraint is an object whose name matches the constrainable property whose desired value or range of values is being specified.
...the user agent attempts to satisfy constraints in the order specified in the constraint set.
...if you provide an ideal value, the browser will try to get as close as possible to matching that value, given the other constraints specified.
...And 3 more matches
Performance Timeline - Web APIs
performance extensions the performance timeline api extends the performance interface with three methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified filter criteria.
... the methods are: getentries() returns all recorded performance entries or, optionally, the entries based on the specified name, performance type and/or the initiatortype (such as an html element).
... getentriesbyname() returns the recorded performance entries based on the specified name and optionally the performance type.
...And 3 more matches
ValidityState - Web APIs
properties for each of these boolean properties, a value of true indicates that the specified reason validation may have failed is true, with the exception of the valid property, which is true if the element's value obeys all constraints.
... patternmismatch read only a boolean that is true if the value does not match the specified pattern, and false if it does match.
... rangeoverflow read only a boolean that is true if the value is greater than the maximum specified by the max attribute, or false if it is less than or equal to the maximum.
...And 3 more matches
WindowOrWorkerGlobalScope.setInterval() - Web APIs
delayoptional the time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function or code.
... arg1, ..., argn optional additional arguments which are passed through to the function specified by func once the timer expires.
...this effectively limits delay to 2147483647 ms, since it's specified as a signed integer in the idl.
...And 3 more matches
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
the settimeout() method of the windoworworkerglobalscope mixin (and successor to window.settimeout()) sets a timer which executes a function or specified piece of code once the timer expires.
... delay optional the time, in milliseconds (thousandths of a second), the timer should wait before the specified function or code is executed.
...note that in either case, the actual delay may be longer than intended; see reasons for delays longer than specified below.
...And 3 more matches
XRWebGLLayer() - Web APIs
context a webglrenderingcontext or webgl2renderingcontext identifying the webgl drawing context to use for rendering the scene for the specified webxr session.
... return value a newly-created xrwebgllayer which links the specified xrsession to the webgl context given by context, which will be used as the renderer for the session.
... any options specified in layerinit are used to tailor the rendering system's configuration.
...And 3 more matches
speak-as - CSS: Cascading Style Sheets
syntax /* keyword values */ speak-as: auto; speak-as: bullets; speak-as: numbers; speak-as: words; speak-as: spell-out; /* @counter-style name value */ speak-as: <counter-style-name>; values auto if the value of speak-as is specified as auto, then the effective value of speak-as will be determined based on the value of the system descriptor: if the value of system is alphabetic, the effective value of speak-as will be spell-out.
... if system is extends, the value of speak-as will be the same as if speak-as: auto is specified on the extended style.
... <counter-style-name> the name of another counter style, specified as a <custom-ident>.
...And 3 more matches
border-image-outset - CSS: Cascading Style Sheets
; /* <number> value */ border-image-outset: 1.5; /* vertical | horizontal */ border-image-outset: 1 1.2; /* top | horizontal | bottom */ border-image-outset: 30px 2 45px; /* top | right | bottom | left */ border-image-outset: 7px 12px 14px 5px; /* global values */ border-image-outset: inherit; border-image-outset: initial; border-image-outset: unset; the border-image-outset property may be specified as one, two, three, or four values.
... if one value is specified, it applies to all four sides.
... if two values are specified, the first applies to the top and bottom and the second to the left and right.
...And 3 more matches
clip-path - CSS: Cascading Style Sheets
WebCSSclip-path
clip-path: circle(50px at 0 100px); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); clip-path: path('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'); /* box and shape values combined */ clip-path: padding-box circle(50px at 0 100px); /* global values */ clip-path: inherit; clip-path: initial; clip-path: unset; the clip-path property is specified as one or a combination of the values listed below.
...if no geometry box is specified, the border-box will be used as the reference box.
... <geometry-box> if specified in combination with a <basic-shape>, this value defines the reference box for the basic shape.
...And 3 more matches
font-size-adjust - CSS: Cascading Style Sheets
/* use the specified font size */ font-size-adjust: none; /* use a font size that makes lowercase letters half the specified font size */ font-size-adjust: 0.5; /* global values */ font-size-adjust: inherit; font-size-adjust: initial; font-size-adjust: unset; the property is useful since the legibility of fonts, especially at small sizes, is determined more by the size of lowercase letters than by the size of capital letters.
... to use this property in a way that is compatible with browsers that do not support font-size-adjust, it is specified as a number that the font-size property is multiplied by.
... this means the value specified for the property should generally be the aspect ratio of the first choice font.
...And 3 more matches
font-style - CSS: Cascading Style Sheets
when the specified style is not available, both italic and oblique faces are simulated by artificially sloping the glyphs of the regular face (use font-synthesis to control this behavior).
... syntax font-style: normal; font-style: italic; font-style: oblique; font-style: oblique 10deg; /* global values */ font-style: inherit; font-style: initial; font-style: unset; the font-style property is specified as a single keyword chosen from the list of values below, which can optionally include an angle if the keyword is oblique.
...if one or more oblique faces are available in the chosen font family, the one that most closely matches the specified angle is chosen.
...And 3 more matches
font - CSS: Cascading Style Sheets
WebCSSfont
as with any shorthand property, any individual value that is not specified is set to its corresponding initial value (possibly overriding values previously set using non-shorthand properties).
... constituent properties this property is a shorthand for the following css properties: font-family font-size font-stretch font-style font-variant font-weight line-height syntax the font property may be specified as either a single keyword, which will select a system font, or as a shorthand for various font-related properties.
... if font is specified as a system keyword, it must be one of: caption, icon, menu, message-box, small-caption, status-bar.
...And 3 more matches
margin - CSS: Cascading Style Sheets
WebCSSmargin
syntax /* apply to all four sides */ margin: 1em; margin: -3px; /* vertical | horizontal */ margin: 5% auto; /* top | horizontal | bottom */ margin: 1em auto 2em; /* top | right | bottom | left */ margin: 2px 1em 0 auto; /* global values */ margin: inherit; margin: initial; margin: unset; the margin property may be specified using one, two, three, or four values.
... when one value is specified, it applies the same margin to all four sides.
... when two values are specified, the first margin applies to the top and bottom, the second to the left and right.
...And 3 more matches
mask-border-outset - CSS: Cascading Style Sheets
et: 1rem; /* <number> value */ mask-border-outset: 1.5; /* vertical | horizontal */ mask-border-outset: 1 1.2; /* top | horizontal | bottom */ mask-border-outset: 30px 2 45px; /* top | right | bottom | left */ mask-border-outset: 7px 12px 14px 5px; /* global values */ mask-border-outset: inherit; mask-border-outset: initial; mask-border-outset: unset; the mask-border-outset property may be specified as one, two, three, or four values.
... when one value is specified, it applies the same outset to all four sides.
... when two values are specified, the first outset applies to the top and bottom, the second to the left and right.
...And 3 more matches
mask-border-slice - CSS: Cascading Style Sheets
30%; /* vertical | horizontal */ mask-border-slice: 10% 30%; /* top | horizontal | bottom */ mask-border-slice: 30 30% 45; /* top | right | bottom | left */ mask-border-slice: 7 12 14 5; /* using the `fill` keyword */ mask-border-slice: 10% fill 7 12; /* global values */ mask-border-slice: inherit; mask-border-slice: initial; mask-border-slice: unset; the mask-border-slice property may be specified using one to four <number-percentage> values to represent the position of each image slice.
... when one position is specified, it creates all four slices at the same distance from their respective sides.
... when two positions are specified, the first value creates slices measured from the top and bottom, the second creates slices measured from the left and right.
...And 3 more matches
padding - CSS: Cascading Style Sheets
WebCSSpadding
lowing css properties: padding-bottom padding-left padding-right padding-top syntax /* apply to all four sides */ padding: 1em; /* vertical | horizontal */ padding: 5% 10%; /* top | horizontal | bottom */ padding: 1em 2em 2em; /* top | right | bottom | left */ padding: 5px 1em 0 2em; /* global values */ padding: inherit; padding: initial; padding: unset; the padding property may be specified using one, two, three, or four values.
... when one value is specified, it applies the same padding to all four sides.
... when two values are specified, the first padding applies to the top and bottom, the second to the left and right.
...And 3 more matches
text-shadow - CSS: Cascading Style Sheets
color | offset-x | offset-y | blur-radius */ text-shadow: #fc0 1px 0 10px; /* offset-x | offset-y | color */ text-shadow: 5px 5px #558abb; /* color | offset-x | offset-y */ text-shadow: white 2px 5px; /* offset-x | offset-y /* use defaults for color and blur-radius */ text-shadow: 5px 10px; /* global values */ text-shadow: inherit; text-shadow: initial; text-shadow: unset; this property is specified as a comma-separated list of shadows.
... each shadow is specified as two or three <length> values, followed optionally by a <color> value.
... when more than one shadow is given, shadows are applied front-to-back, with the first-specified shadow on top.
...And 3 more matches
<input type="time"> - HTML: Hypertext Markup Language
WebHTMLElementinputtime
max a string indicating the latest time to accept, specified in the same time value format as described above.
... if the specified string isn't a valid time, no maximum value is set.
...if the value specified isn't a valid time string, no minimum value is set.
...And 3 more matches
Expressions and operators - JavaScript
bitwise shift operators operator description example left shift (<<) this operator shifts the first operand the specified number of bits to the left.
... sign-propagating right shift (>>) this operator shifts the first operand the specified number of bits to the right.
... zero-fill right shift (>>>) this operator shifts the first operand the specified number of bits to the right.
...And 3 more matches
Grammar and types - JavaScript
evaluating variables a variable declared using the var or let statement with no assigned value specified has the value of undefined.
...when you create an array using an array literal, it is initialized with the specified values as its elements, and its length is set to the number of arguments specified.
...if you put two commas in a row, the array fills in the value undefined for the unspecified elements.
...And 3 more matches
StringView - Archive of obsolete content
if not specified (or specified as null) it will default to utf-8.
... startoffset optional a number expressing: the start offset of the new stringview in bytes if the input argument is an arraybuffer the start offset of the new stringview in raw elements if the input argument is a typed array or other ordered object the start offset of the new stringview in codepoints if the input argument is a stringview or a string if not specified (or specified as null) it will default to 0.
...if not specified it will take the length of the input.
...And 2 more matches
Enhanced Extension Installation - Archive of obsolete content
if the item is not compatible, the extension system asks the appropriate update service (either the one specified by the item, or the default one) if there is remote compatibility information that supercedes the compatibility information held by the item.
...the finalization process then notifies the startup process that finalization has changed this manifest, and that the application must be restarted to pick up changes specified therein.
...these include: the application profile directory <profile>/extensions/ the application install directory <application>/extensions/ any location specified in a text file with a {guid} name placed in one of the above locations, useful for developing extensions at another location, e.g.
...And 2 more matches
Supporting search suggestions in search plugins - Archive of obsolete content
firefox supports search suggestions in opensearch plugins; as the user types in the search bar, firefox queries the url specified by the search plugin to fetch live search suggestions.
... when the browser wants to fetch possible matches for a search term, it then sends an http get request to the url specified by the <url> element.
... descriptions are not supported in firefox, and are ignored if any are specified.
...And 2 more matches
Using cross commit - Archive of obsolete content
details cross-commit accepts the following options: all cvs options (those to the left of the specific cvs command) and cvs commit options (those to the right of a commit command), although the -r and -f cvs options need to be specified as --cvs-r and --cvs-f to avoid conflict with the similarly named (but different in meaning) cvs commit options.
... --trunk makes cross-commit land the patch on head in addition to any other branches specified.
... --moz18 makes cross-commit land the patch on mozilla_1_8_branch in addition to any other branches specified.
...And 2 more matches
Return Codes - Archive of obsolete content
no_such_component -213 the specified component is not present in the client version registry.
... does_not_exist -214 the specified file cannot be deleted because it does not exist.
... read_only -215 the specified file cannot be deleted because its permissions are set to read only.
...And 2 more matches
Complete - Archive of obsolete content
these version checks depend on the version numbers specified in the install.rdf file.
...use: content/allcustom/allcustom.xul this file is specified in chrome.manifest, which only firefox etc.
...seamonkey uses: content/allcustom/seamonkey/allcustom.xul this file is specified in content/allcustom/contents.rdf, which only seamonkey uses.
...And 2 more matches
Numeric Controls - Archive of obsolete content
as with other textboxes, the default value can be specified with the value attribute.
...however, the minimum and maximum values can also be specified using the min and max attributes.
...<textbox type="number" min="1" max="20"/> as the default value isn't specified, it will default to 1, the minimum value.
...And 2 more matches
XUL element attributes - Archive of obsolete content
multiple classes may be specified by separating them with spaces.
... for rdf templates, the specified datasources are combined into a single composite datasource which holds the data from all of the datasources.
... never all of the children are displayed at the size required by the content or as specified by the width and height attributes or the css width and height properties.
...And 2 more matches
menu - Archive of obsolete content
ArchiveMozillaXULmenu
crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
... getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
... getitematindex( index ) return type: element returns the element that is at the specified index.
...And 2 more matches
NPClass - Archive of obsolete content
hasmethod called by npn_hasmethod() to determine whether or not a specified method exists on a given npobject.
...returns true if the specified property exists, otherwise returns false.
... getproperty called by npn_getproperty() to get the value of the specified property on a given npobject.
...And 2 more matches
Other form controls - Learn web development
multi-line text fields a multi-line text field is specified using a <textarea> element, rather than using the <input> element.
...the default value if none is specified is 20.
...the default value if none is specified is 2.
...And 2 more matches
CSS basics - Learn web development
here are some of the more common types of selectors: selector name what does it select example element selector (sometimes called a tag or type selector) all html elements of the specified type.
... p selects <p> id selector the element on the page with the specified id.
... #my-id selects <p id="my-id"> or <a id="my-id"> class selector the element(s) on the page with the specified class.
...And 2 more matches
Drawing graphics - Learn web development
this is accomplished using the arc() method, which draws all or part of a circle at a specified point.
... let's try adding another arc: ctx.fillstyle = 'yellow'; ctx.beginpath(); ctx.arc(200, 106, 50, degtorad(-45), degtorad(45), true); ctx.lineto(200, 106); ctx.fill(); the pattern here is very similar, but with two differences: we have set the last parameter of arc() to true, meaning that the arc is drawn counterclockwise, which means that even though the arc is specified as starting at -45 degrees and ending at 45 degrees, we draw the arc around the 270 degrees not inside this portion.
...in this case, we have specified the same dimensions as the original slice, but you could resize it by specifying different values.
...And 2 more matches
Dict.jsm
get() returns the value corresponding to the specified key.
... adefault optional the value to return if the specified key isn't found.
... return value the value of the specified key, or undefined if no matching key was found.
...And 2 more matches
Mozilla Quirks Mode Behavior
in quirks mode, the font element changes the color of text decorations specified on ancestor elements.
... tables td, th, tr, thead, tbody, and tfoot elements have the document background (and color?) applied to them (when the document background is specified in certain ways?) (see also bug 70831).
...i don't follow the code in nscssrenderingborders well enough to tell, though.] in quirks mode a fixed width specified on a table cell resets the nowrap attribute.
...And 2 more matches
Monitors
pr_entermonitor enters the lock associated with a specified monitor.
... pr_exitmonitor decrements the entry count associated with a specified monitor.
... pr_wait waits for a notify on a specified monitor's condition variable.
...And 2 more matches
PR_GetIdentitiesLayer
finds the layer with the specified identity in the specified stack of layers.
... id the identity of the specified layer.
... returns the function returns one of the following values: if successful, a pointer to a file descriptor of the layer with the specified identity in the given stack of layers.
...And 2 more matches
sslintro.html
retrieves the socket options currently set for a specified socket.
...sets the socket options for a specified socket., including making it blocking or nonblocking.
...sets a single configuration parameter of a specified socket.
...And 2 more matches
JSClass.flags
the slots initially contain unspecified valid jsval values.
... if this class has a finalizer that makes use of state shared with the main thread then this option must be specified.
... one of jsclass_foreground_finalize and jsclass_background_finalize must be specified.
...And 2 more matches
JS_CallFunction
calls a specified js function.
... obj js::handleobject the "current" object on which the function operates; the object specified here is "this" when the function executes.
... description js_callfunction calls a specified function, fun, on an object, obj.
...And 2 more matches
JS_DeleteProperty2
removes a specified property from an object.
... description js_deleteproperty2 removes a specified property, name, from an object, obj, and stores true or false in *succeeded.
...then one of the following cases applies: if obj has no property with the given name or id, or if obj inherits the specified property from its prototype, then *succeeded is set to true and obj's jsclass.delproperty hook is called (which may change *succeeded).
...And 2 more matches
JS_NewArrayObject
obsolete since jsapi 30 description js_newarrayobject with contents parameter creates a new array object with the specified contents elements.
... js_newarrayobject with length parameter creates a new array object with the specified length; the result is like the javascript expression new array(length).
... the new array has the specified length, but it doesn't have any elements.
...And 2 more matches
JS_ValueToECMAInt32
convert a javascript value to an integer type as specified by the ecmascript standard.
... description js_valuetoecmaint32, js_valuetoecmauint32, and js_valuetouint16 convert a javascript value to various integer types as specified in the ecmascript specification.
... js_valuetoecmaint32 implements the toint32 operator specified in ecma 262-3 9.5.
...And 2 more matches
TPS Bookmark Lists
each key is the full path for the array of contents specified in the key's value.
...is separator would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below this separator) example: { separator: true } bookmark lists and phase actions following are the functions you can use in phase actions related to bookmarks: bookmarks.add - the bookmark items in the list are added to the end of their parent folder in the specified order.
...after and before properties, if specified, are also used to verify an item's position.
...And 2 more matches
Mork
MozillaTechMork
in a few cases, constructs that the parser supported but were never used in mozilla's code are left unspecified.
...the table id is specified using the mid at the beginning of the table.
...if the scope is not specified, then it is the default scope of the table (if it has one) or 'r' otherwise.
...And 2 more matches
Places Developer Guide
var history = cc["@mozilla.org/browser/nav-history-service;1"] .getservice(ci.nsinavhistoryservice); var query = history.getnewquery(); query.setfolders([myfolderid], 1); var result = history.executequery(query, history.getnewqueryoptions()); // the root property of a query result is an object representing the folder you specified above.
...rks.unfiledbookmarksfolder]; query.setfolders(folders, folders.length); // specify terms to search for, matches against title, url and tags query.searchterms = "firefox"; var options = history.getnewqueryoptions(); options.querytype = options.query_type_bookmarks; var result = history.executequery(query, options); // the root property of a query result is an object representing the folder you specified above.
...importing: importhtmlfromfile (nsilocalfile afile, boolean aisinitialimport) - this imports all the bookmarks in the specified file into the current bookmarks collection.
...And 2 more matches
mozIStorageService
ile, in astring abackupfilename, [optional] in nsifile abackupparentdirectory); mozistorageconnection opendatabase(in nsifile adatabasefile); mozistorageconnection openspecialdatabase(in string astoragekey); mozistorageconnection openunshareddatabase(in nsifile adatabasefile); methods backupdatabasefile() this method makes a backup of the specified file.
...if this is not specified, the backup is placed in the same directory as the original file.
...opendatabase() opens a database connection to the specified file.
...And 2 more matches
nsIBrowserSearchService
this value may be overridden by an icon specified in the engine description file.
... getenginebyalias() returns an engine with the specified alias.
... return value an nsisearchengine getenginebyname() returns an engine with the specified name.
...And 2 more matches
nsIChromeRegistry
this is useful because chrome urls are allowed to be specified in "shorthand", leaving the "file" portion off.
...this is useful because chrome urls are allowed to be specified in "shorthand", leaving the "file" portion off.
... return value a new nsiuri object containing the loadable uri for the specified chrome url.
...And 2 more matches
nsINavBookmarksService
constants constant value description default_index -1 this is the default index; this value should be used for apis that allow passing in an index where the index is not known or is not required to be specified, such as when appending an item to a folder.
... getidforitemat() returns the item id for the item at the specified index within a particular folder.
... aindex the index of the item within the folder specified by aparentid for the item whose id is to be returned.
...And 2 more matches
nsINavHistoryObserver
the specified page and all its visits are about to be deleted.
...ondeleteuri() the specified page and all its visits has been deleted.
...onpagechanged() some attribute on the specified page has changed.
...And 2 more matches
nsINavHistoryQuery
if annotationisnot is true, we test for the non-existance of the specified annotation.
...duplicate tags may be specified, but when reading the list, only unique tags are returned.
... tagsarenot boolean if true, the results include only items that are not tagged with the specified tags.
...And 2 more matches
nsITreeSelection
isselected() indicates whether or not the row at the specified index is part of the selection.
... return value rangedselect() select the range specified by the indices.
...if false, everything is cleared except for the specified range.
...And 2 more matches
nsIXULTemplateQueryProcessor
the reference variable may be specified in a template by setting the "container" attribute on the <template> element to the variable to use.
... the member variable may be specified in a similar way using the "member" attribute, or it may be specified in the first <action> body in the template as the value of a uri attribute on an element.
...if unspecified, the default value of the reference variable is ?uri.
...And 2 more matches
Mail composition back end
several (but not all) of these interfaces are specified in idl.
...the mode of delivery can also be specified for the "send later", "drafts" and "templates" operations.
... const struct nsmsgattachedfile *preloaded_attachments, - attachments that are already locally stored on disk (note: both attachments and preloaded_attachments cannot be specified on a single call void *relatedpart /* nsmsgsendpart */, - a related part for multipart related operations nsimsgsendlistener **alistenerarray) = 0; - an array of listeners for the send operation.
...And 2 more matches
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.
... creating initialized cdata objects similarly, you can initialize cdata objects with specific values at the type of creation by specifying them as a parameter when calling the ctype's constructor, like this: var mycdataobj = new type(value); var mycdataobj = type(value); if the size of the specified type isn't undefined, the specified value is converted to the given type.
... if type is an array type of unspecified length, the following steps are taken: if the value is a size value, a new array of that length is created, with its cells ready to accept values of the same type as those in the specified array.
...And 2 more matches
ArrayType
if you don't specify this parameter, the array's length is unspecified.
... length number the number of elements in the array, or undefined if the array type doesn't have a specified length.
... note: this is never ctypes.void_t or an array type with an unspecified length.
...And 2 more matches
ctypes
methods cast() casts the specified cdata object to a new type, returning a new cdata object representing the value in the new type.
... return value a new cdata object representing the same data, but with the specified type.
... open() opens a library, specified by a pathname.
...And 2 more matches
Browser Side Plug-in API - Plugins
npn_geturl asks the browser to create a stream for the specified url.
... npn_geturlnotify requests creation of a new stream with the contents of the specified url; gets notification of the result.
... npn_invalidaterect invalidates specified drawing area prior to repainting or refreshing a windowless plug-in.
...And 2 more matches
Gecko Plugin API Reference - Plugins
npn_geturl asks the browser to create a stream for the specified url.
... npn_geturlnotify requests creation of a new stream with the contents of the specified url; gets notification of the result.
... npn_invalidaterect invalidates specified drawing area prior to repainting or refreshing a windowless plug-in.
...And 2 more matches
AudioScheduledSourceNode.stop() - Web APIs
the stop() method on audioscheduledsourcenode schedules a sound to cease playback at the specified time.
... if no time is specified, then the sound stops playing immediately.
... each time you call stop() on the same node, the specified time replaces any previously-scheduled stop time that hasn't occurred yet.
...And 2 more matches
AudioScheduledSourceNode - Web APIs
the audioscheduledsourcenode interface—part of the web audio api—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times.
... methods inherits methods from its parent interface, audionode, and adds the following methods: start() schedules the node to begin playing the constant sound at the specified time.
... if no time is specified, the node begins playing immediately.
...And 2 more matches
CanvasRenderingContext2D.arcTo() - Web APIs
the arc is automatically connected to the path's latest point with a straight line, if necessary for the specified parameters.
... note: be aware that you may get unexpected results when using a relatively large radius: the arc's connecting line will go in whatever direction it must to meet the specified radius.
... html <canvas id="canvas"></canvas> javascript the arc begins at the point specified by moveto(): (230, 20).
...And 2 more matches
DataTransfer - Web APIs
if the type is empty or not specified, the data associated with all types is removed.
... if data for the specified type does not exist, or the data transfer contains no data, this method will have no effect.
... deprecated methods datatransfer.mozcleardataat() removes the data associated with the given format for an item at the specified index.
...And 2 more matches
Document.querySelectorAll() - Web APIs
the document method queryselectorall() returns a static (not live) nodelist representing a list of the document's elements that match the specified group of selectors.
...multiple selectors may be specified by separating them using commas.
... return value a non-live nodelist containing one element object for each element that matches at least one of the specified selectors or an empty nodelist in case of no matches.
...And 2 more matches
DocumentOrShadowRoot.elementFromPoint() - Web APIs
the elementfrompoint() method—available on both the document and shadowroot objects—returns the topmost element at the specified coordinates (relative to the viewport).
... if the element at the specified point belongs to another document (for example, the document of an <iframe>), that document's parent element is returned (the <iframe> itself).
... if the specified point is outside the visible bounds of the document or either coordinate is negative, the result is null.
...And 2 more matches
Element.getAttributeNS() - Web APIs
the getattributens() method of the element interface returns the string value of the attribute with the specified namespace and name.
... syntax attrval = element.getattributens(namespace, name) parameters namespace the namespace in which to look for the specified attribute.
... return value the string value of the specified attribute.
...And 2 more matches
Element.querySelector() - Web APIs
the queryselector() method of the element interface returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.
... return value the first descendant element of baseelement which matches the specified group of selectors.
... exceptions syntaxerror the specified selectors are invalid.
...And 2 more matches
Element.querySelectorAll() - Web APIs
the element method queryselectorall() returns a static (not live) nodelist representing a list of elements matching the specified group of selectors which are descendants of the element on which the method was called.
...multiple selectors may be specified by separating them using commas.
... return value a non-live nodelist containing one element object for each descendant node that matches at least one of the specified selectors.
...And 2 more matches
Element.setAttribute() - Web APIs
sets the value of an attribute on the specified element.
... if the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.
...any non-string value specified is converted automatically into a string.
...And 2 more matches
FileReader - Web APIs
filereader.readasarraybuffer() starts reading the contents of the specified blob, once finished, the result attribute contains an arraybuffer representing the file's data.
... filereader.readasbinarystring() starts reading the contents of the specified blob, once finished, the result attribute contains the raw binary data from the file as a string.
... filereader.readasdataurl() starts reading the contents of the specified blob, once finished, the result attribute contains a data: url representing the file's data.
...And 2 more matches
FileSystemDirectoryEntry.getDirectory() - Web APIs
errors if an error occurs and an errorcallback was specified, it gets called with a single parameter: a fileerror object describing the error.
... the fileerror.code specifies what type of error occurred, as follows: fileerror.not_found_err the create option was not specified (or was specified as false), and the directory doesn't exist.
... fileerror.type_mismatch_err the path specified is not a directory; it's probably a file, but might be an unsupported file descriptor such as a pipe; this depends on the user agent to some extent.
...And 2 more matches
FileSystemDirectoryEntry.getFile() - Web APIs
errors if an error occurs and an errorcallback was specified, it gets called with a single parameter: a fileerror object describing the error.
... the {domxref("fileerror.code")}} specifies what type of error occurred, as follows: fileerror.not_found_err the create option was not specified (or was specified as false), and the file doesn't exist.
... fileerror.type_mismatch_err the path specified is not a file; it's probably a directory, but might be an unsupported file descriptor such as a pipe; this depends on the user agent to some extent.
...And 2 more matches
HTMLCanvasElement - Web APIs
when the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of 150 is used.
...when the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of 300 is used.
... htmlcanvaselement.todataurl() returns a data-url containing a representation of the image in the format specified by the type parameter (defaults to png).
...And 2 more matches
Using IndexedDB - Web APIs
this transaction is opened by calling the idbfactory.open method with a version specified.
...by default, where no mode is specified, transactions open in readonly mode.
...transactions only let you have an object store that you specified when creating the transaction.
...And 2 more matches
IntersectionObserver.IntersectionObserver() - Web APIs
the rootmargin, if specified, is checked to ensure it's syntactically correct, the thresholds are checked to ensure that they're all in the range 0.0 and 1.0 inclusive, and the threshold list is sorted in ascending numeric order.
...the callback receives as input two parameters: entries an array of intersectionobserverentry objects, each representing one threshold which was crossed, either becoming more or less visible than the percentage specified by that threshold.
...if options isn't specified, the observer uses the document's viewport as the root, with no margin, and a 0% threshold (meaning that even a one-pixel change is enough to trigger a callback).
...And 2 more matches
ParentNode.querySelector() - Web APIs
the parentnode mixin defines the queryselector() method as returning an element representing the first element matching the specified group of selectors which are descendants of the object on which the method was called.
...multiple selectors may be specified by separating them using commas.
... return value the first element that matches at least one of the specified selectors or null if no such element is found.
...And 2 more matches
ParentNode.querySelectorAll() - Web APIs
the parentnode mixin defines the queryselectorall() method as returning a nodelist representing a list of elements matching the specified group of selectors which are descendants of the object on which the method was called.
...multiple selectors may be specified by separating them using commas.
... return value a non-live nodelist containing one element object for each descendant node that matches at least one of the specified selectors.
...And 2 more matches
RTCPeerConnection() - Web APIs
if this property isn't specified, a set of certificates is generated automatically for each rtcpeerconnection instance.
... this configuration option cannot be changed after it is first specified; once the certificates have been set, this property is ignored in future calls to rtcpeerconnection.setconfiguration().
...if this isn't specified, the connection attempt will be made with no stun or turn server available, which limits the connection to local peers.
...And 2 more matches
Using writable streams - Web APIs
write(chunk,controller) — a method that is called repeatedly every time a new chunk is ready to be written to the underlying sink (specified in the chunk parameter).
...this also triggers the write() method specified inside the writablestream() constructor, as discussed above.
...this also triggers the close() method specified inside the writablestream() constructor, as discussed above.
...And 2 more matches
SubtleCrypto.encrypt() - Web APIs
invalid encryption algorithm, or invalid key for the specified encryption algorithm).
... rsa-oaep the rsa-oaep public-key encryption system is specified in rfc 3447.
... aes-ctr this represents aes in counter mode, as specified in nist sp800-38a.
...And 2 more matches
WebGLRenderingContext.getUniformLocation() - Web APIs
uniform[1234][fi][v]() sets the uniform's value to the specified value, which may be a single floating point or integer number, or a 2-4 component vector specified either as a list of values or as a float32array or int32array.
... uniformmatrix[234][fv]() sets the uniform's value to the specified matrix, possibly with transposition.
... syntax webgluniformlocation = webglrenderingcontext.getuniformlocation(program, name); parameters program the webglprogram in which to locate the specified uniform variable.
...And 2 more matches
XMLSerializer.serializeToString() - Web APIs
the xmlserializer method serializetostring() constructs a string representing the specified dom tree in xml form.
... return value a domstring containing the xml representation of the specified dom tree.
... exceptions typeerror the specified rootnode is not a compatible node type.
...And 2 more matches
XRRigidTransform.matrix - Web APIs
the returned matrix can then be premultiplied with a column vector to rotate the vector by the 3d rotation specified by the orientation, then translate it by the position.
... creating the matrix in this section, intended for more advanced readers, we cover how the api calculates the matrix for the specified transform.
... next, the position is placed into the right-hand column, like this, resulting in a translation matrix that will transform a coordinate system by the specified distance in each dimension, with no rotational change.
...And 2 more matches
range - CSS: Cascading Style Sheets
if a counter value is outside the specified range, then the fallback style will be used to construct the representation of that marker.
... description the value of the range descriptor can be either auto or a comma separated list of lower and upper bounds specified as integers.
... when range is specified as integers, the value infinite can be used to denote infinity.
...And 2 more matches
all - CSS: Cascading Style Sheets
WebCSSall
it can set properties to their initial or inherited values, or to the values specified in another stylesheet origin.
... syntax /* global values */ all: initial; all: inherit; all: unset; /* css cascading and inheritance level 4 */ all: revert; the all property is specified as one of the css global keyword values.
... user origin rolls back the cascade to the user-agent level, so that the specified values are calculated as if no author-level or user-level rules were specified for the element.
...And 2 more matches
border-color - CSS: Cascading Style Sheets
-color border-top-color syntax /* <color> values */ border-color: red; /* horizontal | vertical */ border-color: red #f015ca; /* top | vertical | bottom */ border-color: red rgb(240,30,50,.7) green; /* top | right | bottom | left */ border-color: red yellow green blue; /* global values */ border-color: inherit; border-color: initial; border-color: unset; the border-color property may be specified using one, two, three, or four values.
... when one value is specified, it applies the same color to all four sides.
... when two values are specified, the first color applies to the top and bottom, the second to the left and right.
...And 2 more matches
border-width - CSS: Cascading Style Sheets
medium; border-width: thick; /* <length> values */ border-width: 4px; border-width: 1.2rem; /* vertical | horizontal */ border-width: 2px 1.5em; /* top | horizontal | bottom */ border-width: 1px 2em 1.5cm; /* top | right | bottom | left */ border-width: 1px 2em 0 4rem; /* global keywords */ border-width: inherit; border-width: initial; border-width: unset; the border-width property may be specified using one, two, three, or four values.
... when one value is specified, it applies the same width to all four sides.
... when two values are specified, the first width applies to the top and bottom, the second to the left and right.
...And 2 more matches
filter - CSS: Cascading Style Sheets
WebCSSfilter
functions the filter property is specified as none or one or more of the functions listed below.
...the parameter is specified as a css length, but does not accept percentage values.
...if not specified, it will be 0 (the shadow's edge is sharp).
...And 2 more matches
grid-column-start - CSS: Cascading Style Sheets
olumn-start: somegridarea; /* <integer> + <custom-ident> values */ grid-column-start: 2; grid-column-start: somegridarea 4; /* span + <integer> + <custom-ident> values */ grid-column-start: span 3; grid-column-start: span somegridarea; grid-column-start: span somegridarea 5; /* global values */ grid-column-start: inherit; grid-column-start: initial; grid-column-start: unset; this property is specified as a single <grid-line> value.
... a <grid-line> value can be specified as: either the auto keyword or a <custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
... note: named grid areas automatically generate implicit named lines of this form, so specifying grid-column-start: foo; will choose the start edge of that named grid area (unless another line named foo-start was explicitly specified before it).
...And 2 more matches
grid-column - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: grid-column-end grid-column-start syntax this property is specified as one or two <grid-line> values.
... each <grid-line> value can be specified as: either the auto keyword or a <custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
... note: named grid areas automatically generate implicit named lines of this form, so specifying grid-column: foo; will choose the start/end edge of that named grid area (unless another line named foo-start/foo-end was explicitly specified before it).
...And 2 more matches
grid-row-start - CSS: Cascading Style Sheets
tom-ident> values */ grid-row-start: somegridarea; /* <integer> + <custom-ident> values */ grid-row-start: 2; grid-row-start: somegridarea 4; /* span + <integer> + <custom-ident> values */ grid-row-start: span 3; grid-row-start: span somegridarea; grid-row-start: 5 somegridarea span; /* global values */ grid-row-start: inherit; grid-row-start: initial; grid-row-start: unset; this property is specified as a single <grid-line> value.
... a <grid-line> value can be specified as: either the auto keyword or a <custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
... note: named grid areas automatically generate implicit named lines of this form, so specifying grid-row-start: foo; will choose the start edge of that named grid area (unless another line named foo-start was explicitly specified before it).
...And 2 more matches
line-height - CSS: Cascading Style Sheets
syntax /* keyword value */ line-height: normal; /* unitless values: use this number multiplied by the element's font size */ line-height: 3.5; /* <length> values */ line-height: 3em; /* <percentage> values */ line-height: 34%; /* global values */ line-height: inherit; line-height: initial; line-height: unset; the line-height property is specified as any one of the following: a <number> a <length> a <percentage> the keyword normal.
...the computed value is the same as the specified <number>.
... <length> the specified <length> is used in the calculation of the line box height.
...And 2 more matches
mask-border - CSS: Cascading Style Sheets
up to four values may be specified.
...up to four values may be specified.
...up to four values may be specified.
...And 2 more matches
Date and time formats used in HTML - HTML: Hypertext Markup Language
milliseconds may be specified, optionally, by adding a decimal point character (".", u+002e) followed by one, two, or three digits.
... there are some additional basic rules: the hour is always specified using the 24-hour clock, with 00 being midnight and 11 pm being 23.
... if specified, the integer portion of the number of seconds must be between 00 and 59.
...And 2 more matches
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
WebHTMLElementaudio
autoplay a boolean attribute: if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.
... loop a boolean attribute: if specified, the audio player will automatically seek back to the start upon reaching the end of the audio.
...if autoplay is specified, the browser would obviously need to start downloading the audio for playback.
...And 2 more matches
<input type="file"> - HTML: Hypertext Markup Language
WebHTMLElementinputfile
this list has no more than one member unless the multiple attribute is specified.
... multiple when the multiple boolean attribute is specified, the file input allows the user to select more than one file.
... acceptable file types can be specified with the accept attribute, which takes a comma-separated list of allowed file extensions or mime types.
...And 2 more matches
HTTP headers - HTTP
WebHTTPHeaders
accept-ch-lifetime servers can ask the client to remember the set of client hints that the server supports for a specified period of time, to enable delivery of client hints on subsequent requests to the server’s origin ([rfc6454]).
...these violation reports consist of json documents sent via an http post request to the specified uri.
... public-key-pins-report-only sends reports to the report-uri specified in the header and does still allow clients to connect to the server even if the pinning is violated.
...And 2 more matches
Text formatting - JavaScript
methods of string method description charat, charcodeat, codepointat return the character or character code at the specified position in string.
... indexof, lastindexof return the position of specified substring in the string or last position of specified substring, respectively.
... startswith, endswith, includes returns whether or not the string starts, ends or contains a specified string.
...And 2 more matches
Warning: JavaScript 1.6's for-each-in loops are deprecated - JavaScript
examples object iteration for each...in has been used to iterate over the specified object values.
... deprecated syntax var object = { a: 10, b: 20 }; for each (var x in object) { console.log(x); // 10 // 20 } alternative standard syntax you can now use the standard for...in loop to iterate over specified object keys, and get each value inside the loop: var object = { a: 10, b: 20 }; for (var key in object) { var x = object[key]; console.log(x); // 10 // 20 } or, using for...of (es2015) and object.values (es2017), you can get an array of the specified object values and iterate over the array like this: var object = { a: 10, b: 20 }; for (var x of object.values(object)) { console.log(x); // 10 // 20 } array iteration for each...in has been used to iterate over specified array eleme...
... var array = [10, 20, 30]; for (var x of array) { console.log(x); // 10 // 20 // 30 } iterating over a null-able array for each...in does nothing if the specified value is null or undefined, but for...of will throw an exception in these cases.
...And 2 more matches
BigInt.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified bigint object.
... return value a string representing the specified bigint object.
...for bigint objects, the tostring() method returns a string representation of the object in the specified radix.
...And 2 more matches
Intl - JavaScript
locale identification and negotiation the internationalization constructors as well as several language sensitive methods of other constructors (listed under see also) use a common pattern for identifying locales and determining the one they will actually use: they all accept locales and options arguments, and negotiate the requested locale(s) against the locales they support using an algorithm specified in the options.localematcher property.
... a single locale may be specified by either an intl.locale object or a string that is a unicode bcp 47 locale identifier.
... multiple locales may be specified (and a best-supported locale determined by evaluating each of them in order and comparing against the locales supported by the implementation) by passing an array (or array-like object, with a length property and corresponding indexed elements) whose elements are either intl.locale objects or values that convert to unicode bcp 47 locale identifier strings.
...And 2 more matches
Number.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified number object.
... return value a string representing the specified number object.
...for number objects, the tostring() method returns a string representation of the object in the specified radix.
...And 2 more matches
parseInt() - JavaScript
the parseint() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems).
... if not nan, the return value will be the integer that is the first argument taken as a number in the specified radix.
... if parseint encounters a character that is not a numeral in the specified radix, it ignores it and all succeeding characters and returns the integer value parsed up to that point.
...And 2 more matches
Web video codec guide - Web media technologies
in addition, a series of levels are specified, each defining limits on a range of attributes of the video.
... avc (h.264) the mpeg-4 specification suite's advanced video coding (avc) standard is specified by the identical itu h.264 specification and the mpeg-4 part 10 specification.
...the frame rate is specified as a 32-bit numerator and a 32-bit denominator, to allow for non-integer frame rates.
...And 2 more matches
The "codecs" parameter in common media types - Web media technologies
when the codecs parameter is used, the specified list of codecs must include every codec used for the contents of the file.
... f a one-digit flag indicating whether the color should be allowed to use the full range of possible values (1), or should be constrained to those values considered legal for the specified color configuration (that is, the studio swing representation).
...timedia files) video/3gp2 3gp2 video (rfc 4393: mime type registrations for 3gpp2 multimedia files) audio/mp4 mp4 audio (rfc 4337: mime type registration for mpeg-4) video/mp4 mp4 audio (rfc 4337: mime type registration for mpeg-4) application/mp4 non-audiovisual media encapsulated in mpeg-4 each codec described by the codecs parameter can be specified either as simply the container's name (3gp, mp4, quicktime, etc.) or as the container name plus additional parameters to specify the codec and its configuration.
...And 2 more matches
gradientUnits - SVG: Scalable Vector Graphics
the gradientunits attribute defines the coordinate system used for attributes specified on the gradient elements.
... animatable yes userspaceonuse this value indicates that the attributes represent values in the coordinate system that results from taking the current user coordinate system in place at the time when the gradient element is referenced (i.e., the user coordinate system for the element referencing the gradient element via a fill or stroke property) and then applying the transform specified by attribute gradienttransform.
... objectboundingbox this value indicates that the user coordinate system for the attributes is established using the bounding box of the element to which the gradient is applied and then applying the transform specified by attribute gradienttransform.
...And 2 more matches
widget - Archive of obsolete content
the widget's content is specified using html like this: <html> <body> <img src="play.png" id="play-button"> <img src="pause.png" id="pause-button"> <img src="stop.png" id="stop-button"> </body> </html> we just include three icons, and assign an id to each one.
...widgets.widget({ id: "auto-update-widget", label: "widget that updates content on a timer", content: "0", contentscript: 'settimeout(function() {' + ' document.body.innerhtml++;' + '}, 2000)', contentscriptwhen: "ready" }); // a widget created with a specified width, that grows.
...content scripts specified by this property are loaded before those specified by the contentscript property.
...content scripts specified by this property are loaded after those specified by the contentscriptfile property.
ui/button/action - Archive of obsolete content
by default the badge's color is red, but you can set your own color using the badgecolor property, specified as a css <color> value: var { togglebutton } = require("sdk/ui/button/toggle"); var button = togglebutton({ id: "my-button1", label: "my button1", icon: "./icon-16.png", onchange: changed, badge: 0, badgecolor: "#00aaaa" }); function changed(state) { button.badge = state.badge + 1; if (state.checked) { button.badgecolor = "#aa00aa"; } else { button.bad...
...if badgecolor is omitted and badge is specified, then the badge is red.
...otherwise, it functions as a getter and returns the button's state for the specified object.
... color for the badge, specified as a css <color> value.
ui/button/toggle - Archive of obsolete content
by default the badge's color is red, but you can set your own color using the badgecolor property, specified as a css <color> value: var { togglebutton } = require("sdk/ui/button/toggle"); var button = togglebutton({ id: "my-button1", label: "my button1", icon: "./icon-16.png", onchange: changed, badge: 0, badgecolor: "#00aaaa" }); function changed(state) { button.badge = state.badge + 1; if (state.checked) { button.badgecolor = "#aa00aa"; } else { button.bad...
...if badgecolor is omitted and badge is specified, then the badge is red.
...otherwise, it functions as a getter and returns the button's state for the specified object.
... color for the badge, specified as a css <color> value.
ui/sidebar - Archive of obsolete content
from firefox 33 onwards you can pass a browserwindow into these methods, and they will then operate on the specified window.
... to show what a sidebar looks like, here's a sidebar that displays the results of running the w3c validator on the current page: specifying sidebar content the content of a sidebar is specified using html, which is loaded from the url supplied in the url option to the sidebar's constructor.
... parameters window : browserwindow the window in which to show the sidebar, specified as a browserwindow.
... parameters window : browserwindow the window for which to hide the sidebar, specified as a browserwindow.
package.json - Archive of obsolete content
if no icon is specified, the standard add-on icon will be used by default.
...if you don't provide an icon here, the same icon as specified by icon will be used.
... main a string representing the name of a program module that is located in one of the top-level module directories specified by lib.
...these json objects will be used to create a preferences interface for the add-on in the add-ons manager unless the preferencesurl field is specified.
JavaScript Daemons Management - Archive of obsolete content
daemon global object properties daemon.context an empty object used as the default this object when the thisobject is not specified during the construction of the daemon.
...if the reversals argument is specified, the mydaemon.reversals property will be setted on it.
... if the backwards argument is specified, the daemon will move forwards (false) or backwards (true).
... if it is not specified the daemon will start in the same direction in which it has been left.
Extension Versioning, Update and Compatibility - Archive of obsolete content
this means that if your update manifest contains an entry for the currently installed version of the add-on, and the entry's targetapplication entry specifies a larger maxversion then the application will use this value instead of that specified in the add-on's install.rdf.
...in the install.rdf of the already installed add-on updateurl must be specified in one of the following ways: the updateurl uses https, or there is no updateurl at all (which defaults to addons.mozilla.org which is https) the updateurl uses http and the updatekey entry is specified which will be used to verify the data in the update manifest.
... in the update manifest delivered from the updateurl the updatelink must be specified in one of the following ways: the updatelink to the xpi file must use https the updatelink can use http and you must include an updatehash for the xpi file using sha1, sha256, sha384 or sha512 hash algorithms.
... <em:updatehash>sha256:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e64ad2e3a0b60120ca271ce6e6</em:updatehash> note: the value of updatehash, must start with the string of hashing algorithm, it is a common error to delete this prefix, when setting new value to updatehash:sha256:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e64ad2e3a0b60120ca271ce6e6 when a hash is specified the downloaded file is compared with the hash and an error shown if it does not match.
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
listing 5: closing all browser windows var browsers = windowmediator.getenumerator('navigator:browser'); var browser; while (browsers.hasmoreelements()) { browser = browsers.getnext().queryinterface(components.interfaces.nsidomwindowinternal); browser.browsertrytoclosewindow(); } this method returns an overview of the specified window type in the form of an iterator pattern object called nsisimpleenumerator.
...it doesn't matter whether a file at the specified path already exists.
... listing 8: traversing directories file.initwithpath('c:\\'); file.append('documents and settings'); file.append('all users'); file.append('documents'); list files in specified directory use the directoryentries property to perform operations on all the files or folders in a given folder.
...for example, using the loaduri() method on the browser element introduced in chapter 3 can open a page specified using http_referer, as shown in listing 21; listing 22 shows how to open a page using the loaduriwithflags() method, with data transmitted via the post method.
Appendix D: Loading Scripts - Archive of obsolete content
the script will be read with the utf-8 encoding, based on the encoding of the overlay, and will execute as javascript version 1.8, based on the version specified in the script tag.
...this information is invaluable for debugging, and the flexibility with which it can be specified makes this method useful for extracting javascript from a number of file formats other than raw javascript scripts.
...this means that evalinsandbox can be used to execute code with a specified privilege level rather than full chrome privileges.
... flexibility: the sub-script loader can load scripts into a variety of different namespaces for a wide variety of uses, and as of gecko 2 allows the character set of the script to be specified.
Style System Overview - Archive of obsolete content
in this case: inherited structs: same value as parent style context (optimization breaks when property has non-inherit value) reset structs: same struct for every style context using rule node (optimization breaks when a value is explicit inherit) reset structs: rule nodes have the same shared struct as their parent (optimization breaks when a property is specified with a different value or when there is an explicit inherit value).
... inherited structs act like reset ones in the descendants of any rule node for which the data are fully specified.
... when we compute a data struct, we cache it as high as possible in the rule tree -- on the lowest of the rule nodes on the path to the root that specified something for that struct.
... style data computation after walkruletree stops walking up, it calls nsrulenode::compute*data to turn the specified values into the mostly-computed style data in the style struct.
DOM Interfaces - Archive of obsolete content
element elt); element getanonymouselementbyattribute(in element elt, in domstring attrname, in domstring attrvalue); element getbindingparent(in node node); void loadbindingdocument(in domstring documenturl); }; methods getanonymousnodes the getanonymousnodes method retrieves the anonymous children of the specified element.
... getanonymouselementbyattribute the getanonymouselementbyattribute methods retrieves an anonymous descendant with a specified attribute value.
... getbindingparent the getbindingparent method is used to obtain the bound element with the binding attached that is responsible for the generation of the specified anonymous node.
... loadbindingdocument the loadbindingdocument method can be used to synchronously obtain the specified binding document for use within a particular document (the one on which the loadbindingdocument method was invoked).
Event Handlers - Archive of obsolete content
the handler contains script that is executed when an event flows to the object the handler is attached to and if that event matches all of the criteria specified by the handler.
...this action can be specified either using an action attribute or by specifying the script as a child of the handler element.
... if both are specified, the attribute wins.
... for both mouse and key events, modifier keys can be specified using the modifiers attribute.
Methods - Archive of obsolete content
dirrename renames the specified directory.
... copy makes a copy of the specified file.
... exists returns a boolean value indicating whether the specified file exists or not.
... moddatechanged specifies whether the last modification on a file is older than a specified date move moves a file from one location to another.
addDirectory - Archive of obsolete content
an absolute pathname is used as specified.
... a relative pathname is appended to the registry name of the package as specified by the package parameter to the initinstall method.this parameter can also be null, in which case the xpisourcepath parameter is used as a relative pathname.note that the registry pathname is not the location of the software on the computer; it is the location of information about the software inside the client version registry.
... subdir the name of a directory to append to localdirspec, using '/' as the path separator regardless of the platform.if subdir is missing, null, or "", the filenames are appended directly to the folder name specified by localdirspec.
...description the adddirectory method puts the files in the specified directory in a temporary location.
loadOneTab - Archive of obsolete content
}) return type: tab element opens a new tab that loads a page with the specified url.
...there's also no owner parameter as the owner tab is specified automatically.
...and if null or not specified, this parameter will default to the browser.tabs.loadinbackground preference.
... firefox 3.6 note the second form of this method was added in firefox 3.6; it adds the relatedtocurrent parameter, and allows the parameters to be specified by name, in any order.
Advanced Rules - Archive of obsolete content
the root resource is the one specified by the ref attribute on the element containing the template.
...this resource will be placed in the 'list' variable as specified by the content tag.
...the parent is specified by the container attribute and the children are specified by the child attribute.
...tions> <content uri="?list"/> <member container="?list" child="?city"/> <triple subject="?city" predicate="http://www.xulplanet.com/rdf/weather#name" object="?name"/> <triple subject="?city" predicate="http://www.xulplanet.com/rdf/weather#prediction" object="?pred"/> </conditions> generating content the content to generate for a rule is specified inside the action element.
Features of a Window - Archive of obsolete content
as in html, you can use the window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">window.open() function to open the second window.
... see also window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">window.open() next, we'll look at how to open secondary dialogs.
The Implementation of the Application Object Model - Archive of obsolete content
the first reason to have local/remote merging is that a remote file must be able to reference local data and have it merged in with the information that it specified.
...however, in order for this to work, the local bookmarks have to be merged in with the remote bookmarks specified by the site.
...now since the aol bookmark was specified by the remote file, the user has no way of going off to the site and changing that file just to get rid of the button (even though the user might wish that he or she could!).
... preventing the persistence of attributes: the discardable attribute individual attributes can be specified as non-persistent (i.e.,discardable) through the use of the discardable attribute.
radiogroup - Archive of obsolete content
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
... getitematindex( index ) return type: element returns the element that is at the specified index.
... insertitemat( index, label, value ) return type: element this method creates a new item and inserts it at the specified position.
... removeitemat( index ) return type: element removes the child item in the element at the specified index.
tabs - Archive of obsolete content
ArchiveMozillaXULtabs
getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
... getitematindex( index ) return type: element returns the element that is at the specified index.
... insertitemat( index, label, value ) return type: element this method creates a new item and inserts it at the specified position.
... removeitemat( index ) return type: element removes the child item in the element at the specified index.
NPN_PostURLNotify - Archive of obsolete content
fy(npp instance, const char* url, const char* target, uint32 len, const char* buf, npbool file, void* notifydata); parameters the function has the following parameters: instance current plug-in instance, specified by the plug-in.
... url url of the post request, specified by the plug-in.
... target target window, specified by the plug-in.
...values: true: post the local file whose path is specified in buf, then delete the file.
-moz-border-bottom-colors - Archive of obsolete content
/* single <color> value */ -moz-border-bottom-colors: #f0f0f0; /* multiple <color> values */ -moz-border-bottom-colors: #f0f0f0 #a0a0a0 #505050 #000000; /* global values */ -moz-border-bottom-colors: inherit; -moz-border-bottom-colors: initial; -moz-border-bottom-colors: unset; when an element has a border that is larger than a single css pixel, each line of pixels uses the next color specified in this property, from the outside in.
...if the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified.
... initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete it does not apply if border-style is dashed or dotted.
... none default, no colors are drawn or border-color is used, if specified.
-moz-border-left-colors - Archive of obsolete content
/* single <color> value */ -moz-border-left-colors: #f0f0f0; /* multiple <color> values */ -moz-border-left-colors: #f0f0f0 #a0a0a0 #505050 #000000; /* global values */ -moz-border-left-colors: inherit; -moz-border-left-colors: initial; -moz-border-left-colors: unset; when an element has a border that is larger than a single css pixel, each line of pixels uses the next color specified in this property, from the outside in.
...if the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified.
... initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete it does not apply if border-style is dashed or dotted.
... none default, no colors are drawn or border-color is used, if specified.
-moz-border-right-colors - Archive of obsolete content
/* single <color> value */ -moz-border-right-colors: #f0f0f0; /* multiple <color> values */ -moz-border-right-colors: #f0f0f0 #a0a0a0 #505050 #000000; /* global values */ -moz-border-right-colors: inherit; -moz-border-right-colors: initial; -moz-border-right-colors: unset; when an element has a border that is larger than a single css pixel, each line of pixels uses the next color specified in this property, from the outside in.
...if the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified.
... initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete it does not apply if border-style is dashed or dotted.
... none default, no colors are drawn or border-color is used, if specified.
-moz-border-top-colors - Archive of obsolete content
/* single <color> value */ -moz-border-top-colors: #f0f0f0; /* multiple <color> values */ -moz-border-top-colors: #f0f0f0 #a0a0a0 #505050 #000000; /* global values */ -moz-border-top-colors: inherit; -moz-border-top-colors: initial; -moz-border-top-colors: unset; when an element has a border that is larger than a single css pixel, each line of pixels uses the next color specified in this property, from the outside in.
...if the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified.
... initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete it does not apply if border-style is dashed or dotted.
... none default, no colors are drawn or border-color is used, if specified.
GetObject - Archive of obsolete content
for example: var cadobject; cadobject = getobject("c:\\cad\\schema.cad"); when this code is executed, the application associated with the specified pathname is started, and the object in the specified file is activated.
... if pathname is a zero-length string (""), getobject returns a new object instance of the specified type.
... if the pathnameargument is omitted, getobject returns a currently active object of the specified type.
... if no object of the specified type exists, an error occurs.
Archived JavaScript Reference - Archive of obsolete content
this operation leaves oldbuffer in a detached state.date.prototype.tolocaleformat()the non-standard tolocaleformat() method converts a date to a string using the specified formatting.
...see also the newer version of date.prototype.tolocaledatestring().ecmascript 2016 to es.next support in mozillaexpression closuresexpression closures are a shorthand function syntax for writing simple functions.for each...inthe for each...in statement iterates a specified variable over all values of object's properties.
... for each distinct property, a specified statement is executed.function.aritynot part of any standard.function.prototype.isgenerator()the non-standard isgenerator() method used to determine whether or not a function is a generator.
...do not use it!handler.enumerate()the handler.enumerate() method used to be a trap for for...in statements, but has been removed from the ecmascript standard in es2016 and is deprecated in browsers.legacy generator functionthe legacy generator function statement declares legacy generator functions with the specified parameters.legacy generator function expressionthe function keyword can be used to define a legacy generator function inside an expression.
Describing microformats in JavaScript - Archive of obsolete content
required an array indicating the names of any properties that must be specified.
... property specifications each property in the properties structure is specified by its name, and may include additional attributes if the property so requires.
...possible values are: datetime an iso date anyuri a uri email an email address tel a telephone number html html including tags float a floating-point number microformat a microformat microformat_property a specific property within the microformat specified by microformat.
...since the plural property is true, multiple types can be specified.
What is CSS? - Learn web development
what you are seeing is the browser's default styles — very basic styles that the browser applies to html to make sure it will be basically readable even if no explicit styling is specified by the author of the page.
...css properties have different allowable values, depending on which property is being specified.
... new css features are developed, or specified, by the css working group.
... browser support once css has been specified then it is only useful for us in developing web pages if one or more browsers have implemented it.
Command line crash course - Learn web development
mv — moves a file from the first specified file location to the second specified file location, for example mv mdn-example.md mdn-example.txt (the locations are written as file paths).
... cp — similar in usage to mv, cp creates a copy of the file in the first location specified, in the second location specified.
... rm — removes the specified file.
...this allows you to run an operation against a potentially large number of files at once, all of which match the specified pattern.
Package management basics - Learn web development
open it up and it should look something like this: { "name": "parcel-experiment", "version": "1.0.0", "description": "a simple npm package to learn about using npm", "main": "index.js", "scripts": { "test": "echo \"error: no test specified\" && exit 1" }, "author": "chris mills", "license": "isc" } so this is the config file that defines your package.
... updating dependencies npm update yarn upgrade this will look at the currently installed dependencies and update them, if there is an update available, within the range that's specified in the package.
... the range is specified in the version of the dependency in your package.json, such as date-fns@^2.0.1 — in this case the caret character ^ means all minor and patch releases after and including 2.0.1, up to but excluding 3.0.0.
...open it up, and its scripts member should look like this: "scripts": { "test": "echo \"error: no test specified\" && exit 1", }, update it so that it looks like this, and save the file: "scripts": { "test": "echo \"error: no test specified\" && exit 1", "dev": "parcel serve index.html" }, we’ve added a custom dev command as an npm script.
HTMLIFrameElement.download()
the download() method of the htmliframeelement interface downloads a specified url, storing it at /sdcard/download.
... options optional an options object allowing optional settings to be specified for the download.
...if this is not specified, the filename used will be the original filename, as specified in the url.
...if this is not specified there will be no referrer.
AddonManager
starting in firefox 8, you can also set the value of the preference extensions.autodisabledscopes to prevent firefox from automatically installing add-ons from the specified scopes.
... void addstartupchange( in string changetype, in string id ); parameters changetype the type of change that occurred for the specified add-on.
... void addstartupchange( in string changetype, in string id ); parameters changetype the type of change to remove for the specified add-on.
... return value an array of add-on ids indicating the add-ons for which the specified change type applies.
PerfMeasurement.jsm
variable type description eventsmeasured eventmask a bit mask of the event types recorded; this can differ from the events requested if the platform doesn't support all of the event types you specified when creating the perfmeasurement object.
... constructor creates a new perfmeasurement object, configured to record the specified event types.
... return value a new perfmeasurement object configured to record the specified event types.
...start() starts measuring the performance indicators that were specified when the perfmeasurement object was created.
Promise
documentation conventions in documentation, the type of the fulfillment value is usually specified between angular brackets.
... for example, the os.file.exists function returns a promise that will eventually fulfill with a boolean: promise<boolean> exists(string path); the rejection reason may be specified separately in the function's documentation, and is considered to be an error object unless otherwise specified.
... resolving functions resolve() fulfills the associated promise with the specified value, or propagates the state of an existing promise.
... reject() rejects the associated promise with the specified reason.
PL_HashTableLookup
looks up the entry with the specified key and return its value.
... syntax #include <plhash.h> void *pl_hashtablelookup( plhashtable *ht, const void *key); parameters the function has the following parameters: ht a pointer to the hash table in which to look up the entry specified by key.
... returns the value of the entry with the specified key, or null if there is no such entry.
... description if there is no entry with the specified key, pl_hashtablelookup returns null.
PR_OpenSemaphore
creates or opens a named semaphore with the specified name.
... description if the named semaphore doesn't exist and the pr_sem_create flag is specified, the named semaphore is created.
... if pr_sem_create is specified, the third argument is the access permission bits of the new semaphore (same interpretation as the mode argument to pr_open) and the fourth argument is the initial value of the new semaphore.
... if pr_sem_create is not specified, the third and fourth arguments are ignored.
PKCS11 FAQ
MozillaProjectsNSSPKCS11FAQ
you should have implementations for all the functions specified in the version of the pkcs #11 spec your token implements.
... if you do not actually do the operation specified by that function, you can return ckr_function_not_supported.
... does nss support the use of pkcs #11 callbacks specified in the pnotify and papplication parameters for c_opensession?
...the rsa private key will contain all the attributes specified by pkcs #11 version 2.0.
JSID_IS_INT
description jsid_is_int tests whether a specified js id, id, is an integer, and returns true if it's an integer.
... jsid_to_int converts a specified js id, id to an integer.
... int_fits_in_jsid tests whether a specified integer fits in jsid, it means the integer value is not negative.
... int_to_jsid converts a specified integer, i to a jsid.
JSID_IS_STRING
description jsid_is_string tests whether a specified js id, id, is a string, and returns true if it's a string.
... jsid_to_string converts a specified js id, id to a jsstring *.
... interned_string_to_jsid converts a specified interned string, str to a jsid.
... jsid_to_flat_string converts a specified js id, id to a jsflatstring *.
JS_DeleteProperty
removes a specified property from an object.
... description js_deleteproperty removes a specified property, name, from an object, obj.
...then one of the following cases applies: if obj has no property with the given name or id, or if obj inherits the specified property from its prototype, then obj's jsclass.delproperty hook is called.
... if obj has the specified property but it is permanent, nothing happens.
JS_GetPropertyAttrsGetterAndSetter
retrieve the attributes, getter, and setter of a specified property.
...flag indicating whether or not the specified property was located.
...on success, *getterp receives a pointer to the getter function for the specified property.
...on success, *setterp receives a pointer to the setter function for the specified property.
JS_ValueToId
description js_valuetoid converts a specified js::value, v, to a jsid.
... js_stringtoid and js_charstoid convert a specified string to a jsid.
... js_indextoid converts a specified integer index to an integer jsid.
... js::protokeytoid converts a specified prototype key to a jsid.
TPS Tab Lists
if specified, only used during verify actions.
...weave/raw-file/2d9aca9585b6/pages/page1.html", title: "crossweave test page 1", profile: "profile1" }, { uri: "data:text/html,<html><head><title>hello</title></head><body>hello</body></html>", title: "hello", profile: "profile1" } ]; tab lists and phase actions tabs cannot be modified or deleted, only added or verified with the following functions: tabs.add - opens the specified tabs in the browser window.
... tabs.verify - verifies that the specified tabs can be found in the specified profile.
... tabs.verifynot - verifies that the specified tabs cannot be found in the specified profile.
Signing Mozilla apps for Mac OS X
--keychain /path/to/keychain lets you specify which keychain contains the signing certificate specified by your-signing-identity, rather than allowing the codesign to search the keychain list.
... the path specified must be a full path; it's usually something similar to /users/username/library/keychains/keychain-name.keychain.
...at a minimum you'll need to provide: identifier: this must be the same as the value of the cfbundleidentifier specified in your application's info.plist file.
... (anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] ) or (anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.ou] = "43aq936h96"))' \ application.app depending on your keychain preferences, the codesign command may display a popup asking for the password for the specified keychain.
Animated PNG graphics
MozillaTechAPNG
the output buffer is a pixel array with dimensions specified by the width and height parameters of the png 'ihdr' chunk.
... the boundaries of the entire animation are specified by the width and height parameters of the png 'ihdr' chunk, regardless of whether the default image is part of the animation.
...position relative to the 'actl' chunk is not specified.
... each frame inherits every property specified by any critical or ancillary chunks before the first 'idat' in the file, except the width and height, which come from the 'fctl' chunk.
Components.utils.createObjectIn
components.utils.createobjectin creates a new javascript object in the scope of the specified object's compartment.
... return value a new object in the specified scope.
... example to create a new object in the scope of a specified dom window, you can simply do: function genpropdesc(value) { return { enumerable: true, configurable: true, writable: true, value: value }; } var myobject = components.utils.createobjectin(mywindow); var proplist = { name: genpropdesc("name"), date: genpropdesc("date"), id: genpropdesc("id"), func: genpropdesc(function() { alert("called func!"); }) }; object.defineproperties(myobject, proplist); components.utils.makeobjectpropsnormal(myobject); this sets up the new object in the scope of the object mywindow, then adds properties by calling object.defineproperties(), then normalizes them by calling components.utils.makeobjectpropsnormal().
... to create an object with a specified name, use defineas: var foo = components.utils.createobjectin(mywindow, {defineas: "foo"}); now the target compartment's window has a new global object named foo.
Components.utils
createarrayin() removed in gecko 31 returns an array created in specified compartment.
... createobjectin() creates a new object, created in the scope of the specified object's compartment.
... makeobjectpropsnormal() ensures that all functions come from the specified object's scope, and aren't cross-compartment wrappers.
...see js_setgczeal for details; this method calls through to that with the specified value as the zeal value.
mozIStorageConnection
return value returns a new mozistorageasyncstatement to be used to execute the specified statement.
... return value returns a new mozistoragestatement to be used to execute the specified statement.
...this should be specified using the same syntax the create table statement uses.
...it loads pages from the start of the database file until the memory cache (specified by "pragma cache_size=") is full or the entire file is read.
mozITXTToHTMLConv
methods scantxt() scans the specified text, applying the requested conversions and outputting html.
... return value the html version of the specified string.
... scanhtml() scans the specified user-edited html, adding additional formatting that the user may not have known to do.
... citeleveltxt() returns the "cite level" of the specified text; that is, it indicates how many levels of email reply quotes are used, when the text uses "quote" characters (such as ">") at the beginning of the line to indicate cite levels.
nsIContentViewManager
methods getcontentviewsin() returns an array of nsicontentview objects representing all of the content views that intersect with the specified rectangle in the browser.
... note: the rectangle is specified using an anchor point, then four distances to indicate how far in each direction to expand the rectangle.
... alength optional if specified, on return this parameter indicates the number of nsicontentview objects returned in the aresult array.
... aresult on return, an array of nsicontentview objects representing the content views in the specified rectangle.
nsIDeviceMotion
methods addlistener() when called, the accelerometer support implementation must begin to notify the specified nsidevicemotionlistener by calling its nsidevicemotionlistener.onaccelerationchange() method as appropriate to share updated acceleration data.
... native code only!addwindowlistener sets the nsiaccelerometer as the source for mozorientation events on the specified dom window.
... removelistener() tells the accelerometer to stop sending updates to the specified nsidevicemotionlistener.
... native code only!removewindowlistener removes the nsiaccelerometer as the source for mozorientation events on the specified dom window.
nsIDragService
aactiontype specified which of copy/move/link are allowed.
... a custom image may be specified using the aimage argument.
... aactiontype specified which of copy/move/link are allowed.
... aactiontype specified which of copy/move/link are allowed adragevent the drag gesture event that initiated the drag.
nsIFile
changing the size of a nsifile operates on the underlying filesystem, possibly truncating the existing file to specified size.
... contains() this method tests whether or not the path represented by the specified nsifile instance is a descendant of the path represented by this nsifile.
... this nsifile should point to a directory, while the specified argument can point to a file or directory.
...on win32 platforms, it is the currently selected ansi codepage (specified by cp_acp).
nsIHttpChannel
amerge if true, the new header value will be merged with any existing values for the specified header.
... this flag is ignored if the specified header does not support merging (for example the "content-type" header can only have one value).
... merge if true, the new header value will be merged with any existing values for the specified header.
... this flag is ignored if the specified header does not support merging (for example the "content-type" header can only have one value).
nsIMemoryReporterManager
registermultireporter() requests that memory multi-reporter notifications be sent to the specified objects.
... registerreporter() requests that memory reporter notifications be sent to the specified objects.
... unregistermultireporter() stops sending memory multi-reporter notifications to the specified object.
... unregisterreporter() stops sending memory reporter notifications to the specified object.
nsISelection
void addrange( in nsidomrange range ); parameters range the nsidomrange to add collapse() collapses the selection to a single point, at the specified offset in the given nsidomnode.
...void deletefromdocument(); extend() extends the selection by moving the selection end to the specified nsidomnode and offset, preserving the selection begin position.
... native code only!extendnative void extendnative( in nsinode parentnode, in long offset ); parameters parentnode offset getrangeat() returns the nsidomrange at the specified index.
...void removerange( in nsidomrange range ); parameters range selectallchildren() adds all children of the specified node to the selection.
nsIWindowWatcher
aname a window name assigned using window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">window.open.
...see window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">window.open for details.
nsIXSLTProcessor
this will make the processor use the default-value for all parameters as specified in the stylesheet.
...importstylesheet() imports the specified stylesheet into this xsltprocessor for transformations.
...this will make the processor use the default-value for the parameter as specified in the stylesheet.
...the created fragment will be owned by the specified output document.
nsIXULTemplateBuilder
the query node that the new result applies to must be specified using the aquerynode parameter.
...the query node that the new result applies to must be specified using the aquerynode parameter.
...nsixultemplateresult getresultforcontent( in nsidomelement aelement ); parameters acontent element to result the result of return value the result for the specified element.
...the default conditions specified inside the <rule> tag are applied before the rule filter is applied, meaning that the filter may be used to further filter out results but not reaccept results that have already been rejected.
StructType
if this isn't specified, the structure is considered opaque and you can't access its contents directly.
... note: this is never ctypes.void_t or an array type with an unspecified length.
... structtype cdata method_overview cdata addressoffield(name) methods inherited from cdata cdata address() string tosource() string tostring() structtype cdata methods addressoffield() returns a new cdata object of the appropriate pointer type, whose value points to the specified field of the structure on which the method was called.
... return value a new cdata object of the appropriate pointer type, whose value points to the contents of the specified field.
Memory - Plugins
npn_memfree requests that the browser free a specified block of memory.
... npn_memflush requests the browser to free up a specified amount of memory if not enough is currently available for the plug-in's requirements.
... allocating and freeing memory to allocate memory and free memory, use these paired functions: npn_memalloc allocates a specified amount of memory in the browser's memory space.
... flushing memory (mac os only) the npn_memflush method frees a specified amount of memory.
DevTools API - Firefox Developer Tools
if unspecified the previously active tool is shown.
... toolbox-destroy(target) the toolbox for the specified target is about to be destroyed.
... toolbox-destoyed(target) the toolbox for the specified target has been destroyed.
...if undefined the icon should be specified.
Web Console Helpers - Firefox Developer Tools
if unspecified, element defaults to document.
...if unspecified, element defaults to document.
...if unspecified, element defaults to document.
... pprint() obsolete since gecko 74 formats the specified value in a readable way; this is useful for dumping the contents of objects and arrays.
The JavaScript input interpreter - Firefox Developer Tools
if unspecified, element defaults to document.
...if unspecified, element defaults to document.
...if unspecified, element defaults to document.
... pprint() obsolete since gecko 74 formats the specified value in a readable way; this is useful for dumping the contents of objects and arrays.
Attr - Web APIs
WebAPIAttr
prefix read only a domstring representing the namespace prefix of the attribute, or null if no prefix is specified.
... specified read only this property always returns true.
... originally, it returned true if the attribute was explicitly specified in the source code or by a script, and false if its value came from the default one defined in the document's dtd.
... specified this property now always returns true.
AudioBufferSourceNode.start() - Web APIs
offset optional an offset, specified as the number of seconds in the same time coordinate system as the audiocontext, to the time within the audio buffer that playback should begin.
... duration optional the duration of the sound to be played, specified in seconds.
... if this parameter isn't specified, the sound plays until it reaches its natural conclusion or is stopped using the stop() method.
... exceptions typeerror a negative value was specified for one or more of the three time parameters.
AudioScheduledSourceNode.start() - Web APIs
the start() method on audioscheduledsourcenode schedules a sound to begin playback at the specified time.
... if no time is specified, then the sound begins playing immediately.
...this value is specified in the same time coordinate system as the audiocontext is using for its currenttime attribute.
... rangeerror the value specified for when is negative.
Background Tasks API - Web APIs
while the browser, your code, and the web in general will continue to run normally if you go over the specified time limit (even if you go way over it), the time restriction is intended to ensure that you leave the system enough time to finish the current pass through the event loop and get on to the next one without causing other code to stutter or animation effects to lag.
... the implementation of our shim for cancelidlecallback() is much simpler: window.cancelidlecallback = window.cancelidlecallback || function(id) { cleartimeout(id); } if cancelidlecallback() isn't defined, this creates one which simply passes the specified callback id through to cleartimeout().
... adding text to the log the log() function adds the specified text to the log.
... text is the text to output to the log the number of times specified by count.
CSSPrimitiveValue.getFloatValue() - Web APIs
the getfloatvalue() method of the cssprimitivevalue interface is used to get a float value in a specified unit.
... if this css value doesn't contain a float value or can't be converted into the specified unit, a domexception is raised.
... return value a float value in the specified unit.
... exceptions type description domexception an invalid_access_err is raised if the css value doesn't contain a float value or if the float value can't be converted into the specified unit.
CanvasRenderingContext2D.drawImage() - Web APIs
if not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used.
...if not specified, the image is not scaled in width when drawn.
...if not specified, the image is not scaled in height when drawn.
... type_mismatch_err the specified source element isn't supported.
CanvasRenderingContext2D.fillText() - Web APIs
the canvasrenderingcontext2d method filltext(), part of the canvas 2d api, draws a text string at the specified coordinates, filling the string's characters with the current fillstyle.
...the text is rendered using the settings specified by font, textalign, textbaseline, and direction.
...if not specified, there is no limit to the width of the text.
... however, if this value is provided, the user agent will adjust the kerning, select a more horizontally condensed font (if one is available or can be generated without loss of quality), or scale down to a smaller font size in order to fit the text in the specified width.
CanvasRenderingContext2D.isPointInPath() - Web APIs
the canvasrenderingcontext2d.ispointinpath() method of the canvas 2d api reports whether or not the specified point is contained in the current path.
...if unspecified, the current path is used.
... return value boolean a boolean, which is true if the specified point is contained in the current or specified path, otherwise false.
... html <canvas id="canvas"></canvas> <p>in path: <code id="result">false</code></p> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); const result = document.getelementbyid('result'); ctx.rect(10, 10, 100, 100); ctx.fill(); result.innertext = ctx.ispointinpath(30, 70); result checking a point in the specified path whenever you move the mouse, this example checks whether the cursor is in a circular path2d path.
CanvasRenderingContext2D.strokeText() - Web APIs
the canvasrenderingcontext2d method stroketext(), part of the canvas 2d api, strokes — that is, draws the outlines of — the characters of a text string at the specified coordinates.
...the text is rendered using the settings specified by font, textalign, textbaseline, and direction.
...if not specified, there is no limit to the width of the text.
... however, if this value is provided, the user agent will adjust the kerning, select a more horizontally condensed font (if one is available or can be generated without loss of quality), or scale down to a smaller font size in order to fit the text in the specified width.
Basic animations - Web APIs
setinterval(function, delay) starts repeatedly executing the function specified by function every delay milliseconds.
... settimeout(function, delay) executes the function specified by function in delay milliseconds.
... requestanimationframe(callback) tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint.
...note that the width and height specified here must match the values of the canvasxzsize and canvasysize variables in the javascript code.
Pixel manipulation with canvas - Web APIs
there are two versions of the createimagedata() method: var myimagedata = ctx.createimagedata(width, height); this creates a new imagedata object with the specified dimensions.
... you can also create a new imagedata object with the same dimensions as the object specified by anotherimagedata.
...the coordinates are specified in canvas coordinate space units.
...it returns a data uri containing a representation of the image in the format specified by the type parameter (defaults to png).
Document.cookie - Web APIs
WebAPIDocumentcookie
consider also that: any of the following cookie attribute values can optionally follow the key-value pair, specifying the cookie to set/update, and preceded by a semi-colon separator: ;path=path (e.g., '/', '/mydir') if not specified, defaults to the current path of the current document location.
...if not specified, this defaults to the host portion of the current document location.
...if a domain is specified, subdomains are always included.
... ;max-age=max-age-in-seconds (e.g., 60*60*24*365 or 31536000 for a year) ;expires=date-in-gmtstring-format if neither expires nor max-age specified it will expire at the end of session.
DocumentOrShadowRoot - Web APIs
documentorshadowroot.elementfrompoint() returns the topmost element at the specified coordinates.
... documentorshadowroot.elementsfrompoint() returns an array of all elements at the specified coordinates.
... documentorshadowroot.nodefrompoint() returns the topmost node at the specified coordinates.
... documentorshadowroot.nodesfrompoint() returns an array of all nodes at the specified coordinates.
EffectTiming.fill - Web APIs
WebAPIEffectTimingfill
the web animations api's effecttiming dictionary's fill property specifies a fill mode, which defines how the element to which the animation is applied should look when the animation sequence is not actively running, such as before the time specified by iterationstart or after animation's end time.
...when used to persist the effect of an animation indefinitely, however, they have a number of drawbacks: the forwards fill of an animation (or backwards fill if the animation is playing in reverse) will continue to override any changes to specified style indefinitely which can lead to confusing behavior.
... rather than using fill modes to persist an animation, it is often simpler to set the final value of the animation effect directly in specified style: elem.animate({ transform: 'translatey(100px)' }, 200).finished.then(() => { elem.style.transform = 'translatey(100px)'; }); alternatively, it may be simpler still to set the final value in specified style before triggering the animation and then animate from the start value.
... elem.addeventlistener('click', async evt => { const animation = elem.animate( { transform: `translate(${evt.clientx}px, ${evt.clienty}px)` }, { duration: 800, fill: 'forwards' } ); await animation.finished; // commitstyles will record the style up to and including `animation` and // update elem’s specified style with the result.
FileReaderSync - Web APIs
methods filereadersync.readasarraybuffer() this method converts a specified blob or a file into an arraybuffer representing the input data as a binary string.
... filereadersync.readasbinarystring() this method converts a specified blob or a file into a domstring representing the input data as a binary string.
... filereadersync.readastext() this method converts a specified blob or a file into a domstring representing the input data as a text string.
... filereadersync.readasdataurl() this method converts a specified blob or a file into a domstring representing the input data as a data url.
HTMLFormElement - Web APIs
only specified values can be set.
...only specified values can be set.
... requestsubmit() requests that the form be submitted using the specified submit button and its corresponding configuration.
...you can then use any of the following syntaxes to get an individual form: document.forms[index] returns the form at the specified index into the array of forms.
HTMLImageElement.srcset - Web APIs
each image candidate string contains an image url and an optional width or pixel density descriptor that indicates the conditions under which that candidate should be used instead of the image specified by the src property.
...otherwise, the condition descriptor may take one of two forms: to indicate that the image resource specified by the image candidate string should be used when the image is being rendered with a particular width in pixels, provide a width descriptor comprised the number giving that width in pixels followed by the lower case letter "w".
...the specified width must be a positive, non-zero, integer, and must match the intrinsic width of the referenced image.
...also specified by the srcset attribute is that the 200-pixel version should be used for 1x displays while the 400-pixel version should be used for 2x displays.
HTMLInputElement - Web APIs
defaultchecked boolean: returns / sets the default state of a radio button or checkbox as originally specified in html that created this object.
... properties not yet categorized defaultvalue string: returns / sets the default value as originally specified in the html that created this object.
... htmlinputelement.stepdown() decrements the value by (step * n), where n defaults to 1 if not specified.
... htmlinputelement.stepup() increments the value by (step * n), where n defaults to 1 if not specified.
HTMLSelectElement - Web APIs
only one form-associated element in a document can have this attribute specified.
... htmlselectelement.nameditem() gets the item in the options collection with the specified name.
... htmlselectelement.remove() removes the element at the specified index from the options collection for this select element.
... htmlselectelement.setcustomvalidity() sets the custom validity message for the selection element to the specified message.
Timing element visibility with the Intersection Observer API - Web APIs
when replacing an existing ad, this is set to the specified ad element (replacebox).
... if a value is specified for replacebox, we use that as the ad element.
... if no value is specified for replacebox, we create a new ad element.
...the ad's background color is set to the value specified in the new ad's record, and elements' classes and contents are set appropriately as well.
MediaRecorder - Web APIs
this may differ from the bit rate specified in the constructor (if it was provided).
...this may differ from the bit rate specified in the constructor (if it was provided).
...if this is specified, the media will be captured in separate chunks of that duration, rather than the default behavior of recording the media in a single large chunk.
... event handlers mediarecorder.ondataavailable called to handle the dataavailable event, which is periodically triggered each time timeslice milliseconds of media have been recorded (or when the entire media has been recorded, if timeslice wasn't specified).
MediaStreamTrackAudioSourceNode() - Web APIs
the web audio api's mediastreamtrackaudiosourcenode() constructor creates and returns a new mediastreamtrackaudiosourcenode object whose audio is taken from the mediastreamtrack specified in the given options object.
... return value a new mediastreamtrackaudiosourcenode object representing the audio node whose media is obtained from the specified media track.
... exceptions notsupportederror the specified context is not an audiocontext.
... invalidstateerror the specified mediastreamtrack isn't an audio track (that is, its kind property isn't audio.
Recording a media element - Web APIs
note that the autoplay attribute is used so that as soon as the stream starts to arrive from the camera, it immediately gets displayed, and the muted attribute is specified to ensure that the sound from the user's microphone isn't output to their speakers, causing an ugly feedback loop.
... function wait(delayinms) { return new promise(resolve => settimeout(resolve, delayinms)); } the wait() function returns a new promise which resolves once the specified number of milliseconds have elapsed.
...we always record no more than the specified number of milliseconds of media, although if the media stops before that time is reached, mediarecorder automatically stops recording as well.
... lines 14-16 creates a new promise, named recorded, which is resolved when the specified number of milliseconds have elapsed.
MessageEvent.MessageEvent() - Web APIs
this can be of any data type, and will default to null if not specified.
...this defaults to an empty string ("") if not specified.
...this defaults to an empty string ("") if not specified.
...this defaults to an empty array ([]) if not specified.
PerformanceObserverEntryList.getEntriesByName() - Web APIs
the list's members are determined by the set of entry types specified in the call to the observe() method.
... return value a list of explicitly observed performance entry objects that have the specified name and type.
... if the type argument is not specified, only the name will be used to determine the entries to return.
...if no objects meet the specified criteria, an empty list is returned.
RTCConfiguration - Web APIs
if this property isn't specified, a set of certificates is generated automatically for each rtcpeerconnection instance.
... this configuration option cannot be changed after it is first specified; once the certificates have been set, this property is ignored in future calls to rtcpeerconnection.setconfiguration().
...if this isn't specified, the connection attempt will be made with no stun or turn server available, which limits the connection to local peers.
...if the policy isn't specified, all is assumed by default, allowing all candidates to be considered.
RTCPeerConnection.createDataChannel() - Web APIs
return value a new rtcdatachannel object with the specified label, configured using the options specified by options if that parameter is included; otherwise, the defaults listed above are established.
... syntaxerror values were specified for both the maxpacketlifetime and maxretransmits options.
... resourceinuse an id was specified, but another rtcdatachannel is already using the same value.
... operationerror either the specified id is already in use or, if no id was specified, the webrtc layer was unable to automatically generate an id because all ids are in use.
RTCRtpSender.setStreams() - Web APIs
the rtcrtpsender method setstreams() associates the sender's track with the specified mediastream or array of mediastream objects.
...if this parameter isn't specified, no new streams will be associated with the track.
... example this example adds all of an rtcpeerconnection's tracks to the specified stream.
...for each sender, if the sender's track is non-null and its transport's state is connected, we call setstreams() to add the track to the stream specified.
Using server-sent events - Web APIs
if this is specified, an event will be dispatched on the browser to the listener for the specified event name; the website source code should use addeventlistener() to listen for named events.
... the onmessage handler is called if no event name is specified for a message.
...if a non-integer value is specified, the field is ignored.
...each has an event name specified by the event field, and a data field whose value is an appropriate json string with the data needed for the client to act on the event.
SubtleCrypto.digest() - Web APIs
sha-1 this algorithm is specified in fips 180-4, section 6.1, and produces an output 160 bits long.
... sha-256 this algorithm is specified in fips 180-4, section 6.2, and produces an output 256 bits long.
... sha-384 this algorithm is specified in fips 180-4, section 6.5, and produces an output 384 bits long.
... sha-512 this algorithm is specified in fips 180-4, section 6.4, and produces an output 512 bits long.
SubtleCrypto.sign() - Web APIs
WebAPISubtleCryptosign
rsassa-pkcs1-v1_5 the rsassa-pkcs1-v1_5 algorithm is specified in rfc 3447.
... rsa-pss the rsa-pss algorithm is specified in rfc 3447.
... ecdsa ecdsa (elliptic curve digital signature algorithm) is a variant of the digital signature algorithm, specified in fips-186, that uses elliptic curve cryptography (rfc 6090).
... the digest algorithm to use is specified in the hmackeygenparams object that you pass into generatekey(), or the hmacimportparams object that you pass into importkey().
Text.splitText() - Web APIs
WebAPITextsplitText
the text.splittext() method breaks the text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
... after the split, the current node contains all the content up to the specified offset point, and a newly created node of the same type contains the remaining text.
... return value returns a newly created text node that contains the text after the specified offset point.
... exceptions thrown a domexception with a value of index_size_err is thrown if the specified offset is negative or is greater than the number of 16-bit units in the node's text; a domexception with a value of no_modification_allowed_err is thrown if the node is read-only.
TextTrack - Web APIs
WebAPITextTrack
the value must adhere to the format specified in the tags for identifying languages (bcp 47) document from the ietf, just like the html lang attribute.
...the default is disabled, unless the <track> element's default boolean attribute is specified, in which case the default mode is started.
... texttrack.addcue() adds a cue (specified as a texttrackcue object to the track's list of cues.
... texttrack.removecue() removes a cue (specified as a texttrackcue object from the track's list of cues.
URL - Web APIs
WebAPIURL
constructor new url() creates and returns a url object referencing the url specified using an absolute url string, or a relative url string and a base url string.
... host a usvstring containing the domain (that is the hostname) followed by (if a port was specified) a ':' and the port of the url.
... password a usvstring containing the password specified before the domain name.
... username a usvstring containing the username specified before the domain name.
User Timing API - Web APIs
performance.getentriesbyname(name, entrytype) returns all performance entries in the performance timeline with the specified name and entrytype, thus set entrytype to "mark" to get all marks (and set name accordingly to retrieve more specific entries).
... performance.getentriesbytype(entrytype) returns all performance entries in the performance timeline with the specified entrytype, thus set entrytype to "mark" to get all marks.
... performance.getentriesbyname(name, entrytype) returns all performance entries in the performance timeline with the specified name and entrytype, thus set entrytype to "measure" to get all measures (and set name accordingly to retrieve more specific entries).
... performance.getentriesbytype(entrytype) returns all performance entries in the performance timeline with the specified entrytype, thus set entrytype to "measure" to get all measures.
A basic 2D WebGL animation example - Web APIs
the usage hint gl.static_draw is specified, telling webgl that the data will be set only one time and never modified, but will be used repeatedly.
... then, for each shader in the specified list of shaders, we call a compileshader() function to compile it, passing into it the id and type of the shader function to build.
..."vertex" : "fragment"} shader:`); console.log(gl.getshaderinfolog(shader)); } return shader; } the code is fetched from the html document by obtaining the value of the text node contained within the <script> element with the specified id.
... then a new shader of the specified type is created using gl.createshader().
XRRenderStateInit - Web APIs
all distances are specified as floating-point values in meters; you can specify a value of 50 centimeters using a value of 0.5, for example.
...all rendering will take place between the distances specified by depthnear and depthfar.
...this property must not be specified for immersive sessions, so the value is null by default for immersive sessions.
... usage notes any properties not specified in the xrrenderstateinit compliant object passed into updaterenderstate() are left at their current values.
XRRigidTransform() - Web APIs
these dimensions are specified in meters.
...the specified orientation gets normalized if it's not already.
... return value a new xrrigidtransform object which has been initialized to represent a transform matrix that would adjust the position and orientation of an object from the origin to the specified position and facing in the direction indicated by orientation.
... exceptions typeerror the value of the w coordinate in the specified position is not 1.0.
XRSession.updateRenderState() - Web APIs
the specified object may have any combination of the following fields.
...all rendering will take place between the distances specified by depthnear and depthfar.
...this property must not be specified for immersive sessions, so the value is null by default for immersive sessions.
... the baselayer specified in newstate was created by an xrsession other than the one on which updaterenderstate() was called.
-moz-image-rect - CSS: Cascading Style Sheets
top the top edge, specified as an <integer> or <percentage>, of the sub-image within the specified image.
... right the right edge, specified as an <integer> or <percentage>, of the sub-image within the specified image.
... bottom the bottom edge, specified as an <integer> or <percentage>, of the sub-image within the specified image.
... left the left edge, specified as an <integer> or <percentage>, of the sub-image within the specified image.
-webkit-mask-attachment - CSS: Cascading Style Sheets
if a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block.
... /* keyword values */ -webkit-mask-attachment: scroll; -webkit-mask-attachment: fixed; -webkit-mask-attachment: local; /* multiple values */ -webkit-mask-attachment: scroll, local; -webkit-mask-attachment: fixed, local, scroll; /* global values */ -webkit-mask-attachment: inherit; -webkit-mask-attachment: initial; -webkit-mask-attachment: unset; syntax values scroll if scroll is specified, the mask image scrolls within the viewport along with the block that contains the mask image.
... fixed if fixed is specified, the mask image does not scroll with its containing element, instead remaining stationary within the viewport.
... formal definition initial valuescrollapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <attachment>#where <attachment> = scroll | fixed | local examples fixing a mask image to the viewport body { -webkit-mask-image: url('images/mask.png'); -webkit-mask-attachment: fixed; } specifications not part of any standard.
fallback - CSS: Cascading Style Sheets
syntax /* keyword values */ fallback: lower-alpha; fallback: custom-gangnam-style; description if the specified fallback style is also unable to construct a representation, then its fallback style will be used.
... if a valid fallback style is not specified, it defaults to decimal.
... a couple of scenarios where a fallback style will be used are: when the range descriptor is specified for a counter style, the fallback style will be used to represent values that fall outside the range.
... formal definition related at-rule@counter-styleinitial valuedecimalcomputed valueas specified formal syntax <counter-style-name>where <counter-style-name> = <custom-ident> examples specifying a fallback counter style html <ul class="list"> <li>one</li> <li>two</li> <li>three</li> <li>four</li> <li>five</li> </ul> css @counter-style fallback-example { system: fixed; symbols: "\24b6" "\24b7" "\24b8"; fallback: upper-alpha; } .list { list-style: fallback-example; } result specifications specification status comment css counter styles level 3the definition of 'fallback' in that specifi...
symbols - CSS: Cascading Style Sheets
the symbols css descriptor is used to specify the symbols that the specified counter system will use to construct counter representations.
... syntax the symbols descriptor is specified as one or more <symbol>s.
... symbols: a b c d e; symbols: "\24b6" "\24b7" "\24b8" d e; symbols: "0" "1" "2" "4" "5" "6" "7" "8" "9"; symbols: url('first.svg') url('second.svg') url('third.svg'); symbols: indic-numbers; the symbols descriptor must be specified when the value of the system descriptor is cyclic, numeric, alphabetic, symbolic, or fixed.
... formal definition related at-rule@counter-styleinitial valuen/acomputed valueas specified formal syntax <symbol>+where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
Coordinate systems - CSS: Cascading Style Sheets
the position is specified as the number of pixels offset from the origin along each dimension of the context.
... offset coordinates specified using the "offset" model use the top-left corner of the element being examined, or on which an event has occurred.
... for example, when a mouse event occurs, the position of the mouse as specified in the event's offsetx and offsety properties are given relative to the top-left corner of the node to which the event has been delivered.
... the origin is inset by the distances specified by padding-left and padding-top.
Box alignment in Multi-column Layout - CSS: Cascading Style Sheets
and the properties listed here, while specified for multicol, may not be supported in browsers.
...any spacing added to the columns due to use of space distribution will be added to the gap between the columns, therefore making the gap larger than might be specified by the column-gap property.
... using a value of justify-content other than normal or stretch will cause column boxes to display at the column-width specified on the multicol container, and the remaining space distributed according to the value of justify-content.
... column-gap the column-gap property was specified in earlier versions of the multiple-column layout specification, and has now been unified with the gap properties for other layout methods in box alignment.
Using CSS gradients - CSS: Cascading Style Sheets
if you leave a location unspecified, the position of that particular color stop will be automatically calculated for you, with the first color stop being at 0% and the last color stop being at 100%, and any other color stops being half way between their adjacent color stops.
...the backgrounds are stacked from top to bottom, with the first specified being on top.
... <div class="radial-ellipse-side"></div> div { width: 240px; height: 100px; } .radial-ellipse-side { background: radial-gradient(ellipse closest-side, red, yellow 10%, #1e90ff 50%, beige); } example: farthest-corner for ellipses this example is similar to the previous one, except that its size is specified as farthest-corner, which sets the size of the gradient by the distance from the starting point to the farthest corner of the enclosing box from the starting point.
...the first specified is on top, the last on the bottom.
animation-delay - CSS: Cascading Style Sheets
this may be specified in either seconds (s) or milliseconds (ms).
... a positive value indicates that the animation should begin after the specified amount of time has elapsed.
... note: when you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are.
... formal definition initial value0sapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <time># examples see css animations for examples.
animation-iteration-count - CSS: Cascading Style Sheets
if multiple values are specified, each time the animation is played the next value in the list is used, cycling back to the first value after the last one is used.
... syntax /* keyword value */ animation-iteration-count: infinite; /* <number> values */ animation-iteration-count: 3; animation-iteration-count: 2.4; /* multiple values */ animation-iteration-count: 2, 0, infinite; the animation-iteration-count property is specified as one or more comma-separated values.
... note: when you specify multiple values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are.
... formal definition initial value1applies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <single-animation-iteration-count>#where <single-animation-iteration-count> = infinite | <number> examples see css animations for examples.
attr() - CSS: Cascading Style Sheets
WebCSSattr
12.5), and interpreted as a <length> with the specified unit.
...12.5), and interpreted as an <angle> with the specified unit.
...12.5), and interpreted as an<time> with the specified unit.
...12.5), and interpreted as a <frequency> with the specified unit.
background-image - CSS: Cascading Style Sheets
the first layer specified is drawn as if it is closest to the user.
... if a specified image cannot be drawn (for example, when the file denoted by the specified uri cannot be loaded), browsers handle it as they would a none value.
... syntax each background image is specified either as the keyword none or as an <image> value.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax <bg-image>#where <bg-image> = none | <image>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
background-position - CSS: Cascading Style Sheets
m; /* multiple images */ background-position: 0 0, center; /* edge offsets values */ background-position: bottom 10px right 20px; background-position: right 3em bottom 10px; background-position: bottom 10px right; background-position: top right 10px; /* global values */ background-position: inherit; background-position: initial; background-position: unset; the background-position property is specified as one or more <position> values, separated by commas.
...if only one value is specified, the second value is assumed to be center.
...the other dimension is then set to 50%, so the item is placed in the middle of the edge specified.
...ckground` shorthand property */ .exampleone { background: url("https://mdn.mozillademos.org/files/11987/startransparent.gif") #ffee99 2.5cm bottom no-repeat; } .exampletwo { background: url("https://mdn.mozillademos.org/files/11987/startransparent.gif") #ffee99 left 4em bottom 1em no-repeat; } /* multiple background images: each image is matched with the corresponding position, from first specified to last.
background - CSS: Cascading Style Sheets
kground-position background-repeat background-size syntax /* using a <background-color> */ background: green; /* using a <bg-image> and <repeat-style> */ background: url("test.jpg") repeat-y; /* using a <box> and <background-color> */ background: border-box red; /* a single image, centered and scaled */ background: no-repeat center/80% url("../img/image.png"); the background property is specified as one or more background layers, separated by commas.
... the <background-color> value may only be included in the last layer specified.
...line.inheritednopercentagesas each of the properties of the shorthand:background-position: refer to the size of the background positioning area minus size of background image; size refers to the width for horizontal offsets and to the height for vertical offsetsbackground-size: relative to the background positioning areacomputed valueas each of the properties of the shorthand:background-image: as specified, but with <url> values made absolutebackground-position: a list, each item consisting of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentagebackground-size: as specified, but with relative lengths converted into absolute lengthsbackground-repeat: a list, each item consisting of two keywords, one p...
...er dimensionbackground-origin: as specifiedbackground-clip: as specifiedbackground-attachment: as specifiedbackground-color: computed coloranimation typeas each of the properties of the shorthand:background-color: a colorbackground-image: discretebackground-clip: discretebackground-position: repeatable list of simple list of length, percentage, or calcbackground-size: repeatable list of simple list of length, percentage, or calcbackground-repeat: discretebackground-attachment: discrete formal syntax [ <bg-layer> , ]* <final-bg-layer>where <bg-layer> = <bg-image> | <bg-position> [ / <bg-size> ]?
border-bottom - CSS: Cascading Style Sheets
as with all shorthand properties, border-bottom always sets the values of all of the properties that it can set, even if they are not specified.
... it sets those that are not specified to their default values.
... constituent properties this property is a shorthand for the following css properties: border-bottom-color border-bottom-style border-bottom-width syntax border-bottom: 1px; border-bottom: 2px dotted; border-bottom: medium dashed blue; the three values of the shorthand property can be specified in any order, and one or two of them may be omitted.
...it also applies to ::first-letter.inheritednocomputed valueas each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-bottom-style: as specifiedborder-bottom-color: computed coloranimation typeas each of the properties of the shorthand:border-bottom-color: a colorborder-bottom-style: discreteborder-bottom-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> ...
border-image-repeat - CSS: Cascading Style Sheets
syntax /* keyword value */ border-image-repeat: stretch; border-image-repeat: repeat; border-image-repeat: round; border-image-repeat: space; /* vertical | horizontal */ border-image-repeat: round stretch; /* global values */ border-image-repeat: inherit; border-image-repeat: initial; border-image-repeat: unset; the border-image-repeat property may be specified using one or two values chosen from the list of values below.
... when one value is specified, it applies the same behavior on all four sides.
... when two values are specified, the first applies to the top and bottom, the second to the left and right.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax [ stretch | repeat | round | space ]{1,2} examples repeating border images css #bordered { width: 12rem; margin-bottom: 1rem; padding: 1rem; border: 40px solid; border-image: url("https://mdn.mozillademos.org/files/4127/border.png") 27; border-image-repeat: stretch; /* can be changed in the live sample */ } html <div id="bordered">you can...
border-left - CSS: Cascading Style Sheets
as with all shorthand properties, border-left always sets the values of all of the properties that it can set, even if they are not specified.
... it sets those that are not specified to their default values.
... constituent properties this property is a shorthand for the following css properties: border-left-color border-left-style border-left-width syntax border-left: 1px; border-left: 2px dotted; border-left: medium dashed green; the three values of the shorthand property can be specified in any order, and one or two of them may be omitted.
...it also applies to ::first-letter.inheritednocomputed valueas each of the properties of the shorthand:border-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-left-style: as specifiedborder-left-color: computed coloranimation typeas each of the properties of the shorthand:border-left-color: a colorborder-left-style: discreteborder-left-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba(...
border-right - CSS: Cascading Style Sheets
as with all shorthand properties, border-right always sets the values of all of the properties that it can set, even if they are not specified.
... it sets those that are not specified to their default values.
... constituent properties this property is a shorthand for the following css properties: border-right-color border-right-style border-right-width syntax border-right: 1px; border-right: 2px dotted; border-right: medium dashed green; the three values of the shorthand property can be specified in any order, and one or two of them may be omitted.
...it also applies to ::first-letter.inheritednocomputed valueas each of the properties of the shorthand:border-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-right-style: as specifiedborder-right-color: computed coloranimation typeas each of the properties of the shorthand:border-right-color: a colorborder-right-style: discreteborder-right-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <r...
border-top - CSS: Cascading Style Sheets
as with all shorthand properties, border-top always sets the values of all of the properties that it can set, even if they are not specified.
... it sets those that are not specified to their default values.
... constituent properties this property is a shorthand for the following css properties: border-top-color border-top-style border-top-width syntax border-top: 1px; border-top: 2px dotted; border-top: medium dashed green; the three values of the shorthand property can be specified in any order, and one or two of them may be omitted.
...it also applies to ::first-letter.inheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-top-color: a colorborder-top-style: discreteborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> |...
box-lines - CSS: Cascading Style Sheets
WebCSSbox-lines
if a value of multiple is specified, however, then the box is allowed to expand to multiple lines (that is, multiple rows or columns) in order to accommodate all of its children.
...the packing of elements in a line, as specified by the box-pack property, is also computed independently for each line.
... syntax the box-lines property is specified as one of the keyword values listed below.
... formal definition initial valuesingleapplies tobox elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax single | multiple examples simple usage example in the original version of the spec, box-lines allowed you to specify that you wanted your flex container's children to wrap onto multiple lines.
column-gap (grid-column-gap) - CSS: Cascading Style Sheets
now specified in box alignment, it may be used in multi-column, flexible box, and grid layouts.
... syntax /* keyword value */ column-gap: normal; /* <length> values */ column-gap: 3px; column-gap: 2.5em; /* <percentage> value */ column-gap: 3%; /* global values */ column-gap: inherit; column-gap: initial; column-gap: unset; the column-gap property is specified as one of the values listed below.
...for multi-column layout this is specified as 1em.
... 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: 20...
Computed value - CSS: Cascading Style Sheets
it is calculated from the specified value by: handling the special values inherit, initial, unset, and revert.
...for example, if an element has specified values font-size: 16px and padding-top: 2em, then the computed value of padding-top is 32px (double the font size).
... however, for some properties (those where percentages are relative to something that may require layout to determine, such as width, margin-right, text-indent, and top), percentage-specified values turn into percentage-computed values.
... additionally, unitless numbers specified on the line-height property become the computed value, as specified.
content - CSS: Cascading Style Sheets
WebCSScontent
it is formatted in the specified style (decimal by default).
...the generated text is the value of all counters with the given name in scope at the given pseudo-element, from outermost to innermost, separated by the specified string.
...on ::before and ::after, if normal is specified, computes to none.
... otherwise, for uri values, the absolute uri; for attr() values, the resulting string; for other keywords, as specified.animation typediscrete formal syntax normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?where <content-replacement> = <image><content-list> = [ <string> | contents | <image> | <quote> | <target> | <leader()> ]+where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient><quote> = open-quote | close-quote | no-open-quote | no-close-quote<target> = <target-counter()> | <target-counters()> | <target-text()><leader()> = leader( <leader-type> )where <image()> = image( <image-tags>?
drop-shadow() - CSS: Cascading Style Sheets
blur-radius (optional) the shadow's blur radius, specified as a <length>.
...if unspecified, it defaults to 0, resulting in a sharp, unblurred edge.
... color (optional) the color of the shadow, specified as a <color>.
... if unspecified, the value of the color property is used.
font-language-override - CSS: Cascading Style Sheets
syntax the font-language-override property is specified as the keyword normal or a <string>.
... values normal tells the browser to use font glyphs that are appropriate for the language specified by the lang attribute.
... <string> tells the browser to use font glyphs that are appropriate for the language specified by the string.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | <string> examples using danish glyphs html <p class="para1">default language setting.</p> <p class="para2">this is a string with the <code>font-language-override</code> set to danish.</p> css p.para1 { font-language-override: normal; } p.para2 { font-language-override: "dan"; } result specifications specification status comment css fonts module level 4the definition of 'font-language-override' in that specification.
grid-area - CSS: Cascading Style Sheets
WebCSSgrid-area
if four <grid-line> values are specified, grid-row-start is set to the first value, grid-column-start is set to the second value, grid-row-end is set to the third value, and grid-column-end is set to the fourth value.
... note: named grid areas automatically generate implicit named lines of this form, so specifying grid-area: foo; will choose the start/end edge of that named grid area (unless another line named foo-start/foo-end was explicitly specified before it).
... otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
... formal definition initial valueas each of the properties of the shorthand:grid-row-start: autogrid-column-start: autogrid-row-end: autogrid-column-end: autoapplies togrid items and absolutely-positioned boxes whose containing block is a grid containerinheritednocomputed valueas each of the properties of the shorthand:grid-row-start: as specifiedgrid-column-start: as specifiedgrid-row-end: as specifiedgrid-column-end: as specifiedanimation typediscrete formal syntax <grid-line> [ / <grid-line> ]{0,3}where <grid-line> = auto | <custom-ident> | [ <integer> && <custom-ident>?
grid-row - CSS: Cascading Style Sheets
WebCSSgrid-row
if two <grid-line> values are specified, the grid-row-start longhand is set to the value before the slash, and the grid-row-end longhand is set to the value after the slash.
... note: named grid areas automatically generate implicit named lines of this form, so specifying grid-row: foo; will choose the start/end edge of that named grid area (unless another line named foo-start/foo-end was explicitly specified before it).
... otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
... formal definition initial valueas each of the properties of the shorthand:grid-row-start: autogrid-row-end: autoapplies togrid items and absolutely-positioned boxes whose containing block is a grid containerinheritednocomputed valueas each of the properties of the shorthand:grid-row-start: as specifiedgrid-row-end: as specifiedanimation typediscrete formal syntax <grid-line> [ / <grid-line> ]?where <grid-line> = auto | <custom-ident> | [ <integer> && <custom-ident>?
grid-template-rows - CSS: Cascading Style Sheets
; grid-template-rows: [linename1] 100px [linename2] repeat(auto-fit, [linename3 linename4] 300px) 100px; grid-template-rows: [linename1 linename2] 100px repeat(auto-fit, [linename1] 300px) [linename3]; /* global values */ grid-template-rows: inherit; grid-template-rows: initial; grid-template-rows: unset; this property may be specified as: either the keyword value none or a <track-list> value or an <auto-track-list> value.
...as a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track.
...rather than being specified explicitly, the sizes of the grid rows/columns will be taken from the parent grid’s definition.
... formal definition initial valuenoneapplies togrid containersinheritednopercentagesrefer to corresponding dimension of the content areacomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typesimple list of length, percentage, or calc, provided the only differences are in the values of the length, percentage, or calc components in the list formal syntax none | <track-list> | <auto-track-list> | subgrid <line-name-list>?where <track-list> = [ <line-names>?
grid - CSS: Cascading Style Sheets
WebCSSgrid
grid-auto-flow is also set to column accordingly, with dense if it’s specified.
...grid-auto-flow is also set to row accordingly, with dense if it’s specified.
...f the properties of the shorthand:grid-template-rows: refer to corresponding dimension of the content areagrid-template-columns: refer to corresponding dimension of the content areagrid-auto-rows: refer to corresponding dimension of the content areagrid-auto-columns: refer to corresponding dimension of the content areacomputed valueas each of the properties of the shorthand:grid-template-rows: as specified, but with relative lengths converted into absolute lengthsgrid-template-columns: as specified, but with relative lengths converted into absolute lengthsgrid-template-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
WebCSSimage
css determines an object's concrete size using (1) its intrinsic dimensions; (2) its specified size, defined by css properties like width, height, or background-size; and (3) its default size, determined by the kind of property the image is used with: kind of object (css property) default object size background-image the size of the element's background positioning area list-style-image the size of a 1em character border-image-source the...
...if supported, the browser-defined size matching the usual cursor size on the client's system content for a pseudo-element (::after/::before) a 300px × 150px rectangle the concrete object size is calculated using the following algorithm: if the specified size defines both the width and the height, these values are used as the concrete object size.
... if the specified size defines only the width or only the height, the missing value is determined using the intrinsic ratio, if there is any, the intrinsic dimensions if the specified value matches, or the default object size for that missing value.
... if the specified size defines neither the width nor the height, the concrete object size is calculated so that it matches the intrinsic aspect ratio of the image but without exceeding the default object size in any dimension.
Inheritance - CSS: Cascading Style Sheets
in css, inheritance controls what happens when no value is specified for a property on an element.
... inherited properties when no value for an inherited property has been specified on an element, the element gets the computed value of that property on its parent element.
... non-inherited properties when no value for a non-inherited property has been specified on an element, the element gets the initial value of that property (as specified in the property's summary).
... see also css values for controlling inheritance: inherit, initial, unset, and revert introducing the css cascade cascade and inheritance css key concepts: css syntax, at-rule, comments, specificity and inheritance, the box, layout modes and visual formatting models, and margin collapsing, or the initial, computed, resolved, specified, used, and actual values.
mask-border-repeat - CSS: Cascading Style Sheets
syntax /* keyword value */ mask-border-repeat: stretch; mask-border-repeat: repeat; mask-border-repeat: round; mask-border-repeat: space; /* vertical | horizontal */ mask-border-repeat: round stretch; /* global values */ mask-border-repeat: inherit; mask-border-repeat: initial; mask-border-repeat: unset; the mask-border-repeat property may be specified using one or two values chosen from the list of values below.
... when one value is specified, it applies the same behavior on all four sides.
... when two values are specified, the first applies to the top and bottom, the second to the left and right.
... formal definition initial valuestretchapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ stretch | repeat | round | space ]{1,2} examples basic usage this property doesn't appear to be supported anywhere yet.
max-block-size - CSS: Cascading Style Sheets
the max-block-size css property specifies the maximum size of an element in the direction opposite that of the writing direction as specified by writing-mode.
... the other dimension's maximum length is specified using the max-inline-size property.
... auto the browser will calculate and select a max-width for the specified element.
... fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
max-height - CSS: Cascading Style Sheets
it prevents the used value of the height property from becoming larger than the value specified for max-height.
... auto the browser will calculate and select a max-height for the specified element.
... fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...if the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as none.computed valuethe percentage as specified or the absolute length or noneanimation typea length, percentage or calc(); formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length>...
max-width - CSS: Cascading Style Sheets
WebCSSmax-width
it prevents the used value of the width property from becoming larger than the value specified by max-width.
... auto the browser will calculate and select a max-width for the specified element.
... fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
... mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.4 | w3c understanding wcag 2.0 formal definition initial valuenoneapplies toall elements but non-replaced inline elements, table rows, and row groupsinheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute length or noneanimation typea length, percentage or calc(); formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> examples setting max width in pixels in this example, the "child" will be either 150 pixels wide or the width of the "parent," whichever is smaller.
min-height - CSS: Cascading Style Sheets
it prevents the used value of the height property from becoming smaller than the value specified for min-height.
... auto the browser will calculate and select a min-height for the specified element.
... fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...if the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as 0.computed valuethe percentage as specified or the absolute lengthanimation typea length, percentage or calc(); formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> examples setting min-height table { min-height: 75%; }...
min-width - CSS: Cascading Style Sheets
WebCSSmin-width
it prevents the used value of the width property from becoming smaller than the value specified for min-width.
... auto the browser will calculate and select a min-width for the specified element.
... fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
... formal definition initial valueautoapplies toall elements but non-replaced inline elements, table rows, and row groupsinheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length, percentage or calc(); formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> examples setting minimum element width table { min-width: 75%; } form { min-width: 0; } specifications specification status comment css box sizing module level 4the definition of 'min-width' in that specification.
paint-order - CSS: Cascading Style Sheets
ormal */ paint-order: normal; /* single values */ paint-order: stroke; /* draw the stroke first, then fill and markers */ paint-order: markers; /* draw the markers first, then fill and stroke */ /* multiple values */ paint-order: stroke fill; /* draw the stroke first, then the fill, then the markers */ paint-order: markers stroke fill; /* draw markers, then stroke, then fill */ if no value is specified, the default paint order is fill, stroke, markers.
... when one value is specified, that one is painted first, followed by the other two in their default order relative to one another.
... when two values are specified, they will be painted in the order they are specified in, followed by the unspecified one.
... formal definition initial valuenormalapplies totext elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | [ fill | stroke | markers ] examples reversing the paint order of stroke and fill svg <svg xmlns="http://www.w3.org/2000/svg" width="400" height="200"> <text x="10" y="75">stroke in front</text> <text x="10" y="150" class="stroke-behind">stroke behind</text> </svg> css text { font-family: sans-serif; font-size: 50px; font-weight: bold...
pointer-events - CSS: Cascading Style Sheets
vents: visiblestroke; /* svg only */ pointer-events: visible; /* svg only */ pointer-events: painted; /* svg only */ pointer-events: fill; /* svg only */ pointer-events: stroke; /* svg only */ pointer-events: all; /* svg only */ /* global values */ pointer-events: inherit; pointer-events: initial; pointer-events: unset; the pointer-events property is specified as a single keyword chosen from the list of values below.
... values auto the element behaves as it would if the pointer-events property were not specified.
... description when this property is unspecified, the same characteristics of the visiblepainted value apply to svg content.
... formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | none | visiblepainted | visiblefill | visiblestroke | visible | painted | fill | stroke | all | inherit examples disabling pointer events on all images this example disables pointer events (clicking, dragging, hovering, etc.) on all images.
scroll-behavior - CSS: Cascading Style Sheets
when this property is specified on the root element, it applies to the viewport instead.
... this property specified on the body element will not propagate to the viewport.
... syntax /* keyword values */ scroll-behavior: auto; scroll-behavior: smooth; /* global values */ scroll-behavior: inherit; scroll-behavior: initial; scroll-behavior: unset; the scroll-behavior property is specified as one of the keyword values listed below.
... formal definition initial valueautoapplies toscrolling boxesinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | smooth examples setting smooth scroll behavior html <nav> <a href="#page-1">1</a> <a href="#page-2">2</a> <a href="#page-3">3</a> </nav> <scroll-container> <scroll-page id="page-1">1</scroll-page> <scroll-page id="page-2">2</scroll-page> <scroll-page id="page-3">3</scroll-page> </scroll-container> css a { display: inline-block; width: 50px; text-decoration: none; } nav, scroll-containe...
shape-outside - CSS: Cascading Style Sheets
x); shape-outside: path('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'); /* <url> value */ shape-outside: url(image.png); /* <gradient> value */ shape-outside: linear-gradient(45deg, rgba(255, 255, 255, 0) 150px, red 150px); /* global values */ shape-outside: initial; shape-outside: inherit; shape-outside: unset; the shape-outside property is specified using the values from the list below, which define the float area for float elements.
... <image> the float area is extracted and computed based on the alpha channel of the specified <image> as defined by shape-image-threshold.
...if this results in network errors such that there is no valid fallback image, the effect is as if the value none had been specified.
... formal definition initial valuenoneapplies tofloatsinheritednocomputed valueas defined for <basic-shape> (with <shape-box> following, if supplied), the <image> with its uri made absolute, otherwise as specified.animation typeyes, as specified for <basic-shape>, otherwise no formal syntax none | <shape-box> | <basic-shape> | <image>where <shape-box> = <box> | margin-box<basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()><image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <box> = border-box | padding-box | content-box<inset()>...
transition-timing-function - CSS: Cascading Style Sheets
you may specify multiple timing functions; each one will be applied to the corresponding property as specified by the transition-property property, which acts as a transition-property list.
... if there are fewer timing functions specified than in the transition-property list, the user agent must calculate which value is used by repeating the list of values until there is one for each transition property.
...the step timing functions divides the input time into a specified number of intervals that are equal in length.
... formal definition initial valueeaseapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <timing-function>#where <timing-function> = linear | <cubic-bezier-timing-function> | <step-timing-function>where <cubic-bezier-timing-function> = ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number <a href="/docs/css/value_definition_syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a sin...
translate - CSS: Cascading Style Sheets
WebCSStranslate
equivalent to a translate() (2d translation) function with a single value specified.
...equivalent to a translate() (2d translation) function with two values specified.
... formal definition initial valuenoneapplies totransformable elementsinheritednopercentagesrefer to the size of bounding boxcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea transformcreates stacking contextyes formal syntax none | <length-percentage> [ <length-percentage> <length>?
... initial valuenoneapplies totransformable elementsinheritednopercentagesrefer to the size of bounding boxcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea transformcreates stacking contextyes ...
disabled - HTML: Hypertext Markup Language
if the disabled attribute is specified on a form control, the element and its form control descendants do not participate in constraint validation.
...if this attribute is not specified, the control inherits its setting from the containing element, for example fieldset; if there is no containing element with the disabled attribute set, and the control itself does not have the attribute, then the control is enabled.
... because a disabled field cannot have it's value changed, required does not have any effect on inputs with the disabled attribute also specified.
... note: the required attribute is not permitted on inputs with the disabled attribute specified.
HTML attribute: pattern - HTML: Hypertext Markup Language
the pattern attribute, when specified, is a regular expression which the input's value must match in order for the value to pass constraint validation.
... it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of unicode code points, instead of as ascii.
... no forward slashes should be specified around the pattern text.
... if the specified pattern is not specified or is invalid, no regular expression is applied and this attribute is ignored.
<input type="datetime-local"> - HTML: Hypertext Markup Language
this value must specify a date string later than or equal to the one specified by the min attribute.
... this value must specify a date string earlier than or equal to the one specified by the max attribute.
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate default value if neither of those is provided) are valid.
... depending on what browser you are using, you might find that times outside the specified values might not be selectable in the time picker (e.g.
<input type="number"> - HTML: Hypertext Markup Language
WebHTMLElementinputnumber
if a value is specified for min that isn't a valid number, the input has no minimum value.
... note: because a read-only field cannot have a value, required does not have any effect on inputs with the readonly attribute also specified.
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate default value if neither of those is provided) are valid.
... validation we have already mentioned a number of validation features of number inputs, but let's review them now: <input type="number"> elements automatically invalidate any entry that isn't a number (or empty, unless required is specified).
<input type="submit"> - HTML: Hypertext Markup Language
WebHTMLElementinputsubmit
if specified, the value of the formenctype attribute overrides the owning form's action attribute.
...a value specified here overrides any target given by the target attribute on the <form> that owns this input.
...this is the default value used if none is specified.
... in this example, s is specified as the access key (you'll need to press s plus the particular modifier keys for your browser/os combination.
<input type="week"> - HTML: Hypertext Markup Language
WebHTMLElementinputweek
this value must be greater than or equal to the year and week specified by the min attribute.
...if a value is specified for min that isn't a valid week string, the input has no minimum value.
... note: because a read-only field cannot have a value, required does not have any effect on inputs with the readonly attribute also specified.
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate default value if neither of those is provided) are valid.
<keygen> - HTML: Hypertext Markup Language
WebHTMLElementkeygen
defaults to an empty string if not specified.
...if this attribute is not specified, this element must be a descendant of a <form> element.
...the value of the pqg parameter is the the base64 encoded, der encoded dss-parms as specified in ietf rfc 3279.
...the signedpublickeyandchallenge is base64 encoded, and the ascii data is finally submitted to the server as the value of a form name/value pair, where the name is name as specified by the name attribute of the keygen element.
<marquee>: The Marquee element (Obsolete) - HTML: Hypertext Markup Language
WebHTMLElementmarquee
if no value is specified, the default value is scroll.
...if no value is specified, the default value is left.
...if no value is specified, the default value is −1, which means the marquee will scroll continuously.
...note that any value smaller than 60 is ignored and the value 60 is used instead, unless truespeed is specified.
<object> - HTML: Hypertext Markup Language
WebHTMLElementobject
codebasehtml 4 onlyobsolete since html5 the base path used to resolve relative uris specified by classid, data, or archive.
... if not specified, the default is the base uri of the current document.
... codetypehtml 4 onlyobsolete since html5 the content type of the data specified by classid.
... type the content type of the resource specified by data.
<select>: The HTML Select element - HTML: Hypertext Markup Language
WebHTMLElementselect
if this attribute is not specified, the control inherits its setting from the containing element, for example <fieldset>; if there is no containing element with the disabled attribute set, then the control is enabled.
...if it is not specified, then only one option can be selected at a time.
... when multiple is specified, most browsers will show a scrolling list box instead of a single line dropdown.
...when multiple is specified), this attribute represents the number of rows in the list that should be visible at one time.
<source>: The Media or Image Source element - HTML: Hypertext Markup Language
WebHTMLElementsource
if the type attribute isn't specified, the media's type is retrieved from the server and checked to see if the user agent can handle it; if it can't be rendered, the next <source> is checked.
... if the type attribute is specified, it's compared against the types the user agent can present, and if it's not recognized, the server doesn't even get queried; instead, the next <source> element is checked at once.
... when used in the context of a <picture> element, the browser will fall back to using the image specified by the <picture> element's <img> child if it is unable to find a suitable image to use after examing every provided <source>.
...if the browser supports the element but does not support any of the specified formats, an error event is raised and the default media controls (if enabled) will indicate an error.
Using the application cache - HTML: Hypertext Markup Language
the process for loading documents and updating the application cache is specified in greater detail below: when the browser visits a document that includes the manifest attribute, if no application cache exists, the browser loads the document and then fetches all the entries listed in the manifest file, creating the first version of the application cache.
... subsequent visits to that document cause the browser to load the document and other assets specified in the manifest file from the application cache (not from the server).
...resources can be specified using either absolute or relative urls (e.g., index.html).
...network entries in an application cache are essentially an "online whitelist"—uris specified in the network section are loaded from the server instead of the cache.
Using HTTP cookies - HTTP
WebHTTPCookies
an expiration date or duration can be specified, after which the cookie is no longer sent.
... permanent cookies are deleted at a date specified by the expires attribute, or after a period of time specified by the max-age attribute.
...if unspecified, it defaults to the same origin that set the cookie, excluding subdomains.
... if domain is specified, then subdomains are always included.
A re-introduction to JavaScript (JS tutorial) - JavaScript
rue javascript also has the special values infinity and -infinity: 1 / 0; // infinity -1 / 0; // -infinity you can test for infinity, -infinity and nan values using the built-in isfinite() function: isfinite(1 / 0); // false isfinite(-infinity); // false isfinite(nan); // false the parseint() and parsefloat() functions parse a string until they reach a character that isn't valid for the specified number format, then return the number parsed up to that point.
...what that actually means is specified by the way in which you called that function.
...it creates a brand new empty object, and then calls the function specified, with this set to that new object.
... notice though that the function specified with this does not return a value but merely modifies the this object.
JavaScript modules - JavaScript
the modules directory's two modules are described below: canvas.js — contains functions related to setting up the canvas: create() — creates a canvas with a specified width and height inside a wrapper <div> with a specified id, which is itself appended inside a specified parent element.
... createreportlist() — creates an unordered list appended inside a specified wrapper element, which can be used to output report data into.
... draw() — draws a square on a specified canvas, with a specified size, position, and color.
...e all in the following simple form: export { name, draw, reportarea, reportperimeter }; the imports on the other hand look like this: import * as canvas from './modules/canvas.js'; import * as square from './modules/square.js'; import * as circle from './modules/circle.js'; import * as triangle from './modules/triangle.js'; in each case, you can now access the module's imports underneath the specified object name, for example: let square1 = square.draw(mycanvas.ctx, 50, 50, 100, 'blue'); square.reportarea(square1.length, reportlist); square.reportperimeter(square1.length, reportlist); so you can now write the code just the same as before (as long as you include the object names where needed), and the imports are much neater.
Function.prototype.bind() - JavaScript
return value a copy of the given function with the specified this value, and initial arguments (if provided).
...this : otherthis, baseargs ); }; if (this.prototype) { // function.prototype doesn't have a prototype property fnop.prototype = this.prototype; } fbound.prototype = new fnop(); return fbound; }; })(); some of the many differences (there may well be others, as this list does not seriously attempt to be exhaustive) between this algorithm and the specified algorithm are: the partial implementation relies on array.prototype.slice(), array.prototype.concat(), function.prototype.call() and function.prototype.apply(), built-in methods to have their original values.
...a full implementation—depending on the length of the target function and the number of pre-specified arguments—may return a non-zero length.
...ex = module.getx; retrievex(); // returns 9; the function gets invoked at the global scope // create a new function with 'this' bound to module // new programmers might confuse the // global variable 'x' with module's property 'x' const boundgetx = retrievex.bind(module); boundgetx(); // returns 81 partially applied functions the next simplest use of bind() is to make a function with pre-specified initial arguments.
Object.prototype.propertyIsEnumerable() - JavaScript
the propertyisenumerable() method returns a boolean indicating whether the specified property is enumerable and is the object's own property.
... return value a boolean indicating whether the specified property is enumerable and is the object's own property.
...this method can determine whether the specified property in an object can be enumerated by a for...in loop, with the exception of properties inherited through the prototype chain.
... if the object does not have the specified property, this method returns false.
TypedArray - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
... typedarray.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... typedarray.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... typedarray.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Uint8ClampedArray - JavaScript
the uint8clampedarray typed array represents an array of 8-bit unsigned integers clamped to 0-255; if you specified a value that is out of the range of [0,255], 0 or 255 will be set instead; if you specify a non-integer, the nearest integer will be set.
... uint8clampedarray.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... uint8clampedarray.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... uint8clampedarray.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
page-worker - Archive of obsolete content
content scripts specified by this option are loaded before those specified by the contentscript option.
...content scripts specified by this option are loaded after those specified by the contentscriptfile option.
... page a page object loads the page specified by its contenturl option and executes any content scripts that have been supplied to it in the contentscript and contentscriptfile options.
simple-prefs - Archive of obsolete content
the options are specified by a mandatory "options" attribute, that is an array of objects with mandatory attributes "label" and "value" the values of the "value" attributes must be supplied as strings.
... the options are specified by a mandatory "options" attribute, that is an array of objects with mandatory attributes "label" and "value" the values of the "value" attributes must be supplied as strings.
... removelistener(prefname, listener) unregisters an event listener for the specified preference.
content/symbiont - Archive of obsolete content
usage a symbiont loads the specified contenturl and content scripts into a frame, and sets up an asynchronous channel between the content scripts and the add-on code, enabling them to exchange messages using the port or postmessage apis.
...content scripts specified by this property are loaded before those specified by the contentscript property.
...content scripts specified by this property are loaded after those specified by the contentscriptfile property.
event/target - Archive of obsolete content
such listeners are called only once next time event of the specified type is emitted: target.once('ready', function onready() { // do the thing once ready!
... on(type, listener) registers an event listener that is called every time events of specified type are emitted.
... returns eventtarget : returns the eventtarget instance once(type, listener) registers an event listener that is called only once: the next time an event of the specified type is emitted.
stylesheet/style - Archive of obsolete content
those rules are applied after the rules in the stylesheet specified with uri options, if provided.
... style properties source an array of strings that contains the css rule(s) specified in the constructor's option; null if no source option was given to the constructor.
... uri an array of strings that contains the stylesheet local uri(s) specified in the constructor's option; null if no uri option was given to the constructor.
console - Archive of obsolete content
console.log(object[, object, ...]) logs the arguments to the console, preceded by "info:" and the name of your add-on: console.log("this is an informational message"); info: my-addon: this is an informational message console.time(name) starts a timer with a name specified as an input parameter.
... console.timeend(name) stops the specified timer and logs the elapsed time in seconds since its start.
...if set, this determines the logging level for the specified add-on.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
a window's dimensions and location on screen can be specified using the attributes width, height, screenx, and screeny (all using pixels as units).
... by inserting an xul-overlay processing instruction between the xml declaration and the opening tag of the root element, the xul document specified by the xul-overlay will be read in at the same time as the current xul document.
... the xul document that actually gets displayed will be a combination of the original xul document and the one specified in xul-overlay.
Creating a Help Content Pack - Archive of obsolete content
nc:defaulttopic will hold the rdf:id of the topic you want displayed when the viewer first loads if none has been specified.
...each panel is specified by one rdf:description element with the following attributes: nc:panelid specifies the name of the panel, which may be any one of glossary, search, toc, or index.
... the data source specified by toc will always be displayed, while the other data sources may only be available by searching through the loaded content pack.
New Security Model for Web Services - Archive of obsolete content
allowing web script access to permit scripts to access the resources of this server, use the following command: <wsa:allow type="<request-type>" from ="<uri-prefix>"/> the type of request, if specified, will be checked against the type of request being requested by the script, such as "soap", "soapv", or "load".
... the principle uri of the script will be checked for the specified uri prefix.
... if "from" is not specified, then all scripts will be allowed.
Methods - Archive of obsolete content
confirm displays a confirm dialog box with the specified message and ok and cancel buttons.
... deleteregisteredfile deletes the specified file and its entry in the client version registry.
... loadresources returns an object whose properties are localized strings loaded from the specified property file.
popup.position - Archive of obsolete content
this value can be specified either as a single word offering pre-defined alignment positions, or as 2 words specifying exactly which part of the anchor and popup should be aligned.
... if specified as 2 words, the value indicates which corner or edge of the anchor (the first word) is aligned which which corner of the popup (the second word).
... positions specified as a single word string are shortcuts for the values above.
Introduction - Archive of obsolete content
in xul, the datasource is specified by placing the datasources attribute on an element.
...for example, for an xml datasource, the url of an xml file is specified.
...the type of datasource is specified with the querytype attribute.
Template Logging - Archive of obsolete content
the id of the result is specified at the end, in this case 'http://www.some-fictitious-zoo.com/b...emperorpenguin'.
...however, note that the result is specified as being 'inactive'.
...neither container or child variables of <member> has a value this indicates that a <member> was being checked and yet neither the variables specified for the container or the child have a value for a result.
Creating a Window - Archive of obsolete content
create a file called findfile.xul and put it in the content directory specified in the findfile.manifest file (we've created in the previous section).
...if this is not specified, the default window will open.
...instead, it causes the specified file to open as a top-level window without any browser chrome, such as the address field or menu.
Manifest Files - Archive of obsolete content
three overlays are also specified, which allow content from different packages to combine together.
...if the xpcnativewrappers flag is specified, it indicates that scripts running in a privileged context don't call these overridden versions, but the original built-in versions instead.
...this means that the skin and locale modify the findfile package, which was specified on the first line.the three paths above specify subdirectories for each part.
Trees - Archive of obsolete content
ArchiveMozillaXULTutorialTrees
the columns are specified using the treecols tag.
... in this case we haven't specified a view to supply the tree's data, so we'll only see column headers and an empty tree body.
...in this case, the tree uses the built-in tree view, called a content tree view, which uses the labels and values specified on these elements as the data for the tree.
commandset - Archive of obsolete content
if this attribute is not specified, or you set it to the value '*', all events are valid.
...if this attribute is not specified, or you set it to the value '*', all elements are valid.
... the command update will only occur when the event occurs to one of the specified elements.
prefpane - Archive of obsolete content
the former is specified using a preferences element while the latter may be specified using other xul elements.
... both may be specified directly as children of the prefpane element, or the src attribute may be used to put a pane in a separate file.
...if this is not specified, the contents of the prefpane element is used.
textbox - Archive of obsolete content
the multiline attribute can be specified to display a field with multiple rows.
... if not specified, this defaults to false the html the spellcheck attribute uses values of true or false (you cannot simply add the spellcheck attribute to a given element): <!-- spellcheck everything!
...if this attribute is not specified, word wrapping is enabled.
NPN_PostURL - Archive of obsolete content
url url of the request, specified by the plug-in.
... target display target, specified by the plug-in.
...values: true: post the file whose path is specified in buf, then delete the file.
Introduction to SSL - Archive of obsolete content
this step confirms that the server is actually located at the same network address specified by the domain name in the server certificate.
... man-in-the-middle attack as suggested in step 4 above, the client application must check the server domain name specified in the server certificate against the actual domain name of the server with which the client is attempting to communicate.
... at this point, however, the binding between the public key and the dn specified in the certificate has not yet been established.
-ms-content-zoom-snap-points - Archive of obsolete content
initial valuesnapinterval(0%, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values snapinterval( <percentage>, <percentage> ) specifies where the snap-points will be placed.
... if any value specified is less than that specified by the -ms-content-zoom-limit-min property, the value of -ms-content-zoom-limit-min is used.
... if any value specified is greater than that specified by the -ms-content-zoom-limit-max property, the value of -ms-content-zoom-limit-max is used.
-ms-filter - Archive of obsolete content
syntax the -ms-filter property is specified as a string that contains a list of one or more items, separated by spaces, of the following types: filters transitions procedural surfaces formal syntax filter: <-ms-filter-function>+ -ms-filter: [ "'" <-ms-filter-function># "'" ] | [ '"' <-ms-filter-function># '"' ] where <-ms-filter-function> = <-ms-filter-function-progid> | <-ms-filter-function-legacy> where <-ms-filter-function-pro...
... initial value"" (the empty string)applies toall elementsinheritednocomputed valueas specifiedanimation typediscrete remarks the following table lists the most popular dx filters and their standards-based alternatives: dx filter standards-based alternative alpha opacity alphaimageloader <img> or background-image and related properties gradient background-image: linear-gradient() dropshadow text-shadow or box-shadow ...
...a simple way to accomplish this is to give the element a specified height and width, or both.
VBArray - Archive of obsolete content
vbarray.getitem returns the item at the specified location.
... vbarray.lbound returns the lowest index value used in the specified dimension of a vbarray.
... vbarray.ubound returns the highest index value used in the specified dimension of the vbarray.
XForms Label Element - Archive of obsolete content
the label text can be specified in instance data, in a remote document, or as inline text.
... if more than one source of label text is specified for this element, the order of precedence is: single node binding attributes, linking attributes, inline text.
... ui behavior accesskey support - if the accesskey attribute is specified on labeled xforms controls or on the label element itself then the label text for the control will contain an indicator as to what the access key is in a standard way.
Parsing microformats in JavaScript - Archive of obsolete content
this removes the subject if one is specified, as well as the mailto: prefix.
...string = html.match(a); performs the specified matching operation on the html and returns the result.
... return value a string containing all the text from the specified microformat node, including the tags.
XUL Parser in Python - Archive of obsolete content
if you want to test this script you should change the filename "res.html" specified in the fourth line and compare different results files.
...after all the xul files in the specified directory and its subdirectories are fed to the parser and parsed (using the win32 system's <tt>dir /s /b *.xul</tt> command), the dictionary of dictionaries is sorted and written into an html table.
...if you want to look for certain widgets within the xul files, you can get the filename from the calling method p.feed(data) and create a condition that only gets the elements specified in sys.argv[1].
Canonical order - MDN Web Docs Glossary: Definitions of Web-related terms
in css, canonical order is used to refer to the order in which separate values need to be specified (or parsed) or are to be serialized as part of a css property value.
... it is defined by the formal syntax of the property and normally refers to the order in which longhand values should be specified as part of a single shorthand value.
...the canonical order of those longhand values is defined as background-image background-position background-size background-repeat background-attachment background-origin background-clip background-color furthermore, its syntax defines, that if a value for the background-size is given, it must be specified after the value for the background-position, separated by a slash.
Using CSS generated content - Learn web development
note: content specified in a stylesheet does not become part of the dom.
... html a text where i need to <span class="ref">something</span> css .ref::before { font-weight: bold; color: navy; content: "reference "; } output the character set of a stylesheet is utf-8 by default, but it can also be specified in the link, in the stylesheet itself, or in other ways.
... individual characters can also be specified by an escape mechanism that uses backslash as the escape character.
Graceful asynchronous programming with Promises - Learn web development
inside the function body, we have a similar structure to what we saw in the first example — we call the fetch() function to fetch the resource at the specified url, then chain it onto another promise that returns the decoded (or "read") response body.
... the above example is not very flexible — the promise can only ever fulfil with a single string, and it doesn't have any kind of reject() condition specified (admittedly, settimeout() doesn't really have a fail condition, so it doesn't matter for this simple example).
... finally, if the parameters both look ok, we resolve the promise with the specified message after the specified interval has passed using settimeout().
Introduction to events - Learn web development
}) on an element multiple times, with different functions specified in the second argument.
... event objects sometimes inside an event handler function, you'll see a parameter specified with a name such as event, evt, or simply e.
...when you fill in the details and select the submit button, the natural behavior is for the data to be submitted to a specified page on the server for processing, and the browser to be redirected to a "success message" page of some kind (or the same page, if another is not specified.) the trouble comes when the user has not submitted the data correctly — as a developer, you want to prevent the submission to the server and give an error message saying what's wrong and what needs to be done to put things right.
Fetching data from the server - Learn web development
let's look at the promise structure from above again to see if we can make some more sense of it: fetch(url).then(function(response) { response.text().then(function(text) { poemdisplay.textcontent = text; }); }); the first line is saying "fetch the resource located at url" (fetch(url)) and "then run the specified function when the promise resolves" (.then(function() { ...
..."resolve" means "finish performing the specified operation at some point in the future".
... the specified operation, in this case, is to fetch a resource from a specified url (using an http request), and return the response for us to do something with.
Client-Server Overview - Learn web development
delete: delete the specified resource.
... it can accept the specified set of characters (accept-charset: iso-8859-1,utf-8;q=0.7,*;q=0.7) and languages (accept-language: de,en;q=0.7,en-us;q=0.3).
...the status code of "302 found" tells the browser that the post succeeded, and that it must issue a second http request to load the page specified in the location field.
HTTP logging
go to the folder containing the specified log file, and gather all the log files.
... this is accomplished by splitting the log into up to 4 separate files (their filenames have a numbered extension, .0, .1, .2, .3) the logging back end cycles the files it writes to, while ensuring that the sum of these files’ sizes will never go over the specified limit.
... the append module specified is then ignored.
Displaying Places information using views
if both an id attribute and anonid attribute are specified, the anonid is used.
... selectplaceuri() causes a particular node represented by the specified placeuri to be selected in the tree.
...the latter functionality is specified specifically by interface nsinavhistoryresulttreeviewer, which inherits from the more general nsinavhistoryresultobserver .
Firefox UI considerations for web developers
if tippy top doesn't include the site, firefox looks in its places data store for icons specified in the page's <head> element; if an svg icon is available, that icon is selected.
... rich icons the high resolution icons—also known as rich icons—are specified by setting the rel attribute to one of: apple-touch-icon apple-touch-icon-precomposed fluid-icon the size of each icon is taken from the size attribute specified on the <link>, if it's provided.
...here, there are three of them, each specified as apple-touch-icon-precomposed.
Geckoview-Junit Tests
mozilla-central$ mach install --app org.mozilla.geckoview.test to run all tests: mozilla-central$ mach geckoview-junit to run just one class of tests: mozilla-central$ mach geckoview-junit <class> please note that unlike robocop tests, <class> needs to be specified using the fully qualified class name including the package, e.g.
... to run just one test: mozilla-central$ mach geckoview-junit <class>#<test> to run more than one test: mozilla-central$ mach geckoview-junit <class1>#<test1> <class2>#<test2> mach geckoview-junit also supports running a list of tests that are specified in a text file.
...for example: <class1>#<test1> <class2> <class3>#<test2> <class3>#<test3> to run the tests specified in the file: mozilla-central$ mach geckoview-junit --test-filters-file <path-to-filter-file> disabling one failing test there is no manifest listing the geckoview junit tests.
PopupNotifications.jsm
remove() removes the specified notification.
...only one notification for each id can be visible at a time; if one with the specified id already exists, it will be replaced with the newer notification.
...this is normally specified in css using list-style-image and the .popup-notification-icon[popupid=...] selector.
Localization and Plurals
components.utils.import("resource://gre/modules/pluralform.jsm"); methods: get these methods make use of the browser's current locale specified by chrome://global/locale/intl.properties's pluralrule value.
... // let's get irish (plural rule #11) let [get, numforms] = pluralform.makegetter(11); // make up some values to use with "get" let dummytext = "form 1;form 2;form 3;form 4;form 5"; let dummynum = 10; // in the case of irish, the value 10 uses plural form #4, so "form 4" is printed print(get(dummynum, dummytext)); in this example, the irish plural rule was hardcoded, but this could be a value specified in the .properties file.
...(you can use destructured assignment in javascript 1.7 to keep things clean.) the returned functions act just like pluralform.get() and pluralform.numforms(), except for the specified plural rule instead of the default plural rule.
Mozilla Style System
in one half (the backend) are the sources of specified style data, and in the other half (the frontend) is the code that turns the specified values into computed values.
...they all have names beginning with nsstyle*, and they should not be confused with the css structs (nscss*), which hold specified values.
... the grouping of properties into structs follows two rules: any properties in the same style struct must also be in the same css struct all of the properties in a style struct must be inherited or they must all be non-inherited (see inheritance for an explanation of the difference) the first of these rules is no longer important (in fact, the separation of the specified values into nscss* structs is no longer important).
Locks
pr_destroylock destroys a specified lock object.
... pr_lock locks a specified lock object.
... pr_unlock unlocks a specified lock object.
PL_HashTableAdd
add a new entry with the specified key and value to the hash table.
... description add a new entry with the specified key and value to the hash table.
...you can write your freeentry function to free the value of the specified entry if the old value should be freed.
PR_CWait
returns the function returns one of the following values: pr_success indicates either that the monitored object has been notified or that the interval specified in the timeout parameter has been exceeded.
... description using the value specified in the address parameter to find a monitor in the monitor cache, pr_cwait waits for a notification that the monitor's state has changed.
... the thread waiting on the monitor resumes execution when the monitor is notified (assuming the thread is the next in line to receive the notify) or when the interval specified in the timeout parameter has been exceeded.
PR_GMTParameters
returns the time zone offset information that maps the specified prexplodedtime to gmt.
...this time should be specified in gmt.
... returns a time parameters structure that expresses the time zone offsets at the specified time.
PR_Listen
listens for connections on a specified socket.
... description pr_listen turns the specified socket into a rendezvous socket.
...the maximum size of the queue for pending connections is specified by the backlog parameter.
PR_LocalTimeParameters
returns the time zone offset information that maps the specified prexplodedtime to local time.
...this time should be specified in gmt.
... returns a time parameters structure that expresses the time zone offsets at the specified time.
PR_Sleep
causes the current thread to yield for a specified amount of time.
... description pr_sleep simply waits on a condition for the amount of time specified.
...all other values of ticks cause pr_sleep to block the calling thread for the specified interval.
PR_Wait
returns the function returns one of the following values: pr_success means the thread is being resumed from the pr_wait call either because it was explicitly notified or because the time specified by the parameter ticks has expired.
... a thread waiting on the monitor resumes when the monitor is notified or when the timeout specified by the ticks parameter elapses.
...if the value of timeout is not pr_interval_no_timeout, pr_wait resumes execution after the specified interval has expired.
PR_WaitCondVar
after a call to pr_waitcondvar, the lock is released and the thread is blocked in a "waiting on condition" state until another thread notifies the condition or a caller-specified amount of time expires.
... any value other than pr_interval_no_timeout or pr_interval_no_wait for the timeout parameter will cause the thread to be rescheduled due to either explicit notification or the expiration of the specified interval.
...to detect the expiration of the specified interval, call pr_intervalnow before and after the call to pr_waitcondvar and compare the elapsed time with the specified interval.
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
ificate to the nss database */ secstatus addcert(pk11slotinfo *slot, certcertdbhandle *handle, const char *name, char *trusts, char *infilename, prbool ascii, prbool emailcert, void *pwdata) { secitem certder; secstatus rv; certcerttrust *trust = null; certcertificate *cert = null; certder.data = null; /* read in the entire file specified with the -i argument */ rv = readderfromfile(&certder, infilename, ascii); if (rv != secsuccess) { pr_fprintf(pr_stderr, "unable to read input file %s : %s\n", infilename, port_errortostring(rv)); goto cleanup; } /* read in an ascii cert and return a certcertificate */ cert = cert_decodecertfrompackage((char *)certder.data, certder.le...
...nknown) { pr_fprintf(pr_stderr, "unknown key or hash type\n"); rv = secfailure; goto cleanup; } rv = sec_dersigndata(arena, &result, encoding->data, encoding->len, privk, signalgtag); if (rv) { pr_fprintf(pr_stderr, "signing of data failed\n"); rv = secfailure; goto cleanup; } /* encode request in specified format */ if (ascii) { char *obuf; char *name, *email, *org, *state, *country; secitem *it; int total; it = &result; obuf = btoa_convertitemtoascii(it); total = pl_strlen(obuf); name = cert_getcommonname(subject); if (!name) { name = strdup("(not specified)"); } email = cert_getcer...
...temailaddress(subject); if (!email) email = strdup("(not specified)"); org = cert_getorgname(subject); if (!org) org = strdup("(not specified)"); state = cert_getstatename(subject); if (!state) state = strdup("(not specified)"); country = cert_getcountryname(subject); if (!country) country = strdup("(not specified)"); pr_fprintf(outfile, "\ncertificate request generated by netscape certutil\n"); pr_fprintf(outfile, "common name: %s\n", name); pr_fprintf(outfile, "email: %s\n", email); pr_fprintf(outfile, "organization: %s\n", org); pr_fprintf(outfile, "state: %s\n", state); pr_fprintf(outfile, "country: %s\n\n", ...
sample2
ert_destroycertificate (issuercert); } return cert; } /* * add a certificate to the nss database */ secstatus addcert(pk11slotinfo *slot, certcertdbhandle *handle, const char *name, char *trusts, char *infilename, prbool ascii, prbool emailcert, void *pwdata) { secitem certder; secstatus rv; certcerttrust *trust = null; certcertificate *cert = null; certder.data = null; /* read in the entire file specified with the -i argument */ rv = readderfromfile(&certder, infilename, ascii); if (rv != secsuccess) { pr_fprintf(pr_stderr, "unable to read input file %s : %s\n", infilename, port_errortostring(rv)); goto cleanup; } /* read in an ascii cert and return a certcertificate */ cert = cert_decodecertfrompackage((char *)certder.data, certder.len); if (!cert) { pr_fprintf(pr_stderr, "could not obtain certif...
...est */ signalgtag = sec_getsignaturealgorithmoidtag(keytype, hashalgtag); if (signalgtag == sec_oid_unknown) { pr_fprintf(pr_stderr, "unknown key or hash type\n"); rv = secfailure; goto cleanup; } rv = sec_dersigndata(arena, &result, encoding->data, encoding->len, privk, signalgtag); if (rv) { pr_fprintf(pr_stderr, "signing of data failed\n"); rv = secfailure; goto cleanup; } /* encode request in specified format */ if (ascii) { char *obuf; char *name, *email, *org, *state, *country; secitem *it; int total; it = &result; obuf = btoa_convertitemtoascii(it); total = pl_strlen(obuf); name = cert_getcommonname(subject); if (!name) { name = strdup("(not specified)"); } email = cert_getcertemailaddress(subject); if (!email) email = strdup("(not specified)"); org = cert_getorgname(subject); if (!org) org ...
...= strdup("(not specified)"); state = cert_getstatename(subject); if (!state) state = strdup("(not specified)"); country = cert_getcountryname(subject); if (!country) country = strdup("(not specified)"); pr_fprintf(outfile, "\ncertificate request generated by netscape certutil\n"); pr_fprintf(outfile, "common name: %s\n", name); pr_fprintf(outfile, "email: %s\n", email); pr_fprintf(outfile, "organization: %s\n", org); pr_fprintf(outfile, "state: %s\n", state); pr_fprintf(outfile, "country: %s\n\n", country); pr_fprintf(outfile, "%s\n", ns_certreq_header); numbytes = pr_write(outfile, obuf, total); if (numbytes != total) { pr_fprintf(pr_stderr, "write error\n"); return secfailure; } pr_fprintf(outfile, "\n%s\n", ns_certreq_trailer); } else { numbytes = pr_write(outfile, result.data, result.len); if (...
NSS tools : crlutil
-i import a crl to the cert database -e erase all crls of specified type from the cert database -l list existing crl located in cert database file.
...if options -m|-g is used and -c crl-script-file is not specified, crlutil will read script data from standard input.
... reasoncode non-critical code where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certif...
pkfnc.html
the pk11_findcertfromnickname function calls the password callback function set with pk11_setpasswordfunc and passes it the pointer specified by the wincx parameter.
... pk11_findkeybyanycert finds the private key associated with a specified certificate in any available slot.
... the pk11_findkeybyanycert function calls the password callback function set with pk11_setpasswordfunc and passes it the pointer specified by the wincx parameter.
NSS Tools pk12util
-o p12file export certificate and private key, specified by the -n option, from the database to the p12 file.
...if not specified the directory defaults to $home/.netscape (when $home exists in the environment), or to ./.netscape (when $home does not exist in the environment).
...if no algorithm is specified, the tool defaults to using "pkcs12 v2 pbe with sha1 and 3key triple des-cbc" for private key encryption.
NSS tools : crlutil
MozillaProjectsNSStoolscrlutil
-i import a crl to the cert database -e erase all crls of specified type from the cert database -l list existing crl located in cert database file.
...if options -m|-g is used and -c crl-script-file is not specified, crlutil will read script data from standard input.
... reasoncode non-critical code where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or t...
Bytecode Descriptions
dynamicimport stack: moduleid ⇒ promise dynamic import of the module specified by the string value on the top of the stack.
...format: jof_atom, jof_name, jof_propset, jof_checksloppy, jof_ic strictsetname operands: (uint32_t nameindex) stack: env, val ⇒ val like jsop::setname, but throw a typeerror if there is no binding for the specified name in env, or if the binding is immutable (a const or read-only property).
... the weird scoping rules for functions with default parameter expressions, as specified in functiondeclarationinstantiation step 28 ("note: a separate environment record is needed...").
JS::Call
this article covers features introduced in spidermonkey 17 call a specified js function.
... thisobj js::handleobject / js::handlevalue the "current" object on which the function operates; the object specified here is "this" when the function executes.
... description js::call calls a specified function, fun, on an object, thisobj.
JSID_IS_SYMBOL
description jsid_is_symbol tests whether a specified js id, id, is a js symbol, and returns true if it's a js symbol.
... jsid_to_symbol converts a specified js id, id to a js symbol.
... symbol_to_jsid converts a specified js symbol, i to a jsid.
JS_DefineConstDoubles
description js_defineconstdoubles creates one or more properties for a specified object, obj, where each property consists of a double value.
... js_defineconstintegers creates one or more properties for a specified object, obj, where each property consists of a int32_t value.
... obsolete from jsapi 35 each property is automatically assigned attributes as specified in the flags field of the jsconstdoublespec/jsconstintegerspec structure pointed to by cds/cis.
JS_LockGCThing
protect a specified js item from garbage collection.
... description js_lockgcthing is a deprecated function that protects a specified item, thing, associated with an executable script context, cx, from garbage collection.
...js_unlockgcthing removes a lock from a specified item, thing, allowing it to be garbage collected when the javascript engine determines it is unreachable.
JS_ValueToBoolean
description js_valuetoboolean converts a specified javascript value, v, to a boolean value.
... it implements the toboolean operator specified in ecma 262-3 §9.2.
...this is the behavior specified in ecma 262-3 §9.2.
JS_ValueToString
description js_valuetostring converts a specified javascript value, v, to a string.
... it implements the tostring operator specified in ecma 262-3 §9.8.
... if v is a number, conversion succeeds, and the result is a string representation of that number as specified in ecma 262-3 §9.8.1.
TPS Tests
the extension will read the test file and perform a series of actions specified therein, such as populating a set of bookmarks, syncing to the sync server, making bookmark modifications, etc.
... performs the specified actions in sequence.
...nc_wipe_server] ]); phase('phase2', [ [sync], [bookmarks.verify, bookmarks_initial], [bookmarks.modify, bookmarks_initial], [bookmarks.verify, bookmarks_after_first_modify], [sync] ]); phase('phase3', [ [sync], [bookmarks.verify, bookmarks_after_first_modify] ]); the effects of this test file will be: firefox is launched with profile1, the tps extension adds the two bookmarks specified in the bookmarks_initial array, then they are synced to the sync server.
Gecko object attributes
for diagrams with levels, each item can have its level specified.
...if not specified, the default should be considered "additions text", which indicates that newly created objects and changes to text and text equivalents should be considered relevant, and that the hiding or removal of items is not.
...when this is not specified, the default is string, unless the value interface is exposed, which indicates the type is numeric.
Places utilities for JavaScript
getindexofnode() gets the index of a node within its parent container int getindexofnode(anode) parameters anode the node to look up return type returns the index of the node within its parent container, or -1 if the node was not found or the node specified has no parent.
... wrapnode() string-wraps a result node according to the rules of the specified content type.
... return type return string serialized place uri getdescriptionfromdocument() get the description associated with a document, as specified in a <meta> element.
Querying Places
for sorting, you will generally want to use sort_by_none (the default) since this will return items in their "natural" order as specified by the user in the bookmarks manager.
...if no options were specified, it will have the default values.
... if there were no query parameters specified but the input string was not empty (there were options) you may get one query object returned, containing the default query values.
The Publicity Stream API
if not specified, will default to the beginning of the stream.
...if not specified, will default to now.
...if not specified, will default to [25].
Accessing the Windows Registry Using XPCOM
notice in the open() call that the root key to use is specified using the named constants available on the nsiwindowsregkey interface, in this case root_key_local_machine, which corresponds to hkey_local_machine in the windows registry.
... the desired access rights are specified using a named constant from the interface, in this example access_read.
...it is specified as a bitwise combination of flags defined on the interface.
XPCShell Reference
if that file is found, it is executed before any other js files specified.
... -v version this allows you to specify a specific version of js to use, and should be set to an integral value specified by the jsversion enumerated type.
...if specified, it should equate to a valid filename.
nsIAccessibleEditableText
it also includes and support basic operations such as, inserting text, copying text, cutting text, pasting text and deleting text at the specified position.
... inserttext() inserts text at the specified position.
... attributes the set of attributes that replaces the old list of attributes of the specified text portion.
nsIAuthPrompt
note: if a username is specified, the username should be escaped.
...if a username is specified (http://user@site.com) it will be used when matching existing logins or saving new ones.
... if no username is specified, only password-only logins will be matched or saved.
nsIChannel
note: the content type can often be wrongly specified (for example wrong file extension, wrong mime type, wrong document type stored on a server and so on.), and the caller most likely wants to verify with the actual data.
...data is fed to the specified stream listener as it becomes available.
... exceptions thrown ns_error_already_opened if the channel is reopened ns_error_port_access_not_allowed if the specified port is in the nsioservice forbidden port list.
nsICollection
getelementat() returns the element at the specified index into the collection.
...queryelementat() performs a queryinterface on the item at the specified index into the collection.
... setelementat() replaces an item at a specified index in the collection with a new one.
nsIDNSService
resolve_canonical_name (1 << 1) the canonical name of the specified host will be queried.
...a specified nsidnslistener is invoked when the resolution process is completed.
...if this parameter is null, then onlookupcomplete will be called on an unspecified thread (possibly recursively).
nsIDOMHTMLAudioElement
returns the current offset of the audio stream, specified as the number of samples that have played since the beginning of the stream.
...unsigned long mozwriteaudio( in jsval data ); parameters data the samples to write into the audio stream, specified either as a javascript array or as a numeric typed array.
...ns_error_dom_index_size_err the number of samples specified doesn't divide evenly across the number of channels; you must provide exactly the same number of samples for all channels.
nsIDOMHTMLSourceElement
if specified, its value must be a valid mime type.
... the codecs parameter may be specified and might be necessary to specify exactly how the resource is encoded.
...the type is specified as "video/ogg", and the source element also specifies that the video file uses the dirac and speex codecs.
nsIDocShell
override that character set for documents for which the specified fallback or auto-detected character set is incorrect.
... kcharsetfromchannel 12 the nsichannel specified the character set.
... kcharsetfromuserforced 15 the user specified a character set to force onto this content; all descendents will have this character set forced onto it.
nsIEditorSpellCheck
void replaceword(in wstring misspelledword, in wstring replaceword, in boolean alloccurrences); void savedefaultdictionary(); obsolete since gecko 9.0 void setcurrentdictionary(in astring dictionary); void setfilter(in nsitextservicesfilter filter); void uninitspellchecker(); void updatecurrentdictionary(); methods addwordtodictionary() adds the specified word to the current personal dictionary.
...boolean checkcurrentword( in wstring suggestedword ); parameters suggestedword missing description return value true if the specified word is misspelled; otherwise false.
...ignorewordalloccurrences() tells the spell checker to ignore all occurrences of the specified word when spell checking the document.
nsIHttpActivityObserver
aactivitytype the type of activity that occurred; this will be one of the values specified in activity type constants.
...if the activity type is activity_type_http_transaction, this will be one of the constants specified in activity subtype constants above.
... atimestamp the time at which the activity occurred, specified as microseconds elapsed since the epoch of midnight on january 1, 1970.
nsIIDNService
convertutf8toace() converts the specified hostname from utf-8 to ace format, using the idna "toascii" algorithm.
...isace() determines whether or not the specified hostname is ace encoded.
... return value returns true if the specified string is ace encoded; otherwise, returns false.
nsIINIParser
nsiutf8stringenumerator getkeys(in autf8string asection); nsiutf8stringenumerator getsections(); autf8string getstring(in autf8string asection, in autf8string akey); methods getkeys() returns an nsiutf8stringenumerator providing the keys available within the specified section of the ini file.
...getstring() returns the string value for the specified key within a particular section of the ini file.
... return value the string value of the specified key.
nsIInstallLocation
constant value description priority_app_profile 0 priority_app_system_user 10 priority_xre_system_user 100 priority_app_system_global 1000 priority_xre_system_global 10000 methods getidforlocation() retrieves the guid for an item at the specified location.
... return value the id for an item that might live at the location specified.
... stagefile() stages the specified file by copying it to some location from where it can be retrieved later to complete installation.
nsIMsgFolder
void onflagchange(in unsigned long flag); setprefflag() gets the number of folders and folders that have the specified flag set.
... boolean containschildnamed(in astring name); getchildnamed() return the child folder which the specified name.
... nsimsgfolder getchildnamed(in astring aname); findsubfolder() finds the sub folder with the specified name.
nsINavBookmarkObserver
anewvalue the items new value, if required by the property specified by aproperty.
... notes this table indicates what anewvalue should be depending on property specified by aproperty: property string value "cleartime" empty string; this property means the history was deleted, so there's no last visit date.
...note: the reported time is the time of the visit that was added, which may be well in the past since the visit time can be specified.
nsINavHistoryResultTreeViewer
return value the node located at the specified index in the tree.
... treeindexfornode() returns the row index corresponding to the specified node within the tree, or index_invisible if the tree is unattached or the node is not visible (if, for example, its parent container is collapsed).
... return value the row index of the node specified by anode, or index_invisible for nodes that are hidden (by their parents being collapsed, for example) or if there is no attached tree.
nsINavHistoryResultViewObserver
methods candrop() implement this method to report whether or not a drop is permitted onto the specified location.
... onperformactiononrow() this method provides a command api that can be used to invoke commands on the specified row.
... onperformactiononcell() this method provides a command api that can be used to invoke commands on a specified cell.
nsIProfile
deleteprofile() deletes the specified profile.
... profileexists() determine whether or not a profile with the specified name exists.
... return value true if there is a profile with the specified name.
nsISecurityCheckedComponent
method overview string cancallmethod(in nsiidptr iid, in wstring methodname); string cancreatewrapper(in nsiidptr iid); string cangetproperty(in nsiidptr iid, in wstring propertyname); string cansetproperty(in nsiidptr iid, in wstring propertyname); methods cancallmethod() returns a capability string indicating what permissions are required to call the specified method on the given interface.
...cangetproperty() returns the permissions required to get the specified property on the given interface.
...cansetproperty() returns the permissions required to set the specified property on the given interface.
nsISound
play() plays a sound specified by url.
... playeventsound() plays the system sound for the specified event.
... playsystemsound() plays the system sound whose name is specified.
nsIWebBrowser
methods addwebbrowserlistener() registers a listener of the type specified by the iid to receive callbacks.
... ns_error_invalid_arg one of the arguments was invalid or the object did not implement the interface specified by the iid.
... ns_error_invalid_arg one of the arguments was invalid or the object did not implement the interface specified by the iid.
nsIWebNavigationInfo
methods istypesupported() determines whether or not the specified mime type is supported by the given nsiwebnavigation object.
...you may specify null to check for compatibility with nsiwebnavigation objects that are in their default state; otherwise, the result is determined based on the configuration of the specified object (that is, how it is configured by using nsiwebbrowsersetup).
... return value returns one of the support type constants, indicating whether or not the specified mime type is supported, and in what form that support exists.
Creating a gloda message query
gloda.daterange([lowerdate1, upperdate1], [lowerdate2, upperdate2], ...): add the constraint that the message date (per the message's date header) must fall within one of the specified inclusive ranges.
... query.folder(folder1, folder2, ...): add the constraint that the message must be found in one of the specified folders.
... query.conversation(conversation1, conversation2, ...): add the constraint that the message must belong to one of the specified conversations.
Add to iPhoto
the pathname is specified as a value of type ctypes.unsigned_char.ptr, which is a pointer to an unsigned character.
... a cfindex indicating the size of the array specified by the previous parameter.
...it gets the filename of the file being download by slicing it off the end of the specified image url, then obtains the path to the temporary items folder and appends the image file's name to that path.
AbstractRange - Web APIs
endcontainer read only the dom node in which the end of the range, as specified by the endoffset property, is located.
... startcontainer read only the dom node in which the beginning of the range, as specified by the startoffset property, is located.
... in this example, the start of the specified range is found within the text node below the section's heading, which means that the new documentfragment will need to contain an <h2> and, below it, a text node.
AudioContext() - Web APIs
samplerate optional the samplerate to be used by the audiocontext, specified in samples per second.
...if not specified, the preferred sample rate for the context's output device is used by default.
... exceptions notsupportederror the specified samplerate isn't supported by the context.
AudioContext.createMediaStreamTrackSource() - Web APIs
the createmediastreamtracksource() method of the audiocontext interface creates and returns a mediastreamtrackaudiosourcenode which represents an audio source whose data comes from the specified mediastreamtrack.
... this differs from createmediastreamsource(), which creates a mediastreamaudiosourcenode whose audio comes from the audio track in a specified mediastream whose id is first, lexicographically (alphabetically).
... return value a mediastreamtrackaudiosourcenode object which acts as a source for audio data found in the specified audio track.
AudioContextOptions.latencyHint - Web APIs
the value is specified either as a member of the string enum audiocontextlatencycategory or a double-precision value.
...there are two ways this value can be specified.
... the value can also be specified as a double-precision floating-point value, specifying the preferred maximum latency in seconds.
AudioNode.connect() - Web APIs
WebAPIAudioNodeconnect
the connect() method of the audionode interface lets you connect one of the node's outputs to a target, which may be either another audionode (thereby directing the sound data to the specified node) or an audioparam, so that the node's output data is automatically used to change the value of that parameter over time.
... exceptions indexsizeerror the value specified as outputindex or inputindex doesn't correspond to an existing input or output.
... notsupportederror the specified connection would create a cycle (in which the audio loops back through the same nodes repeatedly) and there are no delaynodes in the cycle to prevent the resulting waveform from getting stuck constructing the same audio frame indefinitely.
AudioNode.disconnect() - Web APIs
input optional an index describing which input into the specified destination audionode is to be disconnected.
... exceptions indexsizeerror a value specified for input or output is invalid, referring to a node which doesn't exist or outside the permitted range.
... invalidaccesserror the node on which disconnect() was called isn't connected to the specified destination node.
AudioParam.value - Web APIs
WebAPIAudioParamvalue
this value will be between the values specified by the minvalue and maxvalue properties.
...one solution is to use the math.fround() method, which returns the single-precision value equivalent to the 64-bit javascript value specified—when setting value, like this: const source = new audiobuffersourcenode(...); const rate = math.fround(5.3); source.playbackrate.value = rate; console.log(source.playbackrate.value === rate); in this case, the log output will be true.
... if the current time equals or exceeds the time specified by a previous call to setvalueattime(), the value is changed to the value passed into setvalueattime().
AudioParam - Web APIs
the change starts at the time specified for the previous event, follows a linear ramp to the new value given in the value parameter, and reaches the new value at the time given in the endtime parameter.
...the change starts at the time specified for the previous event, follows an exponential ramp to the new value given in the value parameter, and reaches the new value at the time given in the endtime parameter.
...the change starts at the time specified in starttime and exponentially moves towards the value given by the target parameter.
AudioTrackList.getTrackById() - Web APIs
the audiotracklist method gettrackbyid() returns the first audiotrack object from the track list whose id matches the specified string.
... this lets you find a specified track if you know its id string.
... return value an audiotrack object indicating the first track found within the audiotracklist whose id matches the specified string.
CSSStyleSheet - Web APIs
deleterule() deletes the rule at the specified index into the stylesheet's rule list.
... insertrule() inserts a new rule at the specified position in the stylesheet, given the textual representation of the rule.
... removerule() functionally identical to deleterule(); removes the rule at the specified index from the stylesheet's rule list.
CSS Typed Object Model API - Web APIs
it sets a specific css property to the specified values and returns the first value as a cssstylevalue object.
... cssstylevalue.parseall() the parseall() method of the cssstylevalue interface sets all occurences of a specific css property to the specified valueand returns an array of cssstylevalue objects, each containing one of the supplied values.
...otherwise, false cssnumericvalue.to - converts value into another one with the specified unit.
CanvasRenderingContext2D.getImageData() - Web APIs
the canvasrenderingcontext2d method getimagedata() of the canvas 2d api returns an imagedata object representing the underlying pixel data for a specified portion of the canvas.
...if the specified rectangle extends outside the bounds of the canvas, the pixels outside the canvas are transparent black in the returned imagedata object.
... return value an imagedata object containing the image data for the rectangle of the canvas specified.
CanvasRenderingContext2D.isPointInStroke() - Web APIs
the canvasrenderingcontext2d.ispointinstroke() method of the canvas 2d api reports whether or not the specified point is inside the area contained by the stroking of a path.
...if unspecified, the current path is used.
... html <canvas id="canvas"></canvas> <p>in stroke: <code id="result">false</code></p> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); const result = document.getelementbyid('result'); ctx.rect(10, 10, 100, 100); ctx.stroke(); result.innertext = ctx.ispointinstroke(50, 10); result checking a point in the specified path whenever you move the mouse, this example checks whether the cursor is in the stroke of an elliptical path2d path.
Applying styles and colors - Web APIs
globalalpha = transparencyvalue applies the specified transparency value to all future shapes drawn on the canvas.
...inpath(); 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).
... more exactly, the miter limit is the maximum allowed ratio of the extension length (in the html canvas, it is measured between the outside corner of the joined edges of the line and the common endpoint of connecting segments specified in the path) to half the line width.
DataTransfer.getData() - Web APIs
the datatransfer.getdata() method retrieves drag data (as a domstring) for the specified type.
... return value domstring a domstring representing the drag data for the specified format.
... if the drag operation has no data or the operation has no data for the specified format, this method returns an empty string.
DataTransferItemList.add() - Web APIs
the datatransferitemlist.add() method creates a new datatransferitem using the specified data and adds it to the drag data list.
... return value a datatransferitem containing the specified data.
... exceptions notsupportederror a string data parameter was provided, and the list already contains an item whose kind is "plain unicode string" and whose type is equal to the specified type parameter.
Document.getElementById() - Web APIs
the document method getelementbyid() returns an element object representing the element whose id property matches the specified string.
... since element ids are required to be unique if specified, they're a useful way to get access to a specific element quickly.
... return value an element object describing the dom element object matching the specified id, or null if no matching element was found in the document.
DocumentFragment - Web APIs
documentfragment.queryselector() returns the first element node within the documentfragment, in document order, that matches the specified selectors.
... documentfragment.queryselectorall() returns a nodelist of all the element nodes within the documentfragment that match the specified selectors.
... documentfragment.getelementbyid() returns the first element node within the documentfragment, in document order, that matches the specified id.
Element.getAttribute() - Web APIs
the getattribute() method of the element interface returns the value of a specified attribute on the element.
... non-existing attributes essentially all web browsers (firefox, internet explorer, recent versions of opera, safari, konqueror, and icab, as a non-exhaustive list) return null when the specified attribute does not exist on the specified element; this is what the current dom specification draft specifies.
...consequently, you should use element.hasattribute() to check for an attribute's existence prior to calling getattribute() if it is possible that the requested attribute does not exist on the specified element.
Element.scrollLeft - Web APIs
setting the value // set the number of pixels scrolled element.scrollleft = 10; scrollleft can be specified as any integer value.
... if specified as a value less than 0 (greater than 0 for right-to-left elements), scrollleft is set to 0.
... if specified as a value greater than the maximum that the content can be scrolled, scrollleft is set to the maximum.
FeaturePolicy.getAllowlistForFeature() - Web APIs
syntax const allowlist = featurepolicy.getallowlistforfeature(<feature>) parameter feature name a specific feature name must be specified.
... return value an allow list for the specified feature.
... errors the function will raise a warning if the specified feature policy directive name is not known.
FileSystemFileEntry.file() - Web APIs
example this example establishes a method, readfile(), reads a text file and calls a specified callback function with the received text (in a string object) once the read is completed.
... if an error occurs, a specified (optional) error callback is called.
...the filereader's load event handler is set up to deliver the loaded string to the successcallback specified when the readfile() method was called; similarly, its error handler is set up to call the errorcallback specified.
HTMLHyperlinkElementUtils - Web APIs
htmlhyperlinkelementutils.host this is a usvstring containing the host, that is the hostname, and then, if the port of the url is not empty (which can happen because it was not specified or because it was specified to be the default port of the url's scheme), a ':', and the port of the url.
... htmlhyperlinkelementutils.username this is a usvstring containing the username specified before the domain name.
... htmlhyperlinkelementutils.password this is a usvstring containing the password specified before the domain name.
Image() - Web APIs
usage note the entire bitmap is loaded regardless of the sizes specified in the constructor.
... the size specified in the constructor is reflected through the properties htmlimageelement.width and htmlimageelement.height of the resulting instance.
...if no size is specified in the constructor both pairs of properties have the same values.
HTMLMarqueeElement - Web APIs
if no value is specified, the default value is scroll.
...if no value is specified, the default value is left.
...if no value is specified, the default value is −1, which means the marquee will scroll continuously.
Option() - Web APIs
if this is not specified, a default value of "" (empty string) is used.
...if this is not specified, the value of text is used as the value, e.g.
...if this is not specified, a default value of false is used.
Drag Operations - Web APIs
if the type is not specified, the data associated with all types is removed.
...any highlighting or other visual effects specified using the :-moz-drag-over pseudoclass will be removed automatically.
...it is used only as a shorthand, and it does not appear within the list of types specified in the types property.
Headers.append() - Web APIs
WebAPIHeadersappend
the difference between set() and append() is that if the specified header already exists and accepts multiple values, set() will overwrite the existing value with the new one, whereas append() will append the new value onto the end of the set of values.
... example creating an empty headers object is simple: var myheaders = new headers(); // currently empty you could add a header to this using append(): myheaders.append('content-type', 'image/jpeg'); myheaders.get('content-type'); // returns 'image/jpeg' if the specified header already exists, append() will change its value to the specified value.
... if the specified header already exists and accepts multiple values, append() will append the new value to the end of the value set: myheaders.append('accept-encoding', 'deflate'); myheaders.append('accept-encoding', 'gzip'); myheaders.get('accept-encoding'); // returns 'deflate, gzip' to overwrite the old value with a new one, use headers.set.
Headers.set() - Web APIs
WebAPIHeadersset
the difference between set() and headers.append is that if the specified header already exists and accepts multiple values, set() overwrites the existing value with the new one, whereas headers.append appends the new value to the end of the set of values.
... example creating an empty headers object is simple: var myheaders = new headers(); // currently empty you could add a header to this using headers.append, then set a new value for this header using set(): myheaders.append('content-type', 'image/jpeg'); myheaders.set('content-type', 'text/html'); if the specified header does not already exist, set() will create it and set its value to the specified value.
... if the specified header does already exist and does accept multiple values, set() will overwrite the existing value with the new one: myheaders.set('accept-encoding', 'deflate'); myheaders.set('accept-encoding', 'gzip'); myheaders.get('accept-encoding'); // returns 'gzip' you'd need headers.append to append the new value onto the values, not overwrite it.
IDBDatabaseSync - Web APIs
if a null path is specified, then the object store does not have a key path, and uses out-of-line keys.
... openobjectstore() opens the object store with the given name in the connected database using the specified mode.
... transaction() creates and returns a transaction, acquiring locks on the given database objects, within the specified timeout duration, if possible.
IDBIndex.openCursor() - Web APIs
the opencursor() method of the idbindex interface returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range.
... the method sets the position of the cursor to the appropriate record, based on the specified direction.
... if the key range is not specified or is null, then the range includes all the records.
IDBIndex.openKeyCursor() - Web APIs
the openkeycursor() method of the idbindex interface returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
... the method sets the position of the cursor to the appropriate key, based on the specified direction.
... if the key range is not specified or is null, then the range includes all the keys.
IDBIndex - Web APIs
WebAPIIDBIndex
properties idbindex.isautolocale read only returns a boolean indicating whether the index had a locale value of auto specified upon its creation (see createindex()'s optionalparameters.) idbindex.locale read only returns the locale of the index (for example en-us, or pl) if it had a locale value specified upon its creation (see createindex()'s optionalparameters.) idbindex.name the name of this index.
... idbindex.opencursor() returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range.
... idbindex.openkeycursor() returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
IDBIndexSync - Web APIs
methods add() stores the given value into this index, optionally with the specified key.
...the range of the new cursor matches the specified key range; if the key range is not specified or is null, then the range includes all the records.
...the range of the new cursor matches the specified key range; if the key range is not specified or is null, then the range includes all the records.
ImageData() - Web APIs
the imagedata() constructor returns a newly instantiated imagedata object built from the typed array given and having the specified width and height.
...if no such array is given, an image with a transparent black rectangle of the specified width and height will be created.
... errors thrown indexsizeerror thrown if array is specified, but its length is not a multiple of (4 * width) or (4 * width * height).
InstallTrigger - Web APIs
in either case, you must trigger the installation process by creating a web page script in which installtrigger methods download the specified xpi file and "trigger" the execution of the install.js script at the top level of that xpi.
... getversion returns an object representing the version number from the client version registry for the specified component.
... startsoftwareupdate triggers the downloading and installation of the software at the specified url.
IntersectionObserver.thresholds - Web APIs
the intersectionobserver interface's read-only thresholds property returns the list of intersection thresholds that was specified when the observer was instantiated with intersectionobserver().
... syntax var thresholds = intersectionobserver.thresholds; value an array of intersection thresholds, originally specified using the threshold property when instantiating the observer.
... if only one observer was specified, without being in an array, this value is a one-entry array containing that threshold.
KeyframeEffect.getKeyframes() - Web APIs
offset the offset of the keyframe specified as a number between 0.0 and 1.0 inclusive or null.
... composite the keyframeeffect.composite operation used to combine the values specified in this keyframe with the underlying value.
... this will be absent if the composite operation specified on the effect is being used.
MediaCapabilitiesInfo - Web APIs
properties the mediacapabilitiesinfo interface contains three boolean attribues: supported: given the properties defined in the mediaconfiguration, can the specified piece of media content be encoded (if mediaencodingconfiguration is set) or decode (if mediadecodingconfiguration is set) at all?
... smooth: given the properties defined in the mediaconfiguration, will the playback of the specified piece of media be high quality?
... powerefficient: given the properties defined in the mediaconfiguration, will the playback of the specified piece of media be power efficient?
MediaRecorder.isTypeSupported - Web APIs
the mediarecorder.istypesupported() static method returns a boolean which is true if the mime type specified is one the user agent should be able to successfully record.
... return value true if the mediarecorder implementation is capable of recording blob objects for the specified mime type.
...if the value is false, the user agent is incapable of recording the specified format.
MediaSession.setActionHandler() - Web APIs
callback a function to call when the specified action type is invoked.
... media session actions a media session action's type is specified using a string from the mediasessionaction enumerated type.
... seekto moves the playback position to the specified time within the media.
Media Session action types - Web APIs
syntax a media session action's type is specified using a string from the mediasessionaction enumerated type.
... seekto moves the playback position to the specified time within the media.
... the time to which to seek is specified in the mediasessionactiondetails property seektime.
MediaSessionActionDetails - Web APIs
media action types a media session action's type is specified using a string from the mediasessionaction enumerated type.
... seekto moves the playback position to the specified time within the media.
... the time to which to seek is specified in the mediasessionactiondetails property seektime.
MediaStream.getTrackById() - Web APIs
the mediastream.gettrackbyid() method returns a mediastreamtrack object representing the track with the specified id string.
... if there is no track with the specified id, this method returns null.
... return value if a track is found for which mediastreamtrack.id matches the specified id string, that mediastreamtrack object is returned.
MediaStreamConstraints - Web APIs
if constraints are specified, an audio track is inherently requested.
...if constraints are specified, a video track is inherently requested.
...if this property is specified, only the indicated peer can receive and use the stream.
MediaTrackConstraints.latency - Web APIs
syntax var constraintsobject = { latency: constraint }; constraintsobject.latency = constraint; value a constraindouble describing the acceptable or required value(s) for an audio track's latency, with values specified in seconds.
... if this property's value is a number, the user agent will attempt to obtain media whose latency tends to be as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required latency (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
Microdata DOM API - Web APIs
it returns a nodelist containing the items with the specified types, or all types if no argument is specified.
...when called, the method must return a live nodelist object containing all the elements in the document, in tree order, that are each top-level microdata items whose types include all the types specified in the method's argument, having obtained the types by splitting the string on spaces.
... if there are no tokens specified in the argument, then the method must return a nodelist containing all the top-level microdata items in the document.
MutationObserver.MutationObserver() - Web APIs
the dom mutationobserver() constructor — part of the mutationobserver interface — creates and returns a new observer which invokes a specified callback when dom events occur.
... return value a new mutationobserver object, configured to call the specified callback when dom mutations occur.
...*/ break; } }); } the callback() function is invoked when the observer sees changes matching the configuration of the observation request specified when calling observe() to begin watching the dom.
MutationObserverInit - Web APIs
the default value is true if either of attributefilter or attributeoldvalue is specified, otherwise the default value is false.
... characterdata optional set to true to monitor the specified target node (and, if subtree is true, its descendants) for changes to the character data contained within the node or nodes.
... the default value is true if characterdataoldvalue is specified, otherwise the default value is false.
Node.insertBefore() - Web APIs
WebAPINodeinsertBefore
the node.insertbefore() method inserts a node before a reference node as a child of a specified parent node.
...(that is, it will automatically be removed from its existing parent before appending it to the specified new parent.) this means that a node cannot be in two locations of the document simultaneously.
... if the given child is a documentfragment, the entire contents of the documentfragment are moved into the child list of the specified parent node.
Node - Web APIs
WebAPINode
node.prefix read only is a domstring representing the namespace prefix of the node, or null if no prefix is specified.
... node.appendchild(childnode) adds the specified childnode argument as the last child to the current node.
... node.insertbefore() inserts a node before the reference node as a child of a specified parent node.
Page Visibility API - Web APIs
see reasons for delays longer than specified for more details.
...chrome is very similar except that the budget is specified in seconds.
... windows are subjected to throttling after 30 seconds, with the same throttling delay rules as specified for window timers (again, see reasons for delays longer than specified).
ParentNode.replaceChildren() - Web APIs
the parentnode.replacechildren() method replaces the existing children of a node with a specified new set of children.
...if no replacement objects are specified, then the parentnode is emptied of all child nodes.
...you simply call it on the parent node without any argument specified: mynode.replacechildren(); transferring nodes between parents replacechildren() enables you to easily transfer nodes between parents, without having to resort to verbose looping code.
ParentNode - Web APIs
parentnode.queryselector() returns the first element with the current element as root that matches the specified group of selectors.
... parentnode.queryselectorall() returns a nodelist representing a list of elements with the current element as root that matches the specified group of selectors.
... parentnode.replacechildren() replaces the existing children of a node with a specified new set of children.
PaymentCurrencyAmount.value - Web APIs
the paymentcurrencyamount property value is a string containing the decimal numeric value of the payment, specified in the currency units indicated by the currency property.
... important note: the number given in this string is always specified using the period (".") as the decimal point, rather than the comma (","), even if the user's locale normally uses the comma.
... { currency: "jpy", value: "1000" } verifying a properly formatted price you can ensure that the value entered as a price is formatted correctly prior to submission by matching it against a simple regular expression: function checkpriceformat(price) { let validregex = /^-?[0-9]+(\.[0-9]+)?$/; return validregex.test(price); } this function, checkpriceformat(), will return true if the specified price string is formatted properly, or false if it's not.
PaymentDetailsUpdate.error - Web APIs
the paymentdetailsupdate dictionary's error property is a human-readable domstring which provides an error message to be displayed if the specified information doesn't offer any valid shipping options.
... syntax errorstring = paymentdetailsupdate.error; paymentdetailsupdate.error = errorstring; value a domstring specifying the string to display to the user if the information specified in the paymentdetailsupdate doesn't provide any valid shipping options.
... this message can be used to explain to the user why they cannot submit their payment as currently specified—whether that's because the selected products cannot be shipped to their region or because their address is not served by any of the shipping companies you use.
performance.getEntriesByName() - Web APIs
return value entries a list of performanceentry objects that have the specified name and type.
... if the type argument is not specified, only the name will be used to determine the entries to return.
...if no objects meet the specified criteria, an empty list is returned.
PerformanceObserverEntryList.getEntriesByType() - Web APIs
the list's members are determined by the set of entry types specified in the call to the observe() method.
... return value a list of explicitly observed performanceentry objects that have the specified type.
...if no objects have the specified type, or no argument is provided, an empty list is returned.
PerformanceServerTiming - Web APIs
properties performanceservertiming.descriptionread only a domstring value of the server-specified metric description, or an empty string.
... performanceservertiming.durationread only a double that contains the server-specified metric duration, or value 0.0.
... performanceservertiming.nameread only a domstring value of the server-specified metric name.
Using Performance Timeline - Web APIs
performance extensions performance timeline extends the performance object with three methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified filter criteria.
...manceentry object var json = pe.tojson(); var s = json.stringify(json); log("performanceentry.tojson = " + s); } performance observers the performance observer interfaces allow an application to register an observer for specific performance event types, and when one of those event types is recorded, the application is notified of the event via the observer's callback function that was specified at the time, the observer was created.
...that is, the list only contains entries for the event types that were specified when the observer's observe() method was invoked.
RTCDataChannel.send() - Web APIs
networkerror the specified data would need to be buffered, and there isn't room for it in the buffer.
... typeerror the specified data is too large for the other peer to receive.
... example in this example, a routine called sendmessage() is created; it accepts an object as input and sends to the remote peer, over the rtcdatachannel, a json string with the specified object and a time stamp.
RTCDataChannel - Web APIs
if no protocol was specified when the data channel was created, then this property's value is "" (the empty string).readystate read only the read-only rtcdatachannel property readystate returns an enum of type rtcdatachannelstate which indicates the state of the data channel's underlying data connection.reliable read only the read-only rtcdatachannel property reliable indicates whether or not the data channel is reliab...
...this event, which is represented by a simple event object, is sent when the amount of data buffered to be sent falls to or below the threshold specified by the channel's bufferedamountlowthreshold.onclose the rtcdatachannel.onclose property is an eventhandler which specifies a function to be called by the browser when the close event is received by the rtcdatachannel.
... events bufferedamountlow sent to the channel's onbufferedamountlow event handler when the number of bytes of data in the outgoing data buffer falls below the value specified by bufferedamountlowthreshold.
RTCIceCandidate.RTCIceCandidate() - Web APIs
return value a newly-created rtcicecandidate object, optionally configured based on the specified object based on the rtcicecandidateinit dictionary.
... exceptions typeerror the specified rtcicecandidateinit has values of null in both the sdpmid and sdpmlineindex properties.
... usage notes this constructor does not do complete validation of the specified candidateinfo object or string.
RTCPeerConnection.setConfiguration() - Web APIs
the rtcpeerconnection.setconfiguration() method sets the current configuration of the rtcpeerconnection based on the values included in the specified rtcconfiguration object.
... exceptions invalidaccesserror one or more of the urls specified in configuration.iceservers is a turn server, but complete login information is not provided (that is, either the rtciceserver.username or rtciceserver.credentials is missing).
... invalidmodificationerror the configuration includes changed identity information, but the connection already has identity information specified.
RTCRtpSender.setParameters() - Web APIs
invalidmodificationerror one of the following problems was detected: the number of encodings specified in the parameters object's encodings property does not match the number of encodings currently listed for the rtcrtpsender.
... the order of the specified encodings has changed from the current list's order.
... rangeerror the value specified for scaleresolutiondownby is less than 1.0, which would result in scaling up rather than down, which is not allowed; or one or more of the specified encodings' maxframerate values is less than 0.0.
RTCTrackEvent - Web APIs
constructor rtctrackevent() creates and returns a new rtctrackevent object, initialized with properties taken from the specified rtctrackeventinit dictionary.
...by the time the track event is delivered to the rtcpeerconnection's ontrack handler, the new media has completed its negotiation for a specific rtcrtpreceiver (which is specified by the event's receiver property).
... in addition, the mediastreamtrack specified by the receiver's track is the same one specified by the event's track, and the track has been added to any associated remote mediastream objects.
Range.setEnd() - Web APIs
WebAPIRangesetEnd
the range.setend() method sets the end position of a range to be located at the given offset into the specified node x.setting the end point above (higher in the document) than the start point will result in a collapsed range with the start and end points both set to the specified end position.
... exceptions exceptions are thrown as domexception objects of the following types: invalidnodetypeerror the node specified by endnode is a doctype node; range endpoints cannot be located inside a doctype node.
... indexsizeerror the value specified by endoffset is either greater than or equal to the length of the node or is less than zero.
Response.redirect() - Web APIs
WebAPIResponseredirect
the redirect() method of the response interface returns a response resulting in a redirect to the specified url.
... exceptions exception explanation rangeerror the specified status is not a redirect status.
... typeerror the specified url is invalid.
SVGLengthList - Web APIs
initialize(in svglength newitem) svglength clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
... getitem(in unsigned long index) svglength returns the specified item from the list.
... insertitembefore(in svglength newitem, in unsigned long index) svglength inserts a new item into the list at the specified position.
SVGNumberList - Web APIs
initialize(in svgnumber newitem) svgnumber clears all existing current items from the list and re-initializes the list to hold the single item specified by newitem.
... getitem(in unsigned long index) svgnumber returns the specified item from the list.
... insertitembefore(in svgnumber newitem, in unsigned long index) svgnumber inserts a new item into the list at the specified position.
SVGPathSegList - Web APIs
initialize(in svgpathseg newitem) svgpathseg clears all existing current items from the list and re-initializes the list to hold the single item specified by newitem.
... getitem(in unsigned long index) svgpathseg returns the specified item from the list.
... insertitembefore(in svgpathseg newitem, in unsigned long index) svgpathseg inserts a new item into the list at the specified position.
SVGPointList - Web APIs
initialize(in svgpoint newitem) svgpoint clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
... getitem(in unsigned long index) svgpoint returns the specified item from the list.
... insertitembefore(in svgpoint newitem, in unsigned long index) svgpoint inserts a new item into the list at the specified position.
SVGStringList - Web APIs
initialize(in domstring newitem) domstring clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
... getitem(in unsigned long index) domstring returns the specified item from the list.
... insertitembefore(in domstring newitem, in unsigned long index) domstring inserts a new item into the list at the specified position.
SVGTransformList - Web APIs
initialize(in svgtransform newitem) svgtransform clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
... getitem(in unsigned long index) svgtransform returns the specified item from the list.
... insertitembefore(in svgtransform newitem, in unsigned long index) svgtransform inserts a new item into the list at the specified position.
Selection - Web APIs
WebAPISelection
selection.extend() moves the focus of the selection to a specified point.
... selection.selectallchildren() adds all the children of the specified node to the selection.
... selection.setbaseandextent() sets the selection to be a range including all or parts of two specified dom nodes, and any content located between them.
Using Service Workers - Web APIs
in this case, we have specified '/sw-test/', which means all content under the app's origin.
... if you leave it out, it will default to this value anyway, but we specified it here for illustration purposes.
... a fetch event fires every time any resource controlled by a service worker is fetched, which includes the documents inside the specified scope, and any resources referenced in those documents (for example if index.html makes a cross origin request to embed an image, that still goes through its service worker.) you can attach a fetch event listener to the service worker, then call the respondwith() method on the event to hijack our http responses and update them with your own magic.
ShadowRoot - Web APIs
documentorshadowroot.elementfrompoint() returns the topmost element at the specified coordinates.
... documentorshadowroot.elementsfrompoint() returns an array of all elements at the specified coordinates.
... examples the following snippets are taken from our life-cycle-callbacks example (see it live also), which creates an element that displays a square of a size and color specified in the element's attributes.
SharedWorker() - Web APIs
the sharedworker() constructor creates a sharedworker object that executes the script at the specified url.
...if not specified, the default used is classic.
...if not specified, or if type is classic, the default used is omit (no credentials required).
SourceBuffer.removeAsync() - Web APIs
a promise is returned, which is fulfilled when the buffers in the specified time range have been removed.
... return value a promise whose fulfillment handler is executed once the buffers in the specified time range have been removed from the sourcebuffer.
... example this example establishes an asynchronous function, emptysourcebuffer(), which simply clears the contents of the specified sourcebuffer.
SubtleCrypto.deriveKey() - Web APIs
ecdh is specified in rfc 6090.
... hkdf is specified in rfc 5869.
... pbkdf2 is specified in rfc 2898.
TextTrack.mode - Web APIs
WebAPITextTrackmode
this is the default value, unless the text track has the default boolean attribute is specified, in which case the default is showing.
...this is the default value if the text track's default boolean attribute is specified.
... usage notes the default mode is disabled, unless the default boolean attribute is specified, in which case the default mode is showing.
getTrackById() - Web APIs
the texttracklist method gettrackbyid() returns the first texttrack object from the track list whose id matches the specified string.
... this lets you find a specified track if you know its id string.
... return value a texttrack object indicating the first track found within the texttracklist whose id matches the specified string.
TimeRanges - Web APIs
a timeranges object includes one or more ranges of time, each specified by a starting and ending time offset.
... methods timeranges.start() returns the time for the start of the range with the specified index.
... timeranges.end() returns the time for the end of the specified range.
getTrackById - Web APIs
the videotracklist method gettrackbyid() returns the first videotrack object from the track list whose id matches the specified string.
... this lets you find a specified track if you know its id string.
... return value a videotrack object indicating the first track found within the videotracklist whose id matches the specified string.
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
return value depends on the requested information (as specified with pname).
... gl.framebuffer_attachment_color_encoding a glenum indicating the encoding of components of the specified attachment.
... gl.framebuffer_attachment_component_type a glenum indicating the format of the components of the specified attachment.
WebGLRenderingContext.pixelStorei() - Web APIs
pixel storage parameters parameter name (for pname) description type default value allowed values (for param) specified in gl.pack_alignment packing of pixel data into memory glint 4 1, 2, 4, 8 opengl es 2.0 gl.unpack_alignment unpacking of pixel data from memory.
... glenum gl.browser_default_webgl gl.browser_default_webgl, gl.none webgl when using a webgl 2 context, the following values are available additionally: constant description type default value allowed values (for param) specified in gl.pack_row_length number of pixels in a row.
... recommendation additional pixel storage parameters that aren't specified in opengl.
Signaling and video calling - Web APIs
function sendtooneuser(target, msgstring) { var isunique = true; var i; for (i=0; i<connectionarray.length; i++) { if (connectionarray[i].username === target) { connectionarray[i].send(msgstring); break; } } } this function iterates over the list of connected users until it finds one matching the specified username, then sends the message to that user.
... each ice message suggests a communication protocol (tcp or udp), ip address, port number, connection type (for example, whether the specified ip is the peer itself or a relay server), along with other information needed to link the two computers together.
... each object in iceservers contains at least a urls field providing urls at which the specified server can be reached.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
the following function returns a projection perspective matrix that integrates the specified field of view angle as well as the given near and far clipping plane distances: function createperspectivematrix(viewport, fovdegrees, nearclip, farclip) { const fovradians = fov * (math.pi / 180.0); const aspectratio = viewport.width / viewport.height; const transform = mat4.create(); mat4.perspective(transform, fovradians, aspectratio, nearclip, farclip); return t...
...ransform; } after converting the fov angle, fovdegrees, from degrees to radians and computing the aspect ratio of the xrviewport specified by the viewport parameter, this function uses the glmatrix library's mat4.perspective() function to compute the perspective matrix.
...since the translation is expressed as a vector providing the distance to move along each axis, we can combine them like this: mat4.translate(viewmatrix, viewmatrix, [-trackdistance, -pedestaldistance, dollydistance]); this will shift the origin of the matrix viewmatrix by the specified amount along each axis.
Fundamentals of WebXR - Web APIs
the width of the field of view is measured as the angle defining the arc from the far left edge of your field of view to the far right edge, and is specified in either degrees or radians.
...which type of session you want to create is specified when creating the session.
...the former, specified by the session mode string inline, presents the rendered scene within the context of a document in a web browser, and doesn't require special xr hardware to view.
Rendering and the WebXR frame animation callback - Web APIs
hardare vertical refresh rate when the browser is ready to refresh the <canvas> within which your webxr content is displayed, it calls your frame rendering callback, which uses the specified timestamp and any other relevant data, such as models and textures, as well as application state, to render the scene—as it should appear at the specified time—into the webgl backbuffer.
... for (let view of viewerpose.views) { let viewport = gllayer.getviewport(view); gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); mydrawsceneintoview(view, deltatime); } } } the mydrawframe() function grabs the xrsession from the xrframe object specified by the frame parameter, then calls the session's requestanimationframe() method to immediately schedule the rendering of the next frame.
... next, the time elapsed since the previous frame was rendered is calculated by subtracting from the current time as specified by the currentframetime parameter the saved time at which the last frame was rendered, lastframetime.
WheelEvent() - Web APIs
permitted values are: constant value description dom_delta_pixel 0x00 the delta values are specified in pixels.
... dom_delta_line 0x01 the delta values are specified in lines.
... dom_delta_page 0x02 the delta values are specified in pages.
WheelEvent.deltaMode - Web APIs
permitted values are: constant value description dom_delta_pixel 0x00 the delta values are specified in pixels.
... dom_delta_line 0x01 the delta values are specified in lines.
... dom_delta_page 0x02 the delta values are specified in pages.
WheelEvent - Web APIs
permitted values are: constant value description wheelevent.dom_delta_pixel 0x00 the delta* values are specified in pixels.
... wheelevent.dom_delta_line 0x01 the delta* values are specified in lines.
... wheelevent.dom_delta_page 0x02 the delta* values are specified in pages.
Window.convertPointFromNodeToPage() - Web APIs
given a point specified in a particular dom node's coordinate system, the window method convertpointfromnodetopage() returns a point which specifies the same position in the page's coordinate system.
... syntax point = window.convertpointfromnodetopage(node, nodepoint); parameters node the node in whose coordinate system the point specified by nodepoint is described.
... specifications this method was specified in the defunct 20 march 2009 working draft of css 2d transforms module level 3.
Window.convertPointFromPageToNode - Web APIs
given a point specified in the page's coordinate system, the window method convertpointfrompagetonode() returns a point object specifying the same location in the coordinate system of the specified dom node.
... return value a point object describing the specified location in the node's coordinate system.
... specifications this method was specified in the defunct 20 march 2009 working draft of css 2d transforms module level 3.
Worker() - Web APIs
WebAPIWorkerWorker
the worker() constructor creates a worker object that executes the script at the specified url.
...if not specified, the default used is classic.
...if not specified, or if type is classic, the default used is omit (no credentials required).
XPathEvaluator.evaluate() - Web APIs
if this is specified as null or the implementation does not reuse the specified result, a new result object will be returned.
... type_err in case result cannot be converted to the specified type, an xpathexception of type type_err is raised.
... namespace_err if the expression contains namespace prefixes which cannot be resolved by the specified xpathnsresolver, a domexception of type namespace_error is raised.
XPathExpression.evaluate() - Web APIs
if this is specified as null or the implementation does not reuse the specified result, a new result object will be returned.
... type_err in case result cannot be converted to the specified type, an xpathexception of type type_err is raised.
... namespace_err if the expression contains namespace prefixes which cannot be resolved by the specified xpathnsresolver, a domexception of type namespace_error is raised.
XRSession - Web APIs
WebAPIXRSession
requestanimationframe() schedules the specified method to be called the next time the user agent is working on rendering an animation frame for the webxr device.
... requestreferencespace() requests that a new xrreferencespace of the specified type be created.
... updaterenderstate() updates the properties of the session's render state to match the values specified in the specified xrrenderstateinit dictionary.
XRView - Web APIs
WebAPIXRView
transform read only an xrrigidtransform which describes the current position and orientation of the viewpoint in relation to the xrreferencespace specified when getviewerpose() was called on the xrframe being rendered.
... all positions and orientations within the views for a given xrviewerpose are specified in the reference space that was passed to xrframe.getviewerpose(); this is called the viewer reference space.
... vec3.cross(vecx, vecy, cubeorientation); vec3.cross(vecy, cubeorientation, vecx); // now compute the transform that teleports the object to the // specified point and save a copy of it to display to the user // later; otherwise we probably wouldn't need to save mousematrix // at all.
XRWebGLLayer.getViewport() - Web APIs
the xrwebgllayer interface's getviewport() method returns the xrviewport that should be used to render the specified xrview into the webgl layer.
... return value a xrviewport object representing the viewport which will restrict drawing to the portion of the layer corresponding to the specified view.
... exceptions invalidstateerror either the specified view is not in an active xrframe or that xrframe and the xrwebgllayer are not part of the same webxr session.
XRWebGLLayer - Web APIs
constructor new xrwebgllayer() creates and returns a new xrwebgllayer object for use by the specified xrsession, using a particular webglrenderingcontext or webgl2renderingcontext as the destination context.
... methods getviewport() returns a new xrviewport instance representing the position, width, and height to which the webgl context's viewport must be set to contain drawing to the area of the framebuffer designated for the specified view's contents.
... let gllayer = xrsession.renderstate.baselayer; gl.bindframebuffer(gl.framebuffer, gllayer.framebuffer); rendering every view in a frame each time the gpu is ready to render the scene to the xr device, the xr runtime calls the function you specified when you called the xrsession method requestanimationframe() to ask to render the frame.
-moz-context-properties - CSS: Cascading Style Sheets
the -moz-context-properties property can be used within privileged contexts in firefox to share the values of specified properties of the element with a child svg image.
... formal definition initial valuenoneapplies toany element that can have an image applied to it, for example as a background-image, border-image, or list-style-image.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | [ fill | fill-opacity | stroke | stroke-opacity ]# examples exposing fill and stroke to an svg image in this example we have a simple svg embedded using an <img> element.
...note that if a color is set directly on the svg, but then the context color is also specified, the context color overrides the direct color.
-moz-outline-radius-bottomleft - CSS: Cascading Style Sheets
values <length> the radius of the circle defining the curvature of the bottom and left edges of the element, specified as a css <length>.
... <percentage> the radius of the circle defining the rounding of the bottom-left corner of the element, specified as the percentages of the bottom and left sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percentage> examples rounding a outline since this is a firefox-only property, this example will not display the desired effect if you are viewing this in a browser other than firefox.
-moz-outline-radius-bottomright - CSS: Cascading Style Sheets
values <length> the radius of the circle defining the curvature of the bottom and right edges of the element, specified as a css <length>.
... <percentage> the radius of the circle defining the rounding of the bottom-right corner of the element, specified as the percentages of the bottom and right sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percentage> examples html <p>look at this paragraph's bottom-right corner.</p> css p { margin: 5px; border: solid cyan; outline: dotted red; -moz-outline-radius-bottomright: 2em; } result the example above will not display the desired effect if you are viewing this in a browser other than firefox.
-moz-outline-radius-topleft - CSS: Cascading Style Sheets
values <length> the radius of the circle defining the curvature of the top and left edges of the element, specified as a css <length>.
... <percentage> the radius of the circle defining the rounding of the top-left corner of the element, specified as the percentages of the top and left sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percentage> examples the example below will not display the desired effect if you are viewing this in a browser other than firefox.
-moz-outline-radius-topright - CSS: Cascading Style Sheets
values <length> the radius of the circle defining the curvature of the top and right edges of the element, specified as a css <length>.
... <percentage> the radius of the circle defining the rounding of the top-right corner of the element, specified as the percentages of the top and right sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percentage> examples html <p>look at this paragraph's top-right corner.</p> css p { margin: 5px; border: solid cyan; outline: dotted red; -moz-outline-radius-topright: 2em; } result the example above will not display the desired effect if you are viewing this in a browser other than firefox.
-webkit-line-clamp - CSS: Cascading Style Sheets
the -webkit-line-clamp css property allows limiting of the contents of a block container to the specified number of lines.
... in most cases you will also want to set overflow to hidden, otherwise the contents won't be clipped but an ellipsis will still be shown after the specified number of lines.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax none | <integer> examples truncating a paragraph html <p> in this example the <code>-webkit-line-clamp</code> property is set to <code>3</code>, which means the text is clamped after three lines.
negative - CSS: Cascading Style Sheets
description if the counter value is negative, the symbol provided as value for the descriptor is prepended to the counter representation; and a second symbol if specified, will be appended to the representation.
...if the negative descriptor is specified for other systems that don't support negative counter values, then the descriptor is ignored.
... formal definition related at-rule@counter-styleinitial value"-" hyphen-minuscomputed valueas specified formal syntax <symbol> <symbol>?where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
pad - CSS: Cascading Style Sheets
if the minimum length is not reached, the representation will be padded with the specified <symbol>.
... description if a marker representation is smaller than the specified pad length, then the marker will be padded with the specified pad symbol.
... formal definition related at-rule@counter-styleinitial value0 ""computed valueas specified formal syntax <integer> && <symbol>where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
font-weight - CSS: Cascading Style Sheets
the font-weight css descriptor allows authors to specify font weights for the fonts specified in the @font-face rule.
...when a specified weight doesn't exist, a nearby weight is used.
... mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.8 | w3c understanding wcag 2.0 formal definition related at-rule@font-faceinitial valuenormalcomputed valueas specified formal syntax <font-weight-absolute>{1,2}where <font-weight-absolute> = normal | bold | <number <a href="/docs/css/value_definition_syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[1,1000]> examples setting normal font weight in a @font-face rule the following finds a local open sans font or import it, and allo...
@keyframes - CSS: Cascading Style Sheets
<percentage> a percentage of the time through the animation sequence at which the specified keyframe should occur.
... when properties are left out of some keyframes properties that aren't specified in every keyframe are interpolated if possible — properties that can't be interpolated are dropped from the animation.
... when a keyframe is defined multiple times if a keyframe is defined multiple times but not all affected properties are in each keyframe, all values specified in these keyframes are considered.
color-gamut - CSS: Cascading Style Sheets
syntax the color-gamut feature is specified as a keyword value chosen from the list below.
... p3 the output device can support approximately the gamut specified by the dci p3 color space or more.
... rec2020 the output device can support approximately the gamut specified by the itu-r recommendation bt.2020 color space or more.
Alternative style sheets - CSS: Cascading Style Sheets
an example: specifying the alternative stylesheets the alternate stylesheets are commonly specified using a <link> element with rel="alternate stylesheet" and title="..." attributes.
... preferred (no rel="alternate", with title="..." specified): applied by default, but disabled if an alternate stylesheet is selected.
... alternate (rel="alternate stylesheet", title="..." must be specified): disabled by default, can be selected.
Using CSS counters - CSS: Cascading Style Sheets
the generated text is the value of the innermost counter of the given name in scope at the given pseudo-element.the counter is rendered in the specified style (decimal by default).
...the generated text is the value of all counters with the given name in scope at the given pseudo-element, from outermost to innermost, separated by the specified string.
... the counters are rendered in the specified style (decimal by default).
Using media queries - CSS: Cascading Style Sheets
a media query computes to true when the media type (if specified) matches the device on which a document is being displayed and all media feature expressions compute as true.
... display-mode the display mode of the application, as specified in the web app manifest's display member defined in the web app manifest spec.
... note: in most cases, the all media type is used by default when no other type is specified.
CSS reference - CSS: Cascading Style Sheets
WebCSSReference
the syntax for each specified value depends on the data type defined for each specified property.
... column combinator a || b specifies that the element selected by b is located within the table column specified by a.
... concepts syntax and semantics css syntax at-rules cascade comments descriptor inheritance shorthand properties specificity value definition syntax css unit and value types values actual value computed value initial value resolved value specified value used value layout block formatting context box model containing block layout mode margin collapsing replaced elements stacking context visual formatting model dom-css / cssom major object types documentorshadowroot.stylesheets stylesheets[i].cssrules cssrules[i].csstext (selector & style) cssrules[i].selectortext htmlelement.style htmlelement.style.csstext (just styl...
animation-duration - CSS: Cascading Style Sheets
this may be specified in either seconds (s) or milliseconds (ms).
... note: when you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are.
... formal definition initial value0sapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <time># examples see css animations for examples.
animation - CSS: Cascading Style Sheets
WebCSSanimation
constituent properties this property is a shorthand for the following css properties: animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function syntax the animation property is specified as one or more single animations, separated by commas.
... 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 definition is important: the first value that can be parsed as a <time> is assigned to the animation-duration, and the second one is assigned to animation-delay.
...ial valueas each of the properties of the shorthand:animation-name: noneanimation-duration: 0sanimation-timing-function: easeanimation-delay: 0sanimation-iteration-count: 1animation-direction: normalanimation-fill-mode: noneanimation-play-state: runningapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas each of the properties of the shorthand:animation-name: as specifiedanimation-duration: as specifiedanimation-timing-function: as specifiedanimation-delay: as specifiedanimation-direction: as specifiedanimation-iteration-count: as specifiedanimation-fill-mode: as specifiedanimation-play-state: as specifiedanimation typediscrete formal syntax <single-animation>#where <single-animation> = <time> | <timing-function> | <time> | <single-animation-iteration-count> | <...
aspect-ratio - CSS: Cascading Style Sheets
<ratio> the box’s preferred aspect ratio is the specified ratio of width / height.
... size calculations involving preferred aspect ratio work with the dimensions of the box specified by box-sizing.
... formal definition initial valueautoapplies toall elements except inline boxes and internal ruby or table boxesinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | <ratio> examples mapping width and height to aspect-ratio firefox has added an internal aspect-ratio property (in version 69 onwards) that applies to replaced elements and other related elements that accept width and height attributes.
background-attachment - CSS: Cascading Style Sheets
syntax /* keyword values */ background-attachment: scroll; background-attachment: fixed; background-attachment: local; /* global values */ background-attachment: inherit; background-attachment: initial; background-attachment: unset; the background-attachment property is specified as one of the keyword values from the list below.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <attachment>#where <attachment> = scroll | fixed | local examples simple example html <p> there were doors all round the hall, but they were all locked; and when alice had been all the way down one side and up the other, trying every door, she walked sadly down the middle, wondering how she was ever to get out again.
...each image is matched with the corresponding attachment type, from first specified to last.
background-clip - CSS: Cascading Style Sheets
note: because the root element has a different background painting area, the background-clip property has no effect when specified on it.
...the used values of that <body> element’s background properties are their initial values, and the propagated values are treated as if they were specified on the root element.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <box>#where <box> = border-box | padding-box | content-box examples html <p class="border-box">the background extends behind the border.</p> <p class="padding-box">the background extends to the inside edge of the border.</p> <p class="content-box">the background extends only to the edge of the content box.</p> <p class="text">the background is clipped to t...
border-spacing - CSS: Cascading Style Sheets
syntax /* <length> */ border-spacing: 2px; /* horizontal <length> | vertical <length> */ border-spacing: 1cm 2em; /* global values */ border-spacing: inherit; border-spacing: initial; border-spacing: unset; the border-spacing property may be specified as either one or two values.
... when one <length> value is specified, it defines both the horizontal and vertical spacings between cells.
... when two <length> values are specified, the first value defines the horizontal spacing between cells (i.e., the space between cells in adjacent columns), and the second value defines the vertical spacing between cells (i.e., the space between cells in adjacent rows).
border-top-style - CSS: Cascading Style Sheets
values */ border-top-style: none; border-top-style: hidden; border-top-style: dotted; border-top-style: dashed; border-top-style: solid; border-top-style: double; border-top-style: groove; border-top-style: ridge; border-top-style: inset; border-top-style: outset; /* global values */ border-top-style: inherit; border-top-style: initial; border-top-style: unset; the border-top-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset examples html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 2px; background-color: #52e385; } tr, td { padding: 3px; } /* border-t...
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete ...
box-align - CSS: Cascading Style Sheets
WebCSSbox-align
syntax the box-align property is specified as one of the keyword values listed below.
... formal definition initial valuestretchapplies toelements with a css display value of box or inline-boxinheritednocomputed valueas specifiedanimation typediscrete formal syntax start | center | end | baseline | stretch examples setting box alignment <!doctype html> <html> <head> <title>css box-align example</title> <style> div.example { display: box; /* as specified */ display: -moz-box; /* mozilla */ display: -webkit-box; /* webkit */ /* make this box taller than the children, ...
... so there is room for the box-pack */ height: 400px; /* make this box wider than the children so there is room for the box-align */ width: 300px; /* children should be oriented vertically */ box-orient: vertical; /* as specified */ -moz-box-orient: vertical; /* mozilla */ -webkit-box-orient: vertical; /* webkit */ /* align children to the horizontal center of this box */ box-align: center; /* as specified */ -moz-box-align: center; /* mozilla */ -webkit-box-align: center; /* webkit */ /* pack children to the bottom of this box */ box-pack: end; /* as specified */ -moz-box-pack: end; /* mozilla */ -webkit-box-pack: end; /* webkit */ } div.example > p { /* make children narr...
box-decoration-break - CSS: Cascading Style Sheets
the specified value will impact the appearance of the following properties: background border border-image box-shadow clip-path margin padding syntax /* keyword values */ box-decoration-break: slice; box-decoration-break: clone; /* global values */ box-decoration-break: initial; box-decoration-break: inherit; box-decoration-break: unset; the box-decoration-break property is specified as one of the keyword values l...
... clone each box fragment is rendered independently with the specified border, padding, and margin wrapping each fragment.
... formal definition initial valuesliceapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax slice | clone examples inline box fragments an inline element that contains line breaks styled with: .example { background: linear-gradient(to bottom right, yellow, green); box-shadow: 8px 8px 10px 0px deeppink, -5px -5px 5px 0px blue, 5px 5px 15px 0px yellow; padding: 0em 1em; border-radius: 16px; border-style: solid; margin-left: 10px; font: 24px sans-serif; line-height:...
box-orient - CSS: Cascading Style Sheets
/* keyword values */ box-orient: horizontal; box-orient: vertical; box-orient: inline-axis; box-orient: block-axis; /* global values */ box-orient: inherit; box-orient: initial; box-orient: unset; syntax the box-orient property is specified as one of the keyword values listed below.
... formal definition initial valueinline-axis (horizontal in xul)applies toelements with a css display value of box or inline-boxinheritednocomputed valueas specifiedanimation typediscrete formal syntax horizontal | vertical | inline-axis | block-axis | inherit examples setting horizontal box orientation here, he box-orient property will cause the two <p> sections in the example to display in the same line.
... html <div class="example"> <p>i will be to the left of my sibling.</p> <p>i will be to the right of my sibling.</p> </div> css div.example { display: -moz-box; /* mozilla */ display: -webkit-box; /* webkit */ display: box; /* as specified */ /* children should be oriented vertically */ -moz-box-orient: horizontal; /* mozilla */ -webkit-box-orient: horizontal; /* webkit */ box-orient: horizontal; /* as specified */ } result specifications not part of any standard.
box-sizing - CSS: Cascading Style Sheets
syntax the box-sizing property is specified as a single keyword chosen from the list of values below.
... values content-box this is the initial and default value as specified by the css standard.
... formal definition initial valuecontent-boxapplies toall elements that accept width or heightinheritednocomputed valueas specifiedanimation typediscrete formal syntax content-box | border-box examples box sizes with content-box and border-box this example shows how different box-sizing values alter the rendered size of two otherwise identical elements.
caption-side - CSS: Cascading Style Sheets
the caption-side css property puts the content of a table's <caption> on the specified side.
... syntax /* directional values */ caption-side: top; caption-side: bottom; /* warning: non-standard values */ caption-side: left; caption-side: right; caption-side: top-outside; caption-side: bottom-outside; /* global values */ caption-side: inherit; caption-side: initial; caption-side: unset; the caption-side property is specified as one of the keyword values listed below.
... formal definition initial valuetopapplies totable-caption elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax top | bottom | block-start | block-end | inline-start | inline-end examples setting captions above and below html <table class="top"> <caption>caption above the table</caption> <tr> <td>some data</td> <td>some more data</td> </tr> </table> <br> <table class="bottom"> <caption>caption below the table</caption> <tr> <td>some data</td...
column-rule - CSS: Cascading Style Sheets
note: as with all shorthand properties, any individual value that is not specified is set to its corresponding initial value (possibly overriding values previously set using non-shorthand properties).
... syntax column-rule: dotted; column-rule: solid 8px; column-rule: solid blue; column-rule: thick inset blue; /* global values */ column-rule: inherit; column-rule: initial; column-rule: unset; the column-rule property is specified as one, two, or three of the values listed below, in any order.
... formal definition initial valueas each of the properties of the shorthand:column-rule-width: mediumcolumn-rule-style: nonecolumn-rule-color: currentcolorapplies tomulticol elementsinheritednocomputed valueas each of the properties of the shorthand:column-rule-color: computed colorcolumn-rule-style: as specifiedcolumn-rule-width: the absolute length; 0 if the column-rule-style is none or hiddenanimation typeas each of the properties of the shorthand:column-rule-color: a colorcolumn-rule-style: discretecolumn-rule-width: a length formal syntax <'column-rule-width'> | <'column-rule-style'> | <'column-rule-color'> examples example 1 /* same as "medium dotted currentcolor" */ p.foo { column-rule: dotted...
column-width - CSS: Cascading Style Sheets
if the width of the container is narrower than the specified value, the single column's width will be smaller than the declared column width.
... syntax /* keyword value */ column-width: auto; /* <length> values */ column-width: 60px; column-width: 15.5em; column-width: 3.3vw; /* global values */ column-width: inherit; column-width: initial; column-width: unset; the column-width property is specified as one of the values listed below.
...the actual column width may differ from the specified value: it may be wider when necessary to fill available space, and narrower when the available space is too small.
counter-increment - CSS: Cascading Style Sheets
ounter" by 1 */ counter-increment: my-counter -1; /* increment "counter1" by 1, and decrement "counter2" by 4 */ counter-increment: counter1 counter2 -4; /* do not increment/decrement anything: used to override less specific rules */ counter-increment: none; /* global values */ counter-increment: inherit; counter-increment: initial; counter-increment: unset; the counter-increment property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...defaults to 1 if not specified.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ <custom-ident> <integer>?
counter-reset - CSS: Cascading Style Sheets
r" to 0 */ counter-reset: my-counter; /* set "my-counter" to -1 */ counter-reset: my-counter -1; /* set "counter1" to 1, and "counter2" to 4 */ counter-reset: counter1 1 counter2 4; /* cancel any reset that could have been set in less specific rules */ counter-reset: none; /* global values */ counter-reset: inherit; counter-reset: initial; counter-reset: unset; the counter-reset property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...defaults to 0 if not specified.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ <custom-ident> <integer>?
counter-set - CSS: Cascading Style Sheets
set "my-counter" to 0 */ counter-set: my-counter; /* set "my-counter" to -1 */ counter-set: my-counter -1; /* set "counter1" to 1, and "counter2" to 4 */ counter-set: counter1 1 counter2 4; /* cancel any counter that could have been set in less specific rules */ counter-set: none; /* global values */ counter-set: inherit; counter-set: initial; counter-set: unset; the counter-set property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...defaults to 0 if not specified.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ <custom-ident> <integer>?
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.
...the browser will try to load the first image specified, falling back to the next if it can't, and falling back to the keyword value if no images could be loaded (or if none were specified).
... formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax [ [ <url> [ <x> <y> ]?
<display-listitem> - CSS: Cascading Style Sheets
the list-item keyword causes the element to generate a ::marker pseudo-element with the content specified by its list-style properties (for example a bullet point) together with a principal box of the specified type for its own contents.
... note: in browsers that support the two-value syntax, if no inner value is specified it will default to flow.
... if no outer value is specified, the principal box will have an outer display type of block.
flex-wrap - CSS: Cascading Style Sheets
WebCSSflex-wrap
syntax flex-wrap: nowrap; /* default value */ flex-wrap: wrap; flex-wrap: wrap-reverse; /* global values */ flex-wrap: inherit; flex-wrap: initial; flex-wrap: unset; the flex-wrap property is specified as a single keyword chosen from the list of values below.
...the cross-start is either equivalent to start or before depending flex-direction value and the cross-end is the opposite of the specified cross-start.
... formal definition initial valuenowrapapplies toflex containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax nowrap | wrap | wrap-reverse examples setting flex container wrap values html <h4>this is an example for flex-wrap:wrap </h4> <div class="content"> <div class="red">1</div> <div class="green">2</div> <div class="blue">3</div> </div> <h4>this is an example for flex-wrap:nowrap </h4> <div class="content1"> <div class="red">1</div> <div class="green">2</div> <div class="blue">3</div> </div> <h4>this is an example for flex-wrap:wrap-reverse </h4> <div class="content2"> <div class="red">1</div> <div class="green">2</div> <div class="blue">3</div> </div> css...
float - CSS: Cascading Style Sheets
WebCSSfloat
as float implies the use of the block layout, it modifies the computed value of the display values, in some cases: specified value computed value inline block inline-block block inline-table table table-row block table-row-group block table-column block table-column-group block table-cell block table-caption block table-header-group block table-footer-group block inline-fle...
... syntax /* keyword values */ float: left; float: right; float: none; float: inline-start; float: inline-end; /* global values */ float: inherit; float: initial; float: unset; the float property is specified as a single keyword, chosen from the list of values below.
... formal definition initial valuenoneapplies toall elements, but has no effect if the value of display is none.inheritednocomputed valueas specifiedanimation typediscrete formal syntax left | right | none | inline-start | inline-end examples how floated elements are positioned as mentioned above, when an element is floated, it is taken out of the normal flow of the document (though still remaining part of it).
font-family - CSS: Cascading Style Sheets
each font family is specified as either a <family-name> or a <generic-name> value.
... <generic-name> generic font families are a fallback mechanism, a means of preserving some of the style sheet author's intent when none of the specified fonts are available.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax [ <family-name> | <generic-family> ]#where <family-name> = <string> | <custom-ident>+<generic-family> = serif | sans-serif | cursive | fantasy | monospace examples some common font families .serif { font-family: times, times new roman, georgia, serif; } .sansserif { font-family: verdana, arial, helvetica, sans-serif; } .monospace { font-family: luc...
font-size - CSS: Cascading Style Sheets
WebCSSfont-size
all; font-size: small; font-size: medium; font-size: large; font-size: x-large; font-size: xx-large; font-size: xxx-large; /* <relative-size> values */ font-size: smaller; font-size: larger; /* <length> values */ font-size: 12px; font-size: 0.8em; /* <percentage> values */ font-size: 80%; /* global values */ font-size: inherit; font-size: initial; font-size: unset; the font-size property is specified in one of the following ways: as one of the absolute-size or relative-size keywords as a <length> or a <percentage>, relative to the parent element's font size values xx-small, x-small, small, medium, large, x-large, xx-large, xxx-large absolute-size keywords, based on the user's default font size (which is medium).
...this is an os-independent and cross-browser way of literally telling the browsers to render the letters at exactly the number of pixels in height that you specified.
...it also applies to ::first-letter and ::first-line.inheritedyespercentagesrefer to the parent element's font sizecomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea length formal syntax <absolute-size> | <relative-size> | <length-percentage>where <absolute-size> = xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large<relative-size> = larger | smaller<length-percentage> = <length> | <percentage> examples setting font sizes css .small { font-size: xx-small;...
font-weight - CSS: Cascading Style Sheets
values relative to the parent */ font-weight: lighter; font-weight: bolder; /* numeric keyword values */ font-weight: 100; font-weight: 200; font-weight: 300; font-weight: 400;// normal font-weight: 500; font-weight: 600; font-weight: 700;// bold font-weight: 800; font-weight: 900; /* global values */ font-weight: inherit; font-weight: initial; font-weight: unset; the font-weight property is specified using any one of the values listed below.
... meaning of relative weights when lighter or bolder is specified, the below chart shows how the absolute font weight of the element is determined.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valuethe keyword or the numerical value as specified, with bolder and lighter transformed to the real valueanimation typea font weight formal syntax <font-weight-absolute> | bolder | lighterwhere <font-weight-absolute> = normal | bold | <number <a href="/docs/css/value_definition_syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[1,1000]> examples setting font weigh...
gap (grid-gap) - CSS: Cascading Style Sheets
WebCSSgap
gap: 3vmin; gap: 0.5cm; /* one <percentage> value */ gap: 16%; gap: 100%; /* two <length> values */ gap: 20px 10px; gap: 1em 0.5em; gap: 3vmin 2vmax; gap: 0.5cm 2mm; /* one or two <percentage> values */ gap: 16% 100%; gap: 21px 82%; /* calc() values */ gap: calc(10% + 20px); gap: calc(20px + 10%) calc(10% - 5px); /* global values */ gap: inherit; gap: initial; gap: unset; this property is specified as a value for <'row-gap'> followed optionally by a value for <'column-gap'>.
... <'row-gap'> and <'column-gap'> are each specified as a <length> or a <percentage>.
... 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-column-end - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-column-end: foo; will choose the end edge of that named grid area (unless another line named foo-end was explicitly specified before it).
... otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
... formal definition initial valueautoapplies togrid items and absolutely-positioned boxes whose containing block is a grid containerinheritednocomputed valueas specifiedanimation typediscrete formal syntax <grid-line>where <grid-line> = auto | <custom-ident> | [ <integer> && <custom-ident>?
grid-row-end - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-row-end: foo; will choose the end edge of that named grid area (unless another line named foo-end was explicitly specified before it).
... otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
... formal definition initial valueautoapplies togrid items and absolutely-positioned boxes whose containing block is a grid containerinheritednocomputed valueas specifiedanimation typediscrete formal syntax <grid-line>where <grid-line> = auto | <custom-ident> | [ <integer> && <custom-ident>?
grid-template-columns - CSS: Cascading Style Sheets
as a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track.
...rather than being specified explicitly, the sizes of the grid rows/columns will be taken from the parent grid’s definition.
... formal definition initial valuenoneapplies togrid containersinheritednopercentagesrefer to corresponding dimension of the content areacomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typesimple list of length, percentage, or calc, provided the only differences are in the values of the length, percentage, or calc components in the list formal syntax none | <track-list> | <auto-track-list> | subgrid <line-name-list>?where <track-list> = [ <line-names>?
grid-template - CSS: Cascading Style Sheets
<'grid-template-rows'> / <'grid-template-columns'> sets grid-template-rows and grid-template-columns to the specified values, and sets grid-template-areas to none.
... sets grid-template-areas to the strings listed, grid-template-rows to the track sizes following each string (filling in auto for any missing sizes), and splicing in the named lines defined before/after each size, and grid-template-columns to the track listing specified after the slash (or none, if not specified).
...and:grid-template-columns: nonegrid-template-rows: nonegrid-template-areas: noneapplies togrid containersinheritednopercentagesas each of the properties of the shorthand:grid-template-columns: refer to corresponding dimension of the content areagrid-template-rows: refer to corresponding dimension of the content areacomputed valueas each of the properties of the shorthand:grid-template-columns: as specified, but with relative lengths converted into absolute lengthsgrid-template-rows: as specified, but with relative lengths converted into absolute lengthsgrid-template-areas: as specifiedanimation typediscrete formal syntax none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>?
height - CSS: Cascading Style Sheets
WebCSSheight
auto the browser will calculate and select a height for the specified element.
... fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...if the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the value computes to auto.
hyphens - CSS: Cascading Style Sheets
WebCSShyphens
it can prevent hyphenation entirely, hyphenate at manually-specified points within the text, or let the browser automatically insert hyphens where appropriate.
... syntax /* keyword values */ hyphens: none; hyphens: manual; hyphens: auto; /* global values */ hyphens: inherit; hyphens: initial; hyphens: unset; the hyphens property is specified as a single keyword value chosen from the list below.
... formal definition initial valuemanualapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | manual | auto examples specifying text hyphenation this example uses three classes, one for each possible configuration of the hyphens property.
Initial value - CSS: Cascading Style Sheets
the usage of the initial value depends on whether a property is inherited or not: for inherited properties, the initial value is used on the root element only, as long as no specified value is supplied.
... for non-inherited properties, the initial value is used on all elements, as long as no specified value is supplied.
... note: the initial value should not be confused with the value specified by the browser's style sheet.
margin-left - CSS: Cascading Style Sheets
in the rare cases where width is overconstrained (i.e., when all of width, margin-left, border, padding, the content area, and margin-right are defined), margin-left is ignored, and will have the same calculated value as if the auto value was specified.
... syntax /* <length> values */ margin-left: 10px; /* an absolute length */ margin-left: 1em; /* relative to the text size */ margin-left: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-left: auto; /* global values */ margin-left: inherit; margin-left: initial; margin-left: unset; the margin-left property is specified as the keyword auto, or a <length>, or a <percentage>.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> | auto examples setting left margin using pixels and percentages .content { margin-left: 5%; } .sidebox { margin-left: 10px; } .logo { margin-left: -5px; } specifications specification status comment css basic box modelthe definition of 'margin-left' in that specification.
mask-origin - CSS: Cascading Style Sheets
in other words, this property specifies the origin position of an image specified by the mask-image css property.
...if a viewbox attribute is specified for the element creating the svg viewport, the reference box is positioned at the origin of the coordinate system established by the viewbox attribute and the dimension of the reference box is set to the width and height values of the viewbox attribute.
... formal definition initial valueborder-boxapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <geometry-box>#where <geometry-box> = <shape-box> | fill-box | stroke-box | view-boxwhere <shape-box> = <box> | margin-boxwhere <box> = border-box | padding-box | content-box examples setting mask origin to border-box css #masked { width: 100px; height: 100px; margin: 10px; border: 10px solid blue; background-color: #8cffa0; padding: 10px; mask-image: url(https://mdn.mozillademos.org/files/12676/star.svg); mask-origin: border-box; /* can be changed i...
object-fit - CSS: Cascading Style Sheets
syntax the object-fit property is specified as a single keyword chosen from the list of values below.
... scale-down the content is sized as if none or contain were specified, whichever would result in a smaller concrete object size.
... formal definition initial valuefillapplies toreplaced elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax fill | contain | cover | none | scale-down examples setting object-fit for an image html <section> <h2>object-fit: fill</h2> <img class="fill" src="https://udn.realityripple.com/samples/ae/248a9938d9.png" alt="mdn logo"> <img class="fill narrow" src="https://udn.realityripple.com/samples/ae/248a9938d9.png" alt="mdn logo"> <h2>object-fit: contain</h2> <img class="contain" src="https://udn.realityripple.com/samples/ae/248a9938d9.png" alt="mdn logo"> <img class="contain narrow" src="https://udn.realityripple.com/samples/ae/248a9938d9.png" alt="mdn logo"> <h2>object-fit: cover</h2> <img class="cover" src="https://udn.realityripple.com/samp...
offset-path - CSS: Cascading Style Sheets
et-path: path('m 0,200 q 200,200 260,80 q 290,20 400,0 q 300,100 400,200'); /* geometry boxes */ offset-path: margin-box; offset-path: stroke-box; /* global values */ offset-path: inherit; offset-path: initial; offset-path: unset; values ray() taking up to three values, defines a path that is a line segment starting from the position of the box and proceeds in the direction defined by the specified angle similar to the css gradient angle where 0deg is up, with positive angles increasing in the clockwise direction, with the size value being similar to the css radial gradient size values from closest-side to farthest-corner, and the keyterm contain.
...an offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape.
... formal definition initial valuenoneapplies totransformable elementsinheritednocomputed valueas specifiedanimation typeas <angle>, <basic-shape> or <path()>creates stacking contextyes formal syntax none | ray( [ <angle> && <size>?
outline-width - CSS: Cascading Style Sheets
syntax /* keyword values */ outline-width: thin; outline-width: medium; outline-width: thick; /* <length> values */ outline-width: 1px; outline-width: 0.1em; /* global values */ outline-width: inherit; the outline-width property is specified as any one of the values listed below.
... values <length> the width of the outline specified as a <length>.
... formal definition initial valuemediumapplies toall elementsinheritednocomputed valuean absolute length; if the keyword none is specified, the computed value is 0animation typea length formal syntax <line-width>where <line-width> = <length> | thin | medium | thick examples setting an element's outline width html <span id="thin">thin</span> <span id="medium">medium</span> <span id="thick">thick</span> <span id="twopixels">2px</span> <span id="oneex">1ex</span> <span id="em">1.2em</span> css span { outline-style: solid; ...
overflow-block - CSS: Cascading Style Sheets
syntax /* keyword values */ overflow-block: visible; overflow-block: hidden; overflow-block: scroll; overflow-block: auto; /* global values */ overflow-block: inherit; overflow-block: initial; overflow-block: unset; the overflow-block property is specified as a single keyword chosen from the list of values below.
... formal definition initial valueautoapplies toblock-containers, flex containers, and grid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples html <ul> <li><code>overflow-block:hidden</code> — hides the text outside the box <div id="div1"> lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod t...
... working draft initial valueautoapplies toblock-containers, flex containers, and grid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete ...
overflow-wrap - CSS: Cascading Style Sheets
syntax /* keyword values */ overflow-wrap: normal; overflow-wrap: break-word; overflow-wrap: anywhere; /* global values */ overflow-wrap: inherit; overflow-wrap: initial; overflow-wrap: unset; the overflow-wrap property is specified as a single keyword chosen from the list of values below.
... formal definition initial valuenormalapplies tonon-replaced inline elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | break-word | anywhere examples comparing overflow-wrap, word-break, and hyphens this example compares the results of overflow-wrap, word-break, and hyphens when breaking up a long word.
... working draft initial definition initial valuenormalapplies tonon-replaced inline elementsinheritedyescomputed valueas specifiedanimation typediscrete ...
overflow - CSS: Cascading Style Sheets
WebCSSoverflow
constituent properties this property is a shorthand for the following css properties: overflow-x overflow-y syntax /* keyword values */ overflow: visible; overflow: hidden; overflow: clip; overflow: scroll; overflow: auto; overflow: hidden visible; /* global values */ overflow: inherit; overflow: initial; overflow: unset; the overflow property is specified as one or two keywords chosen from the list of values below.
... if two keywords are specified, the first applies to overflow-x and the second to overflow-y.
... formal definition initial valuevisibleapplies toblock-containers, flex containers, and grid containersinheritednocomputed valueas each of the properties of the shorthand:overflow-x: as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipoverflow-y: as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax [ visible | hidden | clip | scroll | auto ]{1,2} examples setting different overf...
overscroll-behavior - CSS: Cascading Style Sheets
syntax the overscroll-behavior property is specified as one or two keywords chosen from the list of values below.
...if only one value is specified, both x and y are assumed to have the same value.
... formal definition initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ contain | none | auto ]{1,2} examples preventing an underlying element from scrolling in our overscroll-behavior example (see the source code also), we present a full-page list of fake contacts, and a dialog box containing a chat window.
<position> - CSS: Cascading Style Sheets
syntax the <position> data type is specified with one or two keywords, with optional offsets.
... if specified, an offset can be either a relative <percentage> value or an absolute <length> value.
... if only a single offset value is specified, it defines the x-coordinate, with the value for the other axis defaulting to center.
repeat() - CSS: Cascading Style Sheets
WebCSSrepeat
as a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track.
...otherwise, the specified track list repeats only once.
... 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.
scale - CSS: Cascading Style Sheets
WebCSSscale
equivalent to a scale() (2d scaling) function with a single value specified.
...equivalent to a scale() (2d scaling) function with two values specified.
... formal definition initial valuenoneapplies totransformable elementsinheritednocomputed valueas specifiedanimation typea transformcreates stacking contextyes formal syntax none | <number>{1,3} examples scaling an element on hover html <div> <p class="scale">scaling</p> </div> css * { box-sizing: border-box; } html { font-family: sans-serif; } div { width: 150px; margin: 0 auto; } p { padding: 10px 5px; border: 3px solid black; border-radius: 20px; width: 150px; font-size: 1.2rem; text-align: center; } .scale { transition: scale 1s; } ...
scroll-margin - CSS: Cascading Style Sheets
the value specified for scroll-margin determines how much of the page that's primarily outside the snapport should remain visible.
...the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length>{1,4} examples simple demonstration this example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented.
text-decoration-style - CSS: Cascading Style Sheets
the text-decoration-style css property sets the style of the lines specified by text-decoration-line.
... if the specified decoration has a specific semantic meaning, like a line-through line meaning that some text has been deleted, authors are encouraged to denote this meaning using an html tag, like <del> or <s>.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax solid | double | dotted | dashed | wavy examples setting a wavy underline .example { -moz-text-decoration-line: underline; -moz-text-decoration-style: wavy; -moz-text-decoration-color: red; -webkit-text-decoration-line: underline; -webkit-text-decoration-style: wavy; -webkit-text-decoration-color: red; } css .wavy { tex...
text-decoration - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: text-decoration-color text-decoration-line text-decoration-style text-decoration-thickness syntax the text-decoration property is specified as one or more space-separated values representing the various longhand text-decoration properties.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valueas each of the properties of the shorthand:text-decoration-line: as specifiedtext-decoration-style: as specifiedtext-decoration-color: computed colortext-decoration-thickness: as specifiedanimation typeas each of the properties of the shorthand:text-decoration-color: a colortext-decoration-style: discretetext-decoration-line: discretetext-decoration-thickness: by computed value type formal syntax <'text-decoration-line'> | <'text-decoration-style'> | <'text-decoration-co...
...xt has a really thick purple underline in supporting browsers.</p> <p class="blink">this text might blink for you, depending on the browser you use.</p> specifications specification status comment css text decoration module level 4 working draft adds text-decoration-thickness; note that this isn't yet officially part of the shorthand — this is as yet unspecified.
text-overflow - CSS: Cascading Style Sheets
syntax the text-overflow property may be specified using one or two values.
... each value is specified as one of: one of the keyword values: clip, ellipsis, fade the function fade(), which is passed a <length> or a <percentage> to control the fade distance a <string>.
... formal definition initial valueclipapplies toblock container elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ clip | ellipsis | <string> ]{1,2} examples css p { width: 200px; border: 1px solid; padding: 2px 5px; /* both of the following are required for text-overflow */ white-space: nowrap; overflow: hidden; } .overflow-visible { white-space: initial; } .overflow-clip { text-overflow: clip; } .overflow-ellipsis { text-overflow: ellipsis; }...
text-rendering - CSS: Cascading Style Sheets
in svg, when text is scaled up or down, browsers calculate the final size of the text (which is determined by the specified font size and the applied scale) and request a font of that computed size from the platform's font system.
... note: webkit precisely applies the specified value, but gecko treats the value the same as optimizelegibility.
... formal definition initial valueautoapplies totext elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | optimizespeed | optimizelegibility | geometricprecision examples automatic application of optimizelegibility this demonstrates how optimizelegibility is used by browsers automatically when the font-size is smaller than 20px.
transform-box - CSS: Cascading Style Sheets
/* keyword values */ transform-box: content-box; transform-box: border-box; transform-box: fill-box; transform-box: stroke-box; transform-box: view-box; /* global values */ transform-box: inherit; transform-box: initial; transform-box: unset; syntax the transform-box property is specified as one of the keyword values listed below.
...if a viewbox attribute is specified for the svg viewport creating element, the reference box is positioned at the origin of the coordinate system established by the viewbox attribute, and the dimension of the reference box is set to the width and height values of the viewbox attribute.
... formal definition initial valueview-boxapplies totransformable elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax content-box | border-box | fill-box | stroke-box | view-box examples svg transform-origin scoping in this example we have an svg: <svg id="svg" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 50 50"> <g> <circle id="center" fill="red" r="1" transform="translate(25 25)" /> <circle id="boxcenter" fill="blue" r=".5" transform="translate(15 15)" /> <rect id="box" x="10" y="10" width="10" height="10" rx="1" ry="1" stroke="black" fill="none" /> </g> </svg> in the css we have an animation that uses a transform to rotate the rectangle infinitely.
transform - CSS: Cascading Style Sheets
WebCSStransform
nsform: scaley(0.5); transform: scalez(0.3); transform: skew(30deg, 20deg); transform: skewx(30deg); transform: skewy(1.07rad); /* multiple function values */ transform: translatex(10px) rotate(10deg) translatey(5px); transform: perspective(500px) translate(10px, 0, 20px) rotatey(3deg); /* global values */ transform: inherit; transform: initial; transform: unset; the transform property may be specified as either the keyword value none or as one or more <transform-function> values.
... also, consider making use of the prefers-reduced-motion media feature — use it to write a media query that will turn off animations if the user has reduced animation specified in their system preferences.
... find out more: mdn understanding wcag, guideline 2.3 explanations understanding success criterion 2.3.3 | w3c understanding wcag 2.1 formal definition initial valuenoneapplies totransformable elementsinheritednopercentagesrefer to the size of bounding boxcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea transformcreates stacking contextyes formal syntax none | <transform-list>where <transform-list> = <transform-function>+where <transform-function> = <matrix()> | <translate()> | <translatex()> | <translatey()> | <scale()> | <scalex()> | <scaley()> | <rotate()> | <skew()> | <skewx()> | <skewy()> | <matrix3d()> | <translate3d()> | <translatez()> | <scale3d()> | <scalez()> | <rotate3d()> | <rotatex()> | <rotatey()> | <rotatez()> | <perspecti...
transition-delay - CSS: Cascading Style Sheets
each delay will be applied to the corresponding property as specified by the transition-property property, which acts as a master list.
... if there are fewer delays specified than in the master list, the list of delay values will be repeated until there are enough.
... formal definition initial value0sapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <time># examples transition-delay: 0.5s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-...
transition-duration - CSS: Cascading Style Sheets
you may specify multiple durations; each duration will be applied to the corresponding property as specified by the transition-property property, which acts as a master list.
... if there are fewer durations specified than in the master list, the user agent repeat the list of durations.
... formal definition initial value0sapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <time># examples transition-duration: 0.5s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color fo...
vertical-align - CSS: Cascading Style Sheets
align: sub; vertical-align: super; vertical-align: text-top; vertical-align: text-bottom; vertical-align: middle; vertical-align: top; vertical-align: bottom; /* <length> values */ vertical-align: 10em; vertical-align: 4px; /* <percentage> values */ vertical-align: 20%; /* global values */ vertical-align: inherit; vertical-align: initial; vertical-align: unset; the vertical-align property is specified as one of the values listed below.
...the baseline of some replaced elements, like <textarea>, is not specified by the html specification, meaning that their behavior with this keyword may vary between browsers.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the line-height of the element itselfcomputed valuefor percentage and length values, the absolute length, otherwise the keyword as specifiedanimation typea length formal syntax baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length> examples basic example html <div>an <img src="https://udn.realityripple.com/samples/b4/e1f0faff5b.svg" alt="link" width="32" height="32" /> image with a default alignment.</div> <div>an <img class="top" src="https://udn.realityripple.com/samples/b4/e1f0faff5b...
visibility - CSS: Cascading Style Sheets
syntax /* keyword values */ visibility: visible; visibility: hidden; visibility: collapse; /* global values */ visibility: inherit; visibility: initial; visibility: unset; the visibility property is specified as one of the keyword values listed below.
... visibility: collapse may change the layout of a table if the table has nested tables within the cells that are collapsed, unless visibility: visible is specified explicitly on nested tables.
... formal definition initial valuevisibleapplies toall elementsinheritedyescomputed valueas specifiedanimation typea visibility formal syntax visible | hidden | collapse examples basic example html <p class="visible">the first paragraph is visible.</p> <p class="not-visible">the second paragraph is not visible.</p> <p class="visible">the third paragraph is visible.
width - CSS: Cascading Style Sheets
WebCSSwidth
syntax /* <length> values */ width: 300px; width: 25em; /* <percentage> value */ width: 75%; /* keyword values */ width: max-content; width: min-content; width: fit-content(20em); width: auto; /* global values */ width: inherit; width: initial; width: unset; the width property is specified as either: one of the following keyword values: min-content, max-content, fit-content, auto.
... auto the browser will calculate and select a width for the specified element.
... fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
regexp:test() - EXSLT
WebEXSLTregexptest
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes regexp:test() tests to see whether a string matches a specified regular expression.
... i case insensitive match if this flag is specified, the match is performed in a case insensitive fashion.
... returns true if the specified regexp matches the test string.
Cross-browser audio basics - Developer guides
the controls attribute on the <audio> element is specified when we require the browser to provide us with default playback controls.
...</audio> type as mentioned above, to be sure that the browser knows what type of file is being specified, it's good practice to specify a type attribute alongside the src attribute.
... note: a very early spec specified that the browser should return no instead of an empty string, but thankfully the number of people using older browsers that implement this version of the spec are few and far between.
HTML attribute: min - HTML: Hypertext Markup Language
WebHTMLAttributesmin
if a value is specified for min that isn't a valid number, the input has no minimum value.
... syntax if any is not explicity set, valid values for the number, date/time input types, and range input types are equal to the basis for stepping - the min value and increments of the step value, up to the max value, if specified.
...this must be less than the minimum value (max attribute), if specified.
HTML attribute: multiple - HTML: Hypertext Markup Language
<input type="email" multiple name="emails" id="emails"> if and only if the multiple attribute is specified, the value can be a list of properly-formed comma-separated e-mail addresses.
... <select multiple name="drawfs" id="drawfs"> <option>grumpy</option> <option>happy</option> <option>sleepy</option> <option>bashful</option> <option>sneezy</option> <option>dopey</option> <option>doc</option> </select> when multiple is specified, most browsers will show a scrolling list box instead of a single line dropdown.
...kers.com">happy</option> <option value="sleepy@woodworkers.com">sleepy</option> <option value="bashful@woodworkers.com">bashful</option> <option value="sneezy@woodworkers.com">sneezy</option> <option value="dopey@woodworkers.com">dopey</option> <option value="doc@woodworkers.com">doc</option> </datalist> input:invalid {border: red solid 3px;} if and only if the multiple attribute is specified, the value can be a list of properly-formed comma-separated e-mail addresses.
HTML attribute: readonly - HTML: Hypertext Markup Language
if the readonly attribute is specified on an input element, because the user can not edit the input, the element does not participate in constraint validation.
... because a read-only field cannot have it's value changed by a user interaction, required does not have any effect on inputs with the readonly attribute also specified.
... note: the required attribute is not permitted on inputs with the readonly attribute specified.
<input type="range"> - HTML: Hypertext Markup Language
WebHTMLElementinputrange
the default value is halfway between the specified minimum and maximum—unless the maximum is actually less than the minimum, in which case the default is set to the value of the min attribute.
...if a value is specified for min that isn't a valid number, the input has no minimum value.
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate default value if neither of those is provided) are valid.
<link>: The External Resource Link element - HTML: Hypertext Markup Language
WebHTMLElementlink
if disabled is specified in the html when it is loaded, the stylesheet will not be loaded during page load.
...this is a user agent’s default behavior, if no policy is otherwise specified.
...for example, the browser might choose a different rendering of a link as a function of the methods specified; something that is searchable might get a different icon, or an outside link might render with an indication of leaving the current site.
<th> - HTML: Hypertext Markup Language
WebHTMLElementth
auto the default value when this attribute is not specified is auto.
... the default value when this attribute is not specified is left.
... charoff obsolete since html5 this attribute is used to shift column data to the right of the character specified by the char attribute.
<tr>: The Table Row element - HTML: Hypertext Markup Language
WebHTMLElementtr
charoffobsolete since html5 a domstring indicating the number of characters on the tail end of the column's data should be displayed after the alignment character specified by the char attribute.
...vard galinski</td> <td>533175</td> <td><time datetime="2011-01-13">january 13, 2011</time></td> <td>37.00</td> </tr> <tr> <td>hoshi nakamura</td> <td>601942</td> <td><time datetime="2012-07-23">july 23, 2012</time></td> <td>15.00</td> </tr> </table> css this simple css just adds a solid black border around the table and around each of its cells, including those specified using both <th> and <td>.
...first, the overall styling of the header: thead > tr { background-color: rgb(228, 240, 245); } thead > tr:nth-of-type(2) { border-bottom: 2px solid black; } this sets the background color of all <tr> elements in the table's heading (as specified using <thead>).
HTML elements reference - HTML: Hypertext Markup Language
WebHTMLElement
the element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements).
... <figure> the html <figure> (figure with optional caption) element represents self-contained content, potentially with an optional caption, which is specified using the (<figcaption>) element.
... element description <embed> the html <embed> element embeds external content at the specified point in the document.
itemid - HTML: Hypertext Markup Language
an itemid attribute can only be specified for an element that has both itemscope and itemtype attributes.
... also, itemid can only be specified on elements that possess an itemscope attribute whose corresponding itemtype refers to or defines a vocabulary that supports global identifiers.
... the exact meaning of an itemtype's global identifier is provided by the definition of that identifier within the specified vocabulary.
itemtype - HTML: Hypertext Markup Language
the itemtype attribute can only be specified on elements which have an itemscope attribute specified.
... the itemid attribute can only be specified on elements which have both an itemscope attribute and an itemtype attribute specified.
... they must only be specified on elements with an itemscope attribute, whose itemtype attribute specifies a vocabulary not supporting global identifiers for items, as defined by that vocabulary's specification.
Content Security Policy (CSP) - HTTP
WebHTTPCSP
content-security-policy: default-src 'self' *.mailsite.com; img-src * note that this example doesn't specify a script-src; with the example csp, this site uses the setting specified by the default-src directive, which means that scripts can be loaded only from the originating server.
...the policy specified in content-security-policy headers is enforced while the content-security-policy-report-only policy generates reports but is not enforced.
... original-policy the original policy as specified by the content-security-policy http header.
Content-Security-Policy - HTTP
navigate-to restricts the urls to which a document can initiate navigation by any means, including <form> (if form-action is not specified), <a>, window.location, window.open, etc.
...these violation reports consist of json documents sent via an http post request to the specified uri.
... multiple content security policies the csp mechanism allows multiple policies being specified for a resource, including via the content-security-policy header, the content-security-policy-report-only header and a <meta> element.
Index - HTTP
WebHTTPHeadersIndex
these violation reports consist of json documents sent via an http post request to the specified uri.
...these violation reports consist of json documents sent via an http post request to the specified uri.
... 92 public-key-pins-report-only hpkp, http, security, header the http public-key-pins-report-only response header sends reports of pinning violation to the report-uri specified in the header but, unlike public-key-pins still allows browsers to connect to the server if the pinning is violated.
Set-Cookie - HTTP
__host- prefix: cookies with names starting with __host- must be set with the secure flag, must be from a secure page (https), must not have a domain specified (and therefore aren't sent to subdomains) and the path must be /.
... if unspecified, the cookie becomes a session cookie.
... multiple host/domain values are not allowed, but if a domain is specified, then subdomains are always included.
HTTP request methods - HTTP
WebHTTPMethods
get the get method requests a representation of the specified resource.
... post the post method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.
... delete the delete method deletes the specified resource.
HTTP Public Key Pinning (HPKP) - HTTP
includesubdomains optional if this optional parameter is specified, this rule applies to all of the site's subdomains as well.
... report-uri optional if this optional parameter is specified, pin validation failures are reported to the given url.
...this header only sends reports to the report-uri specified in the header and does still allow browsers to connect to the webserver even if the pinning is violated.
Details of the object model - JavaScript
so far, the constructor function has created a generic object and then specified local properties and values for the new object.
...calling the workerbee constructor ensures that an engineer object starts out with the properties specified in all constructor functions that are called.
... if an object in the prototype chain has a value for the specified property, return that value.
Indexed collections - JavaScript
when these values are specified, the array is initialized with them as the array's elements.
... if initialvalue is specified, then callback is called with initialvalue as the first parameter value and the value of the first item in the array as the second parameter value.
... if initialvalue is not specified, then callback's first two parameter values will be the first and second elements of the array.
Regular expression syntax cheatsheet - JavaScript
\k<name> a back reference to the last substring matching the named capture group specified by <name>.
... (?<name>x) named capturing group: matches "x" and stores it on the groups property of the returned matches under the name specified by <name>.
...if a unicodepropertyname is specified, the value must correspond to the property type given.
BigInt64Array - JavaScript
bigint64array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... bigint64array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... bigint64array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
BigUint64Array - JavaScript
biguint64array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... biguint64array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... biguint64array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
DataView() constructor - JavaScript
if unspecified, the buffer view starts with the first byte.
...if unspecified, the view's length will match the buffer's length.
... return value a new dataview object representing the specified data buffer.
Date.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified date object.
...date.prototype.tostring() returns a string representation of the date in the format specified in ecma-262 which can be summarised as: week day: 3 letter english week day name, e.g.
...therefore it should not be relied upon to be in the specified format.
Float32Array - JavaScript
float32array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... float32array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... float32array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Float64Array - JavaScript
float64array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... float64array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... float64array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Function.prototype.apply() - JavaScript
return value the result of calling the function with the specified this value and arguments.
...it can be used for all unspecified arguments of the called object.
... this is because the limit (and indeed, even the nature of any excessively-large-stack behavior) is unspecified.
Int16Array - JavaScript
int16array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... int16array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... int16array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Int32Array - JavaScript
int32array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... int32array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... int32array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Int8Array - JavaScript
int8array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... int8array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... int8array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Number - JavaScript
number.prototype.toprecision(precision) returns a string representing the number to a specified precision in fixed-point or exponential notation.
... number.prototype.tostring([radix]) returns a string representing the specified object in the specified radix ("base").
... number.prototype.valueof() returns the primitive value of the specified object.
Object.prototype.hasOwnProperty() - JavaScript
the hasownproperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).
... return value a boolean indicating whether or not the object has the specified property as own property.
...this method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check for a property in the object's prototype chain.
Promise.prototype.finally() - JavaScript
when the promise is settled, i.e either fulfilled or rejected, the specified callback function is executed.
... return value returns a promise whose finally handler is set to the specified function, onfinally.
... note: a throw (or returning a rejected promise) in the finally callback will reject the new promise with the rejection reason specified when calling throw.
TypedArray.prototype.subarray() - JavaScript
the whole array will be included in the new view if this value is not specified.
...if not specified, all elements from the one specified by begin to the end of the array are included in the new view.
... 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.
Uint16Array - JavaScript
uint16array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... uint16array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... uint16array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Uint32Array - JavaScript
uint32array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... uint32array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... uint32array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
Uint8Array - JavaScript
uint8array.prototype.indexof() returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
... uint8array.prototype.lastindexof() returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.
... uint8array.prototype.set() stores multiple values in the typed array, reading input values from a specified array.
new operator - JavaScript
the constructor function foo is called with the specified arguments, and with this bound to the newly created object.
...if no argument list is specified, foo is called without arguments.
...to do this, you would write the following function: function car(make, model, year) { this.make = make; this.model = model; this.year = year; } now you can create an object called mycar as follows: var mycar = new car('eagle', 'talon tsi', 1993); this statement creates mycar and assigns it the specified values for its properties.
with - JavaScript
contra: the with statement forces the specified object to be searched first for all name lookups.
... therefore all identifiers that aren't members of the specified object will be found more slowly in a 'with' block.
... where performance is important, 'with' should only be used to encompass code blocks that access members of the specified object.
<mlabeledtr> - MathML
columnalign overrides the horizontal alignment of cells specified by <mtable> for this row.
... groupalign href used to set a hyperlink to a specified uri.
... rowalign overrides the vertical alignment of cells specified by <mtable> for this row.
<mtd> - MathML
WebMathMLElementmtd
columnalign specifies the horizontal alignment of this cell and overrides values specified by <mtable> or <mtr>.
... groupalign unimplemented href used to set a hyperlink to a specified uri.
... rowalign specifies the vertical alignment of this cell and overrides values specified by <mtable> or <mtr>.
<mtr> - MathML
WebMathMLElementmtr
columnalign overrides the horizontal alignment of cells specified by <mtable> for this row.
... groupalign unimplemented href used to set a hyperlink to a specified uri.
... rowalign overrides the vertical alignment of cells specified by <mtable> for this row.
Web audio codec guide - Web media technologies
however, in practice 64 kbps is always used g.722 annex b super wide-band: 64 kbps, 80 kbps, and 96 kbps g.722 annex d stereo wide-band: 64 kbps and 80 kbps g.722 annex d stereo super wide-band: 80 kbps, 96 kbps, 112 kbps, and 128 kbps variable bit rate (vbr) support no supported sample formats 14-bit integer supported sample rates 16 khz (adpcm is specified to allow 8 khz, 11.025 khz, 22.05 khz, 44.1 khz, but g.722 uses 16 khz) recommended minimum bit rate for stereo sound 128 kbps at 44.1 khz sample rate compression lossy maximum audio channels 2 audio frequency bandwidth 50 hz - 7 khz latency 4 ms browser compatibility feature chrome edg...
... mp3 (mpeg-1 audio layer iii) of the audio formats specified by the mpeg/mpeg-2 standards, mpeg-1 audio layer iii—otherwise known as mp3—is by far the most widely used and best-known.
... container support ogg, webm, mpeg-ts, mp4 rtp / webrtc compatible yes licensing fully open and free of any licensing requirements [1] the specified sample rates are effective sample rates.
Media container formats (file types) - Web media technologies
24, safari 3.1 ogg ogg chrome 3, firefox 3.5, edge 173 (desktop only), internet explorer 9, opera 10.50 quicktime (mov) apple quicktime movie only older versions of safari, plus other browsers that supported apple's quicktime plugin webm web media chrome 6, edge 173 (desktop only), firefox 4, opera 10.6, safari (webrtc only) [1] unless otherwise specified, both mobile and desktop browser compatibility is implied if a browser is listed here.
... adts audio data transport stream (adts) is a container format specified by mpeg-4 part 3 for audio data, intended to be used for streamed audio, such as for internet radio.
...if the user agent can't play that, it moves on to the next option, whose type is specified as video/mp4.
begin - SVG: Scalable Vector Graphics
WebSVGAttributebegin
the animation start time is defined relative to the time that the specified event is fired.
...the element animation start time is defined relative to the time that the repeat event is raised with the specified iteration value.
...the element animation will begin when the user presses the specified key.
end - SVG: Scalable Vector Graphics
WebSVGAttributeend
the animation end time is defined relative to the time that the specified event is fired.
...the element animation end time is defined relative to the time that the repeat event is raised with the specified iteration value.
...the element animation will end when the user presses the specified key.
keyPoints - SVG: Scalable Vector Graphics
this value defines a semicolon-separated list of floating point values between 0 and 1 and indicates how far along the motion path the object shall move at the moment in time specified by corresponding keytimes value.
... the distance is calculated along the path specified by the path attribute.
... if a list of key points is specified, there must be exactly as many values in the keypoints list as in the keytimes list.
local - SVG: Scalable Vector Graphics
WebSVGAttributelocal
the local attribute specifies the unique id for a locally stored color profile as specified by international color consortium.
... if both the xlink:href and the local attribute are specified, then the local file system is searched for the color profile first, and, if not available locally, then the resource identified by the xlink:href attribute is used.
... only one element is using this attribute: <color-profile> usage notes value <string> default value none animatable no <string> this value specifies the unique id for a locally stored color profile as specified by international color consortium.
orient - SVG: Scalable Vector Graphics
WebSVGAttributeorient
auto-start-reverse if placed by marker-start, the marker is oriented 180° different from the orientation that would be used if auto where specified.
... <angle> this value indicates that the marker is oriented such that the specified angle is that measured between the shape's positive x-axis and the marker's positive x-axis.
...the marker is oriented such that the specified angle is that measured between the shape's positive x-axis and the marker's positive x-axis.
textLength - SVG: Scalable Vector Graphics
the user agent will ensure that the text does not extend farther than that distance, using the method or methods specified by the lengthadjust attribute.
...ment.getelementbyid(): const widthslider = document.getelementbyid("widthslider"); const widthdisplay = document.getelementbyid("widthdisplay"); const textelement = document.getelementbyid("hello"); const baselength = math.floor(textelement.textlength.baseval.value); widthslider.value = baselength; widthslider.addeventlistener("input", function(event) { textelement.textlength.baseval.newvaluespecifiedunits( svglength.svg_lengthtype_px, widthslider.valueasnumber); widthdisplay.innertext = widthslider.value; }, false); widthslider.dispatchevent(new event("input")); after fetching the element references, an eventlistener is established by calling addeventlistener() on the slider control, to receive any input events which occur.
... when an "input" event occurs, we call svglength.newvaluespecifiedunits() to set the value of textlength to the slider's new value, using the svglength interface's svg_lengthtype_px unit type to indicate that the value represents pixels.
Web Components
register your new custom element using the customelementregistry.define() method, passing it the element name to be defined, the class or function in which its functionality is specified, and optionally, what element it inherits from.
... element extensions extensions to the element interface related to shadow dom: the element.attachshadow() method attaches a shadow dom tree to the specified element.
... the element.shadowroot property returns the shadow root attached to the specified element, or null if there is no shadow root attached.
Content Scripts - Archive of obsolete content
additionally, some sdk user interface components - panel, sidebar, frame - are specified using html, and use separate scripts to interact with this content.
...if you do this, scripts specified using contentscriptfile are loaded before those specified using contentscript.
context-menu - Archive of obsolete content
if you combine selectorcontext and the "context" event, be aware that the node argument passed to the "context" event will not always match the type specified in selectorcontext.
... selectorcontext will match if the menu is invoked on the node specified or any descendant of that node, but the "context" event handler is passed the actual node on which the menu was invoked.
selection - Archive of obsolete content
setting the selection removes all current selections, inserts the specified text at the location of the first selection, and selects the new text.
...setting the selection removes all current selections, inserts the specified text at the location of the first selection, and selects the new text.
tabs - Archive of obsolete content
content scripts specified by this option are loaded before those specified by the contentscript option.
...content scripts specified by this option are loaded after those specified by the contentscriptfile option.
content/loader - Archive of obsolete content
content scripts specified by this property are loaded before those specified by the contentscript property.
...content scripts specified by this property are loaded after those specified by the contentscriptfile property.
content/mod - Archive of obsolete content
if window is not specified, modification is removed from all the windows it's being attached to.
...if target is specified modification is removed from that target only, otherwise modification is removed from all the targets it's being attached to.
content/worker - Archive of obsolete content
content scripts specified by this option are loaded before those specified by the contentscript option.
...content scripts specified by this option are loaded after those specified by the contentscriptfile option.
event/core - Archive of obsolete content
all listeners of the specific type can be easily removed (only two argument must be passed): off(target, 'message'); also, removing all registered listeners is possible (only one argument must be passed): off(target); globals functions on(target, type, listener) registers an event listener that is called every time events of the specified type is emitted on the given event target.
... once(target, type, listener) registers an event listener that is called only once: the next time an event of the specified type is emitted on the given event target.
io/text-streams - Archive of obsolete content
if not specified, "utf-8" is assumed.
...if not specified, "utf-8" is assumed.
window/utils - Archive of obsolete content
getinnerid(window) returns the id of the specified window's current inner window.
... getouterid(window) returns the id of the specified window's outer window.
jpm-mobile - Archive of obsolete content
-b --binary binary use the package name of firefox specified in binary.
... -b --binary binary use the package name of firefox specified in binary.
Getting started (cfx) - Archive of obsolete content
an alternative development model is to use the extension auto-installer add-on: this listens for new xpi files on a specified port and installs them automatically.
... that way you can test new changes without needing to restart the browser: make a change to your add-on run cfx xpi post the add-on to the port specified you could even automate this workflow with a simple script.
Bookmarks - Archive of obsolete content
the uri for the bookmark needs to be specified using an nsiuri object.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var bookmarksarray = bmsvc.getbookmarkidsforuri(uri, {}); after executing this code, the array bookmarksarray contains the ids of all bookmarks that refer to the specified uri (in this case, "http://google.com").
File I/O - Archive of obsolete content
note: you can still get a file object even if the specified file does not exist, and no exception will be thrown.
...it returns the user-specified file as nsifile.
JavaScript timers - Archive of obsolete content
but there are some javascript native functions (timers) which allow us to delay the execution of arbitrary instructions: settimeout() setinterval() setimmediate() requestanimationframe() the settimeout() function is commonly used if you wish to have your function called once after the specified delay.
... documentation settimeout() calls a function or executes a code snippet after specified delay.
Multiple item extension packaging - Archive of obsolete content
for the firefox and thunderbird 1.5 extension manager to determine that the package is a multiple item package, the em:type specified in your install.rdf must be 32 and specified as <em:type nc:parsetype="integer">32</em:type>.
... when specifying em:targetapplication the minversion specified should be the highest minversion and the maxversion specified should be the lowest maxversion from all of the installable bundles contained by the multiple item package for the em:targetapplication.
Performance best practices in extensions - Archive of obsolete content
lazily load services the xpcomutils javascript module provides two methods for lazily loading things: definelazygetter() defines a function on a specified object that acts as a getter which will be created the first time it's used.
... definelazyservicegetter() defines a function on a specified object which acts as a getter for a service.
Notes on HTML Reflow - Archive of obsolete content
the root frame notes the incremental reflow reason specified in the reflow state, and inspects the path contained within the reflow command object.
...each frame along the incremental reflow path (as specified in the reflow command object) extracts the next frame and dispatches the reflow downward.
Dehydra Function Reference - Archive of obsolete content
if a property is not specified then it will not be passed to the runtime.
...if -werror is specified this will cause compilation to fail.
Microsummary XML grammar reference - Archive of obsolete content
if the <update> element does not include an interval attribute, firefox applies the interval specified by the browser.microsummary.updateinterval preference.
... notes: regardless of the absolute or conditional update interval specified by this element, firefox will never update microsummaries more frequently than once per minute; because firefox checks for expired microsummaries every 15 seconds, it is possible for a microsummary update to begin up to 15 seconds later than its interval indicates; firefox respects the browser cache when updating microsummaries, so it will not reload a page to update its microsummary if the cache contains a fresh copy of the page.
Table Layout Strategy - Archive of obsolete content
the words the table layout is width oriented and knows the following widths: minimum content width - min the minimum width that is required to layout the content, all linebreak possibilities will be used percent width - pct the cell width specified in percent, fixed width - fix the cell width specified as px, mm etc., proportional width - prop the cell width specified via 1*, 2* etc.
...for instance one cell could have a large min width,the next could have a specified fixed width and another a specified pct width.
Actionscript Acceptance Tests - Archive of obsolete content
(see bug 587093 for details.) specifying multiple .abcs: if you desire to run a test with multiple .abc files (e.g: avmshell a.abc b.abc testname.abc) there is a special avm_args directive called multiabc that is specified surrounded by two pipe (|) symbols: |multiabc| $dir/testname_support/a.abc $dir/testname_support/b.abc the extra abc files will usually be placed in a _support dir (see additional files below).
...testname.as.avm_args files will take precedence over the dir.avm_args file testname.as.tz if a test is only valid for certain timezones, the timezones can be specified in this support file.
The life of an HTML HTTP request - Archive of obsolete content
the webshell then tells its documentloader to load (command "view") the specified url.
...this is done by the nscssframeconstructor, which creates frames for each content node according to the rules specified in the user agent stylesheet (ua.css) and the document specific style sheets.
Binding Attachment and Detachment - Archive of obsolete content
any specified event handlers are installed on their requested targets.
... any specified event handlers are unhooked from their respective targets.
XBL - Archive of obsolete content
the element that the binding is attached to, called the bound element, acquires the new behavior specified by the binding.
... specifications xbl 1.0 is specified in xbl 1.0 reference.
Creating XPI Installer Modules - Archive of obsolete content
resources are collected in jar archives whose contents are specified in contents.rdf files at their own top level.
...note also the use of resource attributes specified in the contents.rdf file in the jar.
confirm - Archive of obsolete content
logical button button title constants button_title_ok: an 'ok' button button_title_cancel: a 'cancel' button button_title_yes: a 'yes' button button_title_no: a 'no' button button_title_save: a 'save' button button_title_dont_save: a 'don't save' button button_title_revert: a 'revert' button button_title_is_string: custom title specified by the corresponding abuttonxtitle parameter other constants button_pos_0_default: specifies button 0 as the default button.
... unless specified otherwise, this is the default.
deleteRegisteredFile - Archive of obsolete content
deleteregisteredfile (netscape 6 and mozilla do not currently support this method.) deletes the specified file and removes its entry from the client version registry.
...description the deleteregisteredfile method deletes the specified file and removes the file's entry from the client version registry.
initInstall - Archive of obsolete content
initinstall initializes the installation of the specified software and version.
...description the initinstall method initializes the installation of the specified software.
mousethrough - Archive of obsolete content
if this attribute is not specified, the value is inherited from the parent of the element.
...in the following example, the image appears above the button, yet the mousethrough attribute specified on the image causes mouse events to be ignored on the image and instead fall through to the button.
targets - Archive of obsolete content
if this attribute is not specified, or you set it to the value '*', all elements are valid.
... the command update will only occur when the event occurs to one of the specified elements.
textbox.showCommentColumn - Archive of obsolete content
if this attribute is not specified, the comment column doesn't appear.
... as of gecko 1.9.1, this attribute is now always specified in lower case.
Reading from Files - Archive of obsolete content
this method actually takes a number of additional arguments, however they are optional so they do not need to be specified if they aren't needed.
...reading text files characters are interpreted from a text input stream using a specified character encoding.
Writing to Files - Archive of obsolete content
however, here is an example of how they might be used: var stream = io.newoutputstream(file, "text nocreate append"); the flags are specified in a space separated list as the second argument to the newoutputstream method.
...writing text files characters are written to a text input stream using a specified character encoding, which defaults to utf-8.
International characters in XUL JavaScript - Archive of obsolete content
otherwise, the character encoding will be the same as the one used by the xul file (which can be specified using an encoding attribute in the <?xml?> tag).
... if the script file is loaded via http, the http header can contain a character encoding declaration as part of the content-type header, for example: content-type: application/javascript; charset=utf-8 if no charset parameter is specified, the same rules as above apply.
loadTabs - Archive of obsolete content
« xul reference home loadtabs( uris, loadinbackground, replace ) loadtabs( uris, params ) return type: no return value loads a set of uris, specified by the array uris, into tabs.
... if loadinbackground is true, the tabs are loaded in the background, and if replace is true, the currently displayed tabs are replaced with the specified uris instead of adding new tabs.
openPopup - Archive of obsolete content
« xul reference home openpopup( anchor , position , x , y , iscontextmenu, attributesoverride, triggerevent ) return type: no return value opens the popup relative to a specified node at a specific location.
...an unanchored popup appears at the position specified by x and y, relative to the viewport of the document containing the popup node.
SQLite Templates - Archive of obsolete content
the file within this directory is specified after the colon, in this case 'filename.sqlite'.
...if no type is specified, a string is assumed.
Sorting Results - Archive of obsolete content
this last value is the default if the attribute is not specified.
...when sorting, the predicate specified in the sort attribute for the result is used to determine where in the content the generated output should be inserted.
textbox (Toolkit autocomplete) - Archive of obsolete content
if this attribute is not specified, the comment column doesn't appear.
...if this attribute is not specified, the image column doesn't appear.
Accesskey display rules - Archive of obsolete content
each controls of xul can have an accesskey which is specified by accesskey attribute or accesskey property (see accesskey attribute document for the detail).
...at that time, accesskeys are specified by independent entity from their label.
Adding Methods to XBL-defined Elements - Archive of obsolete content
methods are the functions of objects, such as window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">window.open().
Anonymous Content - Archive of obsolete content
mechanisms are provided for adding attributes to the inner elements that were specified on the outer element.
...the menupopup will be added to the content in the location specified by the children element.
Box Objects - Archive of obsolete content
note that retrieving these values will return the size only if it was explicitly specified.
...the default value if the ordinal is not specified is 1.
Content Panels - Archive of obsolete content
the type may be specified using the type attribute.
...this is because it uses the second type of browser, specified by setting the type attribute to the value content.
Element Positioning - Archive of obsolete content
the size of these style properties should be specified as a number followed by a unit.
...they simply obey their specified widths and heights, and if the size wasn't specified, the element's default size is just large enough to fit the contents.
Keyboard Shortcuts - Archive of obsolete content
however, there will also be cases where you want to refer to keys that cannot be specified with a character (such as the enter key or the function keys).
...an example is shown below: <keyset> <key id="copy-key" modifiers="accel" key="c" oncommand="docopy();"/> </keyset> the function docopy will be called when the user presses the keys specified by the key element, which in this example, are the keys for copying to the clipboard (such as control + c).
Simple Menu Bars - Archive of obsolete content
mozilla will look at the label attribute and add an underline character to the character specified here.
...mozilla will look at the label attribute and add an underline character to the character specified here.
Skinning XUL Files by Hand - Archive of obsolete content
in the first definition, the selector "toolbar.nav-bar" is used to define style information for all xul toolbars of the class "nav-bar." unlike an id -- which is also often used as a selector but must be unique -- a class attribute can be used on multiple xul elements you want to pick up the specified style information.
...the pseudo-class is connected to an element (or not: you can also define styles that apply to any element in the state specified by a pseudo-class) with the ":" character.
Splitters - Archive of obsolete content
a value has not been specified for resizebefore so it will default to a value of closest.
... for example, if you specified a minimum width of 30 pixels on panel 4 above, it would not shrink below that size.
The Chrome URL - Archive of obsolete content
the mapping between chrome urls and jar files are specified in the manifest files stored in the chrome directory.
...you will also see chrome urls without specified filenames, such as: chrome://browser/content/ in this case, only the package name and part is specified.
XBL Example - Archive of obsolete content
the content of the pages will be specified in the xul file, not in xbl, but we'll need to add it inside the deck.
...the label widget has not appeared as no value has been specified for it.
XULBrowserWindow - Archive of obsolete content
methods hidechromeforlocation determines whether or not browser chrome should be hidden for the specified location.
... return value true if chrome should be hidden while displaying the specified location; otherwise false.
XUL Template Primer - Bindings - Archive of obsolete content
the <bindings> element is used to create additional,optional variable bindings, in addition to those that are specified in a rule's <conditions>.
... this is different from the variables specified in the rule's conditions, where a value must be found for each variable for the rule to match.
checkbox - Archive of obsolete content
a label, specified with the label attribute, may be added beside the check box.
... crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
datepicker - Archive of obsolete content
three types are available, which can be specified using the type attribute.
...if not specified, the datepicker defaults to the current day.
key - Archive of obsolete content
ArchiveMozillaXULkey
this shouldn't be specified directly because it may conflict with system wide shortcut key.
... if the modifiers attribute is not specified, then no modifiers may be pressed for the key to match.
label - Archive of obsolete content
ArchiveMozillaXULlabel
if the user clicks the label, it will move the focus to the associated control, specified with the control attribute.
... crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
listitem - Archive of obsolete content
the text of the listitem is specified either using listcell elements, or by placing a label attribute directly on the listitem element.
... crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
menuitem - Archive of obsolete content
auto this, the default value if the closemenu attribute is not specified, closes up the menu and all parent menus.
... crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
preference - Archive of obsolete content
value gets and sets the value of the user preference specified in name.
... valuefrompreferences gets and sets the value stored in the user preference, specified in name.
preferences - Archive of obsolete content
ontrollers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods void firechangedevent(in domelement preference); creates and dispatches a changed (non-bubbling) event to the specified preference element.
... also executes code specified in onchanged attribute of the element.
radio - Archive of obsolete content
ArchiveMozillaXULradio
a label, specified with the label attribute may be added beside the radio button.
... crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
rule - Archive of obsolete content
ArchiveMozillaXULrule
if not specified, the rule may match regardless of whether a node is a container or not.
...if not specified, the rule may match regardless of whether a node has children or not.
scale - Archive of obsolete content
ArchiveMozillaXULscale
the user may use the arrow keys to increment and decrement the value by one unit, or the page up and page down keys to increment and decrement the value by one page, as specified by the pageincrement attribute.
...if not specified, the default value is used, which varies for each platform.
splitter - Archive of obsolete content
if this attribute is not specified, the splitter will not cause a collapse.
...litter"/> <treecol id="id" label="id" flex="1"/> <splitter class="tree-splitter"/> <treecol id="date" label="date" flex="1"/> <splitter class="tree-splitter"/> </treecols> <treechildren/> </tree> splitter resizing and overflow the degree to which a splitter will resize a box, and what happens during the resize and after the limit is reached, depends on the height (or width) specified for the box as an attribute or in css, the min-height (or min-width), the intrinsic height of the box contents, and the presence or absence of a collapse attribute on the splitter.
template - Archive of obsolete content
if not specified, the variable specified in the uri attribute of the content tag in the template's first rule is used.
...if not specified, the variable specified in the uri attribute in the action body of the template's first rule is used.
toolbar - Archive of obsolete content
the chromeclass-toolbar class may be used to create a toolbar where its visibility depends on the toolbar flag when opening the window with the window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">window.open() method.
tree - Archive of obsolete content
ArchiveMozillaXULtree
unlike other elements, the data to display inside the tree is not specified using tags, but is determined from a view object.
...pnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata startediting( row, column ) return type: no return value activates user editing of the given cell, which is specified by row index number and the nsitreecolumn in which it is located.
treecol - Archive of obsolete content
attributes crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
...if false or not specified, the user can adjust the size of the column, typically by dragging the column header with the mouse.
wizard - Archive of obsolete content
getpagebyid( pageid ) return type: wizardpage element returns the wizardpage element corresponding to the specified pageid.
... goto( pageid ) return type: no return value this method is used to change which page is currently displayed, specified by the pageid argument.
XULRunner tips - Archive of obsolete content
it has an -app command-line switch to run a specified xul application instead of starting the browser.
... troubleshooting window title missing if the title of your xul <window> is blank, even though you specified a title attribute, make sure the extension on your xul file is .xul rather than .xml default theme to create a default theme you need to create a folder in the extensions folder with an install.rdf in it.
toolkit.singletonWindowType - Archive of obsolete content
preference type: string specified by: default prefs of xulrunner applications default: none example: pref("toolkit.singletonwindowtype", "xulmine"); by default, the toolkit.defaultchromeuri preference will cause xulrunner to open a new main application window each time an application is invoked.
... the toolkit.singletonwindowtype preference causes xulrunner to search for a window with the attribute windowtype as specified in this preference (e.g.
Mozprofile - Archive of obsolete content
the profile to be operated on may be specified with the --profile switch.
... if a profile is not specified, one will be created in a temporary directory which will be echoed to the terminal: (mozmill)> mozprofile /tmp/tmp4q1ieu.mozrunner (mozmill)> ls /tmp/tmp4q1ieu.mozrunner user.js to run mozprofile from the command line enter: mozprofile --help for a list of options.
NPByteRange - Archive of obsolete content
length number of bytes to fetch from the specified offset.
...the only plug-in api call that uses the npbyterange type is npn_requestread(), which lets the plug-in read specified parts of a file without downloading it.
NPN_GetProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary gets the value of a property on the specified npobject.
...<tt>result</tt> on return, contains the value of the specified property.
NPN_HasMethod - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary determines whether or not the specified npobject has a particular method.
... returns true if the method exists on the specified object, otherwise false.
NPN_HasProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary determines whether or not the specified npobject has a particular property.
... returns true if the property exists on the specified object, otherwise false.
NPN_InvalidateRect - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary invalidates the specified portion of the plugin's drawing area, adding it to the region that needs to be redrawn when the plugin next repaints its contents.
... invalidrect the area to invalidate, specified in a coordinate system that originates at the top left of the plug-in's content area.
NPN_InvalidateRegion - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary invalidates the specified drawing region prior to repainting or refreshing a windowless plug-in.
... invalidregion the area to invalidate, specified in a coordinate system that originates at the top left of the plug-in.
NPN_SetProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary sets the value of a property on the specified npobject.
...<tt>value</tt> the value to store in the specified property.
NPP_Write - Archive of obsolete content
description the browser calls the npp_write function to deliver the data specified in a previous npp_writeready call to the plug-in.
...if the plug-in requested a seekable stream, the npn_requestread function requests reads of a specified byte range that results in a series of calls to npp_writeready and npp_write.
Using IO Timeout And Interrupt On NT - Archive of obsolete content
if the io operation cannot complete before the specified timeout, the io function returns with <tt>pr_io_timeout_error</tt>.
... io timeout and interrupt however, nspr may wake up the thread in two other situations: if the overlapped io request is not completed before the specified timeout.
-ms-flow-from - Archive of obsolete content
initial valuenoneapplies tonon-replaced elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none default.
... no container has been specified.
-ms-flow-into - Archive of obsolete content
initial valuenoneapplies toiframe elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none default.
... no container has been specified.
-ms-scroll-limit-x-max - Archive of obsolete content
initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values auto the maximum value for the scrollleft property is equal to element.scrollwidth.
... the specified behavior of the -ms-scroll-limit-x-max property is only applicable at a mscontentzoomfactor of 1; the behavior of this property is undefined at other zoom factors.
-ms-scroll-limit-x-min - Archive of obsolete content
initial value0applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values <length> the minimum value for the scrollleft property.
... the specified behavior of the -ms-scroll-limit-x-min property is only applicable at a mscontentzoomfactor of 1; the behavior of this property is undefined at other zoom factors.
-ms-scroll-limit-y-max - Archive of obsolete content
initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values auto the maximum value for the scrolltop property is equal to element.scrollheight.
... the specified behavior of the -ms-scroll-limit-y-max property is only applicable at a mscontentzoomfactor of 1; the behavior of this property is undefined at other zoom factors.
-ms-scroll-limit-y-min - Archive of obsolete content
initial value0applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values <length> the minimum value for the scrolltop property.
... the specified behavior of the -ms-scroll-limit-y-min property is only applicable at a mscontentzoomfactor of 1; the behavior of this property is undefined at other zoom factors.
-ms-scroll-limit - Archive of obsolete content
initial valueas each of the properties of the shorthand:-ms-scroll-limit-x-min: 0-ms-scroll-limit-y-min: 0-ms-scroll-limit-x-max: auto-ms-scroll-limit-y-max: autoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas each of the properties of the shorthand:-ms-scroll-limit-x-min: as specified-ms-scroll-limit-y-min: as specified-ms-scroll-limit-x-max: as specified-ms-scroll-limit-y-max: as specifiedanimation typediscrete syntax the -ms-scroll-limit property is specified as one or more of the following scroll limit values, in the order listed, separated by spaces.
... the specified behavior of the -ms-scroll-limit property is only applicable at a mscontentzoomfactor of 1; the behavior of this property is undefined at other zoom factors.
-ms-scroll-translation - Archive of obsolete content
the -ms-scroll-translation css property is a microsoft extension that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.
... initial valuenoneapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values vertical-to-horizontal vertical to horizontal translation, as described in remarks, will take place when appropriate.
Date.prototype.toLocaleFormat() - Archive of obsolete content
the non-standard tolocaleformat() method converts a date to a string using the specified formatting.
... return value a string representing the given date using the specified formatting.
Debug - Archive of obsolete content
functions debug.mstraceasynccallbackcompleted indicates that the callback stack associated with a previously specified asynchronous operation has completed.
... debug.mstraceasynccallbackstarting associates the callback stack with a previously specified asynchronous operation.
New in JavaScript 1.1 - Archive of obsolete content
eval() is now a method of every object (was previously a built-in function); it evaluates a string of javascript code in the context of the specified object.
... 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.
New in JavaScript 1.2 - Archive of obsolete content
number now converts a specified object to a number.
... string now converts a specified object to a string.
for each...in - Archive of obsolete content
the for each...in statement iterates a specified variable over all values of object's properties.
... for each distinct property, a specified statement is executed.
JavaObject - Archive of obsolete content
in addition, you can explicitly construct a javaobject using the object's java constructor with the packages keyword: new packages.javaclass(parameterlist) javaclassis the fully-specified name of the object's java class.
... parameters parameterlist an optional list of parameters, specified by the constructor of the java class.
XForms Alert Element - Archive of obsolete content
introduction this message will be shown when the form control cannot properly bind to instance data or when the instance data value is invalid or out of the specified range of selectable values (see the spec).
...if more than one source of message is specified in this element, the order of precedence is: single node binding attributes, linking attributes, inline text.
XForms Input Element - Archive of obsolete content
representations the xforms input element can be represented by the following widgets for the spcified data types (or types derived from these data types): text field - the default widget when no type is specified or the data is of type xsd:string (xhtml/xul) checkbox - used for xsd:boolean instance data.
...characteristics a text field is presented to the user when there is no type given for the bound node or a type is specified that is not handled by one of the other widgets (as documented below).
XForms Message Element - Archive of obsolete content
introduction used in combination with xml event listeners to display a message to the user when the specified event occurs (see the spec).
...if more than one source of message is specified in this element, the order of precedence is: single node binding attributes, linking attributes, inline text.
XForms Output Element - Archive of obsolete content
representations the xforms output element can be represented by the following widgets for the specified data types (or types derived from these data types): text - default representation for instance data of most types, especially static text (xhtml/xul).
...characteristics text is presented to the user when there is no type given for the bound node or a type is specified that is not handled by one of the other widgets (as documented below).
XForms Select Element - Archive of obsolete content
the list of pre-defined items can be specified by either item (see the spec) or itemset (see the spec) elements.
... representations the xforms select element can be represented by the following widgets for the specified appearance attribute values: list - default representation (xhtml/xul) check group- used when appearance = 'full' (xhtml/xul) list displaying a listbox is the default representation (xhtml/xul).
XForms Select1 Element - Archive of obsolete content
the list of pre-defined items can be specified by either item (see the spec) or itemset (see the spec) elements.
... representations the xforms select1 element can be represented by the following widgets for the specified appearance attribute values: combobox - default representation (xhtml/xul) listbox - used when appearance = 'compact' (xhtml/xul) radio group - used when appearance = 'full' (xhtml/xul) combobox displaying a combobox is the default representation (xhtml/xul).
XForms Submit Element - Archive of obsolete content
upon receiving a domactivate event, this form control dispatches a xforms-submit event to the submission element (see the spec) specified in its submission attibute.
...representations the xforms submit element can be represented by the following widgets for the specified appearance attribute values: button - default representation (xhtml/xul) link/clickable text - used when appearance = 'minimal' (xhtml only) button displaying a button is the default presentation (xhtml/xul).
Mozilla XForms User Interface - Archive of obsolete content
alert this message will be shown when the form control cannot properly bind to instance data or when the instance data value is invalid or out of the specified range of selectable values (see the spec).
... message used in combination with event listeners to display a message to the user when the specified event occurs (see the spec).
RDF in Mozilla FAQ - Archive of obsolete content
this tests the datasource to see if it has the specified tuple.
...both of these programs are built by default on windows, and on linux when the configure --enable-tests is specified.
Using the Right Markup to Invoke Plugins - Archive of obsolete content
the configuration parameters for the applet, including the class which contains the initial entry point (animator.class, referenced by the "code" param element), are specified in multiple param elements.
...if the user has checkedalways use the netscape plugin finder service to get plugins then whether these attributes are specified or not makes no difference -- the browser willalways consult with the plugin finder service to determine if it has a plugin to handle the missing mime type.
Building up a basic demo with Three.js - Game development
the x and y values, if not specified, will default to 0.
...this takes on a shape, and adds the specified material to every face: var cube = new three.mesh(boxgeometry, basicmaterial); again, add this line below the one you previously added.
Fallback alignment - MDN Web Docs Glossary: Definitions of Web-related terms
in css box alignment, a fallback alignment is specified in order to deal with cases where the requested alignment cannot be fullfilled.
...this is specified per alignment method, as detailed below.
IDL - MDN Web Docs Glossary: Definitions of Web-related terms
an idl (interface description language) is a generic language used to specified objects' interfaces apart from any specific programming language.
...if you pass another type, it is automatically converted to a number as specified by the standard javascript rules for type conversion.
Backgrounds and borders - Learn web development
using the background shorthand property as i mentioned at the beginning of this lesson, you will often see backgrounds specified using the background property.
... there are a few rules that need to be followed when writing background image shorthand values, for example: a background-color may only be specified after the final comma.
Cascade and inheritance - Learn web development
since ids have an even higher specificity than classes (you can only have one element with each unique id on a page, but many elements with the same class — id selectors are very specific in what they target), the red background color and the 1 pixel black border should both be applied to the 2nd element, with the first element getting the gray background color, and no border, as specified by the class.
... the effect of css location finally, it is also useful to note that the importance of a css declaration depends on what stylesheet it is specified in — it is possible for users to set custom stylesheets to override the developer's styles, for example the user might be visually impaired, and want to set the font size on all web pages they visit to be double the normal size to allow for easier reading.
Flexbox - Learn web development
this can be specified individually using the flex-grow longhand property.
...this can be specified individually using the flex-basis longhand value.
Positioning - Learn web development
ok, so this probably wasn't what you were expecting — why has it moved to the bottom and right if we specified top and left?
... illogical as it may initially sound, this is just the way that relative positioning works — you need to think of an invisible force that pushes the specified side of the positioned box, moving it in the opposite direction.
CSS FAQ - Learn web development
LearnCSSHowtoCSS FAQ
this problem got so bad that other browsers started to implement -webkit- prefixed aliases to improve web compatibility, as specified in the compatibility living standard.
...z-index will only work on elements that have a specified position (position:absolute, position:relative, or position:fixed).
Web fonts - Learn web development
the syntax required looks something like this: first of all, you have a @font-face block at the start of the css, which specifies the font file(s) to download: @font-face { font-family: "myfont"; src: url("myfont.woff"); } below this you can then use the font family name specified inside @font-face to apply your custom font to anything you like, as normal: html { font-family: "myfont", "bitstream vera serif", serif; } the syntax does get a bit more complex than this; we'll go into more detail below.
...in newer browsers, you can also specify a unicode-range value, which is a specific range of characters you want to use out of the web font — in supporting browsers, only the specified characters will be downloaded, saving unnecessary downloading.
Basic native form controls - Learn web development
only one form-associated element in a document can have this attribute specified.
...if this attribute is not specified, the element inherits its setting from the containing element, for example, <fieldset>; if there is no containing element with the disabled attribute set, then the element is enabled.
UI pseudo-classes - Learn web development
controls whose current value is outside the range limits specified by the min and max attributes are (matched with) :invalid, but also matched by :out-of-range, as you'll see later on.
...these match numeric inputs where range limits are specified by the min and max, when their data is inside or outside the specified range, respectvely.
Tips for authoring fast-loading HTML pages - Learn web development
for this reason, height and width should be specified for images, whenever possible.
... choose your user-agent requirements wisely to achieve the greatest improvements in page design, make sure that reasonable user-agent requirements are specified for projects.
Creating hyperlinks - Learn web development
for example, if an index.html page is uploaded to a directory called projects that sits inside the root of a web server, and the web site's domain is http://www.example.com, the page would be available at http://www.example.com/projects/index.html (or even just http://www.example.com/projects/, as most web servers just look for a landing page such as index.html to load if it isn't specified in the url.) an absolute url will always point to the same location, no matter where it's used.
...each field and its value is specified as a query term.
Video and audio content - Learn web development
the type attribute contains the mime type of the file specified by the <source>, and browsers can use the type to immediately skip videos they don't understand.
... restarting media playback at any time, you can reset the media to the beginning—including the process of selecting the best media source, if more than one is specified using <source> elements—by calling the element's load() method: const mediaelem = document.getelementbyid("my-media-element"); mediaelem.load(); detecting track addition and removal you can monitor the track lists within a media element to detect when tracks are added to or removed from the element's media.
Functions — reusable blocks of code - Learn web development
we wanted a random whole number between 0 and a specified number.
...again, this looks something like this: mybutton.onclick = function() { alert('hello'); // i can put as much code // inside here as i want } function parameters some functions require parameters to be specified when you are invoking them — these are values that need to be included inside the function parentheses, which it needs to do its job properly.
Client-side storage - Learn web development
if you want to upgrade your database (for example, by changing the table structure), you have to run your code again with an increased version number, different schema specified inside the onupgradeneeded handler (see below), etc.
...we've given it the name notes, and also specified an autoincrement key field called id — in each new record this will automatically be given an incremented value — the developer doesn't need to set this explicitly.
A first splash into JavaScript - Learn web development
a condition: here we have specified i < 21 — the loop will keep going until i is no longer less than 21.
... an incrementor: we have specified i++, which means "add 1 to i".
Object building practice - Learn web development
if you had specified only 1 * pi, you'd get a semi-circle (180 degrees).
... last of all, we use the fill() method, which basically states "finish drawing the path we started with beginpath(), and fill the area it takes up with the color we specified earlier in fillstyle." you can start testing your object out already.
TypeScript support in Svelte - Learn web development
om todos.svelte, we will instantiate a todo component with a literal object as its parameter before the call to the moreactions component, like this: <hr /> <todo todo={ { name: 'a new task with no id!', completed: false } } /> <!-- moreactions --> <moreactions {todos} add the lang='ts' to the <script> tag of the todos.svelte component, so that it knows to use the type checking we have specified.
...generic types are passed as parameters using a special syntax: they are specified between angle-brackets, and by convention are denoted with an upper-cased single char letter.
Introduction to automated testing - Learn web development
you could also try using other solutions: grunt works in a very similar way to gulp, except that it relies on tasks specified in a config file, rather than using written javascript.
...the app then configures a new vm with the os and browser you specified, and returns the test results in the form of screenshots, videos, logfiles, text, etc.
Handling common JavaScript problems - Learn web development
loadscript() looks like this: function loadscript(src, done) { const js = document.createelement('script'); js.src = src; js.onload = function() { done(); }; js.onerror = function() { done(new error('failed to load script ' + src)); }; document.head.appendchild(js); } this function creates a new <script> element, then sets its src attribute to the path we specified as the first argument ('polyfills.js' when we called it in the code above).
... when it has loaded, we run the function we specified as the second argument (main()).
Accessibility API cross-reference
in such a case, they should be wrapped in a <reference> pragmatically however, user agents should expect to find <link> tags as direct children of <toci> abstract role - a perceivable section containing content that is relevant to a specific, author-specified purpose and sufficiently important that users will likely want to be able to navigate to the section easily and to have it listed in a summary of the page.
...a paragraph generally encloses distinct portions of content that are not otherwise specified with other block level structure element types such as heading, table or list elements.
Mozilla’s UAAG evaluation report
(p1) c preferences, appearance, colors - "use my chosen colors, ignoring the colors and background image specified" 3.2 toggle audio, video, animated images.
...(p1) vg mozilla uses selection colors as specified in the control panel.
Theme concepts
static themes static themes are specified using the same resources as a browser extension: a manifest.json file to define the theme components with those components stored in the same folder as the manifest.json file or a sub folder.
... alternatively, you can use multiple images, say combining the original weta image with this one anchored to the left of the header to create this effect where the images are specified with: "images": { "theme_frame": "empty.png", "additional_backgrounds": [ "weta.png", "weta-left.png"] }, and their alignment by: "properties": { "additional_backgrounds_alignment": [ "right top" , "left top" ] }, full details of how to setup this theme can be found in the themes example weta_mirror.
Adding a new CSS property
you then need to add code to nsrulenode::compute*data (where the * is for the style struct) to transform a specified value of the property into a computed value of the property.
... also, it's very important not to touch the computed style data at all when there's no specified data provided (ecssunit_null); touching the computed style data in this case would break partial computation based on a start struct, which is when we computed style data on the basis of computed data we've already computed from a subset of the style rules that we're currently computing from.
Chrome registration
however, it applies to content, locale, and skin parts of the package, when specified.
... to indicate that a package is platform-specific, add the "platform" modifier to the "content" line after the path, for example: content global-platform jar:toolkit.jar!/toolkit/content/global-platform/ platform once that is specified in your manifest you then ensure that under the directory global-platform are subdirectories win (windows/os2), mac (os9/osx), or unix (everything else).
Commenting IDL for better documentation
if the specified * quote number is invalid, an exception is thrown.
... */ astring getfunnysaying(in integer number); /** * says something appreciative of the tastiness of the cookie in the specified * language.
HTMLIFrameElement.executeScript()
the executescript() method of the htmliframeelement interface allows a specified script to be executed against a page loaded in the browser <iframe>.
...the script seems to execute even if a url/origin is specified.
HTMLIFrameElement.getScreenshot()
the getscreenshot() method of the htmliframeelement lets you request a screenshot of a content <iframe>, scaled to fit within a specified maximum width and height.
... mimetype optional a mime type specifying the format of the image to be returned; if not specified, the default used is image/jpeg.
Browser API
htmliframeelement.download() downloads a specified url, storing it at the specified filename/path.
... htmliframeelement.executescript() allows a specified script to be executed against a page loaded in the browser <iframe>.
Gecko Keypress Event
however, the shift key must be used to enter '+' on us keyboard layout, and so the state of the shift key causes the modifiers not to match those specified in the handler.
... problem 2 the access keys for the menu items are specified with the localized characters on some localized builds.
Add-on Repository
getsearchurl() returns an url of a web page that can be visited to see search results for the specified search terms.
... return value the url of the search results page for the specified search terms.
DeferredTask.jsm
void cancel(); arm request the execution of the task after the delay specified on construction.
... the task will always be executed on a different tick of the event loop, even if the delay specified on construction is zero.
Download
if the launcherpath property is null, the file will be opened with the default application for the mime type specified in the contenttype property.
... if the launcherpath property is set, the file will be opened with the specified custom application.
Downloads.jsm
getlist() retrieves the specified type of downloadlist object.
... getsummary() retrieves the specified type of downloadsummary object.
JNI.jsm
.getelements() returns a new cdata object of the section of the array specified by astart and ending at position astart + alength.
... .setelements() sets a section of a typed array to specified values.
Deferred
methods resolve() fulfills the associated promise with the specified value, or propagates the state of an existing promise.
... reject() rejects the associated promise with the specified reason.
Promise.jsm
resolve() creates a new promise fulfilled with the specified value, or propagates the state of an existing promise.
... reject() creates a new promise rejected with the specified reason.
Deferred
methods resolve() fulfills the associated promise with the specified value, or propagates the state of an existing promise.
... reject() rejects the associated promise with the specified reason.
PromiseWorker.jsm
if any of the arguments needs to be transferred instead of copied, this may be specified by making the argument an instance of basepromiseworker.meta or by using the atransferlist argument.
... throw new customerror('meow'); } the converted message will be posted back to the main thread, and it will be converted again to error object, with frommsg function specified for the error in exceptionhandlers property.
Sqlite.jsm
if the statement does not contain any bound parameters, this argument can be omitted or specified as null.
... if onrow is specified, the returned promise will be resolved with a boolean indicating whether the onrow handler was called.
Task.jsm
if you specify anything else, the yield operator returns exactly what you specified.
... if you specify anything else, you get a promise that is already fulfilled with the specified value.
Dynamic Library Linking
each platform has its own standard directories in which to look for dynamic libraries, plus a customizable list of directories specified by an environment variable.
...moreover, the executable program must be linked with the +s option so that it will search for shared libraries in the directories specified by shlib_path at run time.
NSPR LOG MODULES
syntax modulename:level[, modulename:level]* modulename is the name specified in a pr_newlogmodule call or one of the handy magic names listed below.
... if not specified, the existing contents of nspr_log_file will be lost as a new file is created with the same filename.
PLHashComparator
syntax #include <plhash.h> typedef printn (pr_callback *plhashcomparator)( const void *v1, const void *v2); description plhashcomparator is a function type that compares two values of an unspecified type.
...plhashcomparator defines the meaning of equality for the unspecified type.
PL_HashTableEnumerateEntries
enumerates all the entries in the hash table, invoking a specified function on each entry.
... description the entries are enumerated in an unspecified order.
PL_HashTableRemove
removes the entry with the specified key from the hash table.
... description if there is no entry in the table with the specified key, pl_hashtableremove returns pr_false.
PL_strcpy
returns the function returns a pointer to the buffer specified by the dest parameter.
... description if the string specified by src is longer than the buffer specified by dest, the buffer will not be null-terminated.
PL_strdup
returns a pointer to a new memory node in the nspr heap containing a copy of a specified string.
... returns the function returns one of these values: if successful, a pointer to a copy of the specified string.
PL_strlen
returns the length of a specified string (not including the trailing '\0') syntax pruint32 pl_strlen(const char *str); parameter the function has these parameter: str size in bytes of item to be allocated.
... returns if successful, the function returns length of the specified string.
PRExplodedTime
in addition, prexplodedtime includes a prtimeparameters structure representing the local time zone information, so that the time point is non-ambiguously specified.
... on input to nspr functions, only the essential members of prexplodedtime must be specified.
PR_ASSERT
returns nothing description this macro evaluates the specified expression.
... this macro compiles to nothing if compile-time options are not specified to enable logging.
PR_Bind
binds an address to a specified socket.
...pr_bind assigns the specified address (also known as name) to the socket.
PR_CEnterMonitor
returns the function returns one of the following values: if successful, the function returns a pointer to the prmonitor associated with the value specified in the address parameter.
... description pr_centermonitor uses the value specified in the address parameter to find a monitor in the monitor cache, then enters the lock associated with the monitor.
PR_Connect
initiates a connection on a specified socket.
...if pr_connect is invoked on a udp socket, it has an overloaded meaning: pr_connect merely saves the specified address as the default peer address for the socket, so that subsequently one can send and receive datagrams from the socket using pr_send and pr_recv instead of the usual pr_sendto and pr_recvfrom.
PR_DELETE
allocates memory of a specified size from the heap.
... description this macro returns allocated memory to the heap from the specified location and sets _ptr to null.
PR_FindSymbol
description this function finds and returns an untyped reference to the specified symbol in the specified library.
... if the lib parameter is null, all libraries known to the runtime and the main program are searched in an unspecified order.
PR_FindSymbolAndLibrary
description this function finds the specified symbol in one of the currently loaded libraries.
...the order in which the known libraries are searched in not specified.
PR_GetFileInfo
gets information about a file with a specified pathname.
... description pr_getfileinfo stores information about the file with the specified pathname in the prfileinfo structure pointed to by info.
PR_GetFileInfo64
gets information about a file with a specified pathname.
... description pr_getfileinfo64 stores information about the file with the specified pathname in the prfileinfo64 structure pointed to by info.
PR_GetLayersIdentity
gets the unique identity for the layer of the specified file descriptor.
... returns if successful, the function returns the prdescidentity for the layer of the specified file descriptor.
PR_GetLibraryName
description this function constructs a full path name from the specified directory name and library name.
... this function does not test for existence of the specified file, it just constructs the full filename.
PR_JoinThread
blocks the calling thread until a specified thread terminates.
... returns the function returns one of the following values: if successful, pr_success if unsuccessful--for example, if no joinable thread can be found that corresponds to the specified target thread, or if the target thread is unjoinable--pr_failure.
PR_LOG
returns nothing description this macro formats the specified arguments and writes the output to the log file, if logging is enabled for the specified module and level.
... this macro compiles to nothing if compile-time options are not specified to enable logging.
PR_NOT_REACHED
returns nothing description this macro writes the specified reason string to the log and terminates the application.
... this macro compiles to nothing if compile-time options are not specified to enable logging.
PR_NewLogModule
description this function allocates and initializes a new prlogmoduleinfo structure with the specified name.
... if the environment variable nspr_log_modules contains the specified name, then the associated level value from the variable is associated with the new prlogmoduleinfo structure.
PR_NotifyAllCondVar
notifies all of the threads waiting on a specified condition variable.
... a call to pr_notifyallcondvar causes all of the threads waiting on the specified condition variable to be promoted to a ready state.
PR_OpenDir
opens the directory with the specified pathname.
... description pr_opendir opens the directory specified by the pathname name and returns a pointer to a directory stream (a prdir object) that can be passed to subsequent pr_readdir calls to get the directory entries (files and subdirectories) in the directory.
PR_OpenSharedMemory
opens an existing shared memory segment or, if one with the specified name doesn't exist, creates a new one.
... description pr_opensharedmemory creates a new shared memory segment or associates a previously created memory segment with the specified name.
PR_PopIOLayer
syntax #include <prio.h> prfiledesc *pr_popiolayer( prfiledesc *stack, prdescidentity id); parameters the function has the following parameters: stack a pointer to a prfiledesc object representing the stack from which the specified layer is to be removed.
... description pr_popiolayer pops the specified layer from the stack.
PR_RmDir
removes a directory with a specified name.
... description pr_rmdir removes the directory specified by the pathname name.
PR_SendTo
sends bytes a socket to a specified destination.
... description pr_sendto sends a specified number of bytes from a socket to the specified destination address.
PR_dtoa
description this function converts the specified floating point number to a string, using the method specified by mode.
... upon return, the buffer specified by buf and bufsz contains the converted string.
Threads
pr_jointhread blocks the calling thread until a specified thread terminates.
... pr_sleep causes a thread to yield to other threads for a specified number of ticks.
NSS_3.12.1_release_notes.html
in an error if host is not recognized bug 359302: remove the sslsample code from nss source tree bug 372241: need more versatile form of cert_nametoascii bug 390296: nss ignores subject cn even when san contains no dnsname bug 401928: support generalized pkcs#5 v2 pbes bug 403543: pkix: need a way to enable/disable aia cert fetching bug 408847: pkix_ocspchecker_check does not support specified responder (and given signercert) bug 414003: crash [[@ cert_decodecertpackage] sometimes with this testcase bug 415167: memory leak in certutil bug 417399: arena allocation results are not checked in pkix_pl_infoaccess_parselocation bug 420644: improve ssl tracing of key derivation bug 426886: use const char* in pk11_importcertforkey bug 428103: cert_encodesubjectkeyid is not defined ...
...in any public header file bug 429716: debug builds of libpkix unconditionally dump socket traffic to stdout bug 430368: vfychain -t option is undocumented bug 430369: vfychain -o succeeds even if -pp is not specified bug 430399: vfychain -pp crashes bug 430405: error log is not produced by cert_pkixverifycert bug 430743: update ssltap to understand the tls session ticket extension bug 430859: pkix: policy mapping fails verification with error invalid arguments bug 430875: document the policy for the order of cipher suites in ssl_implementedciphers.
NSS_3.12_release_notes.html
response sec_error_bad_ldap_response sec_error_failed_to_encode_data sec_error_bad_info_access_location sec_error_libpkix_internal new mechanism flags (see secmod.h) public_mech_aes_flag public_mech_sha256_flag public_mech_sha512_flag public_mech_camellia_flag new oids (see secoidt.h) new ec signature oids sec_oid_ansix962_ecdsa_signature_recommended_digest sec_oid_ansix962_ecdsa_signature_specified_digest sec_oid_ansix962_ecdsa_sha224_signature sec_oid_ansix962_ecdsa_sha256_signature sec_oid_ansix962_ecdsa_sha384_signature sec_oid_ansix962_ecdsa_sha512_signature more id-ce and id-pe oids from rfc 3280 sec_oid_x509_hold_instruction_code sec_oid_x509_delta_crl_indicator sec_oid_x509_issuing_distribution_point sec_oid_x509_cert_issuer sec_oid_x509_freshest_crl sec_oid_x509_inhibit_any_policy...
... won't build bug 353745: klocwork null ptr dereference in pkcs12 decoder bug 338367: the gf2m_populate and gfp_populate should check the eccurve_map array index bounds before use bug 201139: ssltap should display plain text for null cipher suites bug 233806: support nist crl policy bug 279085: nss tools display public exponent as negative number bug 363480: ocspclnt needs option to take cert from specified file bug 265715: remove unused hsearch.c dbm code bug 337361: leaks in jar_parse_any (security/nss/lib/jar/jarver.c) bug 338453: leaks in security/nss/lib/jar/jarfile.c bug 351408: leaks in jar_jar_sign_archive (security/nss/lib/jar/jarjart.c) bug 351443: remove unused code from mozilla/security/nss/lib/jar bug 351510: remove use_moz_thread code from mozilla/security/lib/jar bug 118830: nss publi...
NSS 3.16.2 release notes
the algorithm is specified with a ck_mechanism_type.
...the algorithm is specified with a ck_mechanism_type.
Enc Dec MAC Output Public Key as CSR
c_oid_unknown) { pr_fprintf(pr_stderr, "unknown key or hash type\n"); rv = secfailure; goto cleanup; } rv = sec_dersigndata(arena, &result, encoding->data, encoding->len, privk, signalgtag); if (rv) { pr_fprintf(pr_stderr, "signing of data failed\n"); rv = secfailure; goto cleanup; } /* encode request in specified format */ if (ascii) { char *obuf; char *name, *email, *org, *state, *country; secitem *it; int total; it = &result; obuf = btoa_convertitemtoascii(it); total = pl_strlen(obuf); name = cert_getcommonname(subject); if (!name) { name = strdup("(not specified)"); } email = cert_getcertemailadd...
...ress(subject); if (!email) email = strdup("(not specified)"); org = cert_getorgname(subject); if (!org) org = strdup("(not specified)"); state = cert_getstatename(subject); if (!state) state = strdup("(not specified)"); country = cert_getcountryname(subject); if (!country) country = strdup("(not specified)"); pr_fprintf(outfile, "\ncertificate request generated by netscape certutil\n"); pr_fprintf(outfile, "common name: %s\n", name); pr_fprintf(outfile, "email: %s\n", email); pr_fprintf(outfile, "organization: %s\n", org); pr_fprintf(outfile, "state: %s\n", state); pr_fprintf(outfile, "country: %s\n\n", country); pr_f...
FC_GetTokenInfo
syntax ck_rv fc_gettokeninfo(ck_slot_id slotid, ck_token_info_ptr pinfo); parameters fc_gettokeninfo has two parameters: slotid the id of the token's slot pinfo points to a ck_token_info structure description fc_gettokeninfo returns information about the token in the specified slot.
... ckr_slot_id_invalid the specified slot number is out of the defined range of values.
NSS tools : pk12util
if no algorithm is specified, the tool defaults to using pkcs12 v2 pbe with sha1 and 3key triple des-cbc for private key encryption.
...using the sqlite databases must be manually specified by using the sql: prefix with the given security directory.
ssltyp.html
description this function frees the memory associated with the structure to which the specified item points, when that structure is no longer used.
...zeros and frees the memory associated with the structure to which the specified item points, when that structure is no longer used.
NSS tools : pk12util
if no algorithm is specified, the tool defaults to using pkcs12 v2 pbe with sha1 and 3key triple des-cbc for private key encryption.
...using the sqlite databases must be manually specified by using the sql: prefix with the given security directory.
Self-hosted builtins in SpiderMonkey
some general-purpose functions provided in this way are: the abstract operations toobject, tointeger, and iscallable specified in the ecmascript language specification.
... throwtypeerror, throwrangeerror, throwsyntaxerror, which self-hosted code should use instead of throw so that the error message is specified in js.msg and can be localized.
INT_FITS_IN_JSVAL
determines if a specified c integer is safe to pass to int_to_jsval.
... description determines if a specified c integer value, i, lies within the range allowed for integer jsvals.
JS::AutoVectorRooter
bool append(const t *ptr, size_t len) appends a sequence of t specified with a pointer ptr and length len to the array.
... bool insert(t *p, const t &val) inserts an element val at the position specified by p.
JS::CompileOffThread
after successfully triggering an off thread compile of a script, the callback will eventually be invoked with the specified data and a token for the compilation.
...if maybecx is not specified, the resources will be freed, but no script will be returned.
JS::Construct
this article covers features introduced in spidermonkey 38 call a specified js constructor.
... description js::construct calls a specified function as a constructor, fun.
JSID_IS_GCTHING
description jsid_is_gcthing tests whether a specified js id, id, is a gc thing, and returns true if it's a gc thing.
... jsid_to_gcthing converts a specified js id, id to a gc thing.
JSPropertyDescriptor
value describes the value of the specified property, which can be any valid javascript value (function, object, string...) configurable declare that the property can be modified and deleted enumerable declare that the property can be enumerated, and the enumerable genus can be traversed by the for...in loop.
... writable declare whether the specified attribute can be rewritten description a descriptor is a property that describes an object's properties.
JSVAL_TO_INT
syntax jsval_to_int(v) description jsval_to_int converts a specified integer jsval, v, to the corresponding c integer value.
... if v is any other type of value, the result is unspecified.
JS_ConstructObject
create a new object of the specified class, with the specified prototype and parent, then invokes a constructor function to initialize the new object.
... description js_constructobject creates a new object of the specified class, with the specified prototype and parent, then invokes a constructor function to initialize the new object.
JS_DefaultValue
objects with classes defined by ecmascript itself all use the [[defaultvalue]] algorithm specified in §8.12.8 (but note the algorithm's special case for date objects).
... objects with a custom jsclass specified by the embedder will invoke that class's convert hook, which must convert the object to a primitive value, to determine the primitive result of conversion.
JS_DefineElement
creates a numeric property on a specified object.
...obsolete since jsapi 32 description js_defineelement defines a numeric property for a specified object, obj.
JS_DeleteElement
removes a specified element or numeric property from an object.
... description js_deleteelement removes a specified element or numeric property, index, from an object, obj.
JS_DeleteElement2
removes a specified element or numeric property from an object.
... description js_deleteelement2 removes a specified element or numeric property, index, from an object, obj.
JS_EncodeStringToBuffer
description js_encodestringtobuffer converts the specified javascript str to a c string (an array of 8-bit chars) and fills the specified buffer with up to length bytes of the string.
...if the returned value is greater than the length you specified, the string was truncated.
JS_ExecuteScriptVersion
this article covers features introduced in spidermonkey 1.8.5 execute a compiled script with specified version.
...otherwise it returns false, and the value left in *rval is unspecified.
JS_GetElement
find a specified numeric property of an object and return its current value.
... description js_getelement examines a specified js object, obj, and its prototype chain, for an element or numeric property numbered index.
JS_GetFunctionName
retrieve the given name for a specified function.
... the pointer returned by this function is valid only as long as the specified function, fun, exists.
JS_GetFunctionObject
retrieves the object for a specified function.
... description js_getfunctionobject returns the javascript function object for a specified function pointer, fun.
JS_GetFunctionScript
this article covers features introduced in spidermonkey 38 retrieves a jsscript for a specified function.
... description js_getfunctionscript returns a pointer to jsscript for the specified function, fun.
JS_GetObjectRuntime
this article covers features introduced in spidermonkey 17 retrieve a pointer to the jsruntime of a specified object.
... description js_getobjectruntime retrieves a pointer to the jsruntime for a specified jsobject.
JS_GetProperty
find a specified property and retrieve its value.
... description js_getproperty examines a specified js object obj and its prototype chain for a property with the specified name.
JS_GetPropertyDefault
this article covers features introduced in spidermonkey 1.8.5 finds a specified property and retrieves its value or provided default value.
... description js_getpropertydefault examines a specified js object obj and its prototype chain for a property with the specified name.
JS_GetPropertyDescriptor
finds a specified property of an object and gets a detailed description of that property.
... description js_getpropertydescriptor and js_getpropertydescriptorbyid find a specified property of an object and gets a detailed description of that property on the prototype chain (returned in desc->obj).
JS_GetStringCharAt
this article covers features introduced in spidermonkey 38 return a specified character from a string.
... description js_getstringcharat and js_getflatstringcharat get the specified character from the string str.
JS_GetTypeName
returns a pointer to the string literal description of a specified js data type.
... description js_gettypename returns a pointer to a string literal description of a specified js data type, type.
JS_HasElement
determine whether a javascript array has an element in the specified index.
... description js_haselement examines a specified js object, obj, and its prototype chain, for an element or numeric property numbered index.
JS_HasOwnProperty
this article covers features introduced in spidermonkey 45 determine whether a javascript object has a specified own property.
... description js_hasownproperty searches an object, obj, for an own property with the specified name.
JS_HasProperty
determine whether a javascript object has a specified property.
... description js_hasproperty searches an object, obj, and its prototype chain, for a property with the specified name.
JS_IsArrayObject
determine if a specified object is an array.
... description js_isarrayobject determines if a specified object, obj or value, is an array object.
JS_IsNativeFunction
this article covers features introduced in spidermonkey 17 return whether the given function object equals the specified native function.
... description js_isnativefunction determines if a specified function object, funobj equals a specified native function, call.
JS_LookupElement
determine if a specified numeric property exists.
... description js_lookupelement examines a specified javascript object, obj, for a numeric property numbered index.
JS_LookupProperty
determine if a specified property exists.
... description the functions js_lookupproperty, js_lookupucproperty, js_lookuppropertybyid, js_lookuppropertywithflags, and js_lookuppropertywithflagsbyid search a specified object, obj, for a property with the given name.
JS_NewObject
obsolete since jsapi 39 description js_newobject creates a new object based on a specified class.
... added in spidermonkey 1.8 js_newobjectwithgivenproto creates a new object with the specified prototype.
JS_ObjectIsRegExp
this article covers features introduced in spidermonkey 17 determine if a specified object is a regexp.
... description js_objectisregexp determines if a specified object, obj, is a regexp object.
JS_SaveExceptionState
saves the exception state from the specified context.
... description saves the current exception state (that is, any pending exception, or a cleared exception state) associated with the specified context cx, and returns a jsexceptionstate object holding this state.
JS_SetContextCallback
data void * data specified in js_setcontextcallback.
...only one callback function may be specified per js runtime.
JS_ValueToInt32
description js_valuetoint32 converts a specified js value, v, to a 32-bit signed integer (-2147483648 to 2147483647).
...js::toint32 rounds as specified in ecma 262-3 §9.5, while this routine rounds by adding 0.5 to the converted float-point number and truncating the result at the decimal point.
JS_ValueToObject
description js_valuetoobject converts a specified javascript value, v, to an object.
...otherwise it returns false and the value left in *objp is unspecified.
Parser API
var expr = reflect.parse("obj.foo + 42").body[0].expression > expr.left.property ({loc:null, type:"identifier", name:"foo"}) > expr.right ({loc:{source:null, start:{line:1, column:10}, end:{line:1, column:12}}, type:"literal", value:42}) it is also available since firefox 7; it can be imported into the global object via: components.utils.import("resource://gre/modules/reflect.jsm") or into a specified object via: components.utils.import("resource://gre/modules/reflect.jsm", obj) built-in objects whether in spidermonkey shell or firefox (after importing), the global singleton object reflect currently contains just the parse method.
... builder objects the optional builder parameter to reflect.parse() makes it possible to construct user-specified data from the parser, rather than the default node objects.
XForms Accessibility
alert this message will be shown when the form control cannot properly bind to instance data or when the instance data value is invalid or out of the specified range of selectable values (see the spec, the docs).
... message used in combination with event listeners to display a message to the user when the specified event occurs (see the spec, the docs).
Manipulating bookmarks using Places
the uri for the bookmark needs to be specified using an nsiuri object.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var bookmarksarray = bmsvc.getbookmarkidsforuri(uri, {}); after executing this code, the array bookmarksarray contains the ids of all bookmarks that refer to the specified uri (in this case, "http://google.com").
Using the Places livemark service
the third parameter is the uri of the site the livemark was created from (specified as an nsiuri object.
... getsiteuri() returns null if there is no uri for the specified livemark.
How to build an XPCOM component in JavaScript
category: "some-category", // optional, defaults to the object's classdescription entry: "entry name", // optional, defaults to the object's contractid (unless 'service' is specified) value: "...", // optional, defaults to false.
... when set to true, and only if 'value' is not // specified, the concatenation of the string "service," and the object's contractid // is passed as avalue parameter of addcategoryentry.
Components.utils.Sandbox
you can then use it with evalinsandbox() to make it the global scope object for the specified script.
... example of obtaining content principal from the window: var principal = gbrowser.selectedtab.linkedbrowser.contentprincipal; var sandbox = components.utils.sandbox(principal); expanded principal an expanded principal is specified as an array of the principals it subsumes.
Components object
utils.createobjectin creates a new object in the scope of the specified object's compartment.
... utils.makeobjectpropsnormal ensures that all functions come from the specified object's scope, and aren't cross-compartment wrappers.
Language bindings
it returns a reference to the clone:components.utils.createobjectincomponents.utils.createobjectin creates a new javascript object in the scope of the specified object's compartment.components.utils.evalinsandboxthe evalinsandbox() function enables you to evaluate javascript code inside a sandbox you've previously created using the components.utils.sandbox constructor.components.utils.evalinwindowthis function enables code running in a more-privileged javascript context to evaluate a string in a less-privileged javascript context.
...any expando properties are not visible, and if any native properties have been redefined, this has no effect.components.utils.makeobjectpropsnormalensures that the specified object's methods are all in the object's scope, and aren't cross-component wrappers.components.utils.reporterrorcomponents.utils.reporterror reports a javascript error object to the error console, and returns.
IAccessibleHyperlink
propget] hresult anchor([in] long index, [out] variant anchor ); [propget] hresult anchortarget([in] long index, [out] variant anchortarget ); [propget] hresult endindex([out] long index ); [propget] hresult startindex([out] long index ); [propget] hresult valid([out] boolean valid ); methods anchor() returns an object that represents the link anchor, as appropriate for the link at the specified index.
...anchortarget() returns an object representing the target of the link, as appropriate for the link at the specified index.
IAccessibleHypertext
method overview [propget] hresult hyperlink([in] long index, [out] iaccessiblehyperlink hyperlink ); [propget] hresult hyperlinkindex([in] long charindex, [out] long hyperlinkindex ); [propget] hresult nhyperlinks([out] long hyperlinkcount ); methods hyperlink() returns the specified link.
...hyperlink if the given index is valid, that is it lies in the interval from 0 to the number of links minus one, a reference to the specified hyperlink object is returned.
imgIContainer
obsolete since gecko 2.0 kdisposenotspecified 0 leave frame, let new frame draw() on top.
...exceptions thrown missing exception missing description native code only!draw draw the current frame on to the context specified.
imgIEncoder
methods addimageframe() void addimageframe( [array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 frameformat, in astring frameoptions ); parameters data list of bytes in the format specified by inputformat.
...initfromdata() void initfromdata( [array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 inputformat, in astring outputoptions ); parameters data list of bytes in the format specified by inputformat.
mozISpellCheckingEngine
methods adddirectory() adds all the dictionaries in the specified directory to the spell checker.
... removedirectory() removes all the dictionaries in the specified directory from the spell checker.
mozIStorageRow
return value an nsivariant object containing the value of the specified column.
... return value an nsivariant object containing the value of the specified column.
nsIAccessibleDocument
obsolete since gecko 1.9 doctype astring the doc type of the document, as specified in the document.
... title astring the title of the document, as specified in the document.
nsIAccessibleTableCell
the result differs from 1 if the specified cell spans multiple columns.
...the result differs from 1 if the specified cell spans multiple rows.
nsIAccessibleText
wchar getcharacteratoffset( in long offset ); parameters offset return value getcharacterextents() returns the bounding box of the specified position.
...scrolltype defines how to scroll (see nsiaccessiblescrolltype.constants for available constants) scrollsubstringtopoint() moves the top left of a substring to a specified location.
nsIAccessibleTreeCache
rom: nsisupports method overview nsiaccessible getcachedtreeitemaccessible(in long arow, in nsitreecolumn acolumn); void invalidatecache(in long arow, in long acount); void treeviewchanged(); void treeviewinvalidated(in long astartrow, in long aendrow, in long astartcol, in long aendcol); methods getcachedtreeitemaccessible() returns the tree item from the cache for the cell in the specified row and column; the nsiaccessible is created if it doesn't already exist in the cache.
... return value the nsiaccessible corresponding to the specified tree cell.
nsIApplicationCache
each entry in the cache can be marked with a set of types, specified in the constants section.
...gatherentries() returns a list of entries in the cache whose type matches one or more of the specified types.
nsIAsyncStreamCopier
the specified observer is notified when the copy completes.
...a null value is permitted and causes the copy to occur on an unspecified background thread.
nsICacheEntryDescriptor
predicteddatasize print64 stores the content-length specified in the http header for this entry.
...if opening an output stream to existing cached data, the data will be truncated to the specified offset.
nsICacheSession
doomentry() asynchronously dooms an entry specified by the key.
...it returns a unique descriptor each time it is called, even if the same key is specified.
nsIContentView
methods scrollby() scrolls the content view by the specified number of chrome-document css pixels along each axis.
... scrollto() scrolls the content view to the specified position, in chrome-document css pixels.
nsICookieManager
methods remove() this method is called to remove an individual cookie from the cookie list, specified by host, name, and path.
... aname the name specified in the cookie.
nsICookieManager2
therefore, if the specified host is "weather.yahoo.com", host or domain cookies for "weather.yahoo.com" and "yahoo.com" would both be counted, while a cookie for "my.weather.yahoo.com" would not.
...therefore, if the specified host is "weather.yahoo.com", host or domain cookies for "weather.yahoo.com" and "yahoo.com" would both be returned, while a cookie for "my.weather.yahoo.com" would not.
nsIDOMChromeWindow
setcursor() sets the mouse cursor to the specified cursor.
... the mouse cursor is locked to the specified cursor if it's not "auto".
nsIDOMFileException
constants constant value description not_found_err 0 the specified file wasn't found.
... not_readable_err 1 the specified file wasn't readable.
nsIDOMOfflineResourceList
mozhasitem returns a boolean value indicating whether or not the specified uri represents a resource that's in the application cache's list.
... return value an domstring containing the uri of the specified resource.
nsIDOMSerializer
te an instance, use: var domserializer = components.classes["@mozilla.org/xmlextras/xmlserializer;1"] .createinstance(components.interfaces.nsidomserializer); method overview void serializetostream(in nsidomnode root, in nsioutputstream stream, in autf8string charset); astring serializetostring(in nsidomnode root); methods serializetostream() the subtree rooted by the specified element is serialized to a byte stream using the character set specified.
... serializetostring() the subtree rooted by the specified element is serialized to a string.
nsIDOMWindow
scrollbylines() scrolls the window by the specified number of lines.
... scrollbypages() scrolls the window by the specified number of pages.
nsIDOMWindowInternal
d() void home() void stop() void print() void moveto(in long xpos, in long ypos) void moveby(in long xdif, in long ydif) void resizeto(in long width, in long height) void resizeby(in long widthdif, in long heightdif) void scroll(in long xscroll, in long yscroll) nsidomwindow window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">open(in domstring url, in domstring name, in domstring options) nsidomwindow nsisupports aextraargument) void close() void updatecommands(in domstring action) boolean find([optional] in domstring str,[optional] in boolean casesensitive, [optional] in boolean backwards, [optional] in boolean wraparound, [optional] in boolean wholeword, [optional] in boolean searchinframes, [optional] in boolean showdialog) domstring atob(in domstring aasciistring) domstring btoa(in domstring abase64data) nsivariant showmodaldialog(in nsivariant aargs, [optional] in domstring aoptions) void postmessage(in domstring message, in...
nsIDOMXPathEvaluator
creatensresolver() creates an nsidomxpathexpression which resolves name spaces with respect to the definitions in scope for a specified node.
...evaluate() evaluate the specified xpath expression.
nsIDirIndex
unspecified for directories.
...this is encoded with the encoding specified in the nsidirindexparser, and is also escaped.
nsIDispatchSupport
unsigned long gethostingflags( in string acontext ); parameters acontext return value isclassmarkedsafeforscripting() test if the specified class is marked safe for scripting.
... return value isobjectsafeforscripting() test if the instantiated object is safe for scripting on the specified interface.
nsIEventListenerService
obsolete since gecko 7.0 methods geteventtargetchainfor() returns an array of event targets indicating all the targets that will receive the same events that are delivered to the specified target.
... getlistenerinfofor() returns an array of nsieventlistenerinfo objects describing everyone listening to the specified event target.
nsIExternalHelperAppService
es.nsiexternalhelperappservice); method overview boolean applydecodingforextension(in autf8string aextension, in acstring aencodingtype); nsistreamlistener docontent(in acstring amimecontenttype, in nsirequest arequest, in nsiinterfacerequestor awindowcontext, in boolean aforcesave); methods applydecodingforextension() determines whether or not data whose filename has the specified extension should be decoded from the specified encoding type before being saved or delivered to helper applications.
... return value true if data from urls with the specified extension and encoding should be decoded prior to saving the file or delivering it to a helper application; otherwise false.
nsIFocusManager
this flag will be implied when movefocus() is called except when one of the other mechanisms (mouse or key) is specified, or when the type is movefocus_root or movefocus_caret.
...if astartelement is specified, then movement is done relative to astartelement.
nsIINIParserWriter
method overview void setstring(in autf8string asection, in autf8string akey, in autf8string avalue); void writefile([optional] in nsifile ainifile, [optional] in unsigned long aflags); constants file writing constants these constants are specified when calling writefile(), in order to change its behavior.
... void writefile( in nsifile ainifile, optional in unsigned long aflags optional ); parameters ainifile optional if specified, this nsifile based object is used as the output file instead of the one specified at initialization time (if any).
nsILoginManagerCrypto
methods decrypt() decrypts the specified string, returning the plain text value.
...encrypt() encrypts the specified string, returning the ciphertext value.
nsIMemoryReporter
attributes attribute type description amount print64 the numeric value reported by the memory reporter, specified in the units indicated by the units attribute.
... constant value description units_bytes 0 the amount is specified as a number of bytes.
nsIParserUtils
return value the plain text conversion of the html specified in src.
... note: if -moz-binding is not present, <style> elements and style attributes, and if sanitizerallowstyle is specified, the sanitized content may still be xss dangerous if loaded into a non-gecko web engine!
nsIPermission
expiretype pruint32 the expiration type of the permission: on session termination, on a specified time, or never.
...this string is specified by the consumer when adding a permission via nsipermissionmanager read only.
nsIPromptService
button 0 is the default button unless one of the button default flags is specified (see button default flags).
... a button may use a predefined title, specified by one of the button title flags values.
nsIScreen
void lockminimumbrightness( in unsigned long brightness ); parameters brightness the new minimum brightness level; this must be one of the values specified in screen brightness constants.
...void unlockminimumbrightness( in unsigned long brightness ); parameters brightness the brightness level to release; this must be one of the values specified in screen brightness constants.
nsIScreenManager
screenforrect() returns the nsiscreen containing the specified rectangle.
...the coordinates must be specified using global (screen) coordinates, and are in pixels.
nsIScriptableUnicodeConverter
the text is encoded into the character set specified by the charset attribute.
... return value an nsiinputstream that will present the text specified in astring as its data.
nsISelectionController
scroll_center_vertically 1<<4 if set, the specified location will be scrolled to the center of the view.
... repaintselection() repaints the selection specified.
nsIServiceManager
exceptions thrown ns_error_factory_not_registered indicates that the specified class is not registered.
... exceptions thrown ns_error_factory_not_registered indicates that the specified class is not registered.
nsIStyleSheetService
return value returns true if a style sheet at sheeturi has previously been added to the list of style sheets specified by type.
... unregistersheet() remove the style sheet at sheeturi from the list of style sheets specified by type.
nsITimer
the nsitimer interface offers a functionality to invoke a function after a specified delay.
... init() initialize a timer that will fire after the specified delay.
nsIToolkitProfileService
ns_error_file_not_directory one of the specified directory files is not actually a directory.
... return value an nsitoolkitprofile object describing the specified profile.
nsITransferable
methods adddataflavor() adds a new data flavor, indicating that this transferable can receive the type of data represented by the specified flavor string.
... settransferdata() sets the data in the transferable with the specified flavor.
nsITreeContentView
obsolete since gecko 1.8 methods getindexofitem() retrieve the index associated with the specified content item.
...getitematindex() retrieve the content item associated with the specified index.
nsITreeView
it is multiplied by the width specified in the ::moz-tree-indentation pseudoelement to compute the exact indentation.
...to alter the style (see also styling a tree) getrowproperties: function(index, properties) { var atomservice = components.classes["@mozilla.org/atom-service;1"].getservice(components.interfaces.nsiatomservice); var atom = atomservice.getatom("dummy"); properties.appendelement(atom); } hasnextsibling() used to determine if the row at rowindex has a nextsibling that occurs after the index specified by afterindex.
nsIURI
schemeis() quickly reports whether the nsiuri represents a uri with the specified scheme.
... return value true if the uri is for the specified scheme; otherwise false.
nsIURIFixup
createfixupuri() converts the specified string into a uri, first attempting to correct any errors in the syntax or other vagaries.
... keywordtouri() converts the specified keyword string into a uri.
nsIUpdate
if this is specified, the user is shown the license file after they choose to install the update, and they must agree to it before the download begins.
... return value an nsiupdatepatch object describing the specified patch.
nsIUpdateManager
methods getupdateat() returns the update at the specified index into the history list.
... return value the nsiupdate at the specified index into the history list.
nsIWebBrowserChrome
return value note: the function error code returned by this corresponds to the status value specified in exitmodaleventloop.
... sizebrowserto() tells the chrome to size itself such that the browser will be the specified size.
NS_UTF16ToCString
« xpcom api reference summary the ns_utf16tocstring function converts the value of a nsastring instance from utf-16 to the specified multi-byte encoding and stores the result in a nsacstring instance.
...the set of possible error codes is currently unspecified.
XPIDL Syntax
MozillaTechXPIDLSyntax
simplifications, conventions and notation the syntax is specified according to abnf as defined by rfc 5234, although a few productions use prose for clarity of understanding.
...this may be followed by the language, as in `%{c++', to output the raw fragment only in the specified language.
XPIDL
result (implies noscript) y y optional_argc y n adds an additional uint8_t _argc parameter to the c++ implementation y y infallible n y generates an infallible c++ getter for the attribute n n must_use y y adds moz_must_use to the generated function declarations n n method parameters each method parameter can be specified in one of three modes: in, out, or inout.
... the retval property indicates that the parameter is actually acting as the return value, and it is only the need to assign properties to the parameter that is causing it to be specified as a parameter.
Building a Thunderbird extension 3: install manifest
there are more optional elements that can be specified in install.rdf.
...note that elements can be specified in any order, as long as they are children of the <description> node.
Working with windows in chrome code
this is different from the user-visible window title, which is specified using xul.
...it also handles window features a little differently, including always assuming the dialog feature is specified.
Declaring types
declaring an array type with unspecified length to declare a new array type without specifying a length, you simply pass in the ctype specifying the element type when calling ctypes.arraytype().
...filearray is a new type representing an array of unspecified length, in which each entry is a pointer to a file record.
Library
argtype1...argtypen zero or more parameter ctype may be specified for the parameters of the function being declared.
... exceptions thrown ctypes ctype functiontype abi typeerror the return type was specified as an array.
Initialization and Destruction - Plugins
npp_new informs the plug-in of the creation of a new instance with the specified mime type.
...it determines the number of attributes in the arrays specified by the argn and argv parameters.
Plug-in Basics - Plugins
the enabledplugin property is a reference to a plugin object that represents the plug-in that is configured for the specified mime type.
... hspace and vspace create a margin of the specified width, in pixels, around the plug-in.
Debugger.Frame - Firefox Developer Tools
if multiple debugger instances each have debugger.frame instances for a given stack frame with onstep handlers set, their handlers are run in an unspecified order.
... if multiple debugger instances each have debugger.frame instances for a given stack frame with onpop handlers set, their handlers are run in an unspecified order.
Index - Firefox Developer Tools
72 view background images in the rules view, you can see a preview of images specified using background-image.
...when the program reaches the line, the debugger pauses only if the breakpoint's specified expression evaluates to true.
Console messages - Firefox Developer Tools
this site specified both an x-content-security-policy/report-only header and a content-security-policy/report-only header.
... the site specified an invalid strict-transport-security header.
AddressErrors.languageCode - Web APIs
syntax var languageerror = addresserrors.languagecode; value if the value specified in the paymentaddress object's languagecode property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
... this validation might be as simple as ensuring the text of the string is compliant with the syntax defined in bcp-47, or as detailed as actually verifying that the specified string matches a value from a database.
AudioBuffer.copyFromChannel() - Web APIs
the copyfromchannel() method of the audiobuffer interface copies the audio sample data from the specified channel of the audiobuffer to a specified float32array.
...if not specified, a value of 0 (the beginning of the buffer) is assumed by default.
AudioBuffer - Web APIs
audiobuffer.copyfromchannel() copies the samples from the specified channel of the audiobuffer to the destination array.
... audiobuffer.copytochannel() copies the samples to the specified channel of the audiobuffer, from the source array.
AudioBufferSourceNode.loop - Web APIs
when looping is enabled, the sound begins playing at the time specified as the start point when start() is called.
... when the time specified by the loopend property is reached, playback continues at the time specified by loopstart example in this example, the audiocontext.decodeaudiodata function is used to decode an audio track and put it into an audiobuffersourcenode.
AudioContextOptions.sampleRate - Web APIs
syntax audiocontextoptions.samplerate = 44100; var samplerate = audiocontextoptions.samplerate; value the desired sample rate for the audiocontext, specified in samples per second.
... if the samplerate property is not included in the options, or the options are not specified when creating the audio context, the new context's output device's preferred sample rate is used by default.
AudioContextOptions - Web APIs
samplerate optional the samplerate to be used by the audiocontext, specified in samples per second.
...if not specified, the preferred sample rate for the context's output device is used by default.
AudioTrack - Web APIs
the language is specified as a bcp 47 (rfc 5646) language code, such as "en-us" or "pt-br".
... example this example returns an array of track kinds and labels for potential use in a user interface to select audio tracks for a specified media element.
BiquadFilterNode.getFrequencyResponse() - Web APIs
the getfrequencyresponse() method of the biquadfilternode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
... syntax biquadfilternode.getfrequencyresponse(frequencyarray, magresponseoutput, phaseresponseoutput); parameters frequencyarray a float32array containing an array of frequencies, specified in hertz, which you want to filter.
Bluetooth.requestDevice() - Web APIs
the bluetooth.requestdevice() method of the bluetooth interface returns a promise to a bluetoothdevice object with the specified options.
... notfounderror there is no bluetooth device that matches the specified options.
Bluetooth - Web APIs
WebAPIBluetooth
the bluetooth interface of the web bluetooth api returns a promise to a bluetoothdevice object with the specified options.
... bluetooth.requestdevice() returns a promise to a bluetoothdevice object with the specified options.
BluetoothRemoteGATTServer.getPrimaryService() - Web APIs
the bluetoothremotegattserver.getprimaryservice() method returns a promise to the primary bluetoothgattservice offered by the bluetooth device for a specified bluetoothserviceuuid.
... parameters bluetoothserviceuuid a bluetooth service universally unique identifier for a specified device.
BluetoothRemoteGATTServer.getPrimaryServices() - Web APIs
the bluetoothremotegattserver.getprimaryservices() method returns a promise to a list of primary bluetoothgattservice objects offered by the bluetooth device for a specified bluetoothserviceuuid.
... parameters bluetoothserviceuuid a bluetooth service universally unique identifier for a specified device.
BluetoothRemoteGATTServer - Web APIs
bluetoothremotegattserver.getprimaryservice() returns a promise to the primary bluetoothgattservice offered by the bluetooth device for a specified bluetoothserviceuuid.
... bluetoothremotegattserver.getprimaryservices() returns a promise to a list of primary bluetoothgattservice objects offered by the bluetooth device for a specified bluetoothserviceuuid.
CSSPrimitiveValue.setFloatValue() - Web APIs
if the property attached to this value can't accept the specified unit or the float value, the value will be unchanged and a domexception will be raised.
... exceptions type description domexception an invalid_access_err is raised if the css value doesn't contain a float value or if the string value can't be converted into the specified unit.
CSSPrimitiveValue.setStringValue() - Web APIs
if the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a domexception will be raised.
... exceptions type description domexception an invalid_access_err is raised if the css value doesn't contain a string value or if the string value can't be converted into the specified unit.
CSSStyleDeclaration.setProperty() - Web APIs
if not specified, treated as the empty string.
...if not specified, treated as the empty string.
CSSStyleValue - Web APIs
cssimagevalue csskeywordvalue cssnumericvalue csspositionvalue csstransformvalue cssunparsedvalue methods cssstylevalue.parse() sets a specific css property to the specified values and returns the first value as a cssstylevalue object.
... cssstylevalue.parseall() sets all occurences of a specific css property to the specified valueand returns an array of cssstylevalue objects, each containing one of the supplied values.
CanvasRenderingContext2D.createImageData() - Web APIs
the canvasrenderingcontext2d.createimagedata() method of the canvas 2d api creates a new, blank imagedata object with the specified dimensions.
... return value a new imagedata object with the specified width and height.
CanvasRenderingContext2D.createLinearGradient() - Web APIs
syntax canvasgradient ctx.createlineargradient(x0, y0, x1, y1); the createlineargradient() method is specified by four parameters defining the start and end points of the gradient line.
... return value canvasgradient a linear canvasgradient initialized with the specified line.
CanvasRenderingContext2D.createPattern() - Web APIs
the canvasrenderingcontext2d.createpattern() method of the canvas 2d api creates a pattern using the specified image and repetition.
...possible values are: "repeat" (both directions) "repeat-x" (horizontal only) "repeat-y" (vertical only) "no-repeat" (neither direction) if repetition is specified as an empty string ("") or null (but not undefined), a value of "repeat" will be used.
CanvasRenderingContext2D.createRadialGradient() - Web APIs
syntax canvasgradient ctx.createradialgradient(x0, y0, r0, x1, y1, r1); the createradialgradient() method is specified by six parameters, three defining the gradient's start circle, and three defining the end circle.
... return value canvasgradient a radial canvasgradient initialized with the two specified circles.
CanvasRenderingContext2D.scale() - Web APIs
html <canvas id="canvas"></canvas> javascript the rectangle has a specified width of 8 and a height of 20.
...since its specified corner is (10, 10), its rendered corner becomes (90, 30).
Using images - Web APIs
in its most basic form it looks like this: drawimage(image, x, y) draws the canvasimagesource specified by the image parameter at the coordinates (x, y).
... drawimage(image, sx, sy, swidth, sheight, dx, dy, dwidth, dheight) given an image, this function takes the area of the source image specified by the rectangle whose top-left corner is (sx, sy) and whose width and height are swidth and sheight and draws it into the canvas, placing it on the canvas at (dx, dy) and scaling it to the size specified by dwidth and dheight.
Console.dir() - Web APIs
WebAPIConsoledir
the console method dir() displays an interactive list of the properties of the specified javascript object.
... in other words, console.dir() is the way to see all the properties of a specified javascript object in console by which the developer can easily get the properties of the object.
ContentIndexEvent - Web APIs
constructor contentindexevent() creates and returns a new contentindexevent object whose type and other options are configured as specified.
... methods while contentindexevent offers no methods of its own, it inherits any specified by its parent interface, extendableevent.
DOMPointReadOnly - Web APIs
static methods dompointreadonly.frompoint() a static method that creates a new dompointreadonly object given the coordinates provided in the specified dompointinit object.
... methods matrixtransform() applies a matrix transform specified as a dommatrixinit object to the dompointreadonly object.
DOMRect - Web APIs
WebAPIDOMRect
the type of box represented by the domrect is specified by the method or property that returned it.
... for example, vreyeparameters.renderrect from the defunct webvr api specified the viewport of a canvas into which visuals for one eye of a head mounted display should be rendered.
DOMTokenList - Web APIs
domtokenlist.add(token1[, token2[, ...tokenn]]) adds the specified token(s) to the list.
... domtokenlist.remove(token1[, token2[, ...tokenn]]) removes the specified token(s) from the list.
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.
...if the specified item does not exist, null is returned.
DisplayMediaStreamConstraints.video - Web APIs
if a boolean is specified, a value of true (the default) indicates that the stream returned by getdisplaymedia() should be in whatever format the user agent feels is best.
... constraints specific to screen sharing these constraints apply to mediatrackconstraints objects specified as part of the displaymediastreamconstraints object's video property when using getdisplaymedia() to obtain a stream for screen sharing.
DisplayMediaStreamConstraints - Web APIs
processing information is specified using mediatrackconstraints objects providing options which are applied to the track after the media data is received but before it is made available on the mediastream.
...if a mediatrackconstraints object is provided here, an audio track is included in the stream, but the audio is processed to match the specified constraints after being retrieved from the hardware but before being added to the mediastream.
Document.characterSet - Web APIs
users can override the developer-specified encoding inside the content-type header or inline like <meta charset="utf-8">, such as with firefox's view → text encoding menu.
... this override is provided to fix incorrect developer-specified encodings that result in garbled text.
Document.getBoxObjectFor() - Web APIs
returns a boxobject (x, y, width, height) for a specified element.
... example var mydiv = document.getelementbyid("mydiv"), boxobj = document.getboxobjectfor (mydiv); alert ( "x:" + boxobj.x + ", y:" + boxobj.y + ", width:" + boxobj.width + ", height:" + boxobj.height ); notes specified in nsixuldocument.idl ...
Document.getElementsByClassName() - Web APIs
you may also call getelementsbyclassname() on any element; it will return only elements which are descendants of the specified root element with the given class name(s).
...only elements with all of the classnames specified are selected.
Document.open() - Web APIs
WebAPIDocumentopen
this call, for example opens github.com in a new window, with its opener set to null: document.open('https://www.github.com','', 'noopener=true') two-argument document.open() browsers used to support a two-argument document.open(), with the following signature: document.open(type, replace) where type specified the mime type of the data you are writing (e.g.
...a string of "replace") specified that the history entry for the new document would replace the current history entry of the document being written to.
DocumentFragment.querySelector() - Web APIs
the documentfragment.queryselector() method returns the first element, or null if no matches are found, within the documentfragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
... if the selectors specified in parameter are invalid a domexception with a syntax_err value is raised.
DocumentFragment.querySelectorAll() - Web APIs
the documentfragment.queryselectorall() method returns a nodelist of elements within the documentfragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
... if the selectors specified in parameter are invalid a domexception with a syntax_err value is raised.
DoubleRange - Web APIs
the doublerange dictionary is used to define a range of permitted double-precision floating-point values for a property, with either or both a maximum and minimum value specified.
... the specified min and/or and max values are required.
Element.getAnimations() - Web APIs
the getanimations() method of the element interface (specified on the animatable mixin) returns an array of all animation objects affecting this element or which are scheduled to do so in future.
... return value an array of animation objects, each representing an animation currently targetting the element on which this method is called, or one of its descendant elements if { subtree: true } is specified.
Element.getElementsByClassName() - Web APIs
the element method getelementsbyclassname() returns a live htmlcollection which contains every descendant element which has the specified class name or names.
... examples matching a single class to look for elements that include among their classes a single specified class, we just provide that class name when calling getelementsbyclassname(): element.getelementsbyclassname('test'); this example finds all elements that have a class of test, which are also a descendant of the element that has the id of main: document.getelementbyid('main').getelementsbyclassname('test'); matching multiple classes to find elements whose class lists include both the red and...
Element.getElementsByTagName() - Web APIs
all descendants of the specified element are searched, but not the element itself.
... element.getelementsbytagname is similar to document.getelementsbytagname(), except that it only searches for elements that are descendants of the specified element.
Element.hasAttribute() - Web APIs
the element.hasattribute() method returns a boolean value indicating whether the specified element has the specified attribute or not.
... example var foo = document.getelementbyid("foo"); if (foo.hasattribute("bar")) { // do something } polyfill ;(function(prototype) { prototype.hasattribute = prototype.hasattribute || function(name) { return !!(this.attributes[name] && this.attributes[name].specified); } })(element.prototype); notes dom methods dealing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for dealing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for dealing with attr nodes directly (seldom used) setattribute (dom 1) setattributens setattributenode setattr...
Element.insertAdjacentElement() - Web APIs
exceptions exception explanation syntaxerror the position specified is not a recognised value.
... typeerror the element specified is not a valid element.
Element.removeAttribute() - Web APIs
the element method removeattribute() removes the attribute with the specified name from the element.
...if the specified attribute does not exist, removeattribute() returns without generating an error.
Event.msConvertURL() - Web APIs
targettype [in] type: domstring one of the following values indicating the desired conversion type: "specified", "base64", or "unchanged".
... evt.converturl(file, "specified", url); } else { evt.msconverturl(file, "specified", url); } console.log("local file: " + file.name + " (" + file.size + ")"); bloblist.push(file); } // for } // handlepaste see also microsoft api extensions ...
EventTarget.dispatchEvent() - Web APIs
dispatches an event at the specified eventtarget, (synchronously) invoking the affected eventlisteners in the appropriate order.
... the dispatchevent() method throws unspecified_event_type_err if the event's type was not specified by initializing the event before the method was called, or if the event's type is null or an empty string.
FeaturePolicy.allowsFeature() - Web APIs
it returns a boolean that is true if and only if the specified feature is allowed in the specified context (or the default context if no context is specified).
... syntax const allowed = featurepolicy.allowsfeature(<feature>) or const allowed = featurepolicy.allowsfeature(<feature>, <origin>) parameters feature name a specific feature name must be specified.
FeaturePolicy - Web APIs
featurepolicy methods featurepolicy.allowsfeature returns a boolean that indicates whether or not a particular feature is enabled in the specified context.
... featurepolicy.getallowlistforfeature returns the allow list for the specified feature.
Using files from web applications - Web APIs
() to add the change event listener, like this: const inputelement = document.getelementbyid("input"); inputelement.addeventlistener("change", handlefiles, false); function handlefiles() { const filelist = this.files; /* now you can work with the file list */ } getting information about selected file(s) the filelist object provided by the dom lists all of the files selected by the user, each specified as a file object.
...this is done by calling the url.revokeobjecturl() method and passing in the object url string as specified by img.src.
FileReader.readAsText() - Web APIs
the readastext() method is used to read the contents of the specified blob or file.
...by default, utf-8 is assumed if this parameter is not specified.
FileSystemEntry.getParent() - Web APIs
fileerror.not_found_err the specified path could not be found.
... example this example renames the file specified by the variable fileentry to "newname.html".
File and Directory Entries API support in Firefox - Web APIs
this subset of the api provided by chrome is still not fully specified; however, for web compatibility reasons, it was decided to implement a subset of the api in firefox; this was introduced in firefox 50.
... you can't use the localfilesystem.requestfilesystem() method to get access to a specified local file system.
FormData() - Web APIs
WebAPIFormDataFormData
syntax var formdata = new formdata(form) parameters form optional an html <form> element — when specified, the formdata object will be populated with the form's current keys/values using the name property of each element for the keys and their submitted value for the values.
... example the following line creates an empty formdata object: var formdata = new formdata(); // currently empty you could add a key/value pair to this using formdata.append: formdata.append('username', 'chris'); or you can specify the optional form argument when creating the formdata object, to prepopulate it with values from the specified form: <form id="myform" name="myform"> <div> <label for="username">enter name:</label> <input type="text" id="username" name="username"> </div> <div> <label for="useracc">enter account number:</label> <input type="text" id="useracc" name="useracc"> </div> <div> <label for="userfile">upload file:</label> <input type="file" id="userfile" name="userfile"> </div> <input type="submi...
Using FormData Objects - Web APIs
t(); oreq.open("post", "stash.php", true); oreq.onload = function(oevent) { if (oreq.status == 200) { ooutput.innerhtml = "uploaded!"; } else { ooutput.innerhtml = "error " + oreq.status + " occurred when trying to upload your file.<br \/>"; } }; oreq.send(odata); ev.preventdefault(); }, false); note: if you pass in a reference to the form, the request method specified in the form will be used over the method specified in the open() call.
...when no filename is specified (or the parameter isn't supported), the name "blob" is used.
FormData.append() - Web APIs
WebAPIFormDataappend
the difference between formdata.set and append() is that if the specified key already exists, formdata.set will overwrite all existing values with the new one, whereas append() will append the new value onto the end of the existing set of values.
...if none of these are specified the value is converted to a string.
FormData.set() - Web APIs
WebAPIFormDataset
the difference between set() and formdata.append is that if the specified key does already exist, set() will overwrite all existing values with the new one, whereas formdata.append will append the new value onto the end of the existing set of values.
...if none of these are specified the value is converted to a string.
Frame Timing API - Web APIs
when one of those event types is recorded in the browser's performance timeline, the application is notified of the event via the observer's callback function that was specified when the observer was created.
...when the browser adds a new frame to the performance timeline, the specified observer callback will be invoked.
HTMLAnchorElement - Web APIs
htmlhyperlinkelementutils.password is a usvstring containing the password specified before the domain name.
... htmlhyperlinkelementutils.username is a usvstring containing the username specified before the domain name.
HTMLAreaElement - Web APIs
htmlhyperlinkelementutils.password is a usvstring containing the password specified before the domain name.
... htmlhyperlinkelementutils.username is a usvstring containing the username specified before the domain name.
Audio() - Web APIs
return value a new htmlaudioelement object, configured to be used for playing back the audio from the file specified by url.the new object's preload property is set to auto and its src property is set to the specified url or null if no url is given.
... if a url is specified, the browser begins to asynchronously load the media resource before returning the new object.
HTMLCollection.item - Web APIs
the htmlcollection method item() returns the node located at the specified offset into the collection.
... 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.
HTMLFormElement.requestSubmit() - Web APIs
exceptions typeerror the specified submitter is not a submit button.
... notfounderror the specified submitter isn't a member of the form on which requestsubmit() was called.
HTMLImageElement.alt - Web APIs
the htmlimageelement property alt provides fallback (alternate) text to display when the image specified by the <img> element is not loaded.
... the alt attribute is officially mandatory; it's meant to always be specified.
HTMLImageElement.complete - Web APIs
the image is considered completely loaded if any of the following are true: neither the src nor the srcset attribute is specified.
... the srcset attribute is absent and the src attribute, while specified, is the empty string ("").
HTMLImageElement.lowSrc - Web APIs
the htmlimageelement interface's obsolete lowsrc property can be used to specify the url of a reduced-quality or otherwise faster-loading version of the image specified by the src property.
... syntax htmlimageelement.lowsrc = imageurl; imageurl = htmlimageelement.lowsrc; value a domstring specifying the url of a version of the image specified by src which has been modified in some fashion so that it loads significantly more quickly than the primary image.
HTMLImageElement.src - Web APIs
if you use the srcset content attribute to provide multiple image options for different display pixel densities, the url specified by the src attribute is used in one of two ways: as a fallback for browsers that don't support srcset.
... as an equivalent for specifying an image in srcset with the size multiplier 1x; that is, the image specified by src is used on low-density screens (such as typical 72 dpi or 96 dpi displays).
HTMLInputElement.stepDown() - Web APIs
the method, when invoked, decrements the value by (step * n), where n defaults to 1 if not specified, and step defaults to the default value for step if not specified.
... htmlinputelement.stepdown() decrements the value by (step * n), where n defaults to 1 if not specified.
HTMLMediaElement - Web APIs
the time is specified relative to the media's timeline.
...this only works when the application is authorized to use the specified device.
HTMLElement.focus() - Web APIs
the htmlelement.focus() method sets focus on the specified element, if it can be focused.
... obsolete notes if you call htmlelement.focus() from a mousedown event handler, you must call event.preventdefault() to keep the focus from leaving the htmlelement behaviour of the focus in relation to different html features like tabindex or shadow dom, which previously remained under-specified, were recently updated (as october of 2019).
HTMLScriptElement.referrerPolicy - Web APIs
no-referrer-when-downgrade (default) this is the user agent's default behavior if no policy is specified.
...if referrerpolicy is not explicitly specified on the <script> element, it will adopt a higher-level referrer policy, i.e.
HTMLScriptElement - Web APIs
the defer and async attributes must not be specified if the src attribute is absent.
... the defer attribute may be specified with the async attribute, so legacy browsers that only support defer (and not async) fall back to the defer behavior instead of the default blocking behavior.
HTMLTableCellElement - Web APIs
header cells can be configured, using the scope property, the apply to a specified row or column, or to the not-yet-scoped cells within the current row group (that is, the same ancestor <thead>, <tbody>, or <tfoot> element).
... if no value is specified for scope, the header is not associated directly with cells in this way.
History - Web APIs
WebAPIHistory
pushstate() pushes the given data onto the session history stack with the specified title (and, if provided, url).
... replacestate() updates the most recent entry on the history stack to have the specified data, title, and, if provided, url.
Working with the History API - Web APIs
this parameter is optional; if it isn't specified, it's set to the document's current url.
... in a xul document, it creates the specified xul element.
IDBDatabase.transaction() - Web APIs
transactions are opened in one of three modes: readonly, readwrite and readwriteflush (non-standard, firefox-only.) versionchange mode can't be specified here.
... notfounderror an object store specified in in the storenames parameter has been deleted or removed.
IDBObjectStore.delete() - Web APIs
the delete() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, deletes the specified record or records.
...is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror = function(event) { note.innerhtml += '<li>transaction not opened due to error: ' + transaction.error + '</li>'; }; // create an object store on the transaction var objectstore = transaction.objectstore("todolist"); // make a request to delete the specified record out of the object store var objectstorerequest = objectstore.delete("walk dog"); objectstorerequest.onsuccess = function(event) { // report the success of our request note.innerhtml += '<li>request successful.</li>'; }; }; specification specification status comment indexed database api 2.0the definition of 'delete()' in that specification.
IDBObjectStoreSync - Web APIs
methods add() stores the given value into this object store, optionally with the specified key.
...the range of the new cursor matches the specified key range; if the key range is not specified or is null, then the range includes all the records.
IIRFilterNode.getFrequencyResponse() - Web APIs
the getfrequencyresponse() method of the iirfilternode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
... syntax iirfilternode.getfrequencyresponse(frequencyarray, magresponseoutput, phaseresponseoutput); parameters frequencyarray a float32array containing an array of frequencies, specified in hertz, which you want to filter.
IIRFilterNode - Web APIs
it lets the parameters of the filter response be specified, so that it can be tuned as needed.
...it also has the following additional methods: getfrequencyresponse() uses the filter's current parameter settings to calculate the response for frequencies specified in the provided array of frequencies.
Basic concepts - Web APIs
when a database is first created, its version is the integer 1 if not specified otherwise.
...the object store can derive the key from one of three sources: a key generator, a key path, or an explicitly specified value.
getVersion - Web APIs
getversion returns an object representing the version number from the client version registry for the specified component.
... if the component has not been registered in the client version registry or if the specified component was installed with a null version, this method returns null.
startSoftwareUpdate - Web APIs
summary triggers the downloading and installation of the software at the specified url.
... description the startsoftwareupdate method triggers a software download and install from the specified url.
IntersectionObserver.rootMargin - Web APIs
the string returned by this property may not match the one specified when the intersectionobserver was instantiated.
... the browser is permitted to alter the values if rootmargin isn't specified when the object was instantiated, it defaults to the string "0px 0px 0px 0px", meaning that the intersection will be computed between the root element's unmodified bounds rectangle and the target's bounds.
IntersectionObserver.unobserve() - Web APIs
the intersectionobserver method unobserve() instructs the intersectionobserver to stop observing the specified target element.
...if the specified element isn't being observed, this method does nothing and no exception is thrown.
IntersectionObserver - Web APIs
constructor intersectionobserver.intersectionobserver() creates a new intersectionobserver object which will execute a specified callback function when it detects that a target element's visibility has crossed one or more thresholds.
...the value returned by this property may not be the same as the one specified when calling the constructor as it may be changed to match internal requirements.
MediaSource.addSourceBuffer() - Web APIs
exceptions invalidaccesserror the value specified for mimetype is an empty string rather than a valid mime type.
... notsupportederror the specified mimetype isn't supported by the user agent, or is not compatible with the mime types of other sourcebuffer objects that are already included in the media source's sourcebuffers list.
MediaSource.isTypeSupported() - Web APIs
if the returned value is false, then the user agent is certain that it cannot access media of the specified format.
... return value a boolean which is true if the browser feels that it can probably play media of the specified type.
MediaStream.addTrack() - Web APIs
the track is specified as a parameter of type mediastreamtrack.
... if the specified track is already in the stream's track set, this method has no effect.
MediaStream - Web APIs
each track is specified as an instance of mediastreamtrack.you can obtain a mediastream object either by using the constructor or by calling mediadevices.getusermedia().
...you can create an empty stream, a stream which is based upon an existing stream, or a stream that contains a specified list of tracks (specified as an array of mediastreamtrack objects).
MediaStreamAudioSourceNode() - Web APIs
return value a new mediastreamaudiosourcenode object representing the audio node whose media is obtained from the specified source stream.
... exceptions invalidstateerror the specified mediastream doesn't have any audio tracks.
MediaStreamAudioSourceNode.mediaStream - Web APIs
this stream was specified when the node was first created, either using the mediastreamaudiosourcenode() constructor or the audiocontext.createmediastreamsource() method.
... the user agent uses the first audio track it finds on the specified stream as the audio source for this node.
MediaStreamAudioSourceNode - Web APIs
constructor new mediastreamaudiosourcenode() creates a new mediastreamaudiosourcenode object instance with the specified options.
... exceptions invalidstateerror the stream specified by the mediastream parameter does not contain any audio tracks.
MediaStreamConstraints.audio - Web APIs
syntax var audioconstraints = true | false | mediatrackconstraints; value the value of the audio property can be specified as either of two types: boolean if a boolean value is specified, it simply indicates whether or not an audio track should be included in the returned stream; if it's true, an audio track is included; if no audio source is available or if permission is not given to use the audio source, the call to getusermedia() will fail.
...as long as an audio input device is available and the user allows it to be used, an audio track will be included in the resulting stream, and it will match the specified constraints as well as possible.
MediaStreamConstraints.video - Web APIs
syntax var videoconstraints = true | false | mediatrackconstraints; value the value of the video property can be specified as either of two types: boolean if a boolean value is specified, it simply indicates whether or not a video track should be included in the returned stream; if it's true, a video track is included; if no video source is available or if permission is not given to use the video source, the call to getusermedia() will fail.
...as long as a video input device is available and the user allows it to be used, a video track will be included in the resulting stream, and it will match the specified constraints as well as possible.
MediaStreamTrack.applyConstraints() - Web APIs
syntax const appliedpromise = track.applyconstraints([constraints]) parameters constraints optional a mediatrackconstraints object listing the constraints to apply to the track's constrainable properties; any existing constraints are replaced with the new values specified, and any constrainable properties not included are restored to their default constraints.
...this can happen if the specified constraints are too strict to find a match when attempting to configure the track.
MediaTrackConstraints.aspectRatio - Web APIs
if this value is a number, the user agent will attempt to obtain media whose aspect ratio is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required aspect ratio (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.channelCount - Web APIs
syntax var constraintsobject = { channelcount: constraint }; constraintsobject.channelcount = constraint; value if this value is a number, the user agent will attempt to obtain media whose channel count is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required channel count (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.frameRate - Web APIs
if this value is a number, the user agent will attempt to obtain media whose frame rate is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required frame rate (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.height - Web APIs
syntax var constraintsobject = { height: constraint }; constraintsobject.height = constraint; value if this value is a number, the user agent will attempt to obtain media whose height is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required height (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.sampleRate - Web APIs
syntax var constraintsobject = { samplerate: constraint }; constraintsobject.samplerate = constraint; value if this value is a number, the user agent will attempt to obtain media whose sample rate is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required sample rate (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.sampleSize - Web APIs
syntax var constraintsobject = { samplesize: constraint }; constraintsobject.samplesize = constraint; value if this value is a number, the user agent will attempt to obtain media whose sample size (in bits per linear sample) is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required sample size (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackControls.volume - Web APIs
if this value is a number, the user agent will attempt to obtain media whose volume is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required volume (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.width - Web APIs
syntax var constraintsobject = { width: constraint }; constraintsobject.width = constraint; value if this value is a number, the user agent will attempt to obtain media whose width is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required width (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackSettings.latency - Web APIs
the mediatracksettings dictionary's latency property is a double-precision floating-point number indicating the estimated latency (specified in seconds) of the mediastreamtrack as currently configured.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.latency property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
Using the Media Capabilities API - Web APIs
these features include: the ability to query the browser to determine its ability to encode or decode media given a specified set of encoding parameters.
...there are a few reasons why an error might occur, including: the specified type isn't one of the two permtited values: file or media-source the contenttype given is the error can be due to the type not being one of the two possible values, the contenttype not being a valid codec mime type, or invalid or omitted definitions required in the videoconfiguration.
Transcoding assets for Media Source Extensions - Web APIs
container and codec support as specified in section 1.1 of the mse spec: goals, mse is designed not to require support for any particular media format or codec.
... while mse is flexible enough to allow you to make your implementation, it's highly recommended to use an existing dash client as dash is a well-specified application protocol.
MerchantValidationEvent() - Web APIs
exceptions typeerror the string specified as validationurl could not be parsed as a url.
... rangeerror the specified methodname does not correspond to a known and supported merchant or is not a well-formed standard payment method identifier.
MimeTypeArray - Web APIs
methods mimetypearray.item() returns the mimetype object with the specified index.
... mimetypearray.nameditem() returns the mimetype object with the specified name.
MouseEvent.pageX - Web APIs
WebAPIMouseEventpageX
see page in coordinate systems for some additional information about coordinates specified in this fashion.
... this property was originally specified in the touch events specification as a long integer, but was redefined in the cssom view module to be a double-precision floating-point number to allow for subpixel precision.
MutationObserverInit.attributeFilter - Web APIs
if this property is specified, there's no need to also set attributes to true, as it's implied.
... when observe() is called, the specified options include both attributefilter and subtree, so that we monitor the attribute values for all of the nodes contained within the subtree rooted at the node with the id "userlist".
MutationObserverInit.attributes - Web APIs
if true, the callback specified when observe() was used to start observing the node or subtree will be called any time one or more attributes have changed on observed nodes.
... when observe() is called, the specified options are attributes and attributeoldvalue, which means that changes to attribute values will be reported, and each mutation record will include the oldvalue property specifying the attribute's previous value.
MutationObserverInit.subtree - Web APIs
the default, false, indicates that only the target node specified when calling mutationobserver.observe() is to be monitored for changes.
... changing this value to true causes the entire subtree rooted at the specified target node to be monitored for the changes indicated by the other options.
Navigator.doNotTrack - Web APIs
values of "1", "0", or "unspecified".
... example console.log(navigator.donottrack); // prints "1" if dnt is enabled; "0" if the user opted-in for tracking; otherwise this is "unspecified" specifications specification status comment tracking preference expression (dnt)the definition of 'navigator.donottrack' in that specification.
Navigator.getUserMedia() - Web APIs
if permission is granted, a mediastream whose video and/or audio tracks come from those devices is delivered to the specified success callback.
... }; } errorcallback when the call fails, the function specified in the errorcallback is invokedwith a mediastreamerror object as its sole argument; this object is is modeled on domexception.
Navigator.share() - Web APIs
WebAPINavigatorshare
at least one of the following fields must be specified.
...it will reject immediately if the data parameter is not correctly specified, and will also reject if the user cancels sharing.
Node.appendChild() - Web APIs
WebAPINodeappendChild
the node.appendchild() method adds a node to the end of the list of children of a specified parent node.
... if the given child is a documentfragment, the entire contents of the documentfragment are moved into the child list of the specified parent node.
Notification.lang - Web APIs
WebAPINotificationlang
the lang read-only property of the notification interface indicates the language used in the notification, as specified in the lang option of the notification() constructor.
... the language itself is specified using a domstring representing a bcp 47 language tag.
Notification.vibrate - Web APIs
this is specified in the vibrate option of the notification() constructor.
... syntax var vibrate = notification.vibrate; value a vibration pattern, as specified in the vibration api spec.
OfflineAudioContext.suspend() - Web APIs
the suspend() method of the offlineaudiocontext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.
... note that the maximum precision of suspension is the size of the render quantum and the specified suspension time will be rounded down to the nearest render quantum boundary.
ParentNode.prepend() - Web APIs
each node can be specified as either a node object or as a string; strings are inserted as new text nodes.
... exceptions hierarchyrequesterror: node cannot be inserted at the specified point in the hierarchy.
PaymentCurrencyAmount.currency - Web APIs
the paymentcurrencyamount property currency is a string which specifies the currency in which the value is specified.
... the value is always specified using the 3-letter codes defined by the iso 4127 standard.
PaymentCurrencyAmount.currencySystem - Web APIs
the obsolete paymentcurrencyamount property currencysystem is a string which specifies the standard being used to specify the currency the value is specified in.
... warning: this property has been removed from the specification and should no longer be used; the currency is now always specified using iso 4127.
performance.getEntriesByType() - Web APIs
return value entries a list of performanceentry objects that have the specified type.
...if no objects have the specified type, or no argument is provided, an empty list is returned.
Performance - Web APIs
performance.measure() creates a named timestamp in the browser's performance entry buffer between two specified marks (known as the start mark and end mark, respectively).
... performance.setresourcetimingbuffersize() sets the browser's resource timing buffer size to the specified number of "resource" type performance entry objects.
PluginArray - Web APIs
methods pluginarray.item returns the plugin at the specified index into the array.
... pluginarray.nameditem returns the plugin with the specified name.
Pointer events - Web APIs
a value of auto means the browser is free to apply its default touch behavior (to the specified region) and the value of none disables the browser's default touch behavior for the region.
... the values pan-x and pan-y, mean that touches that begin on the specified region are only for horizontal and vertical scrolling, respectively.
RTCConfiguration.certificates - Web APIs
if this property isn't specified, the browser will automatically generate and use a certificate to secure the connection.
... the certificates property's value cannot be changed once it's first specified.
RTCDataChannel: bufferedamountlow event - Web APIs
a bufferedamountlow event is sent to an rtcdatachannel when the number of bytes currently in the outbound data transfer buffer falls below the threshold specified in bufferedamountlowthreshold.
... bubbles no cancelable no interface event event handler property onbufferedamountlow examples this example sets up a handler for bufferedamountlow to request more data any time the data channel's buffer falls below the number of bytes specified by bufferedamountlowthreshold, which we have set to 65536.
RTCIceCandidate.port - Web APIs
as is the case with most of rtcicecandidate's properties, the value of port is extracted from the candidate a-line string specified when creating the rtcicecandidate.
... port is initialized to null if it is not specified in the candidate, or if the candidate string can't be parsed propertly.
RTCIceCandidate.priority - Web APIs
as is the case with most of rtcicecandidate's properties, the value of priority is extracted from the candidate a-line string specified when creating the rtcicecandidate.
... priority is initialized to null if it is not specified in the candidate, or if the candidate string can't be parsed propertly.
RTCIceCandidatePairStats - Web APIs
the webrtc rtcicecandidatepairstats dictionary reports statistics which provide insight into the quality and performance of an rtcpeerconnection while connected and configured as described by the specified pair of ice candidates.
...that object's selectedcandidatepairid property indicates whether or not the specified transport is the one being used.
RTCIceCandidateStats.address - Web APIs
while it's preferred that the address be specified as an ipv4 or ipv6 numeric address, a fully-qualified domain name can be used as well.
... when a domain name is specified, the first ip address selected for that address is used, even if the domain name maps to multiple ip addresses.
RTCPeerConnection.addTransceiver() - Web APIs
streams optional a list of mediastream objects to add to the transceiver'srtcrtpreceiver; when the remote peer's rtcpeerconnection's track event occurs, these are the streams that will be specified by that event.
... exceptions typeerror a string was specified as trackorkind which is not valid.
RTCPeerConnection.getStats() - Web APIs
the rtcpeerconnection method getstats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified mediastreamtrack.
... exceptions this method does not throw exceptions; instead, it rejects the returned promise with one of the following errors: invalidaccesserror there is no rtcrtpsender or rtcrtpreceiver whose track matches the specified selector, or selector matches more than one sender or receiver.
RTCPeerConnection.setLocalDescription() - Web APIs
return value a promise which is fulfilled once the value of rtcpeerconnection.localdescription is successfully changed or rejected if the change cannot be applied (for example, if the specified description is incompatible with one or both of the peers on the connection).
... invalidsessiondescriptionerror the rtcsessiondescription specified by the sessiondescription parameter is invalid.
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
the findreportentry() function shown below examines an rtcstatsreport, returning the rtcstats-based statistics record which contains the specified key — and for which the key has the specified value.
... function findreportentry(report, key, value) { for (const stats of report.values()) { if (stats[key] === value) { return stats; } } return null; } since the rtcstatsreport is a javascript map, we can iterate over the map's values() to examine each of the rtcstats-based statistics records in the report until we find one that has the key property with the specified value.
RTCSessionDescription() - Web APIs
the rtcsessiondescription() constructor creates a new rtcsessiondescription with its properties initialized as described in the specified object.
...the session description's type will be specified using one of these values.
Reporting API - Web APIs
the endpoints are arranged into groups; an endpoint group can work together to provide load balancing (each endpoint will receive a specified proportion of report traffic) and safeguarding against failure (fallback endpoints can be specified to use if the primary ones fail).
...res on our web page: let options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); }, options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor: observer.observe(); later on in the example we deliberately use the deprecated version of mediadevices.getusermedia(): if(navigator.mozgetusermedia) { navigator.mozgetusermedia( constraints, success, failure); } else { navigator.getusermedia( constraints, success, failure); } this causes a deprecation report to be generated; because of the e...
ResizeObserver - Web APIs
resizeobserver.observe() initiates the observing of a specified element.
... resizeobserver.unobserve() ends the observing of a specified element.
SVGAnimationElement - Web APIs
svganimationelement.beginelementat() creates a begin instance time for the current time plus the specified offset.
... svganimationelement.endelementat() creates a end instance time for the current time plus the specified offset.
SVGPathSeg - Web APIs
properties name type description pathsegtype unsigned short the type of the path segment as specified by one of the constants defined on this interface.
... pathsegtypeasletter domstring the type of the path segment as specified by the corresponding one character command name.
SVGPreserveAspectRatio - Web APIs
properties name type description align unsigned short the type of the alignment value as specified by one of the svg_preserveaspectratio_* constants defined on this interface.
... meetorslice unsigned short the type of the meet-or-slice value as specified by one of the svg_meetorslice_* constants defined on this interface.
SVGRect - Web APIs
WebAPISVGRect
if the attribute is not specified, the effect is as if a value of 0 were specified.
... svgrect.y the exact effect of this coordinate depends on each element.if the attribute is not specified, the effect is as if a value of 0 were specified.
SVGTransform - Web APIs
�) transformation svg_transform_scale 3 a scale(…) transformation svg_transform_rotate 4 a rotate(…) transformation svg_transform_skewx 5 a skewx(…) transformation svg_transform_skewy 6 a skewy(…) transformation properties name type description type unsigned short the type of the value as specified by one of the svg_transform_* constants defined on this interface.
...it holds the angle that was specified.
Selection.collapse() - Web APIs
this value can also be set to null — if null is specified, the method will behave like selection.removeallranges(), i.e.
...if not specified, the default value 0 is used.
Selection.extend() - Web APIs
WebAPISelectionextend
the selection.extend() method moves the focus of the selection to a specified point.
...if not specified, the default value 0 is used.
Selection.setBaseAndExtent() - Web APIs
the setbaseandextent() method of the selection interface sets the selection to be a range including all or parts of two specified dom nodes, and any content located between them.
... we also have a button that when pressed invokes a function that runs the setbaseandextent() method with the specified offsets, and copies the selection into the output paragraph at the very bottom of the html.
SourceBuffer.changeType() - Web APIs
exceptions typeerror the specified string is empty, rather than indicating a valid mime type.
... notsupportederror the specified mime type is not supported, or is not supported with the types of sourcebuffer objects present in the mediasource.sourcebuffers list.
SourceBuffer - Web APIs
sourcebuffer.appendbufferasync() starts the process of asynchronously appending the specified buffer to the sourcebuffer.
... sourcebuffer.removeasync() starts the process of asynchronously removing media segments in the specified range from the sourcebuffer.
SpeechGrammarList.addFromURI() - Web APIs
note that some speech recognition services may support built-in grammars that can be specified by uri.
...the value can be between 0.0 and 1.0; if not specified, the default used is 1.0.
StaticRange - Web APIs
staticrange.startoffset read only returns an integer value indicating the offset into the node specified by startcontainer at which the first character of the range is located.
...if any changes are made to the dom, the actual data contained within the range specified by a staticrange may change.
StylePropertyMapReadOnly - Web APIs
stylepropertymapreadonly.get() returns the value of the specified property.
... stylepropertymapreadonly.has() indicates whether the specified property is in the stylepropertymapreadonly object.
SubmitEvent - Web APIs
constructor submitevent() creates and returns a new submitevent object whose type and other options are configured as specified.
... methods while submitevent offers no methods of its own, it inherits any specified by its parent interface, event.
Text - Web APIs
WebAPIText
text.replacewholetext replaces the text of the current node and all logically adjacent nodes with the specified text.
... text.splittext breaks the node into two nodes at a specified offset.
TimeRanges.end() - Web APIs
WebAPITimeRangesend
returns the time offset at which a specified time range ends.
... exceptions index_size_err a domexception thrown if the specified index doesn't correspond to an existing range.
TimeRanges.start() - Web APIs
WebAPITimeRangesstart
returns the time offset at which a specified time range begins.
... exceptions index_size_err a domexception thrown if the specified index doesn't correspond to an existing range.
TouchEvent - Web APIs
the touch point (or points) that were removed from the surface can be found in the touchlist specified by the changedtouches attribute.
...to override this behavior, you need to set the passive option to false, after which calling preventdefault() will work as specified.
TouchList.identifiedTouch() - Web APIs
the identifiedtouch() method returns the first touch item in the touchlist that matches the specified identifier.
... return value touchitem a touch object matching the specified id.
TouchList - Web APIs
WebAPITouchList
methods touchlist.identifiedtouch() returns the first touch item in the list whose identifier matches a specified value.
... touchlist.item() returns the touch object at the specified index in the list.
TrackDefault.TrackDefault() - Web APIs
if not specified, this value will be an empty string and the sourcebuffer can contain any tracks of the specified type.
... typeerror there are values specified in the kinds array that do not apply to the specified type.
TrackEvent - Web APIs
events based on trackevent are always sent to one of the media track list types: events involving video tracks are always sent to the videotracklist found in htmlmediaelement.videotracks events involving audio tracks are always sent to the audiotracklist specified in htmlmediaelement.audiotracks events affecting text tracks are sent to the texttracklist object indicated by htmlmediaelement.texttracks.
... constructor trackevent() creates and initializes a new trackevent object with the event type specified, as well as optional additional properties.
ULongRange - Web APIs
the ulongrange dictionary is used to define a range of permitted integer values for a property, with either or both a maximum and minimum value specified.
... the specified min and/or and max values are required.
URL.createObjectURL() - Web APIs
the new object url represents the specified file object or blob object.
... return value a domstring containing an object url that can be used to reference the contents of the specified source object.
USB.requestDevice() - Web APIs
WebAPIUSBrequestDevice
the requestdevice() method of the usb interface returns a promise that resolves with an instance of usbdevice if the specified device is found.
...notice that two product ids are specified.
USBDevice - Web APIs
WebAPIUSBDevice
usbdevice.selectalternateinterface() returns a promise that resolves when the specified alternative endpoint is selected.
... usbdevice.selectconfiguration() returns a promise that resolves when the specified configuration is selected.
Using the User Timing API - Web APIs
cleared '" + obj + "' mark(s)", 0); performance.clearmarks(obj); } else { // no argument specified so clear all marks log("...
...cleared '" + obj + "' measure(s)", 1); performance.clearmeasures(obj); } else { // no argument specified so clear all measures log("...
WebGLRenderingContext.enableVertexAttribArray() - Web APIs
the webglrenderingcontext method enablevertexattribarray(), part of the webgl api, turns on the generic vertex attribute array at the specified index into the list of attribute arrays.
... webglrenderingcontext.invalid_value the specified index is invalid; that is, it's greater than or equal to the maximum number of entries permitted in the context's vertex attribute list, as indicated by the value of webglrenderingcontext.max_vertex_attribs.
WebGLRenderingContext.getError() - Web APIs
gl.invalid_enum an unacceptable value has been specified for an enumerated argument.
... gl.invalid_operation the specified command is not allowed for the current state.
WebGLRenderingContext.vertexAttribPointer() - Web APIs
we can call gl.disablevertexattribarray() to tell webgl to use the default value, while calling gl.enablevertexattribarray() will read the values from the array buffer as specified with gl.vertexattribpointer().
...most meshes have the color specified at a per-vertex level, but some meshes are of a uniform shade.
WebGLRenderingContext - Web APIs
webglrenderingcontext.useprogram() uses the specified webglprogram as part the current rendering state.
... drawing buffers webglrenderingcontext.clear() clears specified buffers to preset values.
Basic scissoring - Web APIs
although the clear() drawing command writes the clear color (set by clearcolor()) to all pixels in the drawing buffer, scissor() defines a mask that only allows pixels inside the specified rectangular area to be updated.
...because only fragments within the specified rectangular area successfully pass the scissor test, only pixels inside that area are updated, and we get a rectangle on the screen.
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
async function holdrequested(offer) { try { await peerconnection.setremotedescription(offer); await audiotransceiver.sender.replacetrack(null); audiotransceiver.direction = "recvonly"; await sendanswer(); } catch(err) { /* handle the error */ } } the steps taken here are: set the remote description to the specified offer by calling rtcpeerconnection.setremotedescription().
... async function disablehold(micstream) { await audiotransceiver.sender.replacetrack(micstream.getaudiotracks()[0]); audiotransceiver.receiver.track.enabled = true; audiotransceiver.direction = "sendrecv"; } this reverses the steps taken in enablehold() as follows: the audio transceiver's rtcrtpsender's track is replaced with the specified stream's first audio track.
WebSocket.close() - Web APIs
WebAPIWebSocketclose
if this parameter is not specified, a default value of 1005 is assumed.
... exceptions thrown invalid_access_err an invalid code was specified.
Writing a WebSocket server in C# - Web APIs
you must: obtain the value of the "sec-websocket-key" request header without any leading or trailing whitespace concatenate it with "258eafa5-e914-47da-95ca-c5ab0dc85b11" (a special guid specified by rfc 6455) compute sha-1 and base64 hash of the new value write the hash back as the value of "sec-websocket-accept" response header in an http response if (new system.text.regularexpressions.regex("^get").ismatch(data)) { const string eol = "\r\n"; // http/1.1 defines the sequence cr lf as the end-of-line marker byte[] response = encoding.utf8.getbytes("http/1.1 101 switching pro...
...concatenate it with "258eafa5-e914-47da-95ca-c5ab0dc85b11" (a special guid specified by rfc 6455) // 3.
Writing a WebSocket server in Java - Web APIs
serversocket constructor: serversocket(int port) when you instantiate the serversocket class, it is bound to the port number you specified by the port argument.
... outputstream methods: write(byte[] b, int off, int len) writes len bytes from the specified byte array starting at offset off to this output stream.
Geometry and reference spaces in WebXR - Web APIs
angles angles are specified using radians.
... when it's time to render an animation frame, the callback function specified when you called the webxr session's xrsession object's requestanimationframe() method is invoked.
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
getpose() computes the position of an xrreferencespace relative to the origin of a specified xrspace and then creates a pose representing the resulting position and orientation.
... the only way to obtain a pose that adapts positional information from one space to another is through the xrframe object received by your frame rendering callback function specified when you called the xrsession method requestanimationframe().
Starting up and shutting down a WebXR session - Web APIs
the input value into getoffsetreferencespace() is an xrrigidtransform encapsulating the player's position and orientation as specified in the default world coordinates.
... another common cause for reset events is when a bounded reference space (a reference space whose xrreferencespacetype is bounded-floor) has its geometry as specified by the xrboundedreferencespace's property boundsgeometry change.
Using IIR filters - Web APIs
the iirfilternode interface of the web audio api is an audionode processor that implements a general infinite impulse response (iir) filter; this type of filter can be used to implement tone control devices and graphic equalizers, and the filter response parameters can be specified, so that it can be tuned as needed.
...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.
Visualizations with Web Audio API - Web APIs
the analyser node will then capture audio data using a fast fourier transform (fft) in a certain frequency domain, depending on what you specify as the analysernode.fftsize property value (if no value is specified, the default is 2048.) note: you can also specify a minimum and maximum power value for the fft data scaling range, using analysernode.mindecibels and analysernode.maxdecibels, and different data averaging constants using analysernode.smoothingtimeconstant.
... these methods copy data into a specified array, so you need to create a new array to receive the data before invoking one.
Web Authentication API - Web APIs
the protocol for communicating with the server is not specified and is outside of the scope of the web authentication api.
...the protocol for communicating with the server is not specified and is outside of the scope of the web authentication api.
Web Locks API - Web APIs
await do_something_else_without_lock(); options several options can be passed when requesting a lock: mode: the default mode is "exclusive", but "shared" can be specified.
... ifavailable: if specified, the lock request will fail if the lock cannot be granted immediately without waiting.
window.requestIdleCallback() - Web APIs
functions are generally called in first-in-first-out order; however, callbacks which have a timeout specified may be called out-of-order if necessary in order to run them before the timeout elapses.
...currently only one property is defined: timeout: if timeout is specified and has a positive value, and the callback has not already been called by the time timeout milliseconds have passed, the callback will be called during the next idle period, even if doing so risks causing a negative performance impact.
Window.showModalDialog() - Web APIs
the window.showmodaldialog() created and displayed a modal dialog box containing a specified html document.
... syntax returnval = window.showmodaldialog(uri[, arguments][, options]); returnval holds the returnvalue property as set by the document specified by uri.
Worklet.addModule() - Web APIs
WebAPIWorkletaddModule
aborterror the specified script is invalid or could not be loaded.
... syntaxerror the specified moduleurl is invalid.
Synchronous and asynchronous requests - Web APIs
this is a standard function which uses the xmlhttprequest object asynchronously in order to switch the content of the read file to a specified listener.
...it, in turn, invokes the callback function specified in the invocation of the loadfile function (in this case, the function showmessage) which has been assigned to a property of the xhr object (line 11).
Using XMLHttpRequest - Web APIs
if this argument is true or not specified, the xmlhttprequest is processed asynchronously, otherwise the process is handled synchronously.
... the progress event handler, specified by the updateprogress() function in this example, receives the total number of bytes to transfer as well as the number of bytes transferred so far in the event's total and loaded fields.
XREnvironmentBlendMode - Web APIs
the alpha values specified in the xrsession's renderstate property's baselayer field are ignored since the alpha values for the rendered imagery are all treated as being 1.0 (fully opaque).
...as with the opaque setting, alpha values specified are ignored and treated as if they were 1.0.
XRFrame.getViewerPose() - Web APIs
the getviewerpose() method, a member of the xrframe interface, returns a xrviewerpose object which describes the viewer's pose (position and orientation) relative to the specified reference space.
... return value a xrviewerpose describing the viewer's position and orientation relative to the specified reference space.
XRReferenceSpaceEvent - Web APIs
constructor xrreferencespaceevent() returns a new xrreferencespaceevent with the specified type and configured using the values in the given xrreferencespaceeventinit dictionary.
... transform read only an xrrigidtransform object indicating the position and orientation of the specified referencespace's native origin after the event, defined relative to the coordinate system before the event.
XRRigidTransform.position - Web APIs
the read-only xrrigidtransform property position is a dompointreadonly object which provides the 3d point, specified in meters, describing the translation component of the transform.
...for immersive spaces, the specified space is simply saved for future use.
XRSession.environmentBlendMode - Web APIs
the alpha values specified in the xrsession's renderstate property's baselayer field are ignored since the alpha values for the rendered imagery are all treated as being 1.0 (fully opaque).
...as with the opaque setting, alpha values specified are ignored and treated as if they were 1.0.
XRSystem: isSessionSupported() - Web APIs
the xrsystem method issessionsupported() returns a promise which resolves to true if the specified webxr session mode is supported by the user's webxr device.
... return value a promise that resolves to true if the specified session mode is supported; otherwise the promise resolves to false.
XRSystem: requestSession() - Web APIs
notsupportederror there is no webxr-compatible device available, or the device does not support the specified sessionmode; this can also be thrown if any of the required options are unsupported.
... securityerror permission to enter the specified xr mode is denied.
XRSystem - Web APIs
WebAPIXRSystem
resolves to false if the specified mode isn't supported.
... requestsession() returns a promise that resolves to a new xrsession with the specified xrsessionmode.
XRWebGLLayer.getNativeFramebufferScaleFactor() static method - Web APIs
the static method xrwebgllayer.getnativeframebufferscalefactor() returns a floating-point scaling factor by which one can multiply the specified xrsession's resolution to get the native resolution of the webxr device's frame buffer.
... this information can be used when creating a new xrwebgllayer to configure the xrwebgllayerinit property framebufferscalefactor in the options specified when calling the xrwebgllayer() constructor.
XSLTProcessor - Web APIs
this will make the xsltprocessor use the default value for the parameter as specified in the stylesheet.
...the xsltprocessor will then use the defaults specified in the xslt stylesheet.
-moz-image-region - CSS: Cascading Style Sheets
note: -moz-image-region only works with <image> elements where the icon is specified using list-style-image.
... it will not work with xul <image src="url" />.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax <shape> | autowhere <shape> = rect(<top>, <right>, <bottom>, <left>) examples clipping an image #example-button { /* display only the 4x4 area from the top left of this image */ list-style-image: url("chrome://example/skin/example.png"); -moz-image-region: rect(0px, 4px, 4px, 0px); } #example-button:hover { /* use the 4x4 area to the right of the first for the hovered button */ -moz-image-region: rect(0px, 8px, 4px, 4px); } specifications not part of any standard.
-moz-orient - CSS: Cascading Style Sheets
syntax the -moz-orient property is specified as one of the keyword values chosen from the list below.
... formal definition initial valueinlineapplies toany element; it has an effect on progress and meter, but not on <input type="range"> or other elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax inline | block | horizontal | vertical examples html <p> the following progress meter is horizontal (the default): </p> <progress max="100" value="75"></progress> <p> the following progress meter is vertical: </p> <progress class="vert" max="100" value="75"></progress> css .vert { -moz-orient: vertical; width: 16px; height: 150px; } result ...
-moz-user-focus - CSS: Cascading Style Sheets
initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete note: this property doesn't work for xul <xul:textbox> elements, because the textbox itself never takes focus.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax ignore | normal | select-after | select-before | select-menu | select-same | select-all | none examples html <input class="ignored" value="the user cannot focus on this element."> css .ignored { -moz-user-focus: ignore; } specifications not part of any standard.
-webkit-mask-composite - CSS: Cascading Style Sheets
formal definition initial valuesource-overapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <composite-style>#where <composite-style> = clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor examples compositing with xor .example { -webkit-mask-image: url(mask1.png), url('mask2.png'); -webkit-mask-composite: xor, source-over; } specifications not part...
...this property is specified as mask-composite using different values.
-webkit-mask-repeat-x - CSS: Cascading Style Sheets
formal definition initial valuerepeatapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax repeat | no-repeat | space | round examples using a repeating or non-repeating mask image .exampleone { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-x: repeat; } .exampletwo { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-x: no-repeat; } using multiple mask images you can specify a different <repeat-style> for each mask i...
...mage, separated by commas: .examplethree { -webkit-mask-image: url('mask1.png'), url('mask2.png'); -webkit-mask-repeat-x: repeat, space; } each image is matched with the corresponding repeat style, from first specified to last.
:in-range - CSS: Cascading Style Sheets
WebCSS:in-range
the :in-range css pseudo-class represents an <input> element whose current value is within the range limits specified by the min and max attributes.
... /* selects any <input>, but only when it has a range specified, and its value is inside that range */ input:in-range { background-color: rgba(0, 255, 0, 0.25); } this pseudo-class is useful for giving the user a visual indication that a field's current value is within the permitted limits.
:out-of-range - CSS: Cascading Style Sheets
the :out-of-range css pseudo-class represents an <input> element whose current value is outside the range limits specified by the min and max attributes.
... /* selects any <input>, but only when it has a range specified, and its value is outside that range */ input:out-of-range { background-color: rgba(255, 0, 0, 0.25); } this pseudo-class is useful for giving the user a visual indication that a field's current value is outside the permitted limits.
prefix - CSS: Cascading Style Sheets
if not specified, the default value will be "" (an empty string).
... formal definition related at-rule@counter-styleinitial value"" (the empty string)computed valueas specified formal syntax <symbol>where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
font-family - CSS: Cascading Style Sheets
the font-family css descriptor allows authors to specify the font family for the font specified in an @font-face rule.
... formal definition related at-rule@font-faceinitial valuen/a (required)computed valueas specified formal syntax <family-name>where <family-name> = <string> | <custom-ident>+ examples setting the font family name @font-face { font-family: examplefont; src: url('examplefont.ttf'); } specifications specification status comment css fonts module level 3the definition of 'font-family' in that specification.
font-stretch - CSS: Cascading Style Sheets
the font-stretch css descriptor allows authors to specify a normal, condensed, or expanded face for the fonts specified in the @font-face rule.
... mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.8 | w3c understanding wcag 2.0 formal definition related at-rule@font-faceinitial valuenormalcomputed valueas specified formal syntax <font-stretch-absolute>{1,2}where <font-stretch-absolute> = normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage> examples setting a percentage range for font-stretch the following find a local open sans font or import it, and allow using the font for normal, semi-condensed and semi-ex...
font-style - CSS: Cascading Style Sheets
the font-style css descriptor allows authors to specify font styles for the fonts specified in the @font-face rule.
... formal definition related at-rule@font-faceinitial valuenormalcomputed valueas specified formal syntax normal | italic | oblique <angle>{0,2} examples specifying an italic font style as an example, consider the garamond font family, in its normal form, we get the following result: @font-face { font-family: garamond; src: url('garamond.ttf'); } the italicized version of this text uses the same glyphs present in the unstyled version, but they are artificially sloped by a f...
src - CSS: Cascading Style Sheets
WebCSS@font-facesrc
if a user agent doesn't support the specified formats, it skips downloading the font resource.
... formal definition related at-rule@font-faceinitial valuen/a (required)computed valueas specified formal syntax [ <url> [ format( <string># ) ]?
-ms-high-contrast - CSS: Cascading Style Sheets
high contrast mode is a specialized display mode that prioritizes making content as legible as possible by dynamically replacing foreground and background colors with a user-specified theme.
... syntax the -ms-high-contrast media feature is specified as one of the following values.
forced-colors - CSS: Cascading Style Sheets
usage notes properties affected by forced-color mode in forced colors mode, the values of the following properties are treated as if they have no author-level values specified.
... that is, user-specified values (if any) or browser-specified values are used instead.
height - CSS: Cascading Style Sheets
WebCSS@viewportheight
if the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as 0.max-height: the percentage is calculated with respect to the height of the generated box's containing block.
... if the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as none.computed valueas each of the properties of the shorthand:min-height: the percentage as specified or the absolute lengthmax-height: the percentage as specified or the absolute length or none formal syntax <viewport-length>{1,2}where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting minimum and maximum height @viewport { height: 500px; } specifications specification status comment css device adaptationthe definition of '"height" descriptor' in that specification.
Using CSS animations - CSS: Cascading Style Sheets
if from/0% or to/100% is not specified, the browser starts or finishes the animation using the computed values of all attributes.
... animation-name: fadeinout, moveleft300px, bounce; animation-duration: 2.5s, 5s, 1s; animation-iteration-count: 2, 1, 5; in this third case, there are three animations specified, but only two durations and iteration counts.
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.
...if none are specified, the coordinates of the hotspot are read from the file itself (for cur and xbm files) or are set to the top left corner of the image.
CSS Box Alignment - CSS: Cascading Style Sheets
this fallback alignment is specified individually for each layout method and detailed on the page for that method.
...the safe keyword will align to start in the case of a specified alignment causing an overflow, the aim being to avoid “data loss” where part of the item is outside of the boundaries of the alignment container and can’t be scrolled to.
Basic Concepts of Multicol - CSS: Cascading Style Sheets
after this point no more columns will be drawn, and the extra space is distributed evenly between the existing columns, even if there is enough room for more columns of the specified column-width size.
... when using both properties together you may get fewer columns than specified in the value for column-count.
Line-based placement with CSS Grid - CSS: Cascading Style Sheets
pper"> <div class="box1">one</div> <div class="box2">two</div> <div class="box3">three</div> <div class="box4">four</div> </div> .box1 { grid-column: 1 / 2; grid-row: 1 / 4; } .box2 { grid-column: 3 / 4; grid-row: 1 / 3; } .box3 { grid-column: 2 / 3; grid-row: 1 / 2; } .box4 { grid-column: 2 / 4; grid-row: 3 / 4; } default spans in the above examples i specified every end row and column line, in order to demonstrate the properties, however in practice if an item only spans one track you can omit the grid-column-end or grid-row-end value.
...this means the item will need to span upwards from the specified row line.
Subgrid - CSS: Cascading Style Sheets
the gap properties and subgrid if you have a gap, column-gap, or row-gap specified on the parent, this will be passed into the subgrid, so it will have the same spacing between tracks as the parent.
...if you have four lines in your subgrid, to name them all you could use the syntax grid-template-columns: subgrid [line1] [line2] [line3] [line4] lines specified on the subgrid are added to any lines specified on the parent so you can use either or both.
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).
CSS values and units - CSS: Cascading Style Sheets
the initial keyword represents the value specified as the property’s initial value.
...this type is interpreted as a background-position and therefore specified in the css backgrounds and borders specification.
align-content - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies tomulti-line flex containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | <baseline-position> | <content-distribution> | <overflow-position>?
... candidate recommendation initial definition initial valuenormalapplies tomulti-line flex containersinheritednocomputed valueas specifiedanimation typediscrete ...
animation-direction - CSS: Cascading Style Sheets
note: when you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are.
... formal definition initial valuenormalapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <single-animation-direction>#where <single-animation-direction> = normal | reverse | alternate | alternate-reverse examples see css animations for examples.
animation-fill-mode - CSS: Cascading Style Sheets
note: when you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are.
... formal definition initial valuenoneapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <single-animation-fill-mode>#where <single-animation-fill-mode> = none | forwards | backwards | both examples you can see the effect of animation-fill-mode in the following example.
animation-name - CSS: Cascading Style Sheets
note: when you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are.
... formal definition initial valuenoneapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ none | <keyframes-name> ]#where <keyframes-name> = <custom-ident> | <string> examples see css animations for examples.
animation-play-state - CSS: Cascading Style Sheets
note: when you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are.
... formal definition initial valuerunningapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <single-animation-play-state>#where <single-animation-play-state> = running | paused examples see css animations for examples.
backface-visibility - CSS: Cascading Style Sheets
(this property has no effect on 2d transforms, which have no perspective.) syntax /* keyword values */ backface-visibility: visible; backface-visibility: hidden; /* global values */ backface-visibility: inherit; backface-visibility: initial; backface-visibility: unset; the backface-visibility property is specified as one of the keywords listed below.
... formal definition initial valuevisibleapplies totransformable elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax visible | hidden examples cube with transparent and opaque faces this example shows a cube with transparent faces, and one with opaque faces.
background-color - CSS: Cascading Style Sheets
; /* 50% transparent */ /* hsl value */ background-color: hsl(50, 33%, 25%); /* fully opaque */ background-color: hsla(50, 33%, 25%, 0.75); /* 75% transparent */ /* special keyword values */ background-color: currentcolor; background-color: transparent; /* global values */ background-color: inherit; background-color: initial; background-color: unset; the background-color property is specified as a single <color> value.
...it is rendered behind any background-image that is specified, although the color will still be visible through any transparency in the image.
background-origin - CSS: Cascading Style Sheets
syntax /* keyword values */ background-origin: border-box; background-origin: padding-box; background-origin: content-box; /* global values */ background-origin: inherit; background-origin: initial; background-origin: unset; the background-origin property is specified as one of the keyword values listed below.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <box>#where <box> = border-box | padding-box | content-box examples setting background origins .example { border: 10px double; padding: 10px; background: url('image.jpg'); background-position: center left; background-origin: content-box; } #example2 { border: 4px solid black; padding: 10px; background: url('image.gif'); background-repeat: no-repeat; background-...
border-block-end - CSS: Cascading Style Sheets
values the border-block-end is specified with one or more of the following, in any order: <'border-width'> the width of the border.
... formal definition initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-block-end-color: a colorborder-block-end-style: discreteborder-block-end-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = ...
border-block-start - CSS: Cascading Style Sheets
values the border-block-start is specified with one or more of the following, in any order: <'border-width'> the width of the border.
...-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-style: as each of the properties of the shorthand:border-bottom-style: as specifiedborder-left-style: as specifiedborder-right-style: as specifiedborder-top-style: as specifiedborder-block-start-color: computed coloranimation typeas each of the properties of the shorthand:border-block-start-color: a colorborder-block-start-style: discreteborder-block-start-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | ...
border-block - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: border-block-color border-block-style border-block-width syntax values the border-block is specified with one or more of the following, in any order: <'border-width'> the width of the border.
... formal definition initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-bottom-style - CSS: Cascading Style Sheets
r-bottom-style: hidden; border-bottom-style: dotted; border-bottom-style: dashed; border-bottom-style: solid; border-bottom-style: double; border-bottom-style: groove; border-bottom-style: ridge; border-bottom-style: inset; border-bottom-style: outset; /* global values */ border-bottom-style: inherit; border-bottom-style: initial; border-bottom-style: unset; the border-bottom-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset examples demonstrating all border styles html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 3px; background-color: #52e385; } tr, td...
border-collapse - CSS: Cascading Style Sheets
syntax /* keyword values */ border-collapse: collapse; border-collapse: separate; /* global values */ border-collapse: inherit; border-collapse: initial; border-collapse: unset; the border-collapse property is specified as a single keyword, which may be chosen from the list below.
... formal definition initial valueseparateapplies totable and inline-table elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax collapse | separate examples a colorful table of browser engines html <table class="separate"> <caption><code>border-collapse: separate</code></caption> <tbody> <tr><th>browser</th> <th>layout engine</th></tr> <tr><td class="fx">firefox</td> <td class="gk">gecko</td></tr> <tr><td class="ed">edge</td> <td class="tr">edgehtml</td></tr> <tr><td class="sa">safari</td> <td class="wk">webkit</td></tr> <tr><td class="ch">chrome...
border-inline-end - CSS: Cascading Style Sheets
-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-style: as each of the properties of the shorthand:border-bottom-style: as specifiedborder-left-style: as specifiedborder-right-style: as specifiedborder-top-style: as specifiedborder-inline-end-color: computed coloranimation typeas each of the properties of the shorthand:border-inline-end-color: a colorborder-inline-end-style: discreteborder-inline-end-width: a length values the border-inline-end is specified with one or more of the following, in any order: <'border-width'>...
...-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-style: as each of the properties of the shorthand:border-bottom-style: as specifiedborder-left-style: as specifiedborder-right-style: as specifiedborder-top-style: as specifiedborder-inline-end-color: computed coloranimation typeas each of the properties of the shorthand:border-inline-end-color: a colorborder-inline-end-style: discreteborder-inline-end-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl...
border-inline-start-style - CSS: Cascading Style Sheets
initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete values <'border-style'> the line style of the border.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-inline-start-style: dashed; } specifications specification status comment css logical properties and values level 1the definition of 'border-inline-start-style' in that specification.
border-inline-start - CSS: Cascading Style Sheets
values the border-inline-start is specified with one or more of the following, in any order: <'border-width'> the width of the border.
...-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-style: as each of the properties of the shorthand:border-bottom-style: as specifiedborder-left-style: as specifiedborder-right-style: as specifiedborder-top-style: as specifiedborder-inline-start-color: computed coloranimation typeas each of the properties of the shorthand:border-inline-start-color: a colorborder-inline-start-style: discreteborder-inline-start-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()...
border-inline - CSS: Cascading Style Sheets
initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete constituent properties this property is a shorthand for the following css properties: border-inline-color border-inline-style border-inline-width syntax values the border-inline is specified with one or more of the following, in any order: <'border-width'> the width of the border.
... formal definition initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-left-style - CSS: Cascading Style Sheets
er-left-style: none; border-left-style: hidden; border-left-style: dotted; border-left-style: dashed; border-left-style: solid; border-left-style: double; border-left-style: groove; border-left-style: ridge; border-left-style: inset; border-left-style: outset; /* global values */ border-left-style: inherit; border-left-style: initial; border-left-style: unset; the border-left-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset examples html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 2px; background-color: #52e385; } tr, td { padding: 3px; } /* border-l...
border-right-style - CSS: Cascading Style Sheets
: none; border-right-style: hidden; border-right-style: dotted; border-right-style: dashed; border-right-style: solid; border-right-style: double; border-right-style: groove; border-right-style: ridge; border-right-style: inset; border-right-style: outset; /* global values */ border-right-style: inherit; border-right-style: initial; border-right-style: unset; the border-right-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset examples border styles html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 2px; background-color: #52e385; } tr, td { padding: 3px;...
border - CSS: Cascading Style Sheets
WebCSSborder
ent properties this property is a shorthand for the following css properties: border-color border-style border-width syntax /* style */ border: solid; /* width | style */ border: 2px dotted; /* style | color */ border: outset #f33; /* width | style | color */ border: medium dashed green; /* global values */ border: inherit; border: initial; border: unset; the border property may be specified using one, two, or three of the values listed below.
...-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-style: as each of the properties of the shorthand:border-bottom-style: as specifiedborder-left-style: as specifiedborder-right-style: as specifiedborder-top-style: as specifiedborder-color: as each of the properties of the shorthand:border-bottom-color: computed colorborder-left-color: computed colorborder-right-color: computed colorborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-color: as each of the properties of the shorthand:bo...
bottom - CSS: Cascading Style Sheets
WebCSSbottom
when both top and bottom are specified, position is set to absolute or fixed, and height is unspecified (either auto or 100%) both the top and bottom distances are respected.
... formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the height of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples absolute and fixed positioning this example demonstrates the difference in behavior of the bottom property, when position is absolute versus fixed.
box-direction - CSS: Cascading Style Sheets
/* keyword values */ box-direction: normal; box-direction: reverse; /* global values */ box-direction: inherit; box-direction: initial; box-direction: unset; syntax the box-direction property is specified as one of the keyword values listed below.
... formal definition initial valuenormalapplies toelements with a css display value of box or inline-boxinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | reverse | inherit examples setting box direction .example { /* bottom-to-top layout */ -moz-box-direction: reverse; /* mozilla */ -webkit-box-direction: reverse; /* webkit */ box-direction: reverse; /* as specified */ } specifications not part of any standard.
box-flex-group - CSS: Cascading Style Sheets
syntax the box-flex-group property is specified as any positive <integer>.
... formal definition initial value1applies toin-flow children of box elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <integer> examples simple usage example in the original flexbox spec, box-flex-group could be used to assign flex children to different groups to distribute flexible space between: article:nth-child(1) { -webkit-box-flex-group: 1; } article:nth-child(2) { -webkit-box-flex-group: 2; } this was only ever supported in webkit-based browsers, with a prefix, and in subsequent versions of the spec this functionality does not have an equivalent.
box-flex - CSS: Cascading Style Sheets
WebCSSbox-flex
/* <number> values */ -moz-box-flex: 0; -moz-box-flex: 2; -moz-box-flex: 3.5; -webkit-box-flex: 0; -webkit-box-flex: 2; -webkit-box-flex: 3.5; /* global values */ -moz-box-flex: inherit; -moz-box-flex: initial; -moz-box-flex: unset; -webkit-box-flex: inherit; -webkit-box-flex: initial; -webkit-box-flex: unset; syntax the box-flex property is specified as a <number>.
... formal definition initial value0applies toelements that are direct children of an element with a css display value of -moz-box or -moz-inline-box or -webkit-box or -webkit-inline-boxinheritednocomputed valueas specifiedanimation typediscrete formal syntax <number> examples setting box-flex <!doctype html> <html> <head> <title>-moz-box-flex example</title> <style> div.example { display: -moz-box; display: -webkit-box; border: 1px solid black; width: 100%; } div.example > p:nth-child(1) { -moz-box-flex: 1; /* mozilla */ -webkit-...
box-ordinal-group - CSS: Cascading Style Sheets
syntax the box-ordinal-group property is specified as any positive <integer>.
... formal definition initial value1applies tochildren of box elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <integer> examples basic usage example in an older version of the spec, box-ordinal-group was included to allow you to change the display order of flex children inside a flex container: article:nth-child(1) { -webkit-box-ordinal-group: 2 -moz-box-ordinal-group: 2 box-ordinal-group: 2 } article:nth-child(2) { -webkit-box-ordinal-group: 1 -moz-box-ordinal-group: 1 box-ordinal-group: 1 } the modern flexbox equivalent is order.
box-pack - CSS: Cascading Style Sheets
WebCSSbox-pack
syntax the box-pack property is specified as one of the keyword values listed below.
... formal definition initial valuestartapplies toelements with a css display value of -moz-box, -moz-inline-box, -webkit-box or -webkit-inline-boxinheritednocomputed valueas specifiedanimation typediscrete formal syntax start | center | end | justify examples div.example { border-style: solid; display: -moz-box; /* mozilla */ display: -webkit-box; /* webkit */ /* make this box taller than the children, so there is room for the box-pack */ height: 300px; /* make this box wide enough to show the contents are centered horizontally */ width: 300px; ...
break-after - CSS: Cascading Style Sheets
syntax the break-after property is specified as one of the keyword values from the list below.
... formal definition initial valueautoapplies toblock-level elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region examples breaking into neat columns in the following example we have a container that contains an <h1> spanning all columns (achieved using column-span: all) and a series of <h2>s and paragraphs laid out in multiple columns using c...
break-before - CSS: Cascading Style Sheets
syntax the break-before property is specified as one of the keyword values from the list below.
... formal definition initial valueautoapplies toblock-level elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region examples breaking into neat columns in the following example we have a container that contains an <h1> spanning all columns (achieved using column-span: all) and a series of <h2>s and paragraphs laid out in multiple columns using c...
break-inside - CSS: Cascading Style Sheets
syntax the break-inside property is specified as one of the keyword values from the list below.
...a subset of values should be aliased as follows: page-break-inside break-inside auto auto avoid avoid formal definition initial valueautoapplies toblock-level elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | avoid | avoid-page | avoid-column | avoid-region examples avoiding breaking inside a figure in the following example we have a container that contains an <h1> spanning all columns (achieved using column-span: all) and a series of paragraphs laid out in multiple columns using column-width: 200px.
color-adjust - CSS: Cascading Style Sheets
usage notes there are a number of reasons a browser might wish to deviate from the specified appearance, such as: the content uses text and background colors that will be too similar on the output device for legibility purposes.
... formal definition initial valueeconomyapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax economy | exact examples preserving low contrast in this example, a box is shown which uses a background-image and a translucent linear-gradient() function atop a black background color to have a dark blue gradient behind medium red text.
<color> - CSS: Cascading Style Sheets
syntax the <color> data type is specified using one of the options listed below.
...when written as a unitless <number>, it is interpreted as degrees, as specified in css color module level 3.
column-count - CSS: Cascading Style Sheets
the column-count css property breaks an element's content into the specified number of columns.
... formal definition initial valueautoapplies toblock containers except table wrapper boxesinheritednocomputed valueas specifiedanimation typean integer formal syntax <integer> | auto examples splitting a paragraph across three columns html <p class="content-box"> this is a bunch of text split into three columns using the css `column-count` property.
column-fill - CSS: Cascading Style Sheets
syntax /* keyword values */ column-fill: auto; column-fill: balance; column-fill: balance-all; /* global values */ column-fill: inherit; column-fill: initial; column-fill: unset; the column-fill property is specified as one of the keyword values listed below.
... formal definition initial valuebalanceapplies tomulticol elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | balance | balance-all examples splitting text evenly across columns html <p class="content-box"> this is a bunch of text split into multiple columns.
column-rule-style - CSS: Cascading Style Sheets
mn-rule-style: none; column-rule-style: hidden; column-rule-style: dotted; column-rule-style: dashed; column-rule-style: solid; column-rule-style: double; column-rule-style: groove; column-rule-style: ridge; column-rule-style: inset; column-rule-style: outset; /* global values */ column-rule-style: inherit; column-rule-style: initial; column-rule-style: unset; the column-rule-style property is specified as a single <'border-style'> value.
... formal definition initial valuenoneapplies tomulticol elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-style'> examples setting a dashed column rule html <p>this is a bunch of text split into three columns.
column-span - CSS: Cascading Style Sheets
syntax the column-span property is specified as one of the keyword values listed below.
... formal definition initial valuenoneapplies toin-flow block-level elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | all examples making a heading span columns in this example, the heading is made to span across all the columns of the article.
columns - CSS: Cascading Style Sheets
WebCSScolumns
nstituent properties this property is a shorthand for the following css properties: column-count column-width syntax /* column width */ columns: 18em; /* column count */ columns: auto; columns: 2; /* both column width and count */ columns: 2 auto; columns: auto 12em; columns: auto auto; /* global values */ columns: inherit; columns: initial; columns: unset; the columns property may be specified as one or two of the values listed below, in any order.
... 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.
conic-gradient() - CSS: Cascading Style Sheets
a conic gradient is specified by indicating a rotation angle, the center of the gradient, and then specifying a list of color-stops.
... unlike linear and radial gradients, whose color-stops are placed by specifying a length, the color-stops of a conic gradient are specified with an angle.
contain - CSS: Cascading Style Sheets
WebCSScontain
syntax /* keyword values */ contain: none; contain: strict; contain: content; contain: size; contain: layout; contain: style; contain: paint; /* multiple keywords */ contain: size paint; contain: size layout paint; /* global values */ contain: inherit; contain: initial; contain: unset; the contain property is specified as either one of the following: using a single none, strict, or content keyword.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | strict | content | [ size | layout | style | paint ] examples simple layout the markup below consists of a number of articles, each with content: <h1>my blog</h1> <article> <h2>heading of a nice article</h2> <p>content here.</p> </article> <article> <h2>another heading of another article</h2> <img src="graphic.jpg" alt="photo"> <p>more co...
counters() - CSS: Cascading Style Sheets
WebCSScounters
the generated text is the value of all counters with the given name, from outermost to innermost, separated by the specified string.
... the counters are rendered in the style indicated, defaulting to decimal if no style is specified.
Adapting to the new two-value syntax of display - CSS: Cascading Style Sheets
to deal with single values of display the specification explains what to do if only the outer value of block or inline is used: "if a <display-outside> value is specified but <display-inside> is omitted, the element’s inner display type defaults to flow." this means that the behavior is exactly as it is in a single value world.
... if only an inner value of flex, grid, or flow-root is specified then the specification explains that the outer value should be set to block: "if a <display-inside> value is specified but <display-outside> is omitted, the element’s outer display type defaults to block—except for ruby, which defaults to inline." finally, we have some legacy pre-composed inline-level values of: inline-block inline-table inline-flex inline-grid if a supporting browser comes across these as single values then it treats them the same as the two-value versions: inline flow-root inline table inline flex inline grid so all of the current situations are neatly c...
empty-cells - CSS: Cascading Style Sheets
syntax /* keyword values */ empty-cells: show; empty-cells: hide; /* global values */ empty-cells: inherit; empty-cells: initial; empty-cells: unset; the empty-cells property is specified as one of the keyword values listed below.
... formal definition initial valueshowapplies totable-cell elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax show | hide example showing and hiding empty table cells html <table class="table_1"> <tr> <td>moe</td> <td>larry</td> </tr> <tr> <td>curly</td> <td></td> </tr> </table> <br> <table class="table_2"> <tr> <td>moe</td> <td>larry</td> </tr> <tr> <td>curly</td> <td></td> </tr> </table> css .table_1 { empty-cells: show; } .table_2 { empty-cells: hide; } td, th { border: 1px solid gray; padding: 0.5rem; } result specifications specification status comment ...
flex-basis - CSS: Cascading Style Sheets
ax /* specify <'width'> */ flex-basis: 10em; flex-basis: 3px; flex-basis: auto; /* intrinsic sizing keywords */ flex-basis: fill; flex-basis: max-content; flex-basis: min-content; flex-basis: fit-content; /* automatically size based on the flex item’s content */ flex-basis: content; /* global values */ flex-basis: inherit; flex-basis: initial; flex-basis: unset; the flex-basis property is specified as either the keyword content or a <'width'>.
... formal definition initial valueautoapplies toflex items, including in-flow pseudo-elementsinheritednopercentagesrefer to the flex container's inner main sizecomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea length, percentage or calc(); formal syntax content | <'width'> examples setting flex item initial sizes html <ul class="container"> <li class="flex flex1">1: flex-basis test</li> <li class="flex flex2">2: flex-basis test</li> <li class="flex flex3">3: flex-basis test</li> <li class="flex flex4">4: flex-basis ...
flex-grow - CSS: Cascading Style Sheets
WebCSSflex-grow
syntax /* <number> values */ flex-grow: 3; flex-grow: 0.6; /* global values */ flex-grow: inherit; flex-grow: initial; flex-grow: unset; the flex-grow property is specified as a single <number>.
... formal definition initial value0applies toflex items, including in-flow pseudo-elementsinheritednocomputed valueas specifiedanimation typea number formal syntax <number> examples setting flex item grow factor html <h4>this is a flex-grow</h4> <h5>a,b,c and f are flex-grow:1 .
flex-shrink - CSS: Cascading Style Sheets
syntax /* <number> values */ flex-shrink: 2; flex-shrink: 0.6; /* global values */ flex-shrink: inherit; flex-shrink: initial; flex-shrink: unset; the flex-shrink property is specified as a single <number>.
... formal definition initial value1applies toflex items, including in-flow pseudo-elementsinheritednocomputed valueas specifiedanimation typea number formal syntax <number> examples setting flex item shrink factor html <p>the width of content is 500px; the flex-basis of the flex items is 120px.</p> <p>a, b, c have flex-shrink:1 set.
flex - CSS: Cascading Style Sheets
WebCSSflex
, unitless number: flex-grow */ flex: 2; /* one value, width/height: flex-basis */ flex: 10em; flex: 30%; flex: min-content; /* two values: flex-grow | flex-basis */ flex: 1 30px; /* two values: flex-grow | flex-shrink */ flex: 2 2; /* three values: flex-grow | flex-shrink | flex-basis */ flex: 2 2 10%; /* global values */ flex: inherit; flex: initial; flex: unset; the flex property may be specified using one, two, or three values.
... formal definition initial valueas each of the properties of the shorthand:flex-grow: 0flex-shrink: 1flex-basis: autoapplies toflex items, including in-flow pseudo-elementsinheritednocomputed valueas each of the properties of the shorthand:flex-grow: as specifiedflex-shrink: as specifiedflex-basis: as specified, but with relative lengths converted into absolute lengthsanimation typeas each of the properties of the shorthand:flex-grow: a numberflex-shrink: a numberflex-basis: a length, percentage or calc(); formal syntax none | [ <'flex-grow'> <'flex-shrink'>?
font-kerning - CSS: Cascading Style Sheets
in the image below, for instance, the examples on the left do not use kerning, while the ones on the right do: syntax the font-kerning property is specified as one of the keyword values listed below.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | normal | none examples enabling and disabling kerning html <div id="kern"></div> <div id="nokern"></div> <textarea id="input">av t.
font-stretch - CSS: Cascading Style Sheets
ensed; font-stretch: condensed; font-stretch: semi-condensed; font-stretch: normal; font-stretch: semi-expanded; font-stretch: expanded; font-stretch: extra-expanded; font-stretch: ultra-expanded; /* percentage values */ font-stretch: 50%; font-stretch: 100%; font-stretch: 200%; /* global values */ font-stretch: inherit; font-stretch: initial; font-stretch: unset; syntax this property may be specified as a single keyword value or a single <percentage> value.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typea font stretch formal syntax <font-stretch-absolute>where <font-stretch-absolute> = normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage> examples setting font stretch percentages note that this example will only work in browsers that support <percentage> values.
font-variant-caps - CSS: Cascading Style Sheets
syntax /* keyword values */ font-variant-caps: normal; font-variant-caps: small-caps; font-variant-caps: all-small-caps; font-variant-caps: petite-caps; font-variant-caps: all-petite-caps; font-variant-caps: unicase; font-variant-caps: titling-caps; /* global values */ font-variant-caps: inherit; font-variant-caps: initial; font-variant-caps: unset; the font-variant-caps property is specified using a single keyword value from the list below.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps examples setting the small-caps font variant html <p class="small-caps">firefox rocks, small caps!</p> <p class="normal">firefox rocks, normal caps!</p> css .small-caps { font-variant-caps: small-caps; font-style: italic; } .normal { font-variant-caps: n...
font-variant-ligatures - CSS: Cascading Style Sheets
variant-ligatures: no-historical-ligatures; /* <historical-lig-values> */ font-variant-ligatures: contextual; /* <contextual-alt-values> */ font-variant-ligatures: no-contextual; /* <contextual-alt-values> */ /* global values */ font-variant-ligatures: inherit; font-variant-ligatures: initial; font-variant-ligatures: unset; the font-variant-ligatures property is specified as one of the keyword values listed below.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]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 ]<contex...
font-variant-position - CSS: Cascading Style Sheets
syntax the font-variant-position property is specified as one of the keyword values listed below.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | sub | super examples setting superscript and subscript forms html <p class="normal">normal!</p> <p class="super">super!</p> <p class="sub">sub!</p> css p { display: inline; } .normal { font-variant-position: normal; } .super { font-variant-position: super; } .sub { font-variant-position: sub; } result specifications s...
grid-auto-columns - CSS: Cascading Style Sheets
as a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track.
... formal definition initial valueautoapplies togrid containersinheritednopercentagesrefer to corresponding dimension of the content areacomputed valuethe percentage as specified or the absolute lengthanimation typediscrete formal syntax <track-size>+where <track-size> = <track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )where <track-breadth> = <length-percentage> | <flex> | min-content | max-content | auto<inflexible-breadth> = <length> | <percentage> | min-content | max-content | autowhere <length-percentage> = <length> | <percentage> examples setting grid column size html <div id="grid"> <div id="item1"><...
grid-auto-rows - CSS: Cascading Style Sheets
as a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track.
... formal definition initial valueautoapplies togrid containersinheritednopercentagesrefer to corresponding dimension of the content areacomputed valuethe percentage as specified or the absolute lengthanimation typediscrete formal syntax <track-size>+where <track-size> = <track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )where <track-breadth> = <length-percentage> | <flex> | min-content | max-content | auto<inflexible-breadth> = <length> | <percentage> | min-content | max-content | autowhere <length-percentage> = <length> | <percentage> examples setting grid row size html <div id="grid"> <div id="item1"></di...
hanging-punctuation - CSS: Cascading Style Sheets
uation: first allow-end; hanging-punctuation: first last; hanging-punctuation: last force-end; hanging-punctuation: last allow-end; /* three keywords */ hanging-punctuation: first force-end last; hanging-punctuation: first allow-end last; /* global values */ hanging-punctuation: inherit; hanging-punctuation: initial; hanging-punctuation: unset; syntax the hanging-punctuation property may be specified with one, two, or three values.
... formal definition initial valuenoneapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | [ first | [ force-end | allow-end ] | last ] examples setting opening and closing quotes to hang html <p>“lorem ipsum dolor sit amet, consectetur adipiscing elit.
image-rendering - CSS: Cascading Style Sheets
for example, if the natural size of an image is 100×100px, but its actual dimensions are 200×200px (or 50×50px), then the image will be upscaled (or downscaled) using the algorithm specified by image-rendering.
... formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | crisp-edges | pixelated examples setting image scaling algorithms in practical use, the pixelated and crisp-edges rules can be combined to provide some fallback for each other.
image() - CSS: Cascading Style Sheets
the image() css function defines an <image> in a similar fashion to the <url> function, but with added functionality including specifying the image's directionality, specifying fallback images for when the preferred image is not supported, displaying just a part of that image defined by a media fragment, and specifying a solid color as a fallback in case none of the specified images are able to be rendered.
... color fallback if a color is specified in image() along with your image sources, it acts as a fallback if the images are invalid and do not appear.
ime-mode - CSS: Cascading Style Sheets
WebCSSime-mode
syntax the ime-mode property is specified using one of the keyword values listed below.
... formal definition initial valueautoapplies totext fieldsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | normal | active | inactive | disabled examples disabling input method support this example disables input method support for a form field.
isolation - CSS: Cascading Style Sheets
WebCSSisolation
syntax /* keyword values */ isolation: auto; isolation: isolate; /* global values */ isolation: inherit; isolation: initial; isolation: unset; the isolation property is specified as one of the keyword values listed below.
...in svg, it applies to container elements, graphics elements, and graphics referencing elements.inheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | isolate examples forcing a new stacking context for an element html <div id="b" class="a"> <div id="d"> <div class="a c">auto</div> </div> <div id="e"> <div class="a c">isolate</div> </div> </div> css .a { background-color: rgb(0,255,0); } #b { width: 200px; height: 210px; } .c { width: 100px; height: 100px; border: 1px solid black; padding: 2px; mix-blend-mod...
left - CSS: Cascading Style Sheets
WebCSSleft
if the element cannot stretch to satisfy both, the position of the element is overspecified.
... formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the width of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples positioning elements html <div id="wrap"> <div id="example_1"> <pre> position: absolute; left: 20px; top: 20px; </pre> <p>the only containing element for this div is the main window, so it positions itself in relation to it.</p> </div> ...
line-height-step - CSS: Cascading Style Sheets
/* point values */ line-height-step: 18pt; syntax the line-height-step property is specified as any one of the following: a <length>.
... values <length> the specified <length> is used in the calculation of the line box height step.
linear-gradient() - CSS: Cascading Style Sheets
if specified, it consists of the word to and up to two keywords: one indicates the horizontal side (left or right), and the other the vertical side (top or bottom).
...if unspecified, it defaults to to bottom.
list-style-position - CSS: Cascading Style Sheets
syntax /* keyword values */ list-style-position: inside; list-style-position: outside; /* global values */ list-style-position: inherit; list-style-position: initial; list-style-position: unset; the list-style-position property is specified as one of the keyword values listed below.
... formal definition initial valueoutsideapplies tolist itemsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax inside | outside examples setting list item position html <ul class="inside">list 1 <li>list item 1-1</li> <li>list item 1-2</li> <li>list item 1-3</li> <li>list item 1-4</li> </ul> <ul class="outside">list 2 <li>list item 2-1</li> <li>list item 2-2</li> <li>list item 2-3</li> <li>list item 2-4</li> </ul> <ul class="inside-img">list 3 <li>list item 3-1</li> <li>list item 3-2</li> <li>list item 3-3</li> <li>list item 3-4</li> </ul> css .inside { list-style-position: inside; list-style-typ...
list-style-type - CSS: Cascading Style Sheets
<string> the specified string will be used as the item's marker.
... ul { list-style: none; } ul li::before { content: "\200b"; } voiceover and list-style-type: none – unfettered thoughts mdn understanding wcag, guideline 1.3 explanations understanding success criterion 1.3.1 | w3c understanding wcag 2.0 formal definition initial valuediscapplies tolist itemsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax <counter-style> | <string> | nonewhere <counter-style> = <counter-style-name> | symbols()where <counter-style-name> = <custom-ident> examples setting list item markers html list 1 <ol class="normal"> <li>hello</li> <li>world</li> <li>what's up?</li> </ol> list 2 <ol class="shortcut"> <li>looks</li> <li>like</li> <li>the</li> <li>same</li> <...
list-style - CSS: Cascading Style Sheets
*/ list-style: square; /* image */ list-style: url('../img/shape.png'); /* position */ list-style: inside; /* type | position */ list-style: georgian inside; /* type | image | position */ list-style: lower-roman url('../img/shape.png') outside; /* keyword value */ list-style: none; /* global values */ list-style: inherit; list-style: initial; list-style: unset; the list-style property is specified as one, two, or three keywords in any order.
...anations understanding success criterion 1.3.1 | w3c understanding wcag 2.0 formal definition initial valueas each of the properties of the shorthand:list-style-type: disclist-style-position: outsidelist-style-image: noneapplies tolist itemsinheritedyescomputed valueas each of the properties of the shorthand:list-style-image: none or the image with its uri made absolutelist-style-position: as specifiedlist-style-type: as specifiedanimation typediscrete formal syntax <'list-style-type'> | <'list-style-position'> | <'list-style-image'> examples setting list style type and position html list 1 <ul class="one"> <li>list item1</li> <li>list item2</li> <li>list item3</li> </ul> list 2 <ul class="two"> <li>list item a</li> <li>list item b</li> <li>list item c</li> </ul> css .one {...
margin-bottom - CSS: Cascading Style Sheets
syntax /* <length> values */ margin-bottom: 10px; /* an absolute length */ margin-bottom: 1em; /* relative to the text size */ margin-bottom: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-bottom: auto; /* global values */ margin-bottom: inherit; margin-bottom: initial; margin-bottom: unset; the margin-bottom property is specified as the keyword auto, or a <length>, or a <percentage>.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> | auto examples setting positive and negative bottom margins html <div class="container"> <div class="box0">box 0</div> <div class="box1">box 1</div> <div class="box2">box one's negative margin pulls me up</div> </div> css css for divs to set margin-bottom and height .box0 { margin-bottom:1em; heig...
margin-inline - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typediscrete formal syntax <'margin-left'>{1,2} examples setting inline start and end margins html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertica...
... initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typediscrete ...
margin-right - CSS: Cascading Style Sheets
syntax /* <length> values */ margin-right: 20px; /* an absolute length */ margin-right: 1em; /* relative to the text size */ margin-right: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-right: auto; /* global values */ margin-right: inherit; margin-right: initial; margin-right: unset; the margin-right property is specified as the keyword auto, or a <length>, or a <percentage>.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> | auto examples setting right margin using pixels and percentages .content { margin-right: 5%; } .sidebox { margin-right: 10px; } .logo { margin-right: -5px; } specifications specification status comment css basic box modelthe definition of 'margin-right' in that specification...
margin-top - CSS: Cascading Style Sheets
syntax /* <length> values */ margin-top: 10px; /* an absolute length */ margin-top: 1em; /* relative to the text size */ margin-top: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-top: auto; /* global values */ margin-top: inherit; margin-top: initial; margin-top: unset; the margin-top property is specified as the keyword auto, or a <length>, or a <percentage>.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> | auto examples setting positive and negative top margins .content { margin-top: 5%; } .sidebox { margin-top: 10px; } .logo { margin-top: -5px; } #footer { margin-top: 1em; } specifications specification status comment css basic box modelthe definition of 'margin-top' in t...
mask-clip - CSS: Cascading Style Sheets
WebCSSmask-clip
if a viewbox attribute is specified for the element creating the svg viewport, the reference box is positioned at the origin of the coordinate system established by the viewbox attribute and the dimension of the reference box is set to the width and height values of the viewbox attribute.
... formal definition initial valueborder-boxapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ <geometry-box> | no-clip ]#where <geometry-box> = <shape-box> | fill-box | stroke-box | view-boxwhere <shape-box> = <box> | margin-boxwhere <box> = border-box | padding-box | content-box examples clipping a mask to the border box css #masked { width: 100px; height: 100px; background-color: #8cffa0; margin: 20px; border: 20px solid #8ca0ff; pa...
mask-mode - CSS: Cascading Style Sheets
WebCSSmask-mode
/* keyword values */ mask-mode: alpha; mask-mode: luminance; mask-mode: match-source; /* multiple values */ mask-mode: alpha, match-source; /* global values */ mask-mode: inherit; mask-mode: initial; mask-mode: unset; syntax the mask-mode property is specified as one or more of the keyword values listed below, separated by commas.
... formal definition initial valuematch-sourceapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <masking-mode>#where <masking-mode> = alpha | luminance | match-source examples using alpha mask mode css #masked { width: 227px; height: 200px; background: blue linear-gradient(red, blue); mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg); mask-mode: alpha; /* can be changed in the live sample */ } html <div id="masked"> </di...
mask-type - CSS: Cascading Style Sheets
WebCSSmask-type
syntax the mask-type property is specified as one of the keyword values listed below.
... formal definition initial valueluminanceapplies to<mask> elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax luminance | alpha examples setting an alpha mask html <div class="redsquare"></div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0"> <defs> <mask id="m" maskcontentunits="objectboundingbox" style="mask-type:alpha"> <rect x=".1" y=".1" width=".8" height=".8" ...
mask - CSS: Cascading Style Sheets
WebCSSmask
e: automask-composite: addapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercentagesas each of the properties of the shorthand:mask-position: refer to size of mask painting area minus size of mask layer image (see the text for background-position)computed valueas each of the properties of the shorthand:mask-image: as specified, but with <url> values made absolutemask-mode: as specifiedmask-repeat: consists of two keywords, one per dimensionmask-position: consists of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentage.mask-clip: as specifiedmask-origin: as specifiedmask-size: as specified, but with relative lengths conve...
...rted into absolute lengthsmask-composite: as specifiedanimation typeas each of the properties of the shorthand:mask-image: discretemask-mode: discretemask-repeat: discretemask-position: repeatable list of simple list of length, percentage, or calcmask-clip: discretemask-origin: discretemask-size: repeatable list of simple list of length, percentage, or calcmask-composite: discretecreates stacking contextyes formal syntax <mask-layer>#where <mask-layer> = <mask-reference> | <position> [ / <bg-size> ]?
offset-position - CSS: Cascading Style Sheets
: 0 0; offset-position: 1cm 2cm; offset-position: 10ch 8em; /* edge offsets values */ offset-position: bottom 10px right 20px; offset-position: right 3em bottom 10px; offset-position: bottom 10px right; offset-position: top right 10px; /* global values */ offset-position: inherit; offset-position: initial; offset-position: unset; values auto the initial position is the position of the box specified by the position property.
...if only one value is specified, the second value is assumed to be center.
offset-rotate - CSS: Cascading Style Sheets
<angle> the element has a constant clockwise rotation transformation applied to it by the specified rotation angle.
... formal definition initial valueautoapplies totransformable elementsinheritednocomputed valueas specifiedanimation typeas <angle>, <basic-shape> or <path()> formal syntax [ auto | reverse ] | <angle> examples setting element orientation along its offset path html <div></div> <div></div> <div></div> css div { width: 40px; height: 40px; background: #2bc4a2; margin: 20px; clip-path: polygon(0% 0%, 70% 0%, 100% 50%, 70% 100%, 0% 100%, 30% 50%); animation: move 5000ms infinite alternate ease-in-out; offset-...
order - CSS: Cascading Style Sheets
WebCSSorder
flexbox & the keyboard navigation disconnect — tink source order matters | adrian roselli mdn understanding wcag, guideline 1.3 explanations understanding success criterion 1.3.2 | w3c understanding wcag 2.0 formal definition initial value0applies toflex items and absolutely-positioned flex container childreninheritednocomputed valueas specifiedanimation typean integer formal syntax <integer> examples ordering items in a flex container this example uses css to create a classic two-sidebar layout surrounding a content block.
... candidate recommendation initial definition initial value0applies toflex items and absolutely-positioned flex container childreninheritednocomputed valueas specifiedanimation typean integer ...
outline-color - CSS: Cascading Style Sheets
syntax /* <color> values */ outline-color: #f92525; outline-color: rgb(30,222,121); outline-color: blue; /* keyword value */ outline-color: invert; /* global values */ outline-color: inherit; outline-color: initial; outline-color: unset; the outline-color property is specified as any one of the values listed below.
... values <color> the color of the outline, specified as a <color>.
outline-style - CSS: Cascading Style Sheets
syntax /* keyword values */ outline-style: auto; outline-style: none; outline-style: dotted; outline-style: dashed; outline-style: solid; outline-style: double; outline-style: groove; outline-style: ridge; outline-style: inset; outline-style: outset; /* global values */ outline-style: inherit; outline-style: initial; outline-style: unset; the outline-style property is specified as any one of the values listed below.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | <'border-style'> examples setting outline style to auto the auto value indicates a custom outline style — typically a style [that] is either a user interface default for the platform, or perhaps a style that is richer than can be described in detail in css, e.g.
outline - CSS: Cascading Style Sheets
WebCSSoutline
erties this property is a shorthand for the following css properties: outline-color outline-style outline-width syntax /* style */ outline: solid; /* color | style */ outline: #f66 dashed; /* style | width */ outline: inset thick; /* color | style | width */ outline: green solid 3px; /* global values */ outline: inherit; outline: initial; outline: unset; the outline property may be specified using one, two, or three of the values listed below.
...the transparent keyword maps to rgba(0,0,0,0).outline-width: an absolute length; if the keyword none is specified, the computed value is 0outline-style: as specifiedanimation typeas each of the properties of the shorthand:outline-color: a coloroutline-width: a lengthoutline-style: discrete formal syntax [ <'outline-color'> | <'outline-style'> | <'outline-width'> ] examples using outline to set a focus style html <a href="#">this link has a special focus style.</a> css a { border: 1px solid; bord...
overflow-inline - CSS: Cascading Style Sheets
syntax /* keyword values */ overflow-inline: visible; overflow-inline: hidden; overflow-inline: scroll; overflow-inline: auto; /* global values */ overflow-inline: inherit; overflow-inline: initial; overflow-inline: unset; the overflow-inline property is specified as a single keyword chosen from the list of values below.
... formal definition initial valueautoapplies toblock-containers, flex containers, and grid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples setting inline overflow behavior html <ul> <li><code>overflow-inline:hidden</code> — hides the text outside the box <div id="div1"> abcdefghijklmopqrstuvwxyzabcdefghij...
overflow-x - CSS: Cascading Style Sheets
syntax /* keyword values */ overflow-x: visible; overflow-x: hidden; overflow-x: clip; overflow-x: scroll; overflow-x: auto; /* global values */ overflow-x: inherit; overflow-x: initial; overflow-x: unset; the overflow-x property is specified as a single keyword chosen from the list of values below.
... formal definition initial valuevisibleapplies toblock-containers, flex containers, and grid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples html <ul> <li><code>overflow-x:hidden</code> — hides the text outside the box <div id="div1"> abcdefghijklmopqrstuvwxyzabcdefghijklmopqrstuvwxyz </div> </li> <...
overflow-y - CSS: Cascading Style Sheets
syntax /* keyword values */ overflow-y: visible; overflow-y: hidden; overflow-y: clip; overflow-y: scroll; overflow-y: auto; /* global values */ overflow-y: inherit; overflow-y: initial; overflow-y: unset; the overflow-y property is specified as a single keyword chosen from the list of values below.
... formal definition initial valuevisibleapplies toblock-containers, flex containers, and grid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples setting overflow-y behavior html <ul> <li><code>overflow-y:hidden</code> — hides the text outside the box <div id="div1"> lorem ipsum dolor sit amet, consectetur adipisicin...
overscroll-behavior-block - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-block: auto; /* default */ overscroll-behavior-block: contain; overscroll-behavior-block: none; /* global values */ overscroll-behavior-block: inherit; overscroll-behavior-block: initial; overscroll-behavior-block: unset; syntax the overscroll-behavior-block property is specified as a keyword chosen from the list of values below.
... formal definition initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax contain | none | auto examples preventing block overscrolling in this demo we have two block-level boxes, one inside the other.
overscroll-behavior-inline - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-inline: auto; /* default */ overscroll-behavior-inline: contain; overscroll-behavior-inline: none; /* global values */ overscroll-behavior-inline: inherit; overscroll-behavior-inline: initial; overscroll-behavior-inline: unset; syntax the overscroll-behavior-inline property is specified as a keyword chosen from the list of values below.
... formal definition initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax contain | none | auto examples preventing inline overscrolling in this demo we have two block-level boxes, one inside the other.
overscroll-behavior-x - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-x: auto; /* default */ overscroll-behavior-x: contain; overscroll-behavior-x: none; /* global values */ overscroll-behavior-x: inherit; overscroll-behavior-x: initial; overscroll-behavior-x: unset; syntax the overscroll-behavior-x property is specified as a keyword chosen from the list of values below.
... formal definition initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax contain | none | auto examples preventing an underlying element from scrolling horizontally in our simple overscroll-behavior-x example (see source code also), we have two block-level boxes, one inside the other.
overscroll-behavior-y - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-y: auto; /* default */ overscroll-behavior-y: contain; overscroll-behavior-y: none; /* global values */ overscroll-behavior-y: inherit; overscroll-behavior-y: initial; overscroll-behavior-y: unset; initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax the overscroll-behavior-y property is specified as a keyword chosen from the list of values below.
... formal definition initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax contain | none | auto examples preventing an underlying element from scrolling vertically .messages { height: 220px; overflow: auto; overscroll-behavior-y: contain; } see overscroll-behavior for a full example and explanation.
padding-bottom - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-bottom: 0.5em; padding-bottom: 0; padding-bottom: 2cm; /* <percentage> value */ padding-bottom: 10%; /* global values */ padding-bottom: inherit; padding-bottom: initial; padding-bottom: unset; the padding-bottom property is specified as a single value chosen from the list below.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> examples setting padding bottom with pixels and percentages .content { padding-bottom: 5%; } .sidebox { padding-bottom: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-bottom' in that specification.
padding-left - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-left: 0.5em; padding-left: 0; padding-left: 2cm; /* <percentage> value */ padding-left: 10%; /* global values */ padding-left: inherit; padding-left: initial; padding-left: unset; the padding-left property is specified as a single value chosen from the list below.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> examples setting left padding using pixels and percentages .content { padding-left: 5%; } .sidebox { padding-left: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-left' in that specification.
padding-right - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-right: 0.5em; padding-right: 0; padding-right: 2cm; /* <percentage> value */ padding-right: 10%; /* global values */ padding-right: inherit; padding-right: initial; padding-right: unset; the padding-right property is specified as a single value chosen from the list below.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> examples setting right padding using pixels and percentages .content { padding-right: 5%; } .sidebox { padding-right: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-right' in that specification.
padding-top - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-top: 0.5em; padding-top: 0; padding-top: 2cm; /* <percentage> value */ padding-top: 10%; /* global values */ padding-top: inherit; padding-top: initial; padding-top: unset; the padding-top property is specified as a single value chosen from the list below.
...it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> examples setting top padding using pixels and percentages .content { padding-top: 5%; } .sidebox { padding-top: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-top' in that specification.
radial-gradient() - CSS: Cascading Style Sheets
if unspecified, it defaults to center.
...if unspecified, it defaults to ellipse.
repeating-conic-gradient() - CSS: Cascading Style Sheets
a repeating conic gradient is specified by indicating a rotation angle, the center of the gradient, and then specifying a list of color-stops.
... like non-repeating conic gradients, the color-stops of a repeating conic gradient are specified with an <angle>.
repeating-linear-gradient() - CSS: Cascading Style Sheets
if specified, it consists of the word to and up to two keywords: one indicates the horizontal side (left or right), and the other the vertical side (top or bottom).
...if unspecified, it defaults to to bottom.
repeating-radial-gradient() - CSS: Cascading Style Sheets
if unspecified, it defaults to center.
...if unspecified, it defaults to ellipse.
resize - CSS: Cascading Style Sheets
WebCSSresize
syntax /* keyword values */ resize: none; resize: both; resize: horizontal; resize: vertical; resize: block; resize: inline; /* global values */ resize: inherit; resize: initial; resize: unset; the resize property is specified as a single keyword value from the list below.
... resize does not apply to the following: inline elements block elements for which the overflow property is set to visible formal definition initial valuenoneapplies toelements with overflow other than visible, and optionally replaced elements representing images or videos, and iframesinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | both | horizontal | vertical | block | inline examples disabling resizability of textareas in many browsers, <textarea> elements are resizable by default.
right - CSS: Cascading Style Sheets
WebCSSright
formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the width of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples absolute and relative positioning using right html <div id="relative">relatively positioned</div> <div id="absolute">absolutely positioned</div> css #relative { width: 100px;...
...when the position of the element is overspecified, the precende is based on the container's direction: the left will take precendence if the container's direction is left-to-right.
scroll-margin-block-end - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-block-end' in that specification.
scroll-margin-block-start - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-block-start' in that specification.
scroll-margin-block - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length>{1,2} specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-block' in that specification.
scroll-margin-bottom - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-bottom' in that specification.
scroll-margin-inline-end - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> examples simple demonstration this example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented.
scroll-margin-inline-start - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> examples simple demonstration this example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented.
scroll-margin-inline - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length>{1,2} examples simple demonstration this example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented.
scroll-margin-left - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-left' in that specification.
scroll-margin-right - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-right' in that specification.
scroll-margin-top - CSS: Cascading Style Sheets
the scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
... formal definition initial value0applies toall elementsinheritednocomputed valueas specifiedanimation typeby computed value type formal syntax <length> specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-top' in that specification.
scroll-snap-align - CSS: Cascading Style Sheets
if only one value is specified, the second value defaults to the same value.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ none | start | end | center ]{1,2} specifications specification status comment css scroll snap module level 1the definition of 'scroll-snap-align' in that specification.
scrollbar-color - CSS: Cascading Style Sheets
accessibility concerns when using scrollbar-color property with specific color values, authors should ensure the specified colors have enough contrast between them.
... formal definition initial valueautoapplies toscrolling boxesinheritedyescomputed valueas specifiedanimation typea color formal syntax auto | dark | light | <color>{2}where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
scrollbar-width - CSS: Cascading Style Sheets
initial valueautoapplies toscrolling boxesinheritednocomputed valueas specifiedanimation typediscrete syntax /* keyword values */ scrollbar-width: auto; scrollbar-width: thin; scrollbar-width: none; /* global values */ scrollbar-width: inherit; scrollbar-width: initial; scrollbar-width: unset; values <scrollbar-width> defines the width of the scrollbar as a keyword.
... mdn understanding wcag, guideline 2.1 explanations mdn understanding wcag, guideline 2.5 explanations understanding success criterion 2.1.1 | w3c understanding wcag 2.1 understanding success criterion 2.5.5 | w3c understanding wcag 2.1 formal definition initial valueautoapplies toscrolling boxesinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | thin | none examples sizing overflow scrollbars css .scroller { width: 300px; height: 100px; overflow-y: scroll; scrollbar-width: thin; } html <div class="scroller">veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.
table-layout - CSS: Cascading Style Sheets
formal definition initial valueautoapplies totable and inline-table elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | fixed examples fixed-width tables with text-overflow this example uses a fixed table layout, combined with the width property, to restrict the table's width.
...if the table layout were auto, the table would grow to accomodate its contents, despite the specified width.
text-align - CSS: Cascading Style Sheets
ify; text-align: justify-all; text-align: start; text-align: end; text-align: match-parent; /* character-based alignment in a table column */ text-align: "."; text-align: "." center; /* block alignment values (non-standard syntax) */ text-align: -moz-center; text-align: -webkit-center; /* global values */ text-align: inherit; text-align: initial; text-align: unset; the text-align property is specified in one of the following ways: using the keyword values start, end, left, right, center, justify, justify-all, or match-parent.
... mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.8 | understanding wcag 2.0 formal definition initial valuestart, or a nameless value that acts as left if direction is ltr, right if direction is rtl if start is not supported by the browser.applies toblock containersinheritedyescomputed valueas specified, except for the match-parent value which is calculated against its parent's direction value and results in a computed value of either left or rightanimation typediscrete formal syntax start | end | left | right | center | justify | match-parent examples left alignment html <p class="example"> integer elementum massa at nulla placerat varius.
text-combine-upright - CSS: Cascading Style Sheets
attempts to display a sequence of consecutive ascii digits (u+0030–u+0039) that has as many or fewer characters than the specified integer, such that it takes up the space of a single character within the vertical line box.
... formal definition initial valuenoneapplies tonon-replaced inline elementsinheritedyescomputed valuespecified keyword, plus integer if 'digits'animation typediscrete formal syntax none | all | [ digits <integer>?
text-decoration-line - CSS: Cascading Style Sheets
ion-line: line-through; text-decoration-line: blink; /* multiple keywords */ text-decoration-line: underline overline; /* two decoration lines */ text-decoration-line: overline underline line-through; /* multiple decoration lines */ /* global values */ text-decoration-line: inherit; text-decoration-line: initial; text-decoration-line: unset; the text-decoration-line property is specified as none, or one or more space-separated values from the list below.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax none | [ underline | overline | line-through | blink ] | spelling-error | grammar-error examples <p class="wavy">here's some text with wavy red underline!</p> <p class="both">this text has lines both above and below it.</p> .wavy { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: red; } .both { text-decoration-l...
text-emphasis - CSS: Cascading Style Sheets
the text-decoration property does not inherit, and the decoration specified is applied across the whole element.
... formal definition initial valueas each of the properties of the shorthand:text-emphasis-style: nonetext-emphasis-color: currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:text-emphasis-style: as specifiedtext-emphasis-color: computed coloranimation typeas each of the properties of the shorthand:text-emphasis-color: a colortext-emphasis-style: discrete formal syntax <'text-emphasis-style'> | <'text-emphasis-color'> examples a heading with emphasis shape and color this example draws a heading with triangles used to emphasize each character.
text-indent - CSS: Cascading Style Sheets
syntax /* <length> values */ text-indent: 3mm; text-indent: 40px; /* <percentage> value relative to the containing block width */ text-indent: 15%; /* keyword values */ text-indent: 5em each-line; text-indent: 5em hanging; text-indent: 5em hanging each-line; /* global values */ text-indent: inherit; text-indent: initial; text-indent: unset; values <length> indentation is specified as an absolute <length>.
... formal definition initial value0applies toblock containersinheritedyespercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute length, plus any keywords as specifiedanimation typea length, percentage or calc(); formal syntax <length-percentage> && hanging?
text-justify - CSS: Cascading Style Sheets
text-justify: none; text-justify: auto; text-justify: inter-word; text-justify: inter-character; text-justify: distribute; /* deprecated value */ syntax the text-justify property is specified as a single keyword chosen from the list of values below.
... formal definition initial valueautoapplies toinline-level and table-cell elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | inter-character | inter-word | none examples <p class="none"><code>text-justify: none</code> —<br>lorem ipsum dolor sit amet, consectetur adipiscing elit.
text-orientation - CSS: Cascading Style Sheets
syntax /* keyword values */ text-orientation: mixed; text-orientation: upright; text-orientation: sideways-right; text-orientation: sideways; text-orientation: use-glyph-orientation; /* global values */ text-orientation: inherit; text-orientation: initial; text-orientation: unset; the text-orientation property is specified as a single keyword from the list below.
... formal definition initial valuemixedapplies toall elements, except table row groups, rows, column groups, and columnsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax mixed | upright | sideways examples html <p>lorem ipsum dolet semper quisquam.</p> css p { writing-mode: vertical-rl; text-orientation: upright; } result specifications specification status comment css writing modes module level 3the definition of 'text-orientation' in that specification.
text-size-adjust - CSS: Cascading Style Sheets
syntax the text-size-adjust property is specified as none, auto, or a <percentage>.
... formal definition initial valueauto for smartphone browsers supporting inflation, none in other cases (and then not modifiable).applies toall elementsinheritedyespercentagesyes, refer to the corresponding size of the text fontcomputed valueas specifiedanimation typediscrete formal syntax none | auto | <percentage> examples basic disabling usage as hinted at above, on a properly designed responsive site the text-size-adjust behavior is not needed, so developers can elect to turn it off by specifying a vlaue of none: p { -webkit-text-size-adjust: none; text-size-adjust: none; } specifications specification status commen...
text-transform - CSS: Cascading Style Sheets
the capitalize keyword was under-specified in css 1 and css 2.1.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | capitalize | uppercase | lowercase | full-width | full-size-kana examples none <p>initial string <strong>lorem ipsum dolor sit amet, consectetur adipisicing elit, ...</strong> </p> <p>text-transform: none <strong><span>lorem ipsum dolor sit amet, consectetur adipisicing elit, ...</span></strong> </p> span { text-transform: none; } strong { f...
text-underline-offset - CSS: Cascading Style Sheets
syntax /* single keyword */ text-underline-offset: auto; /* length */ text-underline-offset: 0.1em; text-underline-offset: 3px; /* percentage */ text-underline-offset: 20%; /* global values */ text-underline-offset: inherit; text-underline-offset: initial; text-underline-offset: unset; the text-underline-offset property is specified as a single value from the list below.
...it also applies to ::first-letter and ::first-line.inheritedyespercentagesrefer to the font size of the element itselfcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length> | <percentage> examples <p class="oneline">here's some text with an offset wavy red underline!</p> <br> <p class="twolines">this text has lines both above and below it.
top - CSS: Cascading Style Sheets
WebCSStop
when both top and bottom are specified, position is set to absolute or fixed, and height is unspecified (either auto or 100%) both the top and bottom distances are respected.
... formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the height of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples body { background: beige; } div { position: absolute; top: 10%; right: 40%; bottom: 20%; left: 15%; background: gold; border: 1px solid blue; } <div>the size of th...
touch-action - CSS: Cascading Style Sheets
syntax the touch-action property may be specified as either: one of the keywords auto, none, manipulation, or one of the keywords pan-x, pan-left, pan-right, and/or one of the keywords pan-y, pan-up, pan-down, plus optionally the keyword pinch-zoom.
... mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.4 | understanding wcag 2.0 formal definition initial valueautoapplies toall elements except: non-replaced inline elements, table rows, row groups, table columns, and column groupsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | none | [ [ pan-x | pan-left | pan-right ] | [ pan-y | pan-up | pan-down ] | pinch-zoom ] | manipulation examples disabling all gestures the most common usage is to disable all gestures on an element (and its non-scrollable descendants) that provides its own dragging and zooming behavior – such as a map or game surface.
rotate3d() - CSS: Cascading Style Sheets
if, as specified, the vector is not normalized (i.e., if the sum of the square of its three coordinates is not 1), the user agent will normalize it internally.
... syntax the amount of rotation created by rotate3d() is specified by three <number>s and one <angle>.
scale() - CSS: Cascading Style Sheets
syntax the scale() function is specified with either one or two values, which represent the amount of scaling to be applied in each direction.
... also, consider making use of the prefers-reduced-motion media feature — use it to write a media query that will turn off animations if the user has reduced animation specified in their system preferences.
skew() - CSS: Cascading Style Sheets
the coordinates of each point are modified by a value proportionate to the specified angle and the distance to the origin; thus, the farther from the origin a point is, the greater will be the value added it.
... syntax the skew() function is specified with either one or two values, which represent the amount of skewing to be applied in each direction.
transition - CSS: Cascading Style Sheets
tion */ transition: margin-right 4s ease-in-out; /* property name | duration | timing function | delay */ transition: margin-right 4s ease-in-out 1s; /* apply to 2 properties */ transition: margin-right 4s, color 1s; /* apply to all changed properties */ transition: all 0.5s ease-out; /* global values */ transition: inherit; transition: initial; transition: unset; the transition property is specified as one or more single-property transitions, separated by commas.
... formal definition initial valueas each of the properties of the shorthand:transition-delay: 0stransition-duration: 0stransition-property: alltransition-timing-function: easeapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas each of the properties of the shorthand:transition-delay: as specifiedtransition-duration: as specifiedtransition-property: as specifiedtransition-timing-function: as specifiedanimation typediscrete formal syntax <single-transition>#where <single-transition> = [ none | <single-transition-property> ] | <time> | <timing-function> | <time>where <single-transition-property> = all | <custom-ident><timing-function> = linear | <cubic-bezier-timing-function> | <step-timin...
white-space - CSS: Cascading Style Sheets
syntax /* keyword values */ white-space: normal; white-space: nowrap; white-space: pre; white-space: pre-wrap; white-space: pre-line; white-space: break-spaces; /* global values */ white-space: inherit; white-space: initial; white-space: unset; the white-space property is specified as a single keyword chosen from the list of values below.
...ve nowrap collapse collapse no wrap remove pre preserve preserve no wrap preserve pre-wrap preserve preserve wrap hang pre-line preserve collapse wrap remove break-spaces preserve preserve wrap wrap formal definition initial valuenormalapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | pre | nowrap | pre-wrap | pre-line | break-spaces examples basic example code { white-space: pre; } line breaks inside <pre> elements pre { word-wrap: break-word; /* ie 5.5-7 */ white-space: pre-wrap; /* modern browsers */ } in action html <div id="css-code" class="box"> p { white-space: <select> <option>normal</optio...
word-break - CSS: Cascading Style Sheets
syntax /* keyword values */ word-break: normal; word-break: break-all; word-break: keep-all; word-break: break-word; /* deprecated */ /* global values */ word-break: inherit; word-break: initial; word-break: unset; the word-break property is specified as a single keyword chosen from the list of values below.
... formal definition initial valuenormalapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | break-all | keep-all | break-word examples html <p>1.
writing-mode - CSS: Cascading Style Sheets
syntax /* keyword values */ writing-mode: horizontal-tb; writing-mode: vertical-rl; writing-mode: vertical-lr; /* global values */ writing-mode: inherit; writing-mode: initial; writing-mode: unset; the writing-mode property is specified as one of the values listed below.
... formal definition initial valuehorizontal-tbapplies toall elements except table row groups, table column groups, table rows, and table columnsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr examples using multiple writing modes this example demonstrates all of the writing modes, showing each with text in various languages.
z-index - CSS: Cascading Style Sheets
WebCSSz-index
syntax /* keyword value */ z-index: auto; /* <integer> values */ z-index: 0; z-index: 3; z-index: 289; z-index: -1; /* negative values to lower the priority */ /* global values */ z-index: inherit; z-index: initial; z-index: unset; the z-index property is specified as either the keyword auto or an <integer>.
... formal definition initial valueautoapplies topositioned elementsinheritednocomputed valueas specifiedanimation typean integercreates stacking contextyes formal syntax auto | <integer> examples visually layering elements html <div class="dashed-box">dashed box <span class="gold-box">gold box</span> <span class="green-box">green box</span> </div> css .dashed-box { position: relative; z-index: 1; border: dashed; height: 8em; margin-bottom: 1em; margin-top: 2em; } .gold-box {...
regexp:match() - EXSLT
WebEXSLTregexpmatch
if this flag isn't specified, only the submatches from the first match are returned.
... i case insensitive match if this flag is specified, the match is performed in a case insensitive fashion.
regexp:replace() - EXSLT
WebEXSLTregexpreplace
the character flags are: g - global replace if this flag is specified, all occurrences of the regular expression within the originalstring are replaced.
... i - case insensitive match if this flag is specified, the match is performed in a case insensitive fashion.
Event reference
mozgamepadbuttondown to be specified a gamepad button is pressed down.
... mozgamepadbuttonup to be specified a gamepad button is released.
Creating a cross-browser video player - Developer guides
most browsers interpret the presence of a poster attribute to mean that the specified image is to be displayed until the user chooses to play the video.
... ie9 will only use the specified poster image in this way if preload="none" is set; otherwise, it will take the first still of the video and display that instead.
Audio and Video Delivery - Developer guides
a time range is specified using the syntax: #t=[starttime][,endtime] the time can be specified as a number of seconds (as a floating-point value) or as an hours/minutes/seconds time separated with colons (such as 2:05:01 for 2 hours, 5 minutes, and 1 second).
... if at that point you add another source, by inserting a new <source> element as a child of the media element, gecko attempts to load the specified resource.
Localizations and character encodings - Developer guides
the fallback encoding is specified by the preference intl.charset.default in intl.properties.
... specifying the heuristic detection mode the heuristic detection mode is specified by the preference intl.charset.detector in intl.properties.
The HTML autocomplete attribute - HTML: Hypertext Markup Language
if an <input>, <select> or <textarea> element has no autocomplete attribute, then browsers use the autocomplete attribute of the element's form owner, which is either the <form> element that the element is a descendant of, or the <form> whose id is specified by the form attribute of the element.
... "transaction-amount" the amount, given in the currency specified by "transaction-currency", of the transaction, for a payment form.
HTML attribute: max - HTML: Hypertext Markup Language
WebHTMLAttributesmax
if the max attribute is present by is not specified or is invalid, no max value is applied.
...this must be greater than the minimum value (min attribute), if specified.
<area> - HTML: Hypertext Markup Language
WebHTMLElementarea
the number and meaning of the values depend upon the value specified for the shape attribute.
...this is a user agent’s default behavior, if no policy is otherwise specified.
<base>: The Document Base URL element - HTML: Hypertext Markup Language
WebHTMLElementbase
if either of the following attributes are specified, this element must come before other elements with attribute values of urls, such as <link>’s href attribute.
... recommendation specified the behavior of target html 4.01 specificationthe definition of '<base>' in that specification.
<input type="button"> - HTML: Hypertext Markup Language
WebHTMLElementinputbutton
in this example, s is specified as the access key (you'll need to press s plus the particular modifier keys for your browser/os combination; see accesskey for a useful list of those).
... hidden code 1 <input type="button" value="enabled"> const button = document.queryselector('input'); button.addeventlistener('click', disablebutton); function disablebutton() { button.disabled = true; button.value = 'disabled'; window.settimeout(function() { button.disabled = false; button.value = 'enabled'; }, 2000); } if the disabled attribute isn't specified, the button inherits its disabled state from its parent element.
<meta>: The Document-level Metadata element - HTML: Hypertext Markup Language
WebHTMLElementmeta
content-type if specified, the content attribute must have the value "text/html; charset=utf-8".
... x-ua-compatible if specified, the content attribute must have the value "ie=edge".
<style>: The Style Information element - HTML: Hypertext Markup Language
WebHTMLElementstyle
type this attribute defines the styling language as a mime type (charset should not be specified).
... this attribute is optional and defaults to text/css if it is not specified; values other than the empty string or text/css are not used.
<td>: The Table Data Cell element - HTML: Hypertext Markup Language
WebHTMLElementtd
the default value when this attribute is not specified is left.
... charoff this attribute is used to shift column data to the right of the character specified by the char attribute.
itemprop - HTML: Hypertext Markup Language
every html element can have an itemprop attribute specified, and an itemprop consists of a name-value pair.
... if a property's value is a url, the property must be specified using a url property element.
itemscope - HTML: Hypertext Markup Language
every html element may have an itemscope attribute specified.
...the itemtypes, recipe, aggregaterating, and nutritioninformation in the following example are part of the schema.org structured data for a recipe, as specified by the first itemtype, http://schema.org/recipe.
Global attributes - HTML: Hypertext Markup Language
global attributes may be specified on all html elements, even those not specified in the standard.
...every html element may have an itemprop attribute specified, where an itemprop consists of a name and value pair.
MIME types (IANA media types) - HTTP
the subtype identifies the exact kind of data of the specified type the mime type represents.
...if no charset is specified, the default is ascii (us-ascii) unless overridden by the user agent's settings.
Reason: Did not find method in CORS header ‘Access-Control-Allow-Methods’ - HTTP
the http method being used by the cors request is not included in the list of methods specified by the response's access-control-allow-methods header.
... this header specifies a comma-delineated list of the http methods which may be used when using cors to access the url specified in the request; if the request is using any other method, this error occurs.
HTTP caching - HTTP
WebHTTPCaching
cache-control: must-revalidate the pragma header pragma is a http/1.0 header, it is not specified for http responses and is therefore not a reliable replacement for the general http/1.1 cache-control header, although it does behave the same as cache-control: no-cache, if the cache-control header field is omitted in a request.
...if a "cache-control: max-age=n" header is specified, then the freshness lifetime is equal to n.
Access-Control-Allow-Origin - HTTP
header type response header forbidden header name no syntax access-control-allow-origin: * access-control-allow-origin: <origin> access-control-allow-origin: null directives * for requests without credentials, the literal value "*" can be specified, as a wildcard; the value tells browsers to allow requesting code from any origin to access the resource.
...only a single origin can be specified.
CSP: script-src - HTTP
to allow inline scripts and inline event handlers, 'unsafe-inline', a nonce-source or a hash-source that matches the inline block can be specified.
...if 'unsafe-eval' isn't specified with the script-src directive, the following methods are blocked and won't have any effect: eval() function() when passing a string literal like to methods like: window.settimeout("alert(\"hello world!\");", 500); window.settimeout window.setinterval window.setimmediate window.execscript (ie < 11 only) strict-dynamic the 'strict-dynamic' source expression specifies tha...
CSP: style-src - HTTP
to allow inline styles, 'unsafe-inline', a nonce-source or a hash-source that matches the inline block can be specified.
...if 'unsafe-eval' isn't specified with the style-src directive, the following methods are blocked and won't have any effect: cssstylesheet.insertrule() cssgroupingrule.insertrule() cssstyledeclaration.csstext specifications specification status comment content security policy level 3the definition of 'style-src' in that specification.
Content-Security-Policy-Report-Only - HTTP
these violation reports consist of json documents sent via an http post request to the specified uri.
... original-policy the original policy as specified by the content-security-policy-report-only http header.
Pragma - HTTP
WebHTTPHeadersPragma
note: pragma is not specified for http responses and is therefore not a reliable replacement for the general http/1.1 cache-control header, although it does behave the same as cache-control: no-cache, if the cache-control header field is omitted in a request.
... header type general header, but response behavior is not specified and thus implementation-specific.
Public-Key-Pins-Report-Only - HTTP
the http public-key-pins-report-only response header was used to send reports of pinning violation to the report-uri specified in the header but, unlike public-key-pins still allows browsers to connect to the server if the pinning is violated.
... includesubdomains optional if this optional parameter is specified, this rule applies to all of the site's subdomains as well.
Public-Key-Pins - HTTP
includesubdomains optional if this optional parameter is specified, this rule applies to all of the site's subdomains as well.
... report-uri="<uri>" optional if this optional parameter is specified, pin validation failures are reported to the given url.
Referrer-Policy - HTTP
no-referrer-when-downgrade (default) this is the default behavior if no policy is specified, or if the provided value is invalid.
...e https://mozilla.org https://example.com/ http://example.org (no referrer) unsafe-url https://example.com/page?q=123 anywhere https://example.com/page?q=123 specifying a fallback policy if you want to specify a fallback policy in any case the desired policy hasn't got wide enough browser support, use a comma-separated list with the desired policy specified last: referrer-policy: no-referrer, strict-origin-when-cross-origin in the above scenario, no-referrer will only be used if strict-origin-when-cross-origin is not supported by the browser.
Strict-Transport-Security - HTTP
includesubdomains optional if this optional parameter is specified, this rule applies to all of the site's subdomains as well.
... when the expiration time specified by the strict-transport-security header elapses, the next attempt to load the site via http will proceed as normal instead of automatically using https.
Protocol upgrade mechanism - HTTP
the server's response's sec-websocket-accept header will have a value computed based upon the specified key.
... response header if the server can't communicate using the specified version of the websocket protocol, it will respond with an error (such as 426 upgrade required) that includes in its headers a sec-websocket-version header with a comma-separated list of the supported protocol versions.
HTTP response status codes - HTTP
WebHTTPStatus
308 permanent redirect this means that the resource is now permanently located at another uri, specified by the location: http response header.
... 416 range not satisfiable the range specified by the range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target uri's data.
Control flow and error handling - JavaScript
conditional statements a conditional statement is a set of commands that executes if a specified condition is true.
... catch (catchid) { statements } the catch block specifies an identifier (catchid in the preceding syntax) that holds the value specified by the throw statement.
Functions - JavaScript
calling the function actually performs the specified actions with the indicated parameters.
... parseint() the parseint() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems).
Numbers and dates - JavaScript
number.parseint() parses a string argument and returns an integer of the specified radix or base.
... toprecision() returns a string representing the number to a specified precision in fixed-point notation.
Groups and ranges - JavaScript
\k<name> a back reference to the last substring matching the named capture group specified by <name>.
... (?<name>x) named capturing group: matches "x" and stores it on the groups property of the returned matches under the name specified by <name>.
Working with objects - JavaScript
now you can create an object called mycar as follows: var mycar = new car('eagle', 'talon tsi', 1993); this statement creates mycar and assigns it the specified values for its properties.
...this defines a property that is shared by all objects of the specified type, rather than by just one instance of the object.
JavaScript technologies overview - JavaScript
html dom html, the web's markup language, is specified in terms of the dom.
... other notable apis the settimeout and setinterval functions were first specified on the window interface in html standard.
Warning: -file- is being assigned a //# sourceMappingURL, but already has one - JavaScript
the javascript warning "-file- is being assigned a //# sourcemappingurl, but already has one." occurs when a source map has been specified more than once for a given javascript source.
... a source map has been specified more than once for a given javascript source.
RangeError: radix must be an integer - JavaScript
the javascript exception "radix must be an integer at least 2 and no greater than 36" occurs when the optional radix parameter of the number.prototype.tostring() or the bigint.prototype.tostring() method was specified and is not between 2 and 36.
... the optional radix parameter of the number.prototype.tostring() or the bigint.prototype.tostring() method was specified.
TypeError: setting getter-only property "x" - JavaScript
the javascript strict mode-only exception "setting getter-only property" occurs when there is an attempt to set a new value to a property for which only a getter is specified.
... there is an attempt to set a new value to a property for which only a getter is specified.
ArrayBuffer.prototype.slice() - JavaScript
if end is unspecified, the new arraybuffer contains all bytes from begin to the end of this arraybuffer.
... the range specified by the begin and end parameters is clamped to the valid index range for the current array.
BigInt - JavaScript
bigint.prototype.tostring() returns a string representing the specified object in the specified radix (base).
... bigint.prototype.valueof() returns the primitive value of the specified object.
Boolean.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified boolean object.
... syntax bool.tostring() return value a string representing the specified boolean object.
Date.prototype.getYear() - JavaScript
the getyear() method returns the year in the specified date according to local time.
... to take into account years before and after 2000, you should use getfullyear() instead of getyear() so that the year is specified in full.
Date.prototype.setMonth() - JavaScript
the setmonth() method sets the month for a specified date according to the currently set year.
...conceptually it will add the number of days given by the current day of the month to the 1st day of the new month specified as the parameter, to return the new date.
Error.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified error object.
... syntax e.tostring() return value a string representing the specified error object.
Intl.DateTimeFormat() constructor - JavaScript
this option overrides the hc language tag, if both are present, and the hour12 option takes precedence in case both options have been specified.
...two algorithms are available for this negotiation and selected by the formatmatcher property: a fully specified "basic" algorithm and an implementation-dependent "best fit" algorithm.
Map.prototype.get() - JavaScript
the get() method returns a specified element from a map object.
... return value the element associated with the specified key, or undefined if the key can't be found in the map object.
Map.prototype.has() - JavaScript
the has() method returns a boolean indicating whether an element with the specified key exists or not.
... return value true if an element with the specified key exists in the map object; otherwise false.
Math.random() - JavaScript
getting a random number between 0 (inclusive) and 1 (exclusive) function getrandom() { return math.random(); } getting a random number between two values this example returns a random number between the specified values.
... function getrandomarbitrary(min, max) { return math.random() * (max - min) + min; } getting a random integer between two values this example returns a random integer between the specified values.
Math.random() - JavaScript
getting a random number between 0 (inclusive) and 1 (exclusive) function getrandom() { return math.random(); } getting a random number between two values this example returns a random number between the specified values.
... function getrandomarbitrary(min, max) { return math.random() * (max - min) + min; } getting a random integer between two values this example returns a random integer between the specified values.
Object.prototype.__lookupGetter__() - JavaScript
the __lookupgetter__ method returns the function bound as a getter to the specified property.
... return value the function bound as a getter to the specified property.
Object.prototype.__lookupSetter__() - JavaScript
the __lookupsetter__ method returns the function bound as a setter to the specified property.
... return value the function bound as a setter to the specified property.
Object.create() - JavaScript
propertiesobject optional if specified and not undefined, an object whose enumerable own properties (that is, those properties defined upon itself and not enumerable properties along its prototype chain) specify property descriptors to be added to the newly-created object, with the corresponding property names.
... return value a new object with the specified prototype object and properties.
Object.setPrototypeOf() - JavaScript
the object.setprototypeof() method sets the prototype (i.e., the internal [[prototype]] property) of a specified object to another object or null.
... return value the specified object.
Object.prototype.valueOf() - JavaScript
the valueof() method returns the primitive value of the specified object.
... syntax object.valueof() return value the primitive value of the specified object.
Reflect.apply() - JavaScript
the static reflect.apply() method calls a target function with arguments as specified.
... return value the result of calling the given target function with the specified this value and arguments.
Reflect.getPrototypeOf() - JavaScript
the value of the internal [[prototype]] property) of the specified object.
...the value of the internal [[prototype]] property) of the specified object.
Reflect.setPrototypeOf() - JavaScript
it sets the prototype (i.e., the internal [[prototype]] property) of a specified object to another object or to null, and returns true if the operation was successful, or false otherwise.
...the value of the internal [[prototype]] property) of the specified object.
RegExp() constructor - JavaScript
flags if specified, flags is a string that contains the flags to add.
... if flags is not specified and a regular expressions object is supplied, that object's flags (and lastindex value) will be copied over.
RegExp.prototype.exec() - JavaScript
the exec() method executes a search for a match in a specified string.
...when you do so, the search starts at the substring of str specified by the regular expression's lastindex property (test() will also advance the lastindex property).
Set.prototype.has() - JavaScript
the has() method returns a boolean indicating whether an element with the specified value exists in a set object or not.
... return value returns true if an element with the specified value exists in the set object; otherwise false.
String.prototype.charAt() - JavaScript
the string object's charat() method returns a new string consisting of the single utf-16 code unit located at the specified offset into the string.
... return value a string representing the character (exactly one utf-16 code unit) at the specified index.
String.prototype.codePointAt() - JavaScript
description if there is no element at the specified position, undefined is returned.
... polyfill the following extends strings to include the codepointat() function as specified in ecmascript 2015 for browsers without native support.
String.fromCharCode() - JavaScript
the static string.fromcharcode() method returns a string created from the specified sequence of utf-16 code units.
... return value a string of length n consisting of the n specified utf-16 code units.
String.fromCodePoint() - JavaScript
the static string.fromcodepoint() method returns a string created by using the specified sequence of code points.
... return value a string created by using the specified sequence of code points.
String.prototype.indexOf() - JavaScript
the indexof() method returns the index within the calling string object of the first occurrence of the specified value, starting the search at fromindex.
...indexof('', 3) // returns 3 'hello world'.indexof('', 8) // returns 8 however, with any fromindex value equal to or greater than the string's length, the returned value is the string's length: 'hello world'.indexof('', 11) // returns 11 'hello world'.indexof('', 13) // returns 11 'hello world'.indexof('', 22) // returns 11 in the former instance, js seems to find an empty string just after the specified index value.
String.prototype.repeat() - JavaScript
the repeat() method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.
... return value a new string containing the specified number of copies of the given string.
String.prototype.replace() - JavaScript
the match or matches are replaced with newsubstr or the value returned by the specified function.
... newsubstr (replacement) the string that replaces the substring specified by the specified regexp or substr parameter.
String.prototype.replaceAll() - JavaScript
the matches are replaced with newsubstr or the value returned by the specified function.
... newsubstr (replacement) the string that replaces the substring specified by the specified regexp or substr parameter.
String.prototype.substr() - JavaScript
the substr() method returns a portion of the string, starting at the specified index and extending for a given number of characters afterwards.
... return value a new string containing the specified part of the given string.
Symbol.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified symbol object.
... syntax symbol().tostring() return value a string representing the specified symbol object.
Uint8ClampedArray() constructor - JavaScript
the uint8clampedarray() constructor creates a typed array of 8-bit unsigned integers clamped to 0-255; if you specified a value that is out of the range of [0,255], 0 or 255 will be set instead; if you specify a non-integer, the nearest integer will be set.
... buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
WeakMap.prototype.get() - JavaScript
the get() method returns a specified element from a weakmap object.
... return value the element associated with the specified key in the weakmap object.
WeakMap.prototype.has() - JavaScript
the has() method returns a boolean indicating whether an element with the specified key exists in the weakmap object or not.
... return value boolean returns true if an element with the specified key exists in the weakmap object; otherwise false.
WebAssembly.Module.customSections() - JavaScript
most of these sections are fully specified and validated by the wasm spec, but modules can also contain custom sections that are ignored and skipped over during validation.
... note that the webassembly text format currently doesn't have a syntax specified for adding new custom sections; you can however add a name section to your wasm during conversion from text format over to .wasm.
Left shift (<<) - JavaScript
the left shift operator (<<) shifts the first operand the specified number of bits to the left.
... syntax a << b description this operator shifts the first operand the specified number of bits to the left.
Right shift (>>) - JavaScript
the right shift operator (>>) shifts the first operand the specified number of bits to the right.
... syntax a >> b description this operator shifts the first operand the specified number of bits to the right.
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.
... syntax a >>> b description this operator shifts the first operand the specified number of bits to the right.
in operator - JavaScript
the in operator returns true if the specified property is in the specified object or its prototype chain.
... object object to check if it (or its prototype chain) contains the property with specified name (prop).
do...while - JavaScript
the do...while statement creates a loop that executes a specified statement until the test condition evaluates to false.
... the condition is evaluated after executing the statement, resulting in the specified statement executing at least once.
<maction> - MathML
the action itself is specified by the actiontype attribute, which accepts several values.
... href used to set a hyperlink to a specified uri.
<menclose> - MathML
the mathml <menclose> element renders its content inside an enclosing notation specified by the notation attribute.
... href used to set a hyperlink to a specified uri.
<mfenced> - MathML
href used to set a hyperlink to a specified uri.
...if there are too few separators in the expression, the last specified separator is repeated.
<ms> - MathML
WebMathMLElementms
note that quotation marks should not be specified unless they are part of the string literal.
... href used to set a hyperlink to a specified uri.
<mtable> - MathML
WebMathMLElementmtable
this allows you to align the specified row of the table rather than the whole table.
... groupalign unimplemented href used to set a hyperlink to a specified uri.
MathML documentation index - MathML
WebMathMLIndex
12 <menclose> mathml, mathml reference, mathml:element, mathml:general layout schemata the mathml <menclose> element renders its content inside an enclosing notation specified by the notation attribute.
...note that quotation marks should not be specified unless they are part of the string literal.
Autoplay guide for media and Web Audio APIs - Web media technologies
note: the specified feature policy applies to the document and every <iframe> nested within it, unless those frames include an allow, which sets a new feature policy for that frame and all frames nested within it.
... when using the allow attribute on an <iframe> to specify a feature policy for that frame and its nested frames, you can also specify the value 'src' to allow autoplay of media only from the same domain as that specified by the frame's src attribute.
Image file type and format guide - Web media technologies
opera safari svg support 4 12 3 9 10 (presto) 15 (blink) 3.2 svg as image (<img> etc) 28 12 4 9 10 (presto) 15 (blink) 9 maximum dimensions unlimited supported color modes colors in svg are specified using css color syntax.
... every value in a tiff file is specified using its tag (indicating what kind of information it is, such as the width of the image) and its type (indicating the format the data is stored in), followed by the length of the array of values to assign to that tag (all properties are stored in arrays, even for single values).
Media - Progressive web apps (PWAs)
the document's markup language might allow the media type to be specified when the stylesheet is linked to the document.
... so far, all the style rules in this tutorial have been specified in files.
baseline-shift - SVG: Scalable Vector Graphics
<length-percentage> a length value raises (positive value) or lowers (negative value) the dominant-baseline of the parent text content element by the specified length.
... a percentage value raises (positive value) or lowers (negative value) the dominant-baseline of the parent text content element by the specified percentage of the line-height.
clip-rule - SVG: Scalable Vector Graphics
the following fragment of code will cause an evenodd clipping rule to be applied to the clipping path because clip-rule is specified on the <path> element that defines the clipping shape: <g> <clippath id="myclip"> <path d="..." clip-rule="evenodd" /> </clippath> <rect clip-path="url(#myclip)" ...
... /> </g> whereas the following fragment of code will not cause an evenodd clipping rule to be applied because the clip-rule is specified on the referencing element, not on the object defining the clipping shape: <g> <clippath id="myclip"> <path d="..." /> </clippath> <rect clip-path="url(#myclip)" clip-rule="evenodd" ...
font-size-adjust - SVG: Scalable Vector Graphics
<number> choose the size of the font so that its lowercase letters (as determined by the x-height of the font) are the specified number times the font-size.
... the number specified should generally be the aspect ratio (ratio of x-height to font size) of the first choice font-family.
href - SVG: Scalable Vector Graphics
WebSVGAttributehref
if both xlink:href and href are specified, the value of the latter attribute is used.
...if both, the xlink:href and the href attribute are specified, the latter overrides the former.
path - SVG: Scalable Vector Graphics
WebSVGAttributepath
if the attribute is not specified, the path specified in href is used instead.
... value <path-data> default value path specified in href animatable yes <path-data> this value defines the text path along which the glyphs of the <text> element are aligned.
refX - SVG: Scalable Vector Graphics
WebSVGAttributerefX
if the attribute is not specified, no horizontal adjustment is made, and the left side of the symbol’s rectangular viewport region (regardless of the viewbox coordinate) is positioned at the x coordinate.
... for backwards compatibility, the behavior when refx is not specified on a <symbol> element is different from when it is specified with a value of 0, and therefore different from the behavior when an equivalent attribute is not specified on a <marker> element.
refY - SVG: Scalable Vector Graphics
WebSVGAttributerefY
if the attribute is not specified, no vertical adjustment is made, and the top side of the symbol’s rectangular viewport region (regardless of the viewbox coordinate) is positioned at the y coordinate.
... for backwards compatibility, the behavior when refy is not specified on a <symbol> element is different from when it is specified with a value of 0, and therefore different from the behavior when an equivalent attribute is not specified on a <marker> element.
rx - SVG: Scalable Vector Graphics
WebSVGAttributerx
the way the value of the rx attribute is interpreted depend on both the ry attribute and the width of the rectangle: if a properly specified value is provided for rx but not for ry (or the opposite), then the browser will consider the missing value equal to the defined one.
... if neither rx nor ry has a properly specified value, then the browser will draw a rectangle with square corners.
ry - SVG: Scalable Vector Graphics
WebSVGAttributery
the way the value of the ry attribute is interpreted depend on both the rx attribute and the width of the rectangle: if a properly specified value is provided for ry but not for rx (or the opposite), then the browser will consider the missing value equal to the defined one.
... if neither ry nor rx has a properly specified value, then the browser will draw a rectangle with square corners.
<rect> - SVG: Scalable Vector Graphics
WebSVGElementrect
defaults to ry if it is specified.
...defaults to rx if it is specified.
<set> - SVG: Scalable Vector Graphics
WebSVGElementset
the svg <set> element provides a simple means of just setting the value of an attribute for a specified duration.
...the additive and accumulate attributes are not allowed, and will be ignored if specified.
Paths - SVG: Scalable Vector Graphics
WebSVGTutorialPaths
therefore, to create a cubic bézier, three sets of coordinates need to be specified.
... an example of this syntax is shown below, and in the figure to the left the specified control points are shown in red, and the inferred control point in blue.
Transport Layer Security - Web security
it was updated to ssl 3.0 not long after, and as its usage expanded, it became clear that a common, standard encryption technology needed to be specified to ensure interoperability among all web browsers and servers.
... the internet engineering task force (ietf) specified tls 1.0 in rfc 2246 in january, 1999.
Compiling a New C/C++ Module to WebAssembly - WebAssembly
now navigate into your new directory (again, in your emscripten compiler environment terminal window), and run the following command: emcc -o hello2.html hello2.c -o3 -s wasm=1 --shell-file html_template/shell_minimal.html the options we've passed are slightly different this time: we've specified -o hello2.html, meaning that the compiler will still output the javascript glue code and .html.
... we've also specified --shell-file html_template/shell_minimal.html — this provides the path to the html template you want to use to create the html you will run your example through.
Using the WebAssembly JavaScript API - WebAssembly
growing memory a memory instance can be grown by calls to memory.prototype.grow(), where again the argument is specified in units of webassembly pages: memory.grow(1); if a maximum value was supplied upon creation of the memory instance, attempts to grow past this maximum will throw a webassembly.rangeerror exception.
...this can be any value, as long as its type matches the specified data type.
Navigator.mozNotification - Archive of obsolete content
method overview notification createnotification(in domstring title, in domstring description, in domstring iconurl optional); methods createnotification() creates and returns a notification object that can be used to display the specified message with an optional url.
Loading Content Scripts - Archive of obsolete content
contentscriptfile: [data.url("jquery-1.4.2.min.js"), data.url("my-content-script.js")] scripts specified using contentscriptfile are loaded before those specified using contentscript.
system - Archive of obsolete content
var system = require("sdk/system"); system.exit(); globals functions exit(code) quits the host application with the specified code.
url - Archive of obsolete content
for example: var url = require("sdk/url").url("https://developer.mozilla.org/add-ons?example=true&visible=yes#top"); console.log(url.host); // developer.mozilla.org port the port number of the url, null if none was specified.
/loader - Archive of obsolete content
optionally more options may be specified: options.encoding: source encoding, defaults to 'utf-8'.
dev/panel - Archive of obsolete content
mandatory icon string the icon to display in the toolbox toolbar, specified as a resource:// url pointing to an icon file, typically in your add-on's "data" directory.
io/file - Archive of obsolete content
this means that on windows paths are specified using the backslash path separator (\), and on unix-like systems like linux and os x paths are specified using the forward slash path separator (/).
loader/sandbox - Archive of obsolete content
evaluate(scope, 'a ++', 'http://foo.com/bar.js', 2); version of javascript can be also specified via an optional argument: evaluate(scope, 'let b = 2;', 'bar.js', 1, '1.5'); // throws cause `let` is not defined in js 1.5.
places/bookmarks - Archive of obsolete content
save } = require("sdk/places/bookmarks"); let group = group({ title: "my group" }); let bookmarks = [ bookmark({ title: "mozilla", url: "http://mozilla.com", group: group }), bookmark({ title: "w3", url: "http://w3.org", group: group }) ]; save(bookmarks).on("data", function (item) { // this function will be called three times: // once for each bookmark saved // once for the new group specified implicitly // as the parent of the two items }); the data event is also called for search requests, with each result being passed individually into its own data event.
places/history - Archive of obsolete content
an options object may be specified to determine overall settings, like sorting and how many objects should be returned.
platform/xpcom - Archive of obsolete content
if specified, the contract id is accessible as the value of the factory's contract property.
test/httpd - Archive of obsolete content
the server listens at http://localhost:port/ and serves files from the specified directory.
ui/toolbar - Archive of obsolete content
like a panel, a toolbar's content is specified using html.
util/list - Archive of obsolete content
globals constructors list(element1, element2, ...) constructor can takes any number of elements and creates an instance of list populated with the specified elements.
Display a Popup - Archive of obsolete content
the add-on consists of seven files: package.json: created when you run jpm init index.js: the main add-on code, that creates the button and panel get-text.js: the content script that interacts with the panel content text-entry.html: the panel content itself, specified as html icon-16.png, icon-32.png, and icon-64.png: icons for the button in three different sizes the "index.js" looks like this: var data = require("sdk/self").data; // construct a panel, loading its content from the "text-entry.html" // file in the "data" directory, and loading the "get-text.js" script // into it.
Modifying the Page Hosted by a Tab - Archive of obsolete content
the script is specified using the contentscript option, and just draws a red border around the page.
Tutorials - Archive of obsolete content
modify web pages modify web pages based on url create filters for web pages based on their url: whenever a web page whose url matches the filter is loaded, execute a specified script in it.
Canvas code snippets - Archive of obsolete content
the canvas is converted to a png file and saved to the specified location.
Examples and demos from articles - Archive of obsolete content
[article] typewriter effect [html] the following example will delete and re-type simulating a typewriter all the text content of the nodelist which match a specified group of selectors.
Miscellaneous - Archive of obsolete content
var osstring = services.appinfo.os; detecting the host application and version // get the name of the application running us services.appinfo.name; // returns "firefox" for firefox services.appinfo.version; // returns "2.0.0.1" for firefox version 2.0.0.1 retrieving the version of an extension as specified in the extension's install.rdf components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("extension-guid@example.org", function(addon) { // this is an asynchronous callback function that might not be called immediately alert("my extension's version is " + addon.version); }); restarting firefox/thunderbird/seamonkey_2.0 for firefox 3 see onwizardfinish ...
Preferences - Archive of obsolete content
if there's a value of the expected type in the default tree, it is returned (with the only exception being that calling getcomplexvalue() with atype parameter specified as nsipreflocalizedstring, described above).
Displaying web content in an extension without security issues - Archive of obsolete content
sed that is meant for just that scenario: var target = entry.getelementsbyclassname("description")[0]; var fragment = components.classes["@mozilla.org/feed-unescapehtml;1"] .getservice(components.interfaces.nsiscriptableunescapehtml) .parsefragment(description, false, null, target); target.appendchild(fragment); this will add the html code to the specified node — minus all the potentially dangerous content.
Installing Extensions and Themes From Web Pages - Archive of obsolete content
the hash is specified as hash function:hash value, for example, sha1:28857e60d043447c5f4550853f2d40770b326a13.
Chapter 2: Technologies used in developing extensions - Archive of obsolete content
it was specified in 1998 by w3c, the organization that sets standards for web-related technologies.
Custom XUL Elements with XBL - Archive of obsolete content
the element that the binding is attached to, called the bound element, acquires the new behavior specified by the binding.
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
when using the jquery constructor, only empty tags should be specified in order to avoid invoking the dom parser.
Intercepting Page Loads - Archive of obsolete content
there are 2 http topics you can listen to, as specified in the observer notifications page: topic description http-on-modify-request called as an http request is made.
JavaScript Object Management - Archive of obsolete content
have a timeout execute the code after a delay: init : function(aevent) { let that = this; this._stringbundle = document.getelementbyid("xs-hw-string-bundle"); window.settimeout( function() { window.alert(that._stringbundle.getstring("xulschoolhello.greeting.label")); }, 0); } the settimeout function executes the function in the first parameter, after a delay in miliseconds specified by the second parameter.
Setting Up a Development Environment - Archive of obsolete content
these define the extension name, the extension id (as specified in install.rdf) and the name of the profile directory where the extension will be installed during development and testing.
The Essentials of an Extension - Archive of obsolete content
finally, the location is specified.
XPCOM Objects - Archive of obsolete content
this can also be specified on a per-method basis, which is something you'll see in some of the interfaces in firefox, but it's not likely you'll have to do it in your own components.
Tabbed browser - Archive of obsolete content
if no such tab exists, a new one is opened with the specified url/uri.
Search Extension Tutorial (Draft) - Archive of obsolete content
in non-restartless extensions, the xml search description may instead simply be placed in the searchplugins/ directory in the root of your xpi, as em:unpack is specified in your install.rdf file.
Adding preferences to an extension - Archive of obsolete content
the interval time is specified in milliseconds.
Creating a dynamic status bar extension - Archive of obsolete content
this configures our refreshinformation() routine to be called every 10 minutes (the time interval is specified in milliseconds).
MozOrientation - Archive of obsolete content
in firefox versions 3.6, 4, and 5 gecko utilized mozorientation which was also built to support orientation data but with different apis from the specified deviceorientationevent.
cert_override.txt - Archive of obsolete content
cert_override.txt is a text file generated in the user profile to store certificate exceptions specified by the user.
Defining Cross-Browser Tooltips - Archive of obsolete content
the language of the alternate text is specified by the lang attribute.
ActiveX Control for Hosting Netscape Plug-ins in IE - Archive of obsolete content
if you havent't specified a "type" param, the control will attempt to use the mime type of this stream to create the correct plug-in.
How Mozilla finds its configuration files - Archive of obsolete content
the configuration itself is stored in the specified directory, in a file named prefs.js.
How Thunderbird and Firefox find their configuration files - Archive of obsolete content
the configuration itself is stored in the specified directory, in a file named prefs.js.
Automatically Handle Failed Asserts in Debug Builds - Archive of obsolete content
at the first match, it will take the action specified by the dword's value.
Compiling The npruntime Sample Plugin in Visual Studio - Archive of obsolete content
make sure the mimetypes of your html embed tags match the mimetype specified in your nprt.rc file and the top of your npp_gate.cpp file version issues if vc++ compiler throws you error c2664 on 'drawtext' function call, you may replace it by 'drawtexta'.
Finding the file to modify - Archive of obsolete content
in particular, positioning information can be specified in both the structure layer and the style layer, and some behavior can be partly defined in the style layer.) we're going to add code to all three ui layers, starting with the structure layer.
Creating a Microsummary - Archive of obsolete content
when a <template>'s match attribute matches a node, the processor performs the transformations specified by the content of the element.
Drag and Drop Example - Archive of obsolete content
a maximum size is also specified so that it doesn't resize when new elements are dragged onto it.
Drag and Drop - Archive of obsolete content
isdataflavorsupported(flavor) returns true if the data being dragged contains data of the specified flavor.
Editor Embedding Guide - Archive of obsolete content
->do_getinterface(getter_addrefs(editingsession)); if (editingsession) editingsession->makewindoweditable(domwindow, "html", pr_true); the valid editor types are: "text" (similar to notepad or a textarea; does not allow for html) "textmail" (similar to "text" but html can be inserted; intended for plaintext mail usage and handling of citations) "html" (this is the default type if no type is specified; it allows for all html tags to be inserted) "htmlmail" (this is much like "html" except there are a few editing rules/behaviors that differ such as splitting of mail quotes) editor commands you need to call commands and receive updates in order to make any changes to the content on the browser.
Block and Line Layout Cheat Sheet - Archive of obsolete content
if the flag hasn't been set in the block reflow state, then shouldapplytopmargin() will crawl the line list to see if a block frame precedes the specified frame.
Layout System Overview - Archive of obsolete content
the decision about when to apply css-specified formatting and when to apply legacy formatting is controlled by the document's doctype specification.
Repackaging Firefox - Archive of obsolete content
the repackager tool will do its work, placing the customized installers into the destination directory you specified.
popChallengeResponse - Archive of obsolete content
-- request is being made) of rand, where rand is specified as -- rand ::= sequence { -- int integer, -- - the randomly-generated integer a (above) -- senderhash octet string -- - the result of applying the one-way function (owf) to -- - the sender's general name -- } -- the size of "int" must be small enough such that "rand" can be -- contained within a single pkcs #1 encr...
Clipboard - Archive of obsolete content
if no other arguments are specified, the flavor of the content is assumed to 'plain'.string flavordata type.
Clipboard Test - Archive of obsolete content
if no other arguments are specified, the flavor of the content is assumed to 'plain'.string flavordata type.
Clipboard - Archive of obsolete content
if no other arguments are specified, the flavor of the content is assumed to 'plain'.string flavordata type.
Menu - Archive of obsolete content
ArchiveMozillaJetpackUIMenu
note that when type == "separator", any other properties (such as label) may be specified.
Clipboard - Archive of obsolete content
if no other arguments are specified, the flavor of the content is assumed to 'plain'.string flavordata type.
Plug-n-Hack Phase1 - Archive of obsolete content
an example commands manifest (for owasp zap) is: https://code.google.com/p/zap-extensions/source/browse/branches/beta/src/org/zaproxy/zap/extension/plugnhack/resource/service.json firefox ui in firefox the tool commands will be made available via the developer toolbar (gcli) https://developer.mozilla.org/docs/tools/gcli a example of how the zap commands are currently displayed is: note that user specified parameters can be specified for commands, which can either be free text, a static pull down list of options or a dynamic list of options obtained from the tool on demand.
Configuration - Archive of obsolete content
launch prism with -webapp [bundle] to load the specified web profile and install the webapp to your prism profile folder.
New Skin Notes - Archive of obsolete content
if the designer wants smaller text, tweak his ua's text size off of the base, for 100% page specified text.
PyDOM - Archive of obsolete content
: button = document.getelementbyid("some-button") button.foo = 0 and the button itself might look like: <button id="some-button" label="click here" onclick="event.target.foo += 1; print 'foo is now', event.target.foo"/> note that (a) we have stuck an arbitrary attribute on a dom element and (b) in all cases (e.g., event handler and top-level script), the dom node needs to be explicitly specified - the globals are the window itself.
RDF Datasource How-To - Archive of obsolete content
starting with the resource that corresponds to the tree element, http://foo.bar.com/, the graph will be traversed and content will be constructed using the pattern specified within the template tags.
Frequently Asked Questions - Archive of obsolete content
if the mime type specified is wrong (for example image/svg-xml) mozilla won't recognise it.
File object - Archive of obsolete content
description filenames are specified as strings that have an implementation defined format.
Using Breakpoints in Venkman - Archive of obsolete content
when a script is loaded that matches the url of a future breakpoint, and has executable code at the specified line, venkman will automatically set a future breakpoint.
XBL 1.0 Reference - Archive of obsolete content
the element with a binding specified, called the bound element, acquires the new behavior specified by the binding.
Install script template - Archive of obsolete content
if(errblock2 == success) { // now take care of writing plids to the win32 registry err = writeplidsolution(); if(err!=success) { logcomment("could not write win32 keys as specified: " + err); } else { logcomment("plid entries are present in the win32 registry"); } } reseterror(); err = performinstall(); if (err == success) refreshplugins(true); // call refreshplugins(true) if you'd like the web page which invoked the plugin to // reload.
copy - Archive of obsolete content
summary makes a queued copy of the specified file.
execute - Archive of obsolete content
description the specified file is not actually executed until the performinstall method is called.
exists - Archive of obsolete content
exists returns a value indicating whether the specified file or directory exists.
isDirectory - Archive of obsolete content
summary returns a boolean value indicating whether the specified filespecobject is a directory.
modDate - Archive of obsolete content
summary returns the last modified date of a specified file or directory.
remove - Archive of obsolete content
summary deletes a specified file.
rename - Archive of obsolete content
summary renames a specified file in place.
compareTo - Archive of obsolete content
compareto compares the version information specified in this object to the version information specified in the version parameter.
Methods - Archive of obsolete content
methods compareto compares the version information specified in this object to the version information specified in the version parameter.
addFile - Archive of obsolete content
typically, absolute pathnames are only used for shared components, or components that come from another vendor, such as /microsoft/shared/msvcrt40.dll.typically, relative pathnames are relative to the main pathname specified in the initinstall method.
gestalt - Archive of obsolete content
the format depends on the select code specified in the selector parameter.
getComponentFolder - Archive of obsolete content
if the specified subdirectory doesn't exist, it is created.
getFolder - Archive of obsolete content
if the specified subdirectory doesn't exist, it is created.
getWinProfile - Archive of obsolete content
file a relative pathname to an initialization file in the directory specified by the folder parameter, such as "royal/royal.ini".
patch - Archive of obsolete content
typically, relative pathnames are relative to the main pathname specified in the initinstall method.
getValueNumber - Archive of obsolete content
returns number value of the specified key or null if there's an error, the value is not found, or the value is not a string.
Learn XPI Installer Scripting by Example - Archive of obsolete content
the initinstall() method on the install object creates a new installation for the specified software and version.
A XUL Bestiary - Archive of obsolete content
note that when no file name is specified after the chrome directory path, a file name with the same name as the package is assumed.
movetoclick - Archive of obsolete content
if not specified, the default value is used, which varies for each platform.
progressmeter.max - Archive of obsolete content
the default value if not specified is 100 such that the value may be used as a percentage.
accesskey - Archive of obsolete content
if a label doesn't have the specified character, the character will be appended to the label with parentheses.
chromemargin - Archive of obsolete content
the specified string should contain four numbers, separated by commas, indicating the margin in pixels for the top, right, bottom, and left edges of the window, respectively.
class - Archive of obsolete content
multiple classes may be specified by separating them with spaces.
closemenu - Archive of obsolete content
auto this, the default value if the closemenu attribute is not specified, closes up the menu and all parent menus.
collapse - Archive of obsolete content
if this attribute is not specified, the splitter will not cause a collapse.
crop - Archive of obsolete content
ArchiveMozillaXULAttributecrop
« xul reference home crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
datasources - Archive of obsolete content
for rdf templates, the specified datasources are combined into a single composite datasource which holds the data from all of the datasources.
equalsize - Archive of obsolete content
never all of the children are displayed at the size required by the content or as specified by the width and height attributes or the css width and height properties.
eventnode - Archive of obsolete content
if this attribute is not specified, events are listened to from the tabbox.
events - Archive of obsolete content
if this attribute is not specified, or you set it to the value '*', all events are valid.
fixed - Archive of obsolete content
if false or not specified, the user can adjust the size of the column, typically by dragging the column header with the mouse.
iscontainer - Archive of obsolete content
if not specified, the rule may match regardless of whether a node is a container or not.
isempty - Archive of obsolete content
if not specified, the rule may match regardless of whether a node has children or not.
member - Archive of obsolete content
if not specified, the variable specified in the uri attribute in the action body of the template's first rule is used.
modifiers - Archive of obsolete content
this shouldn't be specified directly because it may conflict with system wide shortcut key.
popup.left - Archive of obsolete content
« xul reference home left type: integer overrides the horizontal position of the popup specified by the showpopup method.
popup.top - Archive of obsolete content
« xul reference home top type: integer overrides the vertical position of the popup specified by the showpopup method.
prefpane.src - Archive of obsolete content
if this is not specified, the contents of the prefpane element is used.
right - Archive of obsolete content
this location is specified with respect to the right edge of the stack prior to the element being evaluated, or added to the stack.
showcommentcolumn - Archive of obsolete content
if this attribute is not specified, the comment column doesn't appear.
showimagecolumn - Archive of obsolete content
if this attribute is not specified, the image column doesn't appear.
spellcheck - Archive of obsolete content
if not specified, this defaults to false the html the spellcheck attribute uses values of true or false (you cannot simply add the spellcheck attribute to a given element): <!-- spellcheck everything!
suppressonselect - Archive of obsolete content
« xul reference home suppressonselect type: boolean if this attribute is not specified, a select event is fired whenever an item is selected, either by the user or by calling one of the select methods.
template.container - Archive of obsolete content
if not specified, the variable specified in the uri attribute of the content tag in the template's first rule is used.
template - Archive of obsolete content
if this attribute is not specified, there should be a template element directly inside the node.
textbox.autoFill - Archive of obsolete content
as of gecko 1.9.1, this attribute is now always specified in lower case.
textbox.disableAutocomplete - Archive of obsolete content
as of gecko 1.9.1, this attribute is now always specified in lower case.
textbox.forceComplete - Archive of obsolete content
as of gecko 1.9.1, this attribute is now always specified in lower case.
textbox.ignoreBlurWhileSearching - Archive of obsolete content
as of gecko 1.9.1, this attribute is now always specified in lower case.
textbox.minResultsForPopup - Archive of obsolete content
as of gecko 1.9.1, this attribute is now always specified in lower case.
textbox.tabScrolling - Archive of obsolete content
if false, the default, the tab key moves the focus to the next element.as of gecko 1.9.1, this attribute is now always specified in lower case.
wrap - Archive of obsolete content
ArchiveMozillaXULAttributewrap
if this attribute is not specified, word wrapping is enabled.
findbar - Archive of obsolete content
open( mode ) return type: no return value opens the findbar using the specified mode, which should be one of find_normal, find_typeahead, or find_links.
Introduction to XUL - Archive of obsolete content
relative placement of widgets, their interactions with each other, and optionally some of their configuration, will be controlled by a ui layout specified in a script whose structure is defined in this and related documents.
open - Archive of obsolete content
ArchiveMozillaXULMethodOpen
« xul reference home open( mode ) return type: no return value opens the findbar using the specified mode, which should be one of find_normal, find_typeahead, or find_links.
addTab - Archive of obsolete content
ArchiveMozillaXULMethodaddTab
}) return type: tab element opens a new tab that loads a page with the specified url.
contains - Archive of obsolete content
« xul reference home contains( item ) return type: boolean returns true if the menulist contains the specified menuitem as one of its items.
ensureElementIsVisible - Archive of obsolete content
« xul reference home ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the displayed items are scrolled so that it is.
ensureIndexIsVisible - Archive of obsolete content
« xul reference home ensureindexisvisible( index ) return type: no return value if the item at the specified index is not currently visible to the user the displayed items are scrolled so that it is.
getBrowserAtIndex - Archive of obsolete content
« xul reference home getbrowseratindex( index ) return type: browser element returns a browser at the specified tab index.
getBrowserForDocument - Archive of obsolete content
« xul reference home getbrowserfordocument( document ) return type: browser element returns a browser for the specified document.
getBrowserForTab - Archive of obsolete content
« xul reference home getbrowserfortab( tab ) return type: browser element returns a browser for the specified tab element.
getBrowserIndexForDocument - Archive of obsolete content
« xul reference home getbrowserindexfordocument( document ) return type: integer returns the index of the browser for the specified document in the tabbrowser the method was invoked on.
getIcon - Archive of obsolete content
ArchiveMozillaXULMethodgetIcon
« xul reference home geticon( atab ) return type: string returns the url of the specified tab's favicon.
getIndexOfItem - Archive of obsolete content
« xul reference home getindexofitem( item ) return type: integer returns the zero-based position of the specified item.
getItemAtIndex - Archive of obsolete content
« xul reference home getitematindex( index ) return type: element returns the element that is at the specified index.
getNextItem - Archive of obsolete content
« xul reference home getnextitem( startitem, delta ) return type: element this method returns the item a given distance (delta) after the specified startitem, or null if no such item exists.
getNotificationBox - Archive of obsolete content
« xul reference home getnotificationbox( browser ) return type: notificationbox element returns a notificationbox for the specified browser element.
getNotificationWithValue - Archive of obsolete content
the value is specified when adding the notification with appendnotification.
getPageById - Archive of obsolete content
« xul reference home getpagebyid( pageid ) return type: wizardpage element returns the wizardpage element corresponding to the specified pageid.
getPreviousItem - Archive of obsolete content
« xul reference home getpreviousitem( startitem, delta ) return type: element this method returns the item a given distance (delta) before the specified startitem, or null if no such item exists.
getResultAt - Archive of obsolete content
« xul reference home getresultat( index ) obsolete since gecko 26 return type: nsiautocompleteitem returns the result item at the specified index.
getResultValueAt - Archive of obsolete content
« xul reference home getresultvalueat( index ) return type: result value returns the result value at the specified index.
getSessionResultAt - Archive of obsolete content
« xul reference home getsessionresultat( session, index ) obsolete since gecko 26 return type: result item returns the result item at the specified index for the specified session.
getSessionValueAt - Archive of obsolete content
« xul reference home getsessionvalueat( session, index ) return type: result value returns the result value at the specified index for a specific session.
getTabForBrowser - Archive of obsolete content
« xul reference home gettabforbrowser( browser ) return type: tab returns the xul tab which contains the specified browser.
getTabModalPromptBox - Archive of obsolete content
« xul reference home gettabmodalpromptbox( browser ) return type: object returns an object that manages tab-modal prompts for the specified browser.
goTo - Archive of obsolete content
ArchiveMozillaXULMethodgoTo
« xul reference home goto( pageid ) return type: no return value this method is used to change which page is currently displayed, specified by the pageid argument.
insertItemAt - Archive of obsolete content
« xul reference home insertitemat( index, label, value ) return type: element this method creates a new item and inserts it at the specified position.
loadURIWithFlags - Archive of obsolete content
« xul reference home loaduriwithflags( uri, flags, referrer, charset, postdata ) return type: no return value load a url into the document, with the specified load flags, the given referrer, character set, and post data.
openPopupAtScreen - Archive of obsolete content
« xul reference home openpopupatscreen( x, y, iscontextmenu ) return type: no return value open the popup at a specific screen position specified by x and y.
pinTab - Archive of obsolete content
ArchiveMozillaXULMethodpinTab
« xul reference home pintab( tabelement ) return type: no return value pins the specified tab element as an app tab.
removeAllTabsBut - Archive of obsolete content
« xul reference home removealltabsbut( tabelement ) return type: no return value removes all of the tab panels except for the one corresponding to the specified tab.
removeItemAt - Archive of obsolete content
« xul reference home removeitemat( index ) return type: element removes the child item in the element at the specified index.
removeItemFromSelection - Archive of obsolete content
« xul reference home removeitemfromselection( item ) return type: no return value deselects the specified item without deselecting other items.
scrollToIndex - Archive of obsolete content
« xul reference home scrolltoindex( index ) return type: no return value scrolls the element to the specified index.
setIcon - Archive of obsolete content
ArchiveMozillaXULMethodsetIcon
« xul reference home seticon( atab, auri ) return type: no return value sets the specified tab's favicon to the image specified by auri.
showPopup - Archive of obsolete content
if x and y are -1, the popup will be positioned relative to the element specified as the first argument.
startEditing - Archive of obsolete content
« xul reference home startediting( row, column ) return type: no return value activates user editing of the given cell, which is specified by row index number and the nsitreecolumn in which it is located.
timedSelect - Archive of obsolete content
« xul reference home timedselect( item, timeout ) return type: no return value selects the item specified by the argument item after the number of milliseconds given by the timeout argument.
toggleItemSelection - Archive of obsolete content
« xul reference home toggleitemselection( item ) return type: no return value if the specified item is selected, it is deselected.
unpinTab - Archive of obsolete content
« xul reference home unpintab( tabelement ) return type: no return value unpins the specified tab element, making it no longer an app tab.
ContextMenus - Archive of obsolete content
what constitutes the default item isn't specified, but is usually the operation carried out when the item was left-clicked or pressed normally, as opposed to context clicked.
Extensions - Archive of obsolete content
if you want to place the item at a specific location within the context menu rather than at the end, you can use either the insertbefore or insertafter attributes to insert it before or after another item specified by an id.
Menus - Archive of obsolete content
the label for the menu element is specified using the label attribute.
OpenClose - Archive of obsolete content
in this case, the popup is not anchored to an element and just appears at a specific location specified by the x and y arguments to this method.
anchorNode - Archive of obsolete content
« xul reference anchornode type: nsidomelement this read-only property holds the dom node that was specified as the anchor when opening the popup.
resource - Archive of obsolete content
if the ref attribute is not specified, the id attribute is used instead.
uri - Archive of obsolete content
ArchiveMozillaXULPropertyuri
each resource is placed in the variable specified in the uri attribute in turn.
Notes - Archive of obsolete content
implementing an nsicommandlinehandler on windows may trigger a bug that causes an error message ("windows cannot find the file specified") to be displayed when opening external links (like from a shortcut or from an external application).
Actions - Archive of obsolete content
« previousnext » the content to generate in a template is specified using the <xul:action> element which should either be the next sibling of the <xul:query> element (if no rules need be specified) or be a direct child of a <xul:rule> element.
Additional Template Attributes - Archive of obsolete content
the container or starting node variable is specified in the <content> tag inside a query, while the member variable is determined by the value of the uri attribute inside the action body.
Attribute Substitution - Archive of obsolete content
another possibilty is to rearrange the rdf such that the values, in this example, the descriptions, are specified before the containers.
Bindings - Archive of obsolete content
this allows a match to occur even if the description is not specified.
Building Trees - Archive of obsolete content
besides the attributes mentioned above, any other attributes specified on the tree rows and cells are ignored.
RDF Modifications - Archive of obsolete content
first, once the builder reaches the content statement, it checks what the container or reference variable is, in this case ?start, as specified by the uri attribute.
RDF Query Syntax - Archive of obsolete content
</rule> </template> </vbox> this query has two statements, each specified with a different tag.
Rule Compilation - Archive of obsolete content
for each result that is generated by the query, the conditions specified within the rules are scanned, and content is generated when a rule matches.
Simple Query Syntax - Archive of obsolete content
the triples to check are specified using attributes on the rule element (thus, a rule element should be used).
The Joy of XUL - Archive of obsolete content
but overlays can also be specified externally, enabling the designer to superimpose them upon an application without changing the original source.
Things I've tried to do with XUL - Archive of obsolete content
while this works at first, after a number of rows have been added it breaks and stops displaying the first cell (the one specified by the appenditem call).
Tree Widget Changes - Archive of obsolete content
this should correspond to the rows attribute on the tree if it was specified.
Adding Event Handlers to XBL-defined Elements - Archive of obsolete content
each handler element defines the action taken for a particular event specified by its event attribute.
Box Model Details - Archive of obsolete content
if this was not specified, the default would be stretch, which would make the child elements stretch horizontally.
Custom Tree Views - Archive of obsolete content
getcelltext( row , column ) this method should return the text contents at the specified row and column.
Document Object Model - Archive of obsolete content
here are some examples: <button xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/> <button xmlns="http://www.w3.org/1999/xhtml"/> <html:button xmlns:html="http://www.w3.org/1999/xhtml"/> <html:button xmlns:html="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/> namespaces are specified using the xmlns attribute.
Input Controls - Archive of obsolete content
the letter specified is usually drawn underlined in the label.
List Controls - Archive of obsolete content
the listcols element is used to hold the column information, each of which is specified using a listcol element.
More Button Features - Archive of obsolete content
note that the two attributes are not specified when the default value can be used.
Popup Menus - Archive of obsolete content
note that the textbox has its own built-in popup menu which will override the one we specified.
Scroll Bars - Archive of obsolete content
when the user clicks the scroll bar arrows, the thumb will move by the amount specified by the value increment.
Stack Positioning - Archive of obsolete content
the position of a child element may be specified by placing two attributes on the element.
Using Spacers - Archive of obsolete content
you may also sometimes see a flex value specified as a percentage.
XBL Attribute Inheritance - Archive of obsolete content
in this case, it would be preferable if the attribute could be specified on the searchbox instead.
Writing Skinnable XUL and CSS - Archive of obsolete content
the problem here is that you'll end up placing a restriction on the skin, which will force the skin designer to supply an image with the exact name you've specified.
XUL Accesskey FAQ and Policies - Archive of obsolete content
notice that the difference between the button examples above is the case of the accesskey specified.
XUL accessibility guidelines - Archive of obsolete content
by default, xul menus, labels, and other widgets get their font, size, and color settings from the user settings specified in the operating system.
Accessibility/XUL Accessibility Reference - Archive of obsolete content
>" /> <label control="butwrap2" value="is" /> <label control="butwrap2" value="a" /> <label control="butwrap2" value="button" /> </button> <button image="images/img.xbm" tooltiptext="<!--button text-->"/> note that in the third example, only the first label is read browser jaws 7.10 issues to use a browser element with html, the type="content" attribute should be specified.
XUL accessibility tool - Archive of obsolete content
(aaronandy) maybe an online tool to automatically generate a xul a11y tool compatible with a user-specified xul app.
XUL controls - Archive of obsolete content
<filefield/> filefield reference <image> an image specified by a url.
arrowscrollbox - Archive of obsolete content
methods ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the displayed items are scrolled so that it is.
browser - Archive of obsolete content
to get a string from an nsiuri, use nsiuri.spec or nsiuri.asciispec loaduriwithflags( uri, flags, referrer, charset, postdata ) return type: no return value load a url into the document, with the specified load flags, the given referrer, character set, and post data.
button - Archive of obsolete content
crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
caption - Archive of obsolete content
crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
content - Archive of obsolete content
each resource is placed in the variable specified in the uri attribute in turn.
description - Archive of obsolete content
ynamically controlled text that will word wrap <description id="desc" style="width: 300px"></description> document.getelementbyid('desc').textcontent = "this is a long section of dynamic message text that will word wrap"; attributes crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
dialogheader - Archive of obsolete content
alog id="donothing" title="dialog example" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <dialogheader title="my dialog" description="example dialog"/> <!-- other widgets --> </dialog> attributes crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
listcell - Archive of obsolete content
attributes crop, disabled, image, label, type properties disabled style classes listcell-iconic, examples (example needed) attributes crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
menuseparator - Archive of obsolete content
crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
notificationbox - Archive of obsolete content
the value is specified when adding the notification with appendnotification.
param - Archive of obsolete content
ArchiveMozillaXULparam
« xul reference home [ examples | attributes | properties | methods | related ] for sql templates, used to bind values to parameters specified within an sql statement.
progressmeter - Archive of obsolete content
the default value if not specified is 100 such that the value may be used as a percentage.
resizer - Archive of obsolete content
note: starting in gecko 2.0, you can also specify a target element using the element attribute, to use the resizer to resize the specified element instead of the window.
<statusbarpanel> - Archive of obsolete content
-iconic-text, statusbarpanel-menu-iconic examples <statusbar> <statusbarpanel label="left panel"/> <spacer flex="1"/> <progressmeter mode="determined" value="82"/> <statusbarpanel label="right panel"/> </statusbar> attributes crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
tab - Archive of obsolete content
ArchiveMozillaXULtab
crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
tabbox - Archive of obsolete content
if this attribute is not specified, events are listened to from the tabbox.
toolbarbutton - Archive of obsolete content
crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
treeitem - Archive of obsolete content
in a template condition, you should use a treeitem instead of a content element when the dont-build-content flag is specified.
triple - Archive of obsolete content
they should be specified in their full uri form.
window - Archive of obsolete content
the specified string should contain four numbers, separated by commas, indicating the margin in pixels for the top, right, bottom, and left edges of the window, respectively.
Creating a Windows Inno Setup installer for XULRunner applications - Archive of obsolete content
also you had better set the appname and apppublisher properties to the same values specified in your xulrunner application's application.ini file.
Custom app bundles for Mac OS X - Archive of obsolete content
a xul application for mac os x should follow something similar to this basic directory structure: example.app/ contents/ info.plist (application bundle properties are specified in this xml file.) pkginfo (this is a simple text file and is created along with the info.plist file) macos/ (the macos folder will contain your xulrunner executable) xulrunner (this is the xulrunner stub) resources/ (this is where you place your xul application code and support files) application.ini (xulrunner-related application...
Specifying Startup Chrome Window - Archive of obsolete content
specifying a single instance main window by default, each time the user launches the application xulrunner opens the window specified by toolkit.defaultchromeuri.
toolkit.defaultChromeFeatures - Archive of obsolete content
type: string specified by: default prefs of xulrunner applications default: "chrome,dialog=no,all" example: pref("toolkit.defaultchromefeatures", "chrome,resizable=no,dialog=no"); the toolkit.defaultchromefeatures preference allows simple xulrunner-based applications to specify what features are passed to window.open() when the main application window is opened.
toolkit.defaultChromeURI - Archive of obsolete content
type: string specified by: default prefs of xulrunner applications default: none example: pref("toolkit.defaultchromeuri", "chrome://myapp/content/"); the toolkit.defaultchromeuri preference allows simple xulrunner-based applications to open a new window when the application is launched.
Mozrunner - Archive of obsolete content
command line usage the mozrunner command will launch the application (specified by --app) from a binary specified with -b or as located on the path.
nsIContentPolicy - Archive of obsolete content
this method is called before loading the resource specified by acontentlocation to determine whether or not to start loading the requested resource.
2006-11-10 - Archive of obsolete content
william vanderpol asks, regarding remote xul applications, if is it possible (or does it exist?) to have an extension that will allow chrome access to certain specified url's?
NPN_Enumerate - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary gets the names of the properties and methods of the specified npobject.
NPN_Evaluate - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary evaluates a script in the scope of the specified npobject.
NPN_GetStringIdentifiers - Archive of obsolete content
identifiers a pointer to the first element of an array to fill with the identifiers for the strings specified by names.
NPN_GetURL - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary asks the browser to create a stream for the specified url.
NPN_GetURLNotify - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary requests creation of a new stream with the contents of the specified url; gets notification of the result.
NPN_IntFromIdentifier - Archive of obsolete content
returns an integer corresponding to the specified <tt>identifier</tt>.
NPN_Invoke - Archive of obsolete content
if the method was invoked successfully, any return value is stored in the npvariant specified by result.
NPN_InvokeDefault - Archive of obsolete content
if the default method was invoked successfully, any return value is stored in the npvariant specified by result.
NPN_MemAlloc - Archive of obsolete content
description the plug-in calls npn_memalloc to allocate a specified amount of memory in the browser's memory space.
NPN_MemFlush - Archive of obsolete content
requests that the browser free a specified amount of memory.
NPN_PluginThreadAsyncCall - Archive of obsolete content
description causes asynchronous execution of the specified function pointer on the "plug-in thread", passing in the specified user data pointer when it is called.
NPN_RemoveProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary removes a property from the specified npobject.
NPN_SetValue - Archive of obsolete content
imerinterval nppvpluginscriptableinstance nppvpluginscriptableiid nppvjavascriptpushcallerbool: specifies whether you are pushing or popping the jscontext off the stack nppvpluginkeeplibraryinmemory: tells browser that the plugin dll should live longer than usual nppvpluginneedsxembed nppvpluginscriptablenpobject nppvformvalue nppvplugindrawingmodel value the value of the specified variable to be set.
NPN_UTF8FromIdentifier - Archive of obsolete content
returns a utf-8 string as a sequence of nputf8 bytes, or null if the specified <tt>identifier</tt> isn't a string identifier.
NPN_Write - Archive of obsolete content
len length in bytes of the data specified by buf.
NPP_NewStream - Archive of obsolete content
the data in the stream can be the file specified in the src attribute of the embed tag, for an embedded instance, or the file itself, for a full-page instance.
Why RSS Slash is Popular - Counting Your Comments - Archive of obsolete content
one could assume that the comment count was acurate at the moment in time specified in the <channel>'s <lastbuilddate> element, but that is a risky assumption given that no where is that mandated.
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
for example, navigator 4 does not understand the @import directive in css and will not load any external css style sheets specified via @import.
-moz-binding - Archive of obsolete content
formal definition initial valuenoneapplies toall elements except generated content or pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <url> | none examples .exampleone { -moz-binding: url(http://www.example.org/xbl/htmlbindings.xml#radiobutton); } specifications not part of any standard.
-moz-stack-sizing - Archive of obsolete content
(the problem does not affect children moved above or to the left of the stack.) initial valuestretch-to-fitapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values stretch-to-fit the child will influence the stack's size.
-moz-text-blink - Archive of obsolete content
initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none produces no blinking.
-moz-window-shadow - Archive of obsolete content
<window>, <panel>inheritednocomputed valueas specifiedanimation typediscrete syntax the -moz-window-shadow property is specified as one of the keyword values listed below.
-ms-accelerator - Archive of obsolete content
initial valuefalseapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete syntax /* the object is not a keyboard shortcut (the default) */ -ms-accelerator: false /* the object is a keyboard shortcut */ -ms-accelerator: true values false the object is not a keyboard shortcut.
-ms-block-progression - Archive of obsolete content
initial valuetbapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values tb default.
-ms-content-zoom-chaining - Archive of obsolete content
initial valuenoneapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none the initial value.
-ms-content-zoom-limit-max - Archive of obsolete content
smaller values zoom out.computed valueas specifiedanimation typediscrete syntax values <percentage> the maximum zoom factor.
-ms-content-zoom-limit-min - Archive of obsolete content
smaller values zoom out.computed valueas specifiedanimation typediscrete syntax values <percentage> the minimum zoom factor.
-ms-content-zoom-limit - Archive of obsolete content
smaller values zoom out.computed valueas each of the properties of the shorthand:-ms-content-zoom-limit-max: as specified-ms-content-zoom-limit-min: as specifiedanimation typediscrete syntax the -ms-content-zoom-limit shorthand property is specified as one or both of the following content zoom limit values, in order, separated by spaces.
-ms-content-zoom-snap-type - Archive of obsolete content
initial valuenoneapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none initial value.
-ms-content-zoom-snap - Archive of obsolete content
initial valueas each of the properties of the shorthand:-ms-content-zoom-snap-type: none-ms-content-zoom-snap-points: snapinterval(0%, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas each of the properties of the shorthand:-ms-content-zoom-snap-type: as specified-ms-content-zoom-snap-points: as specifiedanimation typediscrete syntax the -ms-content-zoom-snap shorthand property is specified as one or both of the following content zoom snap values, in order, separated by spaces.
-ms-content-zooming - Archive of obsolete content
initial valuezoom for the top level element, none for all other elementsapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none the initial value of all elements except the top-level element.
-ms-high-contrast-adjust - Archive of obsolete content
initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values auto indicates the applicable css properties will be adjusted as expected when the system is in high contrast mode.
-ms-hyphenate-limit-chars - Archive of obsolete content
initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values auto corresponds to a value of 5 2 2, indicating a 5-character word limit, 2 characters required before a hyphenation break, and 2 characters required following a hyphenation break.
-ms-hyphenate-limit-lines - Archive of obsolete content
initial valueno-limitapplies toblock container elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values no-limit indicates that hyphenation is not limited based on the number of consecutive hyphenated lines.
-ms-hyphenate-limit-zone - Archive of obsolete content
initial value0applies toblock container elementsinheritedyespercentagescalculated with respect to the width of the line boxcomputed valueas specifiedanimation typediscrete syntax values <percentage> an integer followed by a percent sign (%), which specifies the width of the hyphenation zone, calculated with respect to the line box.
-ms-ime-align - Archive of obsolete content
initial valueautoapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete syntax /* keyword values */ -ms-ime-align: auto; -ms-ime-align: after; values auto initial value.
-ms-overflow-style - Archive of obsolete content
initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values auto the initial value.
-ms-scroll-chaining - Archive of obsolete content
initial valuechainedapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values chained initial value.
-ms-scroll-rails - Archive of obsolete content
initial valuerailedapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none the content moves exactly with the user's finger.
-ms-scroll-snap-points-x - Archive of obsolete content
initial valuesnapinterval(0px, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values note: a <length-percentage> is a value that can be either a <length> or a <percentaqe>.
-ms-scroll-snap-points-y - Archive of obsolete content
initial valuesnapinterval(0px, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values note: a <length-percentage> is a value that can be either a <length> or a <percentaqe>.
-ms-scroll-snap-x - Archive of obsolete content
initial valueas each of the properties of the shorthand:-ms-scroll-snap-type: none-ms-scroll-snap-points-x: snapinterval(0px, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas each of the properties of the shorthand:-ms-scroll-snap-type: as specified-ms-scroll-snap-points-x: as specifiedanimation typediscrete syntax values the -ms-scroll-snap-x shorthand property is specified as one or both of the following values, in order and separated by spaces.
-ms-scroll-snap-y - Archive of obsolete content
initial valueas each of the properties of the shorthand:-ms-scroll-snap-type: none-ms-scroll-snap-points-y: snapinterval(0px, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas each of the properties of the shorthand:-ms-scroll-snap-type: as specified-ms-scroll-snap-points-y: as specifiedanimation typediscrete syntax values the -ms-scroll-snap-y shorthand property is specified as one or both of the following values, in order and separated by spaces.
-ms-scrollbar-3dlight-color - Archive of obsolete content
initial valuedepends on user agentapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the top and left edges of the scroll box and scroll arrows of the scroll bar.
-ms-scrollbar-arrow-color - Archive of obsolete content
initial valuebuttontextapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the scroll arrows of the scroll bar.
-ms-scrollbar-base-color - Archive of obsolete content
initial valuedepends on user agentapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the base color of the main elements of a scroll bar.
-ms-scrollbar-darkshadow-color - Archive of obsolete content
initial valuethreeddarkshadowapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the scroll bar's gutter.
-ms-scrollbar-face-color - Archive of obsolete content
initial valuethreedfaceapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the scroll box and scroll arrows.
-ms-scrollbar-highlight-color - Archive of obsolete content
initial valuethreedhighlightapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the slider tray, the top and left edges of the scroll box, and the scroll arrows of a scroll bar.
-ms-scrollbar-shadow-color - Archive of obsolete content
initial valuethreeddarkshadowapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-track-color - Archive of obsolete content
initial valuescrollbarapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the track element.
-ms-text-autospace - Archive of obsolete content
initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values none no effect takes place; that is, no extra space is added.
-ms-touch-select - Archive of obsolete content
initial valuegrippersapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values grippers the grippers are always on.
-ms-wrap-flow - Archive of obsolete content
initial valueautoapplies toblock-level elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values auto for floated elements, an exclusion is created; for all other elements, an exclusion is not created.
-ms-wrap-margin - Archive of obsolete content
initial value0applies toexclusion elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values <length> the margin size, a non-negative value.
-ms-wrap-through - Archive of obsolete content
initial valuewrapapplies toblock-level elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values wrap the exclusion element inherits its parent node's wrapping context.
-moz-windows-theme - Archive of obsolete content
syntax the -moz-windows-theme feature is specified as a keyword value that indicates which windows theme is currently being used.
CSS - Archive of obsolete content
ArchiveWebCSS
snap-type and -ms-scroll-snap-points-x properties.-ms-scroll-snap-ythe -ms-scroll-snap-x css shorthand property is a microsoft extension that specifies values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.-ms-scroll-translationthe -ms-scroll-translation css property is a microsoft extension that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.-ms-scrollbar-3dlight-colorthe -ms-scrollbar-3dlight-color css property is a microsoft extension specifying the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.-ms-scrollbar-arrow-colorthe -ms-scrollbar-arrow-color css property is a microsoft extension that specifies the color of the arrow elements of a scroll arrow.-ms-scrollbar-base-colorthe -ms-scrol...
Processing XML with E4X - Archive of obsolete content
these filter operations are specified using an expression contained in parentheses: var html = <html> <p id="p1">first paragraph</p> <p id="p2">second paragraph</p> </html>; alert(html.p.(@id == "p1")); // alerts "first paragraph" nodes matching the path before the expression (in this case the paragraph elements) are added to the scope chain before the expression is evaluated, as if they had been specified using the with stat...
Legacy generator function - Archive of obsolete content
the legacy generator function statement declares legacy generator functions with the specified parameters.
Debug.msTraceAsyncCallbackCompleted - Archive of obsolete content
indicates that the callback stack associated with a previously specified asynchronous operation has completed.
Debug.msTraceAsyncCallbackStarting - Archive of obsolete content
the debug.mstraceasynccallbackstarting function associates the callback stack with a previously specified asynchronous operation.
Debug.msTraceAsyncCallbackCompleted - Archive of obsolete content
if not specified, debug.ms_async_op_status_success is used.
Debug.setNonUserCodeExceptions - Archive of obsolete content
syntax debug.setnonusercodeexceptions [= bool]; remarks if this property is set to true within a given scope, the debugger can then choose whether to take some specified action on exceptions thrown inside that scope: for instance, if the developer wishes to break on user-unhandled exceptions.
VBArray.dimensions - Archive of obsolete content
example the dimensions method provides a way to retrieve the number of dimensions in a specified vbarray.
VBArray.getItem - Archive of obsolete content
the vbarray.getitem method returns the item at the specified location.
VBArray.lbound - Archive of obsolete content
the vbarray.lbound method returns the lowest index value used in the specified dimension of a vbarray.
VBArray.ubound - Archive of obsolete content
the vbarray.ubound method returns the highest index value used in the specified dimension of the vbarray.
New in JavaScript 1.3 - Archive of obsolete content
additional features of version 1.2, at the time not specified by ecma-262 were kept in the javascript language (see below for a list of differences).
New in JavaScript 1.7 - Archive of obsolete content
in more recent firefox versions, the implementation is updated to work with semantics as specified in ecmascript edition 6.
New in JavaScript 1.8.5 - Archive of obsolete content
new features in javascript 1.8.5 new functions function description object.create() creates a new object with the specified prototype object and properties.
ECMAScript 2015 support in Mozilla - Archive of obsolete content
ol object symbol (firefox 36) symbol.iterator (firefox 36) symbol.for() - global symbol registry (firefox 36) symbol.match (firefox 40) symbol.species (firefox 41) symbol.toprimitive (firefox 44) symbol.prototype[@@toprimitive] (firefox 44) symbol.replace (firefox 49) symbol.search (firefox 49) symbol.split (firefox 49) symbol.hasinstance (firefox 50) typed arrays typed arrays are specified as part of ecmascript 2015 and no longer in their own specification.
Object.unobserve() - Archive of obsolete content
return value the specified object.
Object.prototype.watch() - Archive of obsolete content
handler a function to call when the specified property's value changes.
JavaClass - Archive of obsolete content
created by a reference to the class name used with the packages object: packages.javaclass javaclassis the fully-specified name of the object's java class.
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
runat=”client” – code contained in this block is restricted to execution client-side, which is also what happens if no runat attribute is specified.
Window.importDialog() - Archive of obsolete content
instead of opening a new window, it merges the specified xul dialog into the main window.
Troubleshooting XForms Forms - Archive of obsolete content
xpath 1.0 expressions do not have a default namespace, so a prefix must always be specified if the namespace is not the empty namespace.
Mozilla XForms Specials - Archive of obsolete content
), except for :read-only and :read-write, because of non-specified behaviour of these for (x)html.
XForms Help Element - Archive of obsolete content
if more than one source of message is specified in this element, the order of precedence is: single node binding attributes, linking attributes, inline text.
XForms Hint Element - Archive of obsolete content
if more than one source of message is specified in this element, the order of precedence is: single node binding attributes, linking attributes, inline text.
XForms Range Element - Archive of obsolete content
single-node binding special incremental - supported, default value is false start - lower bound of possible values end - upper bound of possible values step - is used for incrementing/decrementing values start/end/step attributes if the value of the bound instance node is outside the range of values specified by the start and end attributes, then the range element receives a xforms-out-of-range event.
XForms Trigger Element - Archive of obsolete content
representations the xforms trigger element can be represented by the following widgets for the specified appearance attribute values: button - default representation (xhtml/xul) link/clickable text - used when appearance = 'minimal' (xhtml only) button displaying a button is the default presentation (xhtml/xul).
XForms Upload Element - Archive of obsolete content
a filter can be specified to limit the types of files that the user can select from.
Archived open Web documentation - Archive of obsolete content
instead of opening a new window, it merges the specified xul dialog into the main window.
Square tilemaps implementation: Static maps - Game development
in these examples, empty tiles will be represented by index 0, so we will shift the indices of the atlases by one (and thus the first tile of the atlas will be assigned index 1, the second index 2, etc.) the gettile() helper method returns the tile contained at the specified column and row.
Create the Canvas and draw on it - Game development
this is because, just as with css, color can be specified as a hexadecimal value, a color keyword, the rgba() function, or any of the other available color methods.
Initialize the framework - Game development
the id of the <canvas> to use for rendering if one already exists on the page (we've specified null because we want phaser to create its own.) the names to use for phaser's three key functions that load and start the game, and update the game loop on every frame; we will use the same names to keep it clean.
2D maze game with device orientation - Game development
if there's nothing specified in that last argument or the element is not found, the canvas will be added to the <body> tag.
Base64 - MDN Web Docs Glossary: Definitions of Web-related terms
the algorithm used by atob() and btoa() is specified in rfc 4648, section 4.
Selector (CSS) - MDN Web Docs Glossary: Definitions of Web-related terms
the matching elements will have the rule's specified style applied to them.
DOM (Document Object Model) - MDN Web Docs Glossary: Definitions of Web-related terms
dom was not originally specified—it came about when browsers began implementing javascript.
Distributed Denial of Service - MDN Web Docs Glossary: Definitions of Web-related terms
eventually, the assailant instructs the controlled machines to launch an attack against a specified target.
Grid Column - MDN Web Docs Glossary: Definitions of Web-related terms
these columns will be auto-sized by default, or can have a size specified with the grid-auto-columns property.
Grid Row - MDN Web Docs Glossary: Definitions of Web-related terms
these rows will be auto sized by default, or can have a size specified with the grid-auto-rows property.
JavaScript - MDN Web Docs Glossary: Definitions of Web-related terms
since then, the standardized javascript is called ecmascript and specified under ecma-262, whose latest (tenth, es2019) edition is available as of june 2019.
Media (CSS) - MDN Web Docs Glossary: Definitions of Web-related terms
learn more general knowledge using media queries technical reference media queries define a set of characteristics or parameters required to apply the css styles that are specified within the curly braces of the media query; for example: only applying certain css styles for devices below 768 pixels.
Navigation directive - MDN Web Docs Glossary: Definitions of Web-related terms
navigate-to restricts the urls to which a document can initiate navigation by any means, including <form> (if form-action is not specified), <a>, window.location, window.open, etc.
Primitive - MDN Web Docs Glossary: Definitions of Web-related terms
these copies, existing only inside the functions' scopes, are accessible via the identifiers we specified in the functions' definitions (num for addtwo, foo for addtwo_v2) then, the functions' statements are executed: in the first function, a local num variable had been created.
Quality values - MDN Web Docs Glossary: Definitions of Web-related terms
nevertheless, with the same quality, more specific values have priority over less specific ones: text/html;q=0.8,text/*;q=0.8,*/*;q=0.8 value priority text/html 0.8 (but totally specified) text/* 0.8 (partially specified) */* 0.8 (not specified) some syntax, like the one of accept, allow additional specifiers like text/html;level=1.
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
probably just need bom test since other encodings must be specified var patternxml = /\.(svg|xml|xul|rdf|xhtml)$/; if ((contenttype && contenttype.match(/[text|application]\/(.*)\+?xml/)) || (href.indexof('file://') === 0 && href.match(patternxml))) { /* grab the response as text (see below for that routine) and then find encoding within*/ var en...
XML - MDN Web Docs Glossary: Definitions of Web-related terms
extensible markup language (xml) is a generic markup language specified by the w3c.
firewall - MDN Web Docs Glossary: Definitions of Web-related terms
it can either let it pass or block it, according to some specified rules.
HTML: A good basis for accessibility - Learn web development
by giving each one the attribute tabindex="0": <div data-message="this is from the first button" tabindex="0">click me!</div> <div data-message="this is from the second button" tabindex="0">click me too!</div> <div data-message="this is from the third button" tabindex="0">and me!</div> basically, the tabindex attribute is primarily intended to allow tabbable elements to have a custom tab order (specified in positive numerical order), instead of just being tabbed through in their default source order.
HTML: A good basis for accessibility - Learn web development
by giving each one the attribute tabindex="0": <div data-message="this is from the first button" tabindex="0">click me!</div> <div data-message="this is from the second button" tabindex="0">click me too!</div> <div data-message="this is from the third button" tabindex="0">and me!</div> basically, the tabindex attribute is primarily intended to allow tabbable elements to have a custom tab order (specified in positive numerical order), instead of just being tabbed through in their default source order.
Debugging CSS - Learn web development
this means that the space taken up on the page by the box is the exact size that you specified — in our case width: 400px.
Overflowing content - Learn web development
if two keywords are specified, the first applies to overflow-x and the second applies to overflow-y.
Grids - Learn web development
the implicit and explicit grid we have only specified column tracks so far, and yet rows are being created to hold our content.
How CSS is structured - Learn web development
a value not specified in css shorthand reverts to its initial value.
Styling links - Learn web development
the border-bottom value has been set as 1px solid, with no color specified.
Styling lists - Learn web development
if both a type and an image are specified, the type is used as a fallback if the image can't be loaded for some reason.
What is the difference between webpage, website, web server, and search engine? - Learn web development
each book has its own unique location in the library (two books cannot be kept at the same place) which is specified by the catalog number.
How do you upload your files to a web server? - Learn web development
uploading to the server our example host instructions told us "to publish on the web, put your files into the public/htdocs directory." you need to navigate to the specified directory in your right pane.
Sending form data - Learn web development
in this example, the data is sent to an absolute url — https://example.com: <form action="https://example.com"> here, we use a relative url — the data is sent to a different url on the same origin: <form action="/somewhere_else"> when specified with no attributes, as below, the <form> data is sent to the same page that the form is present on: <form> note: it's possible to specify a url that uses the https (secure http) protocol.
Marking up a letter - Learn web development
the author of the letter should be specified in an appropriate meta tag.
HTML table basics - Learn web development
LearnHTMLTablesBasics
<col> elements are specified inside a <colgroup> container just below the opening <table> tag.
Choosing the right approach - Learn web development
universe!'); }, 2000) pitfalls you can use recursive settimeout() calls to run a function repeatedly in a similar fashion to setinterval(), using code like this: let i = 1; settimeout(function run() { console.log(i); i++; settimeout(run, 100); }, 100); there is a difference between recursive settimeout() and setinterval(): recursive settimeout() guarantees at least the specified amount of time (100ms in this example) will elapse between the executions; the code will run and then wait 100 milliseconds before it runs again.
Introducing asynchronous JavaScript - Learn web development
async callbacks async callbacks are functions that are specified as arguments when calling a function which will start executing code in the background.
Introduction to web APIs - Learn web development
the first five lines specify the location of the resource we want to fetch, create a new instance of a request object using the xmlhttprequest() constructor, open an http get request to retrieve the specified resource, specify that the response should be sent in json format, then send the request.
Adding features to our bouncing balls demo - Learn web development
if it is one of the four represented by the specified keycodes, then the evil circle will move left/right/up/down.
Inheritance in JavaScript - Learn web development
so, for example, if you had something really simple like this: function brick() { this.width = 10; this.height = 20; } you could inherit the width and height properties by doing this (as well as the other steps described below, of course): function blueglassbrick() { brick.call(this); this.opacity = 0.5; this.color = 'blue'; } note that we've only specified this inside call() — no other parameters are required as we are not inheriting any properties from the parent that are set via parameters.
Object prototypes - Learn web development
for example, try this in your previous example's javascript console: let person2 = object.create(person1); what create() actually does is to create a new object from a specified prototype object.
CSS performance optimization - Learn web development
<link rel="stylesheet" href="styles.css"> <!-- blocking --> <link rel="stylesheet" href="print.css" media="print"> <!-- not blocking --> <link rel="stylesheet" href="mobile.css" media="screen and (max-width: 480px)"> <!-- not blocking on large screens --> by default the browser assumes that each specified style sheet is render blocking.
Website security - Learn web development
john is a malicious user who knows that a particular site allows logged-in users to send money to a specified account using an http post request that includes the account name and an amount of money.
Starting our Svelte Todo list app - Learn web development
ontain the text svelte to-do list: <title>svelte to-do list</title> open src/app.svelte and replace its contents with the following: <script> import todos from './components/todos.svelte' </script> <todos /> in development mode, svelte will issue a warning in the browser console when specifying a prop that doesn't exist in the component; in this case we have a name prop being specified when we instantiate the app component inside src/main.js, which isn't used inside app.
Getting started with Svelte - Learn web development
degit won't create a local git repo, it will just download the files of the specified folder.
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
when specified, as soon as the component is mounted and the dom node is created svelte assigns a reference to the dom node to the specified variable.
Creating our first Vue component - Learn web development
add the following line at the top of todoitem.vue’s <script> element: import uniqueid from 'lodash.uniqueid'; next, add add an id field to our data property, so the component object ends up looking like so (uniqueid() returns the specified prefix — todo- — with a unique string appended to it): import uniqueid from 'lodash.uniqueid'; export default { props: { label: { required: true, type: string }, done: { default: false, type: boolean } }, data() { return { isdone: this.done, id: uniqueid('todo-') }; } }; next, bind the id to both our checkbox’s id attribute and the label’s for attrib...
Adding a new todo form: Vue events, methods, and models - Learn web development
{.key}: triggers the event handler only via the specified key.
Setting up your own test automation environment - Learn web development
you just need to create your driver instance, but with a few more features specified, including the capabilities of the browser you want to test on, the address of the server, and the user credentials you need (if any) to access it.
Deploying our app - Learn web development
and even better, whenever we make a change and push the change to our remote git repository (on github), this will trigger a notification to netlify which will then run our specified build task and then deploy the resulting dist directory to our published site.
Client-side tooling overview - Learn web development
often linters can be configured to not only report errors, but also report any violations of a specified style guide that you team might be using (for example code that is using the wrong number of spaces for indentation, or using template literals rather than regular string literals).
Gecko info for Windows accessibility vendors
another [in] parameter, usealternativemediaproperties, indicates whether you want style information for the default media type (usually screen), or a set of alternative media types specified in nsisimpledomdocument::set_alternateviewmediatype(mediatypestring) .
Information for External Developers Dealing with Accessibility
mac keys: keyboard shortcuts quick reference for mac os x complete reference on keyboard for mac os x: this document list all functions of specified keys, known keyboard shortcuts, explains how to create keyboard shortcuts, explains appropriate use for the arrow keys, how to move the insertion point with keys, how to extent text selection with keys, functions of function keys, what are reserved keyboard shortcuts, how to create your own keyboard shortcuts, keyboard focus and navigation, type-ahead and key-repeat, etc.
Adding a new word to the en-US dictionary
the script only works if you have the environment variable editor set to the executable of an editor program; if you don't have it set, you can do editor=vim sh edit-dictionary to edit using vim (or you can substitute some other editor), or you can just do sh edit-dictionary if you have an editor already specified.
Continuous Integration
perfherder alerts we track changes to talos and other performance frameworks inside perfherder, and try to automatically alert when there is a sustained change exceeding a certain magnitude (specified per test).
Creating Sandboxed HTTP Connections
it is usually best to use a javascript wrapper that implements all the required methods and calls the specified callback function when the connection has completed.
Debugging Frame Reflow
the overflow area is specified as (x,y) origin and width x height.
Adding APIs to the navigator object
the newly added object is a reference to the component specified by the contract id my_contract_id.
Configuring Build Options
you then need to use the ac_add_app_options with the specified names to enable different applications in each object directory.
Gmake vs. Pymake
you should also make sure that the object directory path specified in your mozconfig matches the directory in which you're invoking pymake.
The Firefox codebase: CSS Guidelines
if you are not using windows, one way to test against those adjustments on other platforms is: going to about:preferences clicking on the "colors..." button in the "fonts & colors" sub-section of the "language and appearance" section under "override the colors specified by the page with your selections above", select the "always" option chrome area the automatic adjustments previously mentioned only apply to pages rendered in the content area.
Gecko Logging
raw print exactly what has been specified in the format string, without the process/thread/timestamp, etc.
Error codes returned by Mozilla APIs
c_illegalinput (0x8050000e) ns_imagelib_error_failure (0x80540005) ns_imagelib_error_no_decoder (0x80540006) ns_imagelib_error_not_finished (0x80540007) ns_imagelib_error_load_aborted (0x80540008) ns_error_wont_handle_content (0x805d0001) moz_error_storage_error (0x80630001) ns_error_schemavalidator_no_schema_loaded (0x80640001) ns_error_schemavalidator_no_dom_node_specified (0x80640002) ns_error_schemavalidator_no_type_found (0x80640003) ns_error_schemavalidator_type_not_found (0x80640004) note: there are other errors in these files: gfx/public/nsidevicecontext.h base/public/nsneterror.h parser/htmlparser/public/nsiparser.h layout/base/nslayouterrors.h profile/public/nsiprofileinternal.idl security/manager/ssl/public/nsicmsmessageerrors.idl dir...
Experimental features in Firefox
nightly 77 no developer edition 77 no beta 77 no release 77 no preference name layout.css.grid-template-masonry-value.enabled media feature: prefers-contrast the prefers-contrast media feature is used to detect whether the user has specified a preference for higher (or lower) contrast in the presentation of web content.
Multiple Firefox profiles
once done, each one should automatically start with the specified profile.
-moz-window-dragging
<window>, <panel> inherited no media visual computed value as specified animation type discrete canonical order the unique non-ambiguous order defined by the formal grammar syntax the -moz-window-dragging property is specified as one of the keyword values listed below.
overflow-clip-box
initial valuepadding-boxapplies toall elementsinheritednomediavisualcomputed valueas specifiedanimation typediscretecanonical orderthe unique non-ambiguous order defined by the formal grammar syntax values padding-box this keyword makes the clipping be related to the padding box.
MozBeforePaint
this new property indicates the time, in milliseconds since epoch, at which all animations started in the specified window during the current refresh interval should be considered to have started running.
Embedding Tips
this method should create the new browser window in the specified style and hand back the nsiwebbrowserchrome interface to it.
Script security
expanded principal an expanded principal is specified as an array of origins: ["http://mozilla.org", "http://moz.org"] the expanded principal subsumes every content principal it contains.
HTTP Cache
a particular app cache version in a group) in hands, this storage will provide read and write access to entries in that application cache; when the app cache is not specified, this storage will operate over all existing app caches the service also provides methods to clear the whole disk and memory cache content or purge any intermediate memory structures: clear – after it returns, all entries are no longer accessible through the cache apis; the method is fast to execute and non-blocking in any way; the actual erase happens in background ...
How Mozilla determines MIME Types
(on unix, this means checking mime.types.) if that fails, a user-supplied helper app is searched for by extension, and the specified mime type will be used.
DownloadList
a filter function may be specified to remove only a subset of those downloads.
Http.jsm
the data can be specified via postdata option.
ISO8601DateUtils.jsm
return value a javascript date object corresponding to the specified date string.
Examples
when newpromise is fulfilled, nothing happens, because no fulfillment callback is specified and the return value of the last then method is ignored.
Using workers in JavaScript code modules
chromeworker for this purpose, you need to use the nsiworkerfactory interface: var workerfactory = components.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); var worker = workerfactory.newchromeworker('script_url.js'); this will create a new chrome worker that will immediately begin to run the script at the specified url (in this case, "script_url.js").
Localizing extension descriptions
if a preference isn't set and there isn't a matching em:localized property for the current locale or en-us, then the properties specified directly on the install manifest are used as a last resort, as they were always used before gecko 1.9.
Localization technical reviews
#unfilter emptylines in toolkit/defines.inc, the native name of the language is specified, which is used as description for the built language packs.
Setting up the infrastructure
copy the shell scripts from /addons/trunk/site/app/locale/ to your locale directory: extract-po.sh will be used to extract all english strings from your application's directories specified in source_dirs, merge the resulting template (*.pot) file with the existing (already containing translations) messages.po files for each locale (if they exist) and merge the new messages.po files to messages.mo files.
Mozilla Framework Based on Templates (MFBT)
rangedptr.h implements rangedptr, a smart pointer template whose value may be manipulated only within a range specified at construction time, and which may be dereferenced only at valid locations in that range.
Fonts for Mozilla 2.0's MathML engine
furthermore, in accordance with the w3c css2 recommendation on fonts, authors can specify an ordered list of particular fonts which they prefer (using the font-family property of css), with the assurance that mozilla's font engine will hunt for alternate fonts whenever their specified fonts are not found on a particular user's system.
Mozilla MathML Status
if only the main features of an element are implemented then its section is marked as supported but details of unsupported attributes are specified below.
Mozilla Style System Documentation
it uses the appropriate declaration struct and has each rule fill in any properties specified by that rule that are not filled in already.
BloatView
to do so, the xpcom_mem_log_classes environment variable should be set to the name of the class from the bloatview table: xpcom_mem_log_classes=myclass mach mochitest [options] multiple class names can be specified by setting xpcom_mem_log_classes to a comma-separated list of names: xpcom_mem_log_classes=myclass,myotherclass,deliberatelyleakedclass mach mochitest [options] test harness scripts typically accept a --setenv option for specifying environment variables, which may be more convenient in some cases: mach mochitest --setenv=xpcom_mem_log_classes=myclass [options] for getting allocation stacks in...
GC and CC logs
calling find_roots.py on a cc log with a specific object or kind of object will produce paths from rooting objects to the specified objects.
Measuring performance using the PerfMeasurement.jsm code module
for instance, let's measure instructions executed, cache references, and cache misses: let monitor = new perfmeasurement(perfmeasurement.cpu_cycles | perfmeasurement.cache_references | perfmeasurement.cache_misses); this creates a new perfmeasurement object, configured to record the specified event types.
Refcount tracing and balancing
note that setting xpcom_mem_log_classes will also list the serial number of each object that leaked in the "bloat log" (that is, the file specified by the xpcom_mem_bloat_log variable; see the bloatview documentation for more details).
browser.dom.window.dump.file
browser.dom.window.dump.file redirects the ouput of window.dump() calls to a file whose address is specified in this preference if browser.dom.window.dump.enabled is set to true.
Preference reference
set it to true to enable it, or false to disable it.browser.dom.window.dump.filebrowser.dom.window.dump.file redirects the ouput of window.dump() calls to a file whose address is specified in this preference if browser.dom.window.dump.enabled is set to true.
Preferences system
ui elements that refer to the preferences above, e.g.: <checkbox id="check1" preference="pref1" label="&check1.label;" accesskey="&check1.accesskey;"/> </prefpane> <prefpane id="pane2" label="&pane2.title;" src="chrome://uri/to/pane.xul"/> </prefwindow> pane content can be specified inline or an external chrome uri supplied for pane content to be loaded in via a dynamic overlay.
AsyncTestUtils extended framework
if multiple sets are specified, their messages will be interleaved.
Condition Variables
a call to pr_waitcondvar causes a thread to block until a specified condition variable receives notification of a change of state in its associated monitored data.
Date and Time
the nspr data type for clock/calendar time, called an exploded time, has the time zone information in it, so that its corresponding point in absolute time is uniquely specified.
I/O Functions
functions that operate on pathnames functions that act on file descriptors directory i/o functions socket manipulation functions converting between host and network addresses memory-mapped i/o functions anonymous pipe function polling functions pollable events manipulating layers functions that operate on pathnames a file or directory in a file system is specified by its pathname.
Introduction to NSPR
a call to pr_waitcondvar may also resume because the interval specified on the wait call has expired.
PLHashEnumerator
when all the table entries are enumerated, each entry is passed to a user-specified function of type plhashenumerator with the hash table entry, an integer index, and an arbitrary piece of user data as argument.
PL_HashString
returns the hash number for the specified key.
PRDir
the function pr_opendir opens a specified directory and returns a pointer to a prdir structure, which can be passed to pr_readdir repeatedly to obtain successive entries (files or subdirectories in the open directory).
PRFileInfo
description the prfileinfo structure provides information about a file, a directory, or some other kind of file system object, as specified by the type field.
PRFileInfo64
description the prfileinfo64 structure provides information about a file, a directory, or some other kind of file system object, as specified by the type field.
PRLinger
that is, if any data remains in the socket send buffer, pr_close blocks until either all the data is sent and acknowledged by the peer or the interval specified by linger expires.
PR_Initialize
the type for the root function used by pr_initialize is specified as follows: syntax typedef printn (pr_callback *prprimordialfn)(printn argc, char **argv); see also pr_initialize ...
PRThreadScope
the scope of an nspr thread, specified as a parameter to pr_createthread or returned by pr_getthreadscope.
PRThreadType
the type of an nspr thread, specified as a parameter to pr_createthread.
PR_APPEND_LINK
description pr_append_link adds the specified element to the end of the specified list.
PR_Accept
accepts a connection on a specified socket.
PR_Assert
ln the line number within the specified file of this function call.
PR_Available
determines the number of bytes (expressed as a 32-bit integer) that are available for reading beyond the current read-write pointer in a specified file or socket.
PR_Available64
determines the number of bytes (expressed as a 32-bit integer) that are available for reading beyond the current read-write pointer in a specified file or socket.
PR_Calloc
description this function allocates memory on the heap for the specified number of objects of the specified size.
PR_CExitMonitor
description using the value specified in the address parameter to find a monitor in the monitor cache, pr_cexitmonitor decrements the entry count associated with the monitor.
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_CNotify
description using the value specified in the address parameter to find a monitor in the monitor cache, pr_cnotify notifies single a thread waiting for the monitor's state to change.
PR_CNotifyAll
pr_failure indicates that the referenced monitor could not be located or that the calling thread was not in the monitor description using the value specified in the address parameter to find a monitor in the monitor cache, pr_cnotifyall notifies all threads waiting for the monitor's state to change.
PR_CloseDir
closes the specified directory.
PR_CloseSemaphore
closes a specified semaphore.
PR ConvertIPv4AddrToIPv6
this must be specified in network byte order.
PR_CreateFileMap
size size of the file specified by fd.
PR_CreateIOLayerStub
returns a new file descriptor for the specified layer.
PR_Delete
description pr_delete deletes a file with the specified pathname name.
PR_DeleteSemaphore
removes a semaphore specified by name from the system.
PR_DestroyLock
destroys a specified lock object.
PR_EnterMonitor
enters the lock associated with a specified monitor.
PR_ExitMonitor
decrements the entry count associated with a specified monitor and, if the entry count reaches zero, releases the monitor's lock.
PR_ExplodeTime
description this function converts the specified absolute time to a clock/calendar time in the specified time zone.
PR_GetDescType
describes what type of file is referenced by a specified file descriptor.
PR_GetNameForIdentity
returns the function returns one of the following values: if successful, the function returns a pointer to the string associated with the specified layer.
PR_GetRandomNoise
buf must be at least as large as specified in size.
PR_GetSockName
gets network address for a specified socket.
PR_GetSocketOption
retrieves the socket options set for a specified socket.
PR_GetThreadPriority
returns the priority of a specified thread.
PR_GetUniqueIdentity
returns the function returns one of the following values: if successful, the prdescidentity for the layer associated with the string specified in the layer named layer_name.
PR INIT CLIST
description initializes the specified list to be an empty list.
PR_INIT_STATIC_CLIST
description pr_init_static_clist statically initializes the specified list to be an empty list.
PR_INSERT_AFTER
description pr_insert_after inserts the element specified by elemp1 into the circular list, after the element specified by elemp2.
PR_INSERT_BEFORE
description pr_insert_before inserts the element specified by elemp1 into the circular list, before the element specified by elemp2.
PR_INSERT_LINK
description pr_insert_link inserts the specified element at the head of the specified list.
PR_ImplodeTime
description this function converts the specified clock/calendar time to an absolute time and returns the converted time value.
PR_InitializeNetAddr
the value is specified in host byte order.
PR_Interrupt
returns the function returns one of the following values: if the specified thread is currently blocked, pr_success.
PR_LIST_HEAD
description pr_list_head returns the head of the specified circular list.
PR_LIST_TAIL
description pr_list_tail returns the tail of the specified circular list.
PR_LOG_TEST
description this macro tests whether logging is enabled for the specified module and level.
PR_LoadLibrary
description this function loads and returns a reference to the specified library.
PR_Lock
locks a specified lock object.
PR_LogPrint
returns nothing description this function unconditionally writes a message to the log using the specified format string.
PR_MALLOC
allocates memory of a specified size from the heap.
PR_MkDir
creates a directory with a specified name and access mode.
PR_NEW
allocates memory of a specified size from the heap.
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_NEXT_LINK
description pr_next_link returns a pointer to the element following the specified element.
PR_NewTCPSocket
new code should use pr_opentcpsocket instead, which allows the address family (ipv4 or ipv6) of the new tcp socket to be specified.
PR_NewThreadPrivateIndex
this function can be specified as null.
PR_NewUDPSocket
new code should use pr_openudpsocket instead, which allows the address family (ipv4 or ipv6) of the new udp socket to be specified.
PR_NormalizeTime
description this function adjusts the fields of the specified time structure using the specified time parameter callback function, so that they are in the proper range.
PR_NotifyAll
promotes all threads waiting on a specified monitor to a ready state.
PR_OpenAnonFileMap
creates or opens a named semaphore with the specified name syntax #include <prshma.h> nspr_api( prfilemap *) pr_openanonfilemap( const char *dirname, prsize size, prfilemapprotect prot ); parameters the function has the following parameters: dirname a pointer to a directory name that will contain the anonymous file.
PR_OpenTCPSocket
creates a new tcp socket of the specified address family.
PR OpenUDPSocket
creates a new udp socket of the specified address family.
PR_PREV_LINK
description pr_prev_link returns a pointer to the element preceding the specified element.
PR_PostSemaphore
increments the value of a specified semaphore.
PR_PushIOLayer
the new layer is inserted into the stack just above the layer with the identity specified by id.
PR_Realloc
the contents of the specified memory remains the same up to the smaller of its old size and new size, although the new memory block's address can be different from the original address.
PR_REMOVE_AND_INIT_LINK
description pr_remove_and_init_link removes the specified element from its circular list and initializes the links of the element to point to itself.
PR_REMOVE_LINK
description pr_remove_link removes the specified element from its circular list.
PR_RecvFrom
description pr_recvfrom receives up to a specified number of bytes from socket, which may or may not be connected.
PR_STATIC_ASSERT
returns nothing description this macro evaluates the specified expression.
PR_SetError
description nspr does not validate the value of the error number or os error number being specified.
PR_SetErrorText
otherwise the text is assumed to be the length specified and to possibly include null characters (as might occur in a multilingual string).
PR_SetLogFile
description creates a log file with the specified file name.
PR_SetSocketOption
retrieves the socket options set for a specified socket.
PR_SetThreadPriority
sets the priority of a specified thread.
PR_Shutdown
shuts down part of a full-duplex connection on a specified socket.
PR_Sync
description pr_sync writes all the in-memory buffered data of the specified file to the disk.
PR_Unlock
releases a specified lock object.
PR_Writev
if the timeout parameter is not pr_interval_no_timeout and all the data cannot be written in the specified interval, pr_writev returns -1 with the error code pr_io_timeout_error.
Process Management and Interprocess Communication
a new process can inherit specified file descriptors from its parent, and the parent can redirect the standard i/o streams of the child process to specified file descriptors.
NSS Certificate Download Specification
server or ca or cert chain) is specified by the server administrator by selections made on the admin pages.
FIPS Mode - an explanation
it must implement the us government standard algorithms (also specified in other fips documents) such as aes, triple-des, sha-1 and sha-256, that are needed to do whatever job the application wants it to perform.
NSS_3.11.10_release_notes.html
bug 398680: assertion botch in ssl3_registerserverhelloextensionsender doing second handshake with ssl_forcehandshake bug 403240: threads hanging in nss_initlock bug 403888: memory leak in trustdomain.c bug 416067: certutil -l -h token doesn't report token authentication failure bug 417637: tstclnt crashes if -p option is not specified bug 421634: don't send an sni client hello extension bearing an ipv6 address bug 422918: add verisign class 3 public primary ca - g5 to nss bug 424152: add thawte primary root ca to nss bug 424169: add geotrust primary certification authority root to nss bug 425469: add multiple new roots: geotrust bug 426568: add comodo certification authority certificate to nss bug 431381: add net...
NSS_3.12.2_release_notes.html
bug 432260: [[@ pkix_pl_httpdefaultclient_hdrcheckcomplete - pkix_pl_memcpy] crashes when there is no content-length header in the http response bug 436599: pkix: aia extension is not used in some bridge ca / known certs configuration bug 437804: certutil -r for cert renewal should derive the subject from the cert if none is specified.
NSS 3.31 release notes
nss 3.31 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_31_rtm/src/ new in nss 3.31 new functionality allow certificates to be specified by rfc7512 pkcs#11 uris.
NSS 3.47 release notes
ort aes hw acceleration on armv8 bug 1267894 - allow per-socket run-time ordering of the cipher suites presented in clienthello bug 1570501 - add cmac to freebl and pkcs #11 libraries bugs fixed in nss 3.47 bug 1459141 - make softoken cbc padding removal constant time bug 1589120 - more cbc padding tests bug 1465613 - add ability to distrust certificates issued after a certain date for a specified root cert bug 1588557 - bad debug statement in tls13con.c bug 1579060 - mozilla::pkix tag definitions for issueruniqueid and subjectuniqueid shouldn't have the constructed bit set bug 1583068 - nss 3.47 should pick up fix from bug 1575821 (nspr 4.23) bug 1152625 - support aes hw acceleration on armv8 bug 1549225 - disable dsa signature schemes for tls 1.3 bug 1586947 - pk11_importandreturnp...
NSS API Guidelines
this means if an arena is specified (non-null), it is used, otherwise (null) the routine uses the heap.
NSS Config Options
nss config options format the specified ciphers will be allowed by policy, but an application may allow more by policy explicitly: config="allow=curve1:curve2:hash1:hash2:rsa-1024..." only the specified hashes and curves will be allowed: config="disallow=all allow=sha1:sha256:secp256r1:secp384r1" only the specified hashes and curves will be allowed, and rsa keys of 2048 or more will be accepted, and dh key exchange with 1024-bit primes or more: config="disallow=all allow=sha1:sha256:secp256r1:secp384r1:min-rsa=2048:min-dh=1024" a policy that enables the aes ciphersuites and the secp256/384 curves: config="allow=aes128-cbc:aes128-gcm::hmac-sha1:sha1:sha256:sha384:rsa:ecdhe-rsa:secp256r1:secp384r1" turn off md5 config="disallow=md5" turn off md5 and sha1 only for ssl config="d...
NSS Sample Code Sample_1_Hashing
t file to use (default is stdout)\n", "> output"); exit(-1); } /* * check for the missing arguments */ static void printmsgandexit(const char *progname, char opt) { fprintf(stderr, "%s: option -%c requires an argument\n", progname, opt); usage(progname); } #define require_arg(opt,value) if (!(value)) printmsgandexit(progname, opt) /* * digests a file according to the specified algorithm.
Hashing - sample 1
t file to use (default is stdout)\n", "> output"); exit(-1); } /* * check for the missing arguments */ static void printmsgandexit(const char *progname, char opt) { fprintf(stderr, "%s: option -%c requires an argument\n", progname, opt); usage(progname); } #define require_arg(opt,value) if (!(value)) printmsgandexit(progname, opt) /* * digests a file according to the specified algorithm.
sample1
use (default is stdout)\n", "> output"); exit(-1); } /* check for the missing arguments */ static void printmsgandexit(const char *progname, char opt) { fprintf(stderr, "%s: option -%c requires an argument\n", progname, opt); usage(progname); } #define require_arg(opt,value) if (!(value)) printmsgandexit(progname, opt) /* digests a file according to the specified algorithm.
nss tech note2
using the pkcs #11 module logger nss technical note: 2 modes of operation extracting output from log files the logger displays all activity between nss and a specified pkcs #11 module.
NSS Tools sslstrength
policy will default to domestic if not specified.
PKCS11 Implement
semantics unique to nss these sections describe semantics required by nss but not specified by pkcs #11.
FC_CopyObject
description fc_copyobject creates a copy of an object using the attributes specified in the template.
FC_CreateObject
description fc_createobject creates an object using the attributes specified in the template.
FC_EncryptInit
ckr_slot_id_invalid the specified slot number is out of the defined range of values.
FC_GenerateRandom
description fc_generaterandom generates random data of the specified length.
FC_GetSlotInfo
ckr_slot_id_invalid the specified slot number is out of the defined range of values.
NSS environment variables
the possible values are: copy: copies of files are published absolute_symlink: symlinks whose targets are absolute pathnames are published if not specified, default to relative symlinks (symlinks whose targets are relative pathnames).
NSS tools : vfychain
options -a the following certfile is base64 encoded -b yymmddhhmmz validate date (default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert validation(format oid.1.2.3) -p use pkix library to validate certificate by calling: * cert_verifycertificate if specified once, * cert_pkixverifycert if specified twice and more.
NSS Tools sslstrength
policy will default to domestic if not specified.
NSS Tools ssltap
once this connection arrives, the tool makes another connection to the specified host name and port on the server side.
NSS tools : signver
MozillaProjectsNSStoolssignver
using the sqlite databases must be manually specified by using the sql: prefix with the given security directory.
NSS tools : vfychain
-a the following certfile is base64 encoded -b yymmddhhmmz validate date (default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert validation(format oid.1.2.3) -p use pkix library to validate certificate by calling: * cert_verifycertificate if specified once, * cert_pkixverifycert if specified twice and more.
Necko walkthrough
nspipeinputstream::asyncwait sets the callback to be used later for a response if a target is specified (in this case, the main thread), callback is proxied via an nsinputstreamreadyevent, which is created now and may be called later otherwise, the callback would be called directly, when the socket is readable et voila, the transaction has been posted to the socket thread, and the main thread continues on, unblocked from network io.
Rhino Examples
the programs may be specified as files on the command line or by typing interactively while the shell is running.
Rhino JavaScript compiler
if optlevel is greater than zero, -debug may not be specified.
Rhino overview
all other versions split on the space character proper as specified by ecma.
Rebranding SpiderMonkey (1.8.5)
your rebranded library has been succesfully built and installed to libdir as specified in ./config/autoconf.mk.
Creating JavaScript jstest reftests
reportcompare reportcompare(expected, actual, description) is somewhat like asserteq(actual, expected, description) except that the first two arguments are swapped, failures are reported via stdout rather than by throwing exceptions, and the matching is fuzzy in an unspecified way.
Hacking Tips
by default the function writes to stdout, but a filename can be specified as an argument.
INT_TO_JSVAL
converts a specified integer value to a js integer value.
JS::AutoIdArray
jsid operator[](size_t i) const return a jsid in specified index of the owned array.
JS::CallArgs
the initial contents of this value are unspecified.
JS::CompileFunction
the number of argument names should match the number of arguments specified in nargs.
JS::CreateError
description js::createerror creates an error object with specified properties.
JS::Evaluate
description js::evaluate compiles and executes a script in the specified scope, obj or scopechain.
JS::OrdinaryToPrimitive
description js::ordinarytoprimitive converts a javascript object to a specified type value, by the algorithm specified in es6 draft rev 28 (2014 oct 14) 7.1.1, second algorithm.
JS::ProtoKeyToId
description js::protokeytoid converts a specified js prototype key key, to a js id.
JS::Value
val.setobjectornull(jsobject *) sets the given value to the specified object, or to null if the pointer was null.
JSFastNative
argc unsigned int the number of arguments supplied to the function by the caller (as opposed to, say, the number of arguments the function is specified to take in its jsfunctionspec).
JSID_IS_EMPTY
description jsid_is_empty tests whether a specified js id, id, is jsid_empty.
JSID_IS_VOID
description jsid_is_void tests whether a specified js id, id, is jsid_void.
JSID_IS_ZERO
description jsid_is_zero tests whether a specified js id, id, is zero (0 in its integer representation).
JSNative
argc unsigned the number of arguments supplied to the function by the caller (as opposed to, say, the number of arguments the function is specified to take in its jsfunctionspec).
JSObjectOps.defineProperty
description define obj[id], an own property of obj named id, having the given initial value, with the specified getter, setter, and attributes.
JSObjectOps.getProperty
this reflects the quirky behavior of delete as specified in ecma 262-3 §11.4.1 and ecma 262-3 §8.6.2.5.
JSVAL_TO_DOUBLE
syntax jsdouble jsval_to_double(jsval v); description jsval_to_double casts a specified js value, v, to a c floating-point number of type jsdouble.
JS_AddFinalizeCallback
data void * data parameter specified in js_addfinalizecallback.
JS_AlreadyHasOwnProperty
for native objects—objects whose properties are stored in the default data structure provided by spidermonkey—these functions simply check that data structure to see if the specified field is present.
JS_CheckAccess
on success, js_checkaccess returns js_true, *vp is set to the current value of the specified property, and *attrsp is set to the property's attributes.
JS_CompileFunction
the number of argument names should match the number of arguments specified in nargs.
JS_CompileFunctionForPrincipals
the number of argument names should match the number of arguments specified in nargs.
JS_ConvertValue
description js_convertvalue converts a javascript value, v, to the specified type.
JS_DefineFunction
create a native function and assign it as a property to a specified js object.
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.
JS_DefineProperties
description js_defineproperties creates properties on a specified object, obj.
JS_DefineProperty
description js_defineproperty defines a single property in a specified object, obj.
JS_DestroyRuntime
description js_destroyruntime frees the specified the javascript runtime environment, rt.
JS_DropExceptionState
description this function destroys the specified jsexceptionstate object, unrooting as necessary any attached exception object and freeing the memory resources associated with the jsexceptionstate object.
JS_DumpHeap
if this is non-null, js_dumpheap only dumps paths in the object graph leading to the specified thing.
JS_EncodeString
description js_encodestring and js_encodestringtoutf8 convert the specified javascript str to a c string (an array of 8-bit chars).
JS_Enumerate
description js_enumerate gets the ids of all own properties of the specified object, obj, that have the jsprop_enumerate attribute.
JS_EvaluateScript
description js_evaluatescript compiles and executes a script in the specified scope, obj.
JS_EvaluateScriptForPrincipals
description js_evaluatescriptforprincipals compiles and executes a script in the specified scope, obj.
JS_ExecuteRegExp
description js_executeregexp and js_newregexpobjectnostatics execute the regexp object, reobj, to the specified input string, chars, from *indexp index.
JS_ExecuteScript
otherwise it returns false, and the value left in rval is unspecified.
JS_ForwardGetPropertyTo
this article covers features introduced in spidermonkey 17 find a specified property and retrieve its value.
JS_GC
obsolete since jsapi 50 description js_gc performs garbage collection of js objects, strings and other internal data structures that are no longer reachable in the specified context or runtime.
JS_GET_CLASS
description js_get_class returns a pointer to the jsclass associated with a specified js object, obj.
JS_GetArrayPrototype
description js_getarrayprototype() retrieves the original array.prototype of a specified object, obj.
JS_GetClass
description js_getclass returns a pointer to the jsclass associated with a specified js object, obj.
JS_GetClassObject
description js_getclassobject gets the builtin class costructor for the specified prototype key.
JS_GetClassPrototype
description js_getclassprototype gets the builtin class costructor for the specified prototype key.
JS_GetFunctionPrototype
description js_getfunctionprototype() retrieves the original function.prototype of a specified object, obj.
JS_GetGlobalForCompartmentOrNull
this article covers features introduced in spidermonkey 17 return the global object for the specified compartment.
JS_GetGlobalObject
js_getglobalobject retrieves the global object for a specified jscontext *, cx.
JS_GetInstancePrivate
retrieve the private data associated with an object, if that object is an instance of a specified class.
JS_GetObjectPrototype
description js_getobjectprototype() retrieves the original object.prototype of a specified object, obj.
JS_GetParentRuntime
description js_getparentruntime retrieves a pointer to the parent jsruntime of the runtime for a specified jscontext.
JS_GetPrototype
description js_getprototype retrieves the prototype of a specified object, obj.
JS_GetRegExpFlags
description js_getregexpflags returns flags of the specified object, obj.
JS_GetRegExpSource
description js_getregexpsource returns a source string of the specified object, obj.
JS_GetRuntime
description js_getruntime retrieves a pointer to the jsruntime with which a specified jscontext, cx, is associated.
JS_GetStringBytes
description js_getstringbytes and js_getstringbytesz convert the specified javascript string, str, to a c string (an array of 8-bit chars).
JS_GetStringEncodingLength
description js_getstringencodinglength returns the length of the specified string in bytes, regardless of its encoding.
JS_GetVersion
retrieves the javascript version number used within a specified executable script context.
JS_HasInstance
description js_hasinstance determines if a specified js value, v, is an instance of js object, obj.
JS_IdArrayGet
description js_idarrayget gets the item in the specified index of the id array pointed to by ida.
JS_IdToProtoKey
description js_idtoprotokey converts a specified js id, id, to a prototype key.
JS_IdToValue
description js_idtovalue converts a specified js id, id, to a js value.
JS_InstanceOf
determine if an object is an instance of a specified jsclass.
JS_InternString
description js_internstring and js_internstringn return an interned javascript string with a specified value, s.
JS_IsConstructor
description js_isconstructor determines if a specified function, fun is a valid constructor object.
JS_IsExtensible
description js_isextensible queries [[extensible]] property of the specified object, obj.
JS_IsExternalString
this article covers features introduced in spidermonkey 17 determines whether or not the specified jsstring is an external string (that is, a string created by calling js_newexternalstring rather than js_newexternalstringwithclosure).
JS_IsRunning
description js_isrunning determines if a script or function is currently executing in a specified jscontext, cx.
JS_IterateCompartments
this article covers features introduced in spidermonkey 17 iterate over compartments and call the specified callback function on every compartment.
JS_LooselyEqual
description js_looselyequal determines if v1 is loosely equal to v2 under the javascript == operator, as specified in ecma 262-3 §11.9.3.
JS_NewDateObject
description creates and returns a new jsobject representing a javascript date object, which is pre-configured using the specified values.
JS_NewDateObjectMsec
this article covers features introduced in spidermonkey 1.8.5 creates a new date object instance, configured to represent the date and time indicated by the specified time in milliseconds since the unix epoch.
JS_NewDoubleValue
otherwise it returns js_false and the value left in *rval is unspecified.
JS_NewGlobalObject
added in spidermonkey 31 description js_newglobalobject creates a new global object based on the specified class.
JS_NewNumberValue
otherwise it returns js_false and the value left in *rval is unspecified.
JS_NewRuntime
if parentruntime is specified, the resulting runtime shares significant amounts of read-only state (the self-hosting and initial atoms compartments).
JS_ObjectIsDate
this article covers features introduced in spidermonkey 1.8.5 determines if a specified object is a date object.
JS_ParseJSON
the parsing rules applied by these methods are exactly those specified by ecmascript 5.
JS_PropertyStub
it attempts to call the object's valueof and tostring functions, in the order determined by the specified type, in accordance with the default defaultvalue algorithm in es5 §8.12.8.
JS_RemoveRootRT
the entry for the gc thing rp points to is removed in the garbage collection hash table for the specified runtime, rt.
JS_SetElement
on error or exception, js_setelement returns false and the value left in *vp is unspecified.
JS_SetFunctionCallback
entering int true if the callback is being called because the specified function is being invoked or false if the function is exiting.
JS_SetNativeStackQuota
the stack quotas for each kind of code should be monotonically descending, and may be specified with this function.
JS_SetProperty
on error or exception, it returns false, and the value left in v is unspecified.
JS_SetPrototype
description js_setprototype sets the prototype object for a specified object.
JS_SetRegExpInput
description js_setregexpinput sets the pending input string of the built-in regexp object to the specified input string.
JS_SetVersion
description js_setversion attempts to set the version of javascript to version for a specified executable script context, cx.
JS_SetVersionForCompartment
description js_setversionforcompartment attempts to set the version of javascript to version for a specified compartment, compartment.
JS_StrictlyEqual
description js_strictlyequal determines if v1 is strictly equal to v2 under the javascript === operator, as specified in ecma 262-3 §11.9.6.
JS_ToggleOptions
toggle specified options on a jscontext.
JS_TypeOfValue
description js_typeofvalue examines a specified js value, v, and returns its js data type.
JS_ValueToFunction
description js_valuetofunction converts a specified javascript value, v, to a function.
JS_ValueToNumber
if v is a string, conversion proceeds as specified in ecma 262-3 §9.3.1.
JS_ValueToSource
description js_valuetosource converts a specified javascript value, v, to a javascript source.
JS_freeop
description js_freeop is a wrapper for js_free(p) that may delay js_free(p) invocation as a performance optimization as specified by the given jsfreeop instance.
OBJECT_TO_JSVAL
casts a specified js object to a js value.
Property attributes
nothing was specified when passed to object.defineproperty from script.
STRING_TO_JSVAL
casts a specified js string to a js value.
SpiderMonkey 1.8.5
while this was never specified behaviour, it is no longer true; numeric values which are integers are frequently encoded as jsdouble inside the jsval.
SpiderMonkey 1.8.7
while this was never specified behaviour, it is no longer true; numeric values which are integers are frequently encoded as jsdouble inside the jsval.
Running Automated JavaScript Tests
by default, these are only run when no tests paths are specified; this can be overridden by the --wpt=enabled flag.
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.
Using the Places keywords API
if both are specified it will try to fetch an exact match.
XPCOM array guide
MozillaTechXPCOMGuideArrays
this method is bounds-safe; that is, if you attempt to access an element outside the range of the array, a specified "safe" value is returned.
Component Internals
as this section and the next describe, you can register your component explicitly during installation, or with the regxpcom program, or you can use the autoregistration methods in the service manager to find and register components in a specified components directory: xpinstall apis regxpcom command-line tool nsicomponentregistrar apis from service manager the registration process is fairly involved.
Creating the Component Code
the aloaderstr parameter, which is opaque and should not be modified, distinguishes components that are loaded from the same location specified by the nsifile parameter.
Starting WebLock
append adds the input string to the path already specified in the nsifile.
Receiving startup notifications
if you want your component to be started as a service, prepend "service," to the contract id: categorymanager->addcategoryentry(appstartup_category, "mycomponentname", "service,contract-id", pr_true, pr_true, getter_copies(previous)); with "service," specified, the component is instantiated using nsicomponentmanager.getservice().
Components.utils.import
example components.utils.import("resource://gre/modules/xpcomutils.jsm", this); difference from mozijssubscriptloader the differences from mozijssubscriptloader: the behavior when importing/loading the same code from different locations: the subscript loader evaluates the specified code each time it is invoked, with the caller's global object.
Components.utils.makeObjectPropsNormal
ensures that the specified object's methods are all in the object's scope, and aren't cross-component wrappers.
NS_NewLocalFile
ns_error_file_unrecognized_path indicates that the specified path is invalid.
NS_NewNativeLocalFile
ns_error_file_unrecognized_path indicates that the specified path is invalid.
Clone
« xpcom api reference summary the clone function creates a copy of an existing memory block up to the size specified.
nsMemory
clone the clone function creates a copy of an existing memory block up to the size specified.
IAccessible2
scrolltopoint() moves the top left of an object to a specified location.
IAccessibleComponent
coordinates used by the functions of this interface are specified in different coordinate systems.
IAccessibleImage
imagesize() returns the size of the image in units specified by parent's coordinate system.
mozIJSSubScriptLoader
method overview jsval loadsubscript(in string url, in object targetobj optional, in string charset optional); jsval loadsubscriptwithoptions(in string url, in object options); methods loadsubscript() synchronously loads and executes the script from the specified url.
mozIStorageBindingParamsArray
methods addparams() adds the specified set of parameters to the end of the array.
mozIVisitStatusCallback
avisitedstatus true if the specified uri has been visited; otherwise false.
nsIAccessNode
scrolltopoint() moves the top left of an object to a specified location.
nsIAppStartup
one and only one of the "quit" flags must be specified.
nsIApplicationCacheNamespace
namespace_fallback 2 items matching this namespace can be fetched from the network when loading from this cache; however, if the load fails, the cache entry specified by the data attribute should be loaded intstead.
nsIArray
queryelementat() retrieve a specific element of the array, and queryinterface it to the specified interface.
nsIAuthModule
the req_mutual_auth flag may also need to be specified in order for this flag to take effect.
nsIAutoCompleteInput
return value the name of the specified object.
nsIBrowserHistory
designates the specified url as coming from a link explicitly followed by the user (for example by clicking on it).
nsICacheMetaDataVisitor
netwerk/cache/nsicacheentrydescriptor.idlscriptable this interface is used for visiting the meta data elements for a specified cache entry.
nsICachingChannel
if not specified, data will be placed in "http-offline".
nsIClipboard
return value returns true, if data is present and it matches the specified flavor.
nsICommandController
"@mozilla.org/embedcomp/base-command-controller;1"] .createinstance(components.interfaces.nsicommandcontroller); method overview void docommandwithparams(in string command, in nsicommandparams acommandparams); void getcommandstatewithparams( in string command, in nsicommandparams acommandparams); methods docommandwithparams() executes the specified command with a set of parameters contained in an nsicommandparams object.
nsIComponentRegistrar
however, unlike registerfactory(), the location of the component containing the factory implementation is specified instead of the factory instance.
nsICompositionStringSynthesizer
dispatchevent() dispatches dom events for setting the composition string which are specified by setstring(), appendclause() and setcaret() to the focused editor.
nsIContentFrameMessageManager
methods void dump(in domstring astr); domstring atob(in domstring aasciistring); domstring btoa(in domstring abase64data); dump() prints the specified string to standard output.
nsIContentPrefService2
domains may be specified either exactly, like "example.com", or as full urls, like "http://example.com/foo/bar".
nsIContentSecurityPolicy
refinepolicy() updates the policy currently stored in the content security policy to be "refined" or tightened by the one specified in the string policystring.
nsIConverterInputStream
latin 1 is specified as "iso-8859-1".
nsICryptoHash
all of the available algorithms are specified as constants on the interface.
nsIDOMClientRect
the type of box is specified by the method that returns such an object.
nsIDOMEvent
if called from a subclass of event interface only the values specified in the initevent method are modified, all other attributes are left unchanged.
nsIDOMFileReader
the nsidomfilereader interface provides a way to read data from a file specified by an nsidomfile.
nsIDOMFontFace
attributes only available when specified with @font-face these attributes only have meaningful values when the font is a user font defined using @font-face.
nsIDOMFontFaceList
methods item() returns the nsidomfontface object at the specified index into the list.
nsIDOMMozNetworkStatsManager
ns_error_not_implmented both appmanifesturl and servicetype are specified at the same time in the networkstatsgetoptions dictionary.
nsIDOMSimpleGestureEvent
the value is specified in degrees for rotation events (where positive values indicate clockwise rotation and negative values indicate counter-clockwise rotation).
nsIDOMStorageList
return value the nsidomstorage object representing the data store for the specified domain.see also dom storage structured client-side storage (html 5 specification) nsidomwindow ...
nsIDOMStorageManager
return value the local storage object for the specified principal.
nsIDOMXPathResult
snapshotitem() returns the specified node from what is essentially an array of resulting dom nodes.
nsIDictionary
return value the value associated with the specified key.
nsIDownloadProgressListener
acurselfprogress the current amount of progress that's been made on the download specified by adownload.
nsIDownloader
if an explicit download location is specified then the resulting file will not be deleted, and it will be the callers responsibility to keep track of the file, and so on.
nsIDragDropHandler
hookupto() attaches drag handlers to a specified receiver, setting up callbacks to let built-in behaviors be overridden.
nsIDragSession
return value true if the specified flavor matches any of the native data on the clipboard, otherwise false.
nsIErrorService
if no key is registered for the specified nsresult, then the caller should use the nsresult's code (obtained with ns_error_get_code) instead.
nsIEventTarget
when this flag is specified, dispatch() returns immediately after the event is queued.
nsIFaviconService
you needn't have any specified data at this point.
nsIFormHistory2
removeentriesbytimeframe() removes entries that were created between the specified times.
nsIFrameLoader
loaduri() loads the specified uri in this frame.
nsIFrameLoaderOwner
ns_error_not_implemented if the swapping logic is not implemented for the either the current frame loader owner or the specified one with which you're trying to swap.
nsIFrameMessageListener
if true, the response should be returned in the specified json object.
nsIInterfaceRequestor
method overview void getinterface(in nsiidref uuid, [iid_is(uuid),retval] out nsqiresult result); methods getinterface() retrieves the specified interface pointer.
nsIJSID
note that for these cases of jsid the specified class or interface must exist and be scriptable.
nsIMarkupDocumentViewer
methods scrolltonode() scroll the make the specified node visible.
nsIMemoryMultiReporter
this will call the specified callback's nsimemorymultireportercallback.callback() method once for each report.
nsIMessageListenerManager
removemessagelistener() undo an addmessagelistener() call; that is, calling this causes listener to stop being invoked when the specified message is received.
nsIMicrosummaryGenerator
for generators referenced by web pages via <link> tags, this uri is the url specified by the tag.
nsIMsgDBView
openwithhdrs() opens the view with a set of specified headers.
nsIMsgWindow
methods displayhtmlinmessagepane() loads the specified html in the message pane.
nsIMutableArray
if the position is higher than the current length of the array, empty elements are appended followed by the new element at the specified position.
nsINavHistoryResultObserver
the item previously at the specified index (if any) and everything below it is shifted down by one.
nsINavHistoryResultViewer
remarks the item previously at the specified index (if any) as well as everything below it, is shifted down by one.
nsINavHistoryService
markpageasfollowedlink() designates the specified url as coming from a link explicitly followed by the user (for example by clicking on it).
nsIObserverService
nsiobserver anobserver, in string atopic, in boolean ownsweak); nsisimpleenumerator enumerateobservers( in string atopic ); void notifyobservers( in nsisupports asubject, in string atopic, in wstring somedata ); void removeobserver( in nsiobserver anobserver, in string atopic ); methods addobserver() registers a given listener for a notifications regarding the specified topic.
nsIPermissionManager
expire_time 2 permission expires at a specified time.
Component; nsIPrefBranch
remarks note: prior to gecko 6.0, this method would throw an exception if there was no user value set for the specified preference.
nsIPrefService
readuserprefs() called to read in the preferences specified in a user preference file.
nsIPrincipal
boolean subsumes( in nsiprincipal other ); parameters other missing description return value true if this principal subsumes the specified principal; otherwise false.
nsIPrivateBrowsingService
methods removedatafromdomain() removes all data stored for the specified domain, including its subdomains.
nsIProcess
methods init() initializes the nsiprocess with the specified executable file.
nsIProtocolProxyService
if the protocol handler for the given uri supports nsiproxiedprotocolhandler, then the nsiproxyinfo instance returned from resolve may be passed to the nsiproxiedprotocolhandler.newproxiedchannel() method to create a nsichannel to the given uri that uses the specified proxy.
nsIProxyInfo
all unspecified bits are reserved for future use.
nsIRadioInterfaceLayer
cription registerdatacallcallback() void registerdatacallcallback( in nsirildatacallback callback ); parameters callback missing description exceptions thrown missing exception missing description rejectcall() void rejectcall( in unsigned long callindex ); parameters callindex missing description exceptions thrown missing exception missing description sendsms() sends a message to a specified number.
nsIRandomGenerator
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void generaterandombytes(in unsigned long alength, [retval, array, size_is(alength)] out octet abuffer); methods generaterandombytes() generates the specified amount of random bytes.
nsIResumableChannel
methods asyncopenat() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) open this channel, and read starting at the specified offset.
nsIScriptError
sourceline astring the line from the file specified by sourcename.
nsISocketProviderService
return value nsisocketprovider that handles the specified socket type.
nsISocketTransportService
createtransport() creates a transport for a specified host and port.
nsISpeculativeConnect
method overview void speculativeconnect(in nsiuri auri, in nsiinterfacerequestor acallbacks, in nsieventtarget atarget); methods speculativeconnect() call this method to hint to the networking layer that a new transaction for the specified uri is likely to happen soon.
nsISupports proxies
if this flag is not specified, the proxy object manager will compare the eventq which you pass to the eventq which is on the current thread.
nsITaggingService
atags on return, contains an array of tags for the specified uri.
nsITaskbarPreviewController
the specified context is attached to a surface with the controller's width and height, the values of which are obtained immediately prior to calling this method.
nsITaskbarWindowPreview
methods getbutton() returns the specified button from the preview's toolbar.
nsIThreadInternal
in addition, any new events dispatched to the thread are only processed if they are accepted by the specified filter.
nsIThreadManager
return value the nsithread matching the specified prthread, or null if there is no matching nsithread.
nsIThreadPool
when you send events to the thread pool, the pool creates a new thread to process the event, up to the number of threads specified by the threadlimit attribute.
nsITransactionManager
this method will prune the necessary number of transactions on the undo and redo stacks if the value specified is less than the number of items that exist on both the undo and redo stacks.
nsITreeBoxObject
void scrolltocell(in long row, in nsitreecolumn col); parameters row the cell's row index col the nsitreecolumn of the cell scrolltocolumn() scrolls horizontally so that the specified column is at the left of the view (if possible).
nsIURL
param autf8string parameters specified after the ; in the url.
nsIUploadChannel2
ntroduced gecko 1.9.2 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) method overview void explicitsetuploadstream(in nsiinputstream astream, in acstring acontenttype, in long long acontentlength, in acstring amethod, in boolean astreamhasheaders); methods explicitsetuploadstream() sets a stream to be uploaded by this channel with the specified content-type and content-length header values.
nsIWebContentHandlerRegistrar
registerprotocolhandler summary of registerprotocolhandler void registerprotocolhandler( in domstring protocol, in domstring uri, in domstring title, in nsidomwindow contentwindow ); parameters protocol the protocol the site wishes to handle, specified as a string.
nsIWebNavigation
void loaduri(in wstring uri , in unsigned long loadflags , in nsiuri referrer , in nsiinputstream postdata, in nsiinputstream headers) void reload(in unsigned long reloadflags) void stop(in unsigned long stopflags) constants load flags constant value description load_flags_mask 65535 this flag defines the range of bits that may be specified.
nsIWebPageDescriptor
methods loadpage() tells the object to load the page specified by the page descriptor.
nsIWindowMediator
var wm = components.classes["@mozilla.org/appshell/window-mediator;1"] .getservice(components.interfaces.nsiwindowmediator); var enumerator = wm.getenumerator(type); while(enumerator.hasmoreelements()) { var win = enumerator.getnext(); // win is [object chromewindow] (just like window), do something with it } this code iterates over all windows of the specified type, where type you specify is the window type.
nsIWindowsShellService
return value the value of the specified sub key/value, truncated to 4096 bytes.
nsIWorker
amessageport a message port on which to post the message; if not specified, the default message port is used.
nsIWorkerFactory
to create an instance, use: var workerfactory = components.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); method overview nsiworker newchromeworker(in domstring ascripturl); methods newchromeworker() returns a new chromeworker that will run a specified script.
nsIWorkerScope
amessageport optional specifies the message port onto which to post the message; if not specified, the default port is used.
nsIXULBrowserWindow
astring onbeforelinktraversal( in astring originaltarget, in nsiuri linkuri, in nsidomnode linknode, in prbool isapptab ); parameters originaltarget the specified target for the link.
nsIXULWindow
getcontentshellbyid() the content shell specified by the supplied id.
nsIXmlRpcClient
both parameters must be specified for authentication to be enabled void setauthentication ( in string username, in string password ) ; parameters username username to be used if asked to authenticate password password to be used if asked to authenticate clearauthentication() clear authentication info void setauthentication ( in string username, in string password ) ; parameters username password...
NS_CStringToUTF16
the set of possible error codes is currently unspecified.
NS_StringContainerInit
remarks the nsstringcontainer structure has unspecified size and layout.
XPCOM string functions
this is a low-level api.ns_utf16tocstringthe ns_utf16tocstring function converts the value of a nsastring instance from utf-16 to the specified multi-byte encoding and stores the result in a nsacstring instance.
Reference Manual
the nscomptr releases its old value, if any, and then assigns in the new value, addrefing, and/or calling queryinterface as you specified with the directives described above.
The Valgrind Test Job
it also prints a suppression, which is a sequence of text that can be put in a suppression file (and specified via valgrind's --suppressions option) if you want valgrind to ignore such errors in future runs.
Gloda examples
function _onitemsremoved(aitems, acollection) { }, /* called when our database query completes */ onquerycompleted: function _onquerycompleted(acollection) { var items = acollection.items; for (msg of items) { alert(msg.subject); }; } }; collection = id_q.getcollection(mylistener); show all messages where the from, to and cc values include a specified email address at present there doesn't appear to be any way of going directly from an email address to email addresses that it involves.
MailNews fakeserver
emon api name arguments returns notes [constructor] daemon flags n/a flags are defined below addgroup group name (string), is postable nothing adds the group (resetting if it exists) addarticle newsarticle object nothing adds the message to all groups in the article's group list addarticletogroup newsarticle object, group (string), integral key for group nothing adds the message to the specified group with the specified key getgroup group name group object group is a map key->article, with the additional properties: flags, keys (array of keys), nextkey (next key to use for new articles) getgroupstats group name array of [size, min, max] the size is an estimate if nntp_real_length is not specified in the daemon flags.
Folders and message lists
changing the current message selection in addition to getting the currently-selected messages, you can also change the selection: gfolderdisplay.selectmessage(msghdr): selects a single message, as specified by msghdr (an nsimsgdbhdr) and scrolls to its position in the message list.
Using C struct and pointers
therefore, the size of the buffer must be specified.
CData
note: this is never ctypes.void_t or an array type with an unspecified length.
PointerType
note: this is never ctypes.void_t or an array type with an unspecified length.
Blocking By Domain - Plugins
any attempt to use a plugin (via the <object> or <embed> element) will behave as if the plugin was not installed, and use fallback content as specified by the html standard.
Streams - Plugins
the browser can create a stream for several different types of data: for the file specified in the data attribute of the object element or the src attribute of the embed element for a data file for a full-page instance the npp_newstream method has the following syntax: nperror npp_newstream(npp instance, npmimetype type, npstream *stream, npbool seekable, uint16* stype); the instance parameter refers to the plug-in instance receiving the stream; the type parameter represents the...
Preferences System
ui elements that refer to the preferences above, e.g.: <checkbox id="check1" preference="pref1" label="&check1.label;" accesskey="&check1.accesskey;"/> </prefpane> <prefpane id="pane2" label="&pane2.title;" src="chrome://uri/to/pane.xul"/> </prefwindow> pane content can be specified inline or an external chrome uri supplied for pane content to be loaded in via a dynamic overlay.
Accessibility Inspector - Firefox Developer Tools
keyboardshortcut — any keyboard shortcut that is available to activate the element, as specified in an accesskey attribute.
Set a conditional breakpoint - Firefox Developer Tools
when the program reaches the line, the debugger pauses only if the breakpoint's specified expression evaluates to true.
Use watchpoints - Firefox Developer Tools
view a watchpoint when the watched property is accessed in the way specified by the watchpoint type (get or set), the debugger pauses, enabling you to see line of code responsible, and to inspect anything else you wish at that time.
Debugger.Memory - Firefox Developer Tools
this section covers some areas where firefox’s actual behavior deviates from what one might expect from the specified behavior of the web platform.
Debugger.Object - Firefox Developer Tools
unless otherwise specified, these methods are not invocation functions; if a call would cause debuggee code to run (say, because it gets or sets an accessor property whose handler is debuggee code, or because the referent is a proxy whose traps are debuggee code), the call throws a debugger.debuggeewouldrun exception.
Debugger.Script - Firefox Developer Tools
any number of breakpoints may be set at a single location; when control reaches that point, spidermonkey calls their handlers in an unspecified order.
Debugger.Source - Firefox Developer Tools
the format is yet to be specified in the webassembly standard.
Tutorial: Set a breakpoint - Firefox Developer Tools
keep in mind, however, that when multiple debuggers share a debuggee, the order in which their handlers run is not specified.
Debugger.Object - Firefox Developer Tools
unless otherwise specified, these methods are not invocation functions; if a call would cause debuggee code to run (say, because it gets or sets an accessor property whose handler is debuggee code, or because the referent is a proxy whose traps are debuggee code), the call throws a debugger.debuggeewouldrun exception.
All keyboard shortcuts - Firefox Developer Tools
opening and closing tools these shortcuts work in the main browser window to open the specified tool.
Edit fonts - Firefox Developer Tools
this makes it easy to see exactly what is being applied where, when font stacks are specified.
View background images - Firefox Developer Tools
in the rules view, you can see a preview of images specified using background-image.
IndexedDB - Firefox Developer Tools
storage — the storage type specified for the database.
View Source - Firefox Developer Tools
view source features view source has three additional features, which can be accessed from the context menu in the view source tab: go to line scrolls to the specified line.
AddressErrors.city - Web APIs
syntax var cityerror = addresserrors.city; value if the value specified in the paymentaddress object's city property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.country - Web APIs
an object based on addresserrors includes a country property if during validation of the address the specified value of country was determined to be invalid.
AddressErrors.dependentLocality - Web APIs
syntax var localityerror = addresserrors.dependentlocality; value if the value specified in the paymentaddress object's dependentlocality property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.organization - Web APIs
syntax var organizationerror = addresserrors.organization; value if the value specified in the paymentaddress object's organization property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.phone - Web APIs
syntax var phoneerror = addresserrors.phone; value if the value specified in the paymentaddress object's phone property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.postalCode - Web APIs
syntax var postcodeerror = addresserrors.postcode; value if the value specified in the paymentaddress object's postalcode property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.recipient - Web APIs
syntax var recipienterror = addresserrors.recipient; value if the value specified in the paymentaddress object's recipient property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.region - Web APIs
syntax var regionerror = addresserrors.region; value if the value specified in the paymentaddress object's region property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.regionCode - Web APIs
syntax var regioncodeerror = addresserrors.regioncode; value if the value specified in the paymentaddress object's regioncode property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors.sortingCode - Web APIs
syntax var sortingcodeerror = addresserrors.sortingcode; value if the value specified in the paymentaddress object's sortingcode property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors - Web APIs
this lets the payment request api know to present the specified error or errors but to allow the user to keep trying to edit the address.
AesGcmParams - Web APIs
taglength is optional and defaults to 128 if it is not specified.
AnalyserNode.fftSize - Web APIs
note: if its value is not a power of 2, or it is outside the specified range, a domexception with the name indexsizeerror is thrown.
AnimationEffect.updateTiming() - Web APIs
the updatetiming() method of the animationeffect interface updates the specified timing properties for an animation effect.
AnimationEffect - Web APIs
animationeffect.updatetiming() updates the specified timing properties of this animationeffect.
Attr.namespaceURI - Web APIs
WebAPIAttrnamespaceURI
you can create an attribute with the specified namespaceuri using the dom level 2 method element.setattributens.
Attr.prefix - Web APIs
WebAPIAttrprefix
the attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified.
AudioBuffer.copyToChannel() - Web APIs
the copytochannel() method of the audiobuffer interface copies the samples to the specified channel of the audiobuffer, from the source array.
AudioContext.createMediaStreamSource() - Web APIs
return value a new mediastreamaudiosourcenode object representing the audio node whose media is obtained from the specified source stream.
AudioParam.exponentialRampToValueAtTime() - Web APIs
the change starts at the time specified for the previous event, follows an exponential ramp to the new value given in the value parameter, and reaches the new value at the time given in the endtime parameter.
AudioParam.linearRampToValueAtTime() - Web APIs
the change starts at the time specified for the previous event, follows a linear ramp to the new value given in the value parameter, and reaches the new value at the time given in the endtime parameter.
AudioParam.setTargetAtTime() - Web APIs
description the change starts at the time specified in starttime and exponentially moves towards the value given by the target parameter.
AudioTrack.id - Web APIs
WebAPIAudioTrackid
syntax var trackid = audiotrack.id; value a domstring which identifies the track, suitable for use when calling gettrackbyid() on an audiotracklist such as the one specified by a media element's audiotracks property.
AudioTrack.label - Web APIs
WebAPIAudioTracklabel
example this example returns an array of track kinds and labels for potential use in a user interface to select audio tracks for a specified media element.
AudioTrack.language - Web APIs
syntax var audiotracklanguage = audiotrack.language; value a domstring specifying the bcp 47 (rfc 5646) format language tag of the primary language used in the audio track, or an empty string ("") if the language is not specified or known, or if the track doesn't contain speech.
AudioTrackList - Web APIs
gettrackbyid() returns the audiotrack found within the audiotracklist whose id matches the specified string.
AudioWorkletGlobalScope.registerProcessor - Web APIs
the registerprocessor method of the audioworkletglobalscope interface registers a class constructor derived from audioworkletprocessor interface under a specified name.
AudioWorkletNode() - Web APIs
exceptions notsupportederror the specified options.outputchannelcount is 0 or larger than the current implementation supports.
AudioWorkletNodeOptions - Web APIs
if outputchannelcount isn't specified, and numberofinputs and numberofoutputs are both 1, the audioworkletnode's initial channel count is set to 1.
BaseAudioContext.createBuffer() - Web APIs
returns an audiobuffer configured based on the specified options.
BaseAudioContext.createChannelMerger() - Web APIs
syntax baseaudiocontext.createchannelmerger(numberofinputs); parameters numberofinputs the number of channels in the input audio streams, which the output stream will contain; the default is 6 if this parameter is not specified.
BaseAudioContext.createChannelSplitter() - Web APIs
syntax baseaudiocontext.createchannelsplitter(numberofoutputs); parameters numberofoutputs the number of channels in the input audio stream that you want to output separately; the default is 6 if this parameter is not specified.
BaseAudioContext.createDelay() - Web APIs
must be less than 180 seconds, and defaults to 1 second if not specified.
BaseAudioContext.createGain() - Web APIs
syntax var gainnode = audiocontext.creategain(); return value a gainnode which takes as input one or more audio sources and outputs audio whose volume has been adjusted in gain (volume) to a level specified by the node's gainnode.gain a-rate parameter.
BaseAudioContext.createIIRFilter() - Web APIs
return value an iirfilternode implementing the filter with the specified feedback and feedforward coefficient arrays.
BaseAudioContext.createPeriodicWave() - Web APIs
constraints optional an dictionary object that specifies whether normalization should be disabled (if not specified, normalization is enabled by default.) it takes one property: disablenormalization: if set to true, normalization is disabled for the periodic wave.
BaseAudioContext.createScriptProcessor() - Web APIs
if specified, the buffersize must be one of the following values: 256, 512, 1024, 2048, 4096, 8192, 16384.
BiquadFilterNode - Web APIs
biquadfilternode.getfrequencyresponse() from the current filter parameter settings this method calculates the frequency response for frequencies specified in the provided array of frequencies.
Blob() - Web APIs
WebAPIBlobBlob
return value a new blob object containing the specified data.
Blob.slice() - Web APIs
WebAPIBlobslice
return value a new blob object containing the specified subset of the data contained within the blob on which this method was called.
Blob.text() - Web APIs
WebAPIBlobtext
blob.text() always uses utf-8 as encoding, while filereader.readastext() can use a different encoding depending on the blob's type and a specified encoding name.
Blob - Web APIs
WebAPIBlob
blob.prototype.slice() returns a new blob object containing the data in the specified range of bytes of the blob on which it's called.
BlobBuilder - Web APIs
method overview void append(in arraybuffer data); void append(in blob data); void append(in string data, [optional] in string endings); blob getblob([optional] in domstring contenttype); file getfile(in domstring name, [optional] in domstring contenttype); methods append() appends the contents of the specified javascript object to the blob being built.
BudgetState.budgetAt - Web APIs
the budgetat read-only property of the budgetstate interface returns the anticipated processing budget at the specified time.
CSSNumericValue.toSum() - Web APIs
the tosum() method of the cssnumericvalue interface converts the object's value to a cssmathsum object to values of the specified unit.
CSSNumericValue - Web APIs
cssnumericvalue.to converts value into another one with the specified unit.
CSSRule.cssText - Web APIs
WebAPICSSRulecssText
be aware that this property can no longer be set directly, as it is now specified to be functionally modify-only, and silently so.
CSSRule - Web APIs
WebAPICSSRule
the cssrule interface specifies the properties common to all rules, while properties unique to specific rule types are specified in the more specialized interfaces for those rules' respective types.
CSSStyleDeclaration.getPropertyValue() - Web APIs
the cssstyledeclaration.getpropertyvalue() method interface returns a domstring containing the value of a specified css property.
CSSStyleDeclaration.item() - Web APIs
return value propertyname is a domstring that is the name of the css property at the specified index.
CSSStyleSheet.addRule() - Web APIs
if index is not specified, the next index after the last item currently in the list is used (that is, the value of cssstylesheet.cssrules.length).
CSSStyleValue.parse() - Web APIs
the parse() method of the cssstylevalue interface sets a specific css property to the specified values and returns the first value as a cssstylevalue object.
CSSStyleValue.parseAll() - Web APIs
the parseall() method of the cssstylevalue interface sets all occurences of a specific css property to the specified value and returns an array of cssstylevalue objects, each containing one of the supplied values.
Using the CSS Painting API - Web APIs
registerpaint('boxbg', class { static get contextoptions() { return {alpha: true}; } /* use this function to retrieve any custom properties (or regular properties, such as 'height') defined for the element, return them in the specified array */ static get inputproperties() { return ['--boxcolor', '--widthsubtractor']; } paint(ctx, size, props) { /* ctx -> drawing context size -> paintsize: width and height props -> properties: get() method */ ctx.fillstyle = props.get('--boxcolor'); ctx.fillrect(0, size.height/3, size.width*0.4 - props.get('--widthsubtractor'), size.height*0.6); } ...
CacheStorage.match() - Web APIs
if no matching response to the specified request is found, the promise resolves with undefined.
CacheStorage.open() - Web APIs
WebAPICacheStorageopen
note: if the specified cache does not exist, a new cache is created with that cachename and a promise that resolves to this new cache object is returned.
CanvasCaptureMediaStreamTrack - Web APIs
this lets applications that wish to specify the frame capture times directly do so, if they specified a framerate of 0 when calling capturestream().
CanvasPattern.setTransform() - Web APIs
examples using the settransform method this is just a simple code snippet which uses the settransform method to create a canvaspattern with the specified pattern transformation from an svgmatrix.
CanvasRenderingContext2D.bezierCurveTo() - Web APIs
html <canvas id="canvas"></canvas> javascript the curve begins at the point specified by moveto(): (30, 30).
CanvasRenderingContext2D.clearRect() - Web APIs
the rectangle's corner is at (x, y), and its size is specified by width and height.
CanvasRenderingContext2D.drawFocusIfNeeded() - Web APIs
the canvasrenderingcontext2d.drawfocusifneeded() method of the canvas 2d api draws a focus ring around the current or given path, if the specified element is focused.
CanvasRenderingContext2D.fillRect() - Web APIs
syntax void ctx.fillrect(x, y, width, height); the fillrect() method draws a filled rectangle whose starting point is at (x, y) and whose size is specified by width and height.
CanvasRenderingContext2D.lineTo() - Web APIs
the canvasrenderingcontext2d method lineto(), part of the canvas 2d api, adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
CanvasRenderingContext2D.moveTo() - Web APIs
the canvasrenderingcontext2d.moveto() method of the canvas 2d api begins a new sub-path at the point specified by the given (x, y) coordinates.
CanvasRenderingContext2D.quadraticCurveTo() - Web APIs
html <canvas id="canvas"></canvas> javascript the curve begins at the point specified by moveto(): (20, 110).
CanvasRenderingContext2D.rect() - Web APIs
syntax void ctx.rect(x, y, width, height); the rect() method creates a rectangular path whose starting point is at (x, y) and whose size is specified by width and height.
CanvasRenderingContext2D.strokeRect() - Web APIs
syntax void ctx.strokerect(x, y, width, height); the strokerect() method draws a stroked rectangle whose starting point is at (x, y) and whose size is specified by width and height.
CanvasRenderingContext2D.textAlign - Web APIs
note that the direction property is manually specified as "ltr", although this is also the default for english-language text.
Basic usage of canvas - Web APIs
when no width and height attributes are specified, the canvas will initially be 300 pixels wide and 150 pixels high.
Drawing text - Web APIs
measuretext() returns a textmetrics object containing the width, in pixels, that the specified text will be when drawn in the current text style.
Hit regions and accessibility - Web APIs
canvasrenderingcontext2d.removehitregion() removes the hit region with the specified id from the canvas.
Transformations - Web APIs
this basically undoes the current transformation, then sets the specified transform, all in one step.
ChannelMergerNode() - Web APIs
if not specified, the default value used is 6.
ChannelSplitterNode.ChannelSplitterNode() - Web APIs
if not specified, the default value used is 6.
ChildNode.after() - Web APIs
WebAPIChildNodeafter
exceptions hierarchyrequesterror: node cannot be inserted at the specified point in the hierarchy.
ChildNode.before() - Web APIs
WebAPIChildNodebefore
exceptions hierarchyrequesterror: node cannot be inserted at the specified point in the hierarchy.
ChildNode.replaceWith() - Web APIs
exceptions hierarchyrequesterror: node cannot be inserted at the specified point in the hierarchy.
Clipboard.write() - Web APIs
WebAPIClipboardwrite
example this example function replaces the current contents of the clipboard with a specified string.
Clipboard.writeText() - Web APIs
the clipboard interface's writetext() property writes the specified text string to the system clipboard.
ClipboardItem.getType() - Web APIs
typeerror no parameter is specified or the type is not that of the clipboarditem.
ClipboardItem.types - Web APIs
if no clipboards contents is found for the specified type, an error is returned.
CloseEvent - Web APIs
the only permitted codes to be specified in firefox are 1000 and 3000 to 4999 [source, bug].
Console.dirxml() - Web APIs
WebAPIConsoledirxml
displays an interactive tree of the descendant elements of the specified xml/html element.
ContentIndexEvent() - Web APIs
the contentindexevent() constructor creates a new contentindexevent object whose type and other options are configured as specified.
Content Index API - Web APIs
service worker additions the following additions to the serviceworker have been specified in the content index api spec to provide an entry point for using content indexing.
CustomElementRegistry.define() - Web APIs
exceptions exception description notsupportederror the customelementregistry already contains an entry with the same name or the same constructor (or is otherwise already defined), or extends is specified and it is a valid custom element name, or extends is specified but the element it is trying to extend is an unknown element.
CustomEvent() - Web APIs
return value a new customevent object of the specified type, with any other properties configured according to the customeventinit dictionary (if one was provided).
DOMException() - Web APIs
the domexception() constructor returns a domexception object with a specified message and name.
DOMException - Web APIs
constructor domexception() returns a domexception object with a specified message and name.
DOMMatrixReadOnly.scale() - Web APIs
syntax the scale() method is specified with either one or six values.
DOMPoint.fromPoint() - Web APIs
the source point is specified as a dompointinit-compatible object, which includes both dompoint and dompointreadonly.
DOMPointReadOnly() - Web APIs
return value a new dompointreadonly object representing the specified location in space.
DOMPointReadOnly.fromPoint() - Web APIs
the source point is specified as a dompointinit-compatible object, which includes both dompoint and dompointreadonly.
DOMTokenList.remove() - Web APIs
the remove() method of the domtokenlist interface removes the specified tokens from the list.
DataTransfer.mozClearDataAt() - Web APIs
the datatransfer.mozcleardataat() method removes the data associated with the given format for an item at the specified index.
DataTransfer.mozTypesAt() - Web APIs
the datatransfer.moztypesat() method returns a list of the format types that are stored for an item at the specified index.
DataTransfer.setData() - Web APIs
the datatransfer.setdata() method sets the drag operation's drag data to the specified data and type.
DataTransfer.setDragImage() - Web APIs
if element is an img element, then set the drag data store bitmap to the element's image (at its intrinsic size); otherwise, set the drag data store bitmap to an image generated from the given element (the exact mechanism for doing so is not currently specified).
DataTransferItem - Web APIs
datatransferitem.getasstring() invokes the specified callback with the drag data item string as its argument.
DataTransferItemList.DataTransferItem() - Web APIs
return value the datatransferitem object at the specified index in the item list.
DataTransferItemList.remove() - Web APIs
the datatransferitemlist.remove() method removes the datatransferitem at the specified index from the list.
DelayNode - Web APIs
WebAPIDelayNode
delaynode.delaytime read only is an a-rate audioparam representing the amount of delay to apply, specified in seconds.
DeprecationReportBody - Web APIs
res on our web page: let options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); }, options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor: observer.observe(); because of the event handler we set up inside the reportingobserver() constructor, we can now click the button to display the report details.
DisplayMediaStreamConstraints.audio - Web APIs
if a boolean is specified, a value of true indicates that an audio track should be included in the stream returned by getdisplaymedia(), if an appropriate audio source exists and the user agent supports audio on display media.
Document: DOMContentLoaded event - Web APIs
bubbles yes cancelable yes (although specified as a simple event that isn't cancelable) interface event event handler property none a different event, load, should be used only to detect a fully-loaded page.
Document.caretRangeFromPoint() - Web APIs
the caretrangefrompoint() method of the document interface returns a range object for the document fragment under the specified coordinates.
Document.clear() - Web APIs
WebAPIDocumentclear
the document.clear() method clears the whole specified document in early (pre-1.0) versions of mozilla.
Document.createElement() - Web APIs
in an html document, the document.createelement() method creates the html element specified by tagname, or an htmlunknownelement if tagname isn't recognized.
Document.createElementNS() - Web APIs
creates an element with the specified namespace uri and qualified name.
Document.createEvent() - Web APIs
creates an event of the type specified.
Document.createNSResolver() - Web APIs
creates an xpathnsresolver which resolves namespaces with respect to the definitions in scope for a specified node.
Document.createProcessingInstruction() - Web APIs
obsolete added note that the namespace of the target name is not checked whether it is well-formed, defined what is considered an illegal character for the target name and specified the returned processinginstruction object more precisely.
Document.createTouchList() - Web APIs
return value list a touchlist object containing the touch objects specified by the touches parameter.
Document.enableStyleSheetsForSet() - Web APIs
enables the style sheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).
Document.getElementsByName() - Web APIs
there, getelementsbyname() also returns elements that have an id attribute with the specified value.
Document.implementation - Web APIs
notes the w3c's dom level 1 recommendation only specified the hasfeature method, which is one way to determine if a dom module is supported by a browser (see example above and what does your user agent claim to support?).
Document.mozSetImageElement() - Web APIs
syntax document.mozsetimageelement(imageelementid, imageelement); parameters imageelementid is a string indicating the name of an element that has been specified as a background image using the -moz-element css function.
Document.onfullscreenchange - Web APIs
otherwise, the specified element is about to take over the screen.
Document.queryCommandEnabled() - Web APIs
the document.querycommandenabled() method reports whether or not the specified editor command is enabled by the browser.
Document.queryCommandSupported() - Web APIs
the document.querycommandsupported() method reports whether or not the specified editor command is supported by the browser.
Document.title - Web APIs
WebAPIDocumenttitle
otherwise, it contains the title specified in the markup (see the notes below).
Document.xmlEncoding - Web APIs
should be null if unspecified or unknown.
Document.xmlVersion - Web APIs
returns the version number as specified in the xml declaration (e.g., <?xml version="1.0"?>) or "1.0" if the declaration is absent.
DocumentOrShadowRoot.elementsFromPoint() - Web APIs
the elementsfrompoint() method of the documentorshadowroot interface returns an array of all elements at the specified coordinates (relative to the viewport).
DocumentOrShadowRoot.nodeFromPoint() - Web APIs
the nodefrompoint() property of the documentorshadowroot interface returns the topmost node at the specified coordinates (relative to the viewport).
DocumentOrShadowRoot.nodesFromPoint() - Web APIs
the nodesfrompoint() property of the documentorshadowroot interface returns an array of all nodes at the specified coordinates (relative to the viewport).
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
the differences are that (a) getelementsbytagname() only returns elements of the specified tag name; and (b) getelementsbytagname() returns descendants at any level, not just immediate children.
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
there are rules in the browser engine that decide which whitespace characters are useful and which aren’t — these are specified at least in part in css text module level 3, and especially the parts about the css white-space property and whitespace processing details, but we also offer an easier explanation below.
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.
EffectTiming.endDelay - Web APIs
syntax var timingproperties = { enddelay: delayinmilliseconds } timingproperties.enddelay = delayinmilliseconds; value a number representing the end delay, specified in milliseconds.
Element.animate() - Web APIs
WebAPIElementanimate
for example, consider this simple animation — the keyframe object looks like so: let rotate360 = [ { transform: 'rotate(360deg)' } ]; we have only specified the end state of the animation, and the beginning state is implied.
Element.attachShadow() - Web APIs
the element.attachshadow() method attaches a shadow dom tree to the specified element and returns a reference to its shadowroot.
Element.attributes - Web APIs
the element.attributes property returns a live collection of all attribute nodes registered to the specified node.
Element.classList - Web APIs
WebAPIElementclassList
see https://bugzilla.mozilla.org/show_bug.cgi?id=814014 polyfill the legacy onpropertychange event can be used to create a living classlist mockup thanks to a element.prototype.classname property that fires the specified event once it is changed.
Element.className - Web APIs
WebAPIElementclassName
the classname property of the element interface gets and sets the value of the class attribute of the specified element.
Element.getAttributeNode() - Web APIs
returns the specified attribute of the specified element, as an attr node.
Element.getAttributeNodeNS() - Web APIs
syntax attributenode = element.getattributenodens(namespace, nodename) attributenode is the node for specified attribute.
Element.getElementsByTagNameNS() - Web APIs
it is similar to document.getelementsbytagnamens, except that its search is restricted to descendants of the specified element.
Element.hasAttributeNS() - Web APIs
hasattributens returns a boolean value indicating whether the current element has the specified attribute.
Element.innerHTML - Web APIs
WebAPIElementinnerHTML
doing so causes the user agent to follow these steps: the specified value is parsed as html or xml (based on the document type), resulting in a documentfragment object representing the new set of dom nodes for the new elements.
Element.insertAdjacentHTML() - Web APIs
the insertadjacenthtml() method of the element interface parses the specified text as html or xml and inserts the resulting nodes into the dom tree at a specified position.
Element.insertAdjacentText() - Web APIs
exceptions exception explanation syntaxerror the position specified is not a recognised value.
Element.matches() - Web APIs
WebAPIElementmatches
exceptions syntax_err the specified selector string is invalid.
Element.namespaceURI - Web APIs
you can create an element with the specified namespaceuri using the dom level 2 method document.createelementns.
Element.outerHTML - Web APIs
WebAPIElementouterHTML
setting the value of outerhtml replaces the element and all of its descendants with a new dom tree constructed by parsing the specified htmlstring.
Element.prefix - Web APIs
WebAPIElementprefix
the element.prefix read-only property returns the namespace prefix of the specified element, or null if no prefix is specified.
Element.removeAttributeNS() - Web APIs
the removeattributens() method of the element interface removes the specified attribute from an element.
Element.removeAttributeNode() - Web APIs
the removeattributenode() method of the element object removes the specified attribute from the current element.
Element.setAttributeNode() - Web APIs
the setattributenode() method adds a new attr node to the specified element.
Element.setAttributeNodeNS() - Web APIs
/specialspace" // myns:special-align="utterleft">one</div> // <div id="two">two</div> var myns = "http://www.mozilla.org/ns/specialspace"; var d1 = document.getelementbyid("one"); var d2 = document.getelementbyid("two"); var a = d1.getattributenodens(myns, "special-align"); d2.setattributenodens(a.clonenode(true)); alert(d2.attributes[1].value) // returns: `utterleft' notes if the specified attribute already exists on the element, then that attribute is replaced with the new one and the replaced one is returned.
Element.shadowRoot - Web APIs
examples the following snippets are taken from our life-cycle-callbacks example (see it live also), which creates an element that displays a square of a size and color specified in the element's attributes.
Element.tabStop - Web APIs
WebAPIElementtabStop
if the specified element is a shadow host tab navigation is delegated to its children.
Element.toggleAttribute() - Web APIs
exceptions invalidcharactererror the specified attribute name contains one or more characters which are not valid in attribute names.
Event - Web APIs
WebAPIEvent
it can also be triggered programmatically, such as by calling the htmlelement.click() method of an element, or by defining the event, then sending it to a specified target using eventtarget.dispatchevent().
EventListener - Web APIs
eventlistener.handleevent() a function that is called whenever an event of the specified type occurs.
EventSource - Web APIs
constructor eventsource() creates a new eventsource to handle receiving server-sent events from a specified url, optionally in credentials mode.
Using Fetch - Web APIs
similarly, redirect() returns a response resulting in a redirect to a specified url.
File.getAsText() - Web APIs
WebAPIFilegetAsText
returns a string containing the file's data interpreted as text in the specified encoding.
File - Web APIs
WebAPIFile
instance methods the file interface doesn't define any methods, but inherits methods from the blob interface: blob.prototype.slice([start[, end[, contenttype]]]) returns a new blob object containing the data in the specified range of bytes of the source blob.
FileError - Web APIs
WebAPIFileError
other unspecified security error code or situations.
FileException - Web APIs
other unspecified security error code or situations.
FileList - Web APIs
WebAPIFileList
methods item() returns a file object representing the file at the specified index in the file list.
FileReader.readAsArrayBuffer() - Web APIs
the filereader interface's readasarraybuffer() method is used to start reading the contents of a specified blob or file.
FileReader.readAsBinaryString() - Web APIs
the readasbinarystring method is used to start reading the contents of the specified blob or file.
FileReader.readAsDataURL() - Web APIs
the readasdataurl method is used to read the contents of the specified blob or file.
FileSystemDirectoryEntry.createReader() - Web APIs
example this example creates a method called readdirectory(), which fetches all of the entries in the specified filesystemdirectoryentry and returns them in an array.
FileSystemDirectoryEntry.removeRecursively() - Web APIs
errors if an error occurs and an errorcallback was specified, it gets called with a single parameter: a fileerror object describing the error.
FileSystemEntry.copyTo() - Web APIs
the filesystementry interface's method copyto() copies the file specified by the entry to a new location on the file system.
FileSystemEntry.isDirectory - Web APIs
if (entry.isdirectory) { processsubdirectory(entry); } else if (entry.isfile) { processfile(entry); } else { displayerrormessage("unsupported file system entry specified."); } specifications specification status comment file and directory entries apithe definition of 'isdirectory' in that specification.
FileSystemEntry.isFile - Web APIs
if (entry.isdirectory) { processsubdirectory(entry); } else if (entry.isfile) { processfile(entry); } else { displayerrormessage("unsupported file system entry specified."); } specifications specification status comment file and directory entries apithe definition of 'isfile' in that specification.
FileSystemEntry.moveTo() - Web APIs
the filesystementry interface's method moveto() moves the file specified by the entry to a new location on the file system, or renames the file if the destination directory is the same as the source.
FileSystemEntry.name - Web APIs
example this example shows a function called isfilewithextension() which returns true if the specified filesystementry is both a file and the file's name ends with a given extension.
FileSystemEntry.remove() - Web APIs
errors fileerror.invalid_modification_err the specified entry was the file system's root directory, or the specified entry is a directory which isn't empty.
FileSystemEntry - Web APIs
remove() removes the specified file or directory.
FontFace.loaded - Web APIs
WebAPIFontFaceloaded
the loaded read-only property of the fontface interface returns a promise that resolves with the current fontface object when the font specified in the object's constructor is done loading or rejects with a syntaxerror.
FontFace - Web APIs
WebAPIFontFace
fontface.loaded read only returns a promise that resolves with the current fontface object when the font specified in the object's constructor is done loading or rejects with a syntaxerror.
Using the Frame Timing API - Web APIs
when one of those event types is added to the browser's performance timeline, the application is notified of the event via the observer's callback function that was specified when the observer was created.
Fullscreen API - Web APIs
methods on the element interface element.requestfullscreen() asks the user agent to place the specified element (and, by extension, its descendants) into full-screen mode, removing all of the browser's ui elements as well as all other applications from the screen.
Gamepad.id - Web APIs
WebAPIGamepadid
the exact syntax is not strictly specified, but in firefox it will contain three pieces of information separated by dashes (-): two 4-digit hexadecimal strings containing the usb vendor and product id of the controller the name of the controller as provided by the driver.
GamepadHapticActuator.pulse() - Web APIs
the pulse() method of the gamepadhapticactuator interface makes the hardware pulse at a certain intensity for a specified duration.
GamepadHapticActuator - Web APIs
methods gamepadhapticactuator.pulse() read only makes the hardware pulse at a certain intensity for a specified duration.
Using the Gamepad API - Web APIs
this is not strictly specified, but in firefox it will contain three pieces of information separated by dashes (-): two 4-digit hexadecimal strings containing the usb vendor and product id of the controller, and the name of the controller as provided by the driver.
GeolocationCoordinates.heading - Web APIs
this value, specified in degrees, indicates how far off from heading due north the device is.
GeolocationCoordinates.longitude - Web APIs
the geolocationcoordinates interface's read-only longitude property is a double-precision floating point value which represents the longitude of a geographical position, specified in decimal degrees.
GeolocationCoordinates - Web APIs
this value, specified in degrees, indicates how far off from heading true north the device is.
GlobalEventHandlers.ontouchcancel - Web APIs
it is specified in the touch events – level 2 draft specification and not in touch events recommendation.
GlobalEventHandlers.ontouchend - Web APIs
it is specified in the touch events – level 2 draft specification and not in touch events recommendation.
GlobalEventHandlers.ontouchmove - Web APIs
it is specified in the touch events – level 2 draft specification and not in touch events recommendation.
GlobalEventHandlers.ontouchstart - Web APIs
it is specified in the touch events – level 2 draft specification and not in touch events recommendation.
HTMLBaseElement - Web APIs
htmlbaseelement.target is a domstring that reflects the target html attribute, containing a default target browsing context or frame for elements that do not have a target reference specified.
HTMLBaseFontElement - Web APIs
htmlbasefontelement.color is a domstring representing the text color using either a named color or a color specified in the hexadecimal #rrggbb format.
HTMLCanvasElement.height - Web APIs
when the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of 150 is used.
HTMLCanvasElement.toBlob() - Web APIs
if type is not specified, the image type is image/png.
HTMLCanvasElement.toDataURL() - Web APIs
the htmlcanvaselement.todataurl() method returns a data uri containing a representation of the image in the format specified by the type parameter (defaults to png).
HTMLCanvasElement.width - Web APIs
when the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of 300 is used.
HTMLCollection - Web APIs
htmlcollection.nameditem() returns the specific node whose id or, as a fallback, name matches the string specified by name.
HTMLElement.lang - Web APIs
WebAPIHTMLElementlang
note that this attribute, though valid at the individual element level described here, is most often specified for the root element of the document.
HTMLFontElement.color - Web APIs
the obsolete htmlfontelement.color property is a domstring that reflects the color html attribute, containing either a named color or a color specified in the hexadecimal #rrggbb format.
HTMLFontElement - Web APIs
htmlfontelement.color is a domstring that reflects the color html attribute, containing either a named color or a color specified in the hexadecimal #rrggbb format.
HTMLFormControlsCollection.namedItem() - Web APIs
the htmlformcontrolscollection.nameditem() method returns the radionodelist or the element in the collection whose name or id match the specified name, or null if no node matches.
HTMLFormControlsCollection - Web APIs
htmlformcontrolscollection.nameditem() returns the radionodelist or the element in the collection whose name or id matches the specified name, or null if no nodes match.
HTMLFormElement.method - Web APIs
unless explicitly specified, the default method is 'get'.
HTMLFormElement: reset event - Web APIs
bubbles yes (although specified as a simple event that doesn't bubble) cancelable yes interface event event handler property globaleventhandlers.onreset examples this example uses eventtarget.addeventlistener() to listen for form resets, and logs the current event.timestamp whenever that occurs.
HTMLFormElement: submit event - Web APIs
bubbles yes (although specified as a simple event that doesn't bubble) cancelable yes interface submitevent event handler property globaleventhandlers.onsubmit note that the submit event fires on the <form> element itself, and not on any <button> or <input type="submit"> inside it.
HTMLHyperlinkElementUtils.origin - Web APIs
the htmlhyperlinkelementutils.origin read-only property is a usvstring containing the unicode serialization of the origin of the represented url; that is: for url using the http or https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url using file: scheme, the value is browser dependant; for url using the blob: scheme, the origin of the url following blob:.
HTMLHyperlinkElementUtils.password - Web APIs
the htmlhyperlinkelementutils.password property is a usvstring containing the password specified before the domain name.
HTMLHyperlinkElementUtils.username - Web APIs
the htmlhyperlinkelementutils.username property is a usvstring containing the username specified before the domain name.
HTMLIFrameElement.referrerPolicy - Web APIs
no-referrer-when-downgrade (default) this is the user agent's default behavior if no policy is specified.
HTMLImageElement.hspace - Web APIs
usage notes the value specified for hspace is mapped to the margin-left and margin-right properties to specify the width of those margins in pixels.
HTMLImageElement.isMap - Web APIs
usage notes when an image marked as being part of a server-side image map is clicked, the browser constructs the string "?x,y", where x and y indicate the coordinates at which the mouse was clicked as offsets from the top-left corner of the image, specified in css pixels.
HTMLImageElement.vspace - Web APIs
usage notes the value specified for vspace is mapped to the margin-top and margin-bottom properties to specify the height of those margins in pixels.
HTMLInputElement.mozGetFileNameArray() - Web APIs
syntax inputelement.mozgetfilenamearray(alength, afilenames); parameters alength if specified, will receive the number of file names in the returned array.
HTMLInputElement.stepUp() - Web APIs
the method, when invoked, increments the value by (step * n), where n defaults to 1 if not specified, and step defaults to the default value for step if not specified.
HTMLKeygenElement - Web APIs
note: this page describes the keygen element interface as specified, not as currently implemented by gecko.
HTMLMediaElement.load() - Web APIs
usage notes calling load() aborts all ongoing operations involving this media element, then begins the process of selecting and loading an appropriate media resource given the options specified in the <audio> or <video> element and its src attribute or child <source> element(s).
HTMLMediaElement.msInsertAudioEffect() - Web APIs
the htmlmediaelement.msinsertaudioeffect() method inserts the specified audio effect into the media pipeline.
HTMLMediaElement.onerror - Web APIs
when an error occurs, the specified function will be called.
HTMLMediaElement.play() - Web APIs
notsupportederror the media source (which may be specified as a mediastream, mediasource, blob, or file, for example) doesn't represent a supported media format.
HTMLMediaElement.setSinkId() - Web APIs
this only works when the application is authorized to use the specified device.
HTMLObjectElement - Web APIs
htmlobjectelement.typemustmatch is a boolean that reflects the typemustmatch html attribute, indicating if the resource specified by data must only be played if it matches the type attribute.
HTMLOrForeignElement - Web APIs
the cryptographic number used once that is used by content security policy to determine whether a given fetch will be allowed to proceed.tabindexthe tabindex property of the htmlorforeignelement interface represents the tab order of the current element.methodsblur()the htmlelement.blur() method removes keyboard focus from the current element.focus()the htmlelement.focus() method sets focus on the specified element, if it can be focused.
HTMLSelectElement.autofocus - Web APIs
only one form-associated element in a document can have this attribute specified.
HTMLSelectElement.namedItem() - Web APIs
the htmlselectelement.nameditem() method returns the htmloptionelement corresponding to the htmloptionelement whose name or id match the specified name, or null if no option matches.
HTMLSelectElement.remove() - Web APIs
the htmlselectelement.remove() method removes the element at the specified index from the options collection for this select element.
HTMLSelectElement.setCustomValidity() - Web APIs
the htmlselectelement.setcustomvalidity() method sets the custom validity message for the selection element to the specified message.
HTMLStyleElement - Web APIs
to manipulate css, see using dynamic styling information for an overview of the objects used to manipulate specified css properties using the dom.
HTMLTableElement.deleteRow() - Web APIs
return value no return value errors thrown if the number of the row to delete, specified by the parameter, is greater or equal to the number of available rows, or if it is negative and not equal to the special index -1, representing the last row of the table, the exception index_size_err is thrown.
HTMLVideoElement.msInsertVideoEffect() - Web APIs
the htmlmediaelement.msinsertvideoeffect() method inserts the specified video effect into the media pipeline.
HTMLVideoElement - Web APIs
htmlvideoelement.msinsertvideoeffect() inserts the specified video effect into the media pipeline.
Using microtasks in JavaScript with queueMicrotask() - Web APIs
const messagequeue = []; let sendmessage = message => { messagequeue.push(message); if (messagequeue.length === 1) { queuemicrotask(() => { const json = json.stringify(messagequeue); messagequeue.length = 0; fetch("url-of-receiver", json); }); } }; when sendmessage() gets called, the specified message is first pushed onto the message queue array.
Headers - Web APIs
WebAPIHeaders
note: to be clear, the difference between headers.set() and headers.append() is that if the specified header does already exist and does accept multiple values, headers.set() will overwrite the existing value with the new one, whereas headers.append() will append the new value onto the end of the set of values.
History.pushState() - Web APIs
WebAPIHistorypushState
if this parameter isn't specified, it's set to the document's current url.
IDBCursor.continue() - Web APIs
if no key is specified, the cursor advances to the immediate next position, based on its direction.
IDBCursorSync - Web APIs
if no key is specified, advance to the immediate next position.
IDBDatabase.createObjectStore() - Web APIs
if empty or not specified, the object store is created without a key path and uses out-of-line keys.
IDBFactorySync - Web APIs
if there is already a database with the specified name, it uses that one; otherwise, it creates the database using the specified name and description.
IDBIndex.isAutoLocale - Web APIs
the isautolocale read-only property of the idbindex interface returns a boolean indicating whether the index had a locale value of auto specified upon its creation (see createindex()'s optionalparameters.) syntax var myindex = objectstore.index('index'); console.log(myindex.isautolocale); value a boolean.
IDBIndex.locale - Web APIs
WebAPIIDBIndexlocale
the locale read-only property of the idbindex interface returns the locale of the index (for example en-us, or pl) if it had a locale value specified upon its creation (see createindex()'s optionalparameters.) note that this property always returns the current locale being used in this index, in other words, it never returns "auto".
IDBIndex.name - Web APIs
WebAPIIDBIndexname
constrainterror an index is already using the specified name.
IDBKeyRange.bound() - Web APIs
WebAPIIDBKeyRangebound
the bound() method of the idbkeyrange interface creates a new key range with the specified upper and lower bounds.
IDBKeyRange.includes() - Web APIs
the includes() method of the idbkeyrange interface returns a boolean indicating whether a specified key is inside the key range.
IDBKeyRange - Web APIs
instance methods idbkeyrange.includes() returns a boolean indicating whether a specified key is inside the key range.
IDBLocaleAwareKeyRange - Web APIs
the idblocaleawarekeyrange interface of the indexeddb api is a firefox-specific version of idbkeyrange — it functions in exactly the same fashion, and has the same properties and methods, but it is intended for use with idbindex objects when the original index had a locale value specified upon its creation (see createindex()'s optionalparameters) — that is, it has locale aware sorting enabled.
IDBObjectStore.add() - Web APIs
if unspecified, it results to null.
IDBObjectStore.count() - Web APIs
dataerror the specified key or key range is invalid.
IDBObjectStore.createIndex() - Web APIs
auto: the platform default locale will be used (may be changed by user agent settings.) null or undefined: if no locale is specified, normal javascript sorting will be used — not locale-aware.
IDBObjectStore.deleteIndex() - Web APIs
the deleteindex() method of the idbobjectstore interface destroys the index with the specified name in the connected database, used during a version upgrade.
IDBObjectStore.get() - Web APIs
the get() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, returns the object store selected by the specified key.
IDBObjectStore.getAll() - Web APIs
the getall() method of the idbobjectstore interface returns an idbrequest object containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
IDBObjectStore.getAllKeys() - Web APIs
the getallkeys() method of the idbobjectstore interface returns an idbrequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
IDBObjectStore.getKey() - Web APIs
the getkey() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, returns the key selected by the specified query.
IDBObjectStore.name - Web APIs
constrainterror an object store is already using the specified name.
IDBObjectStore.openCursor() - Web APIs
dataerror the specified key or key range is invalid.
IDBObjectStore.openKeyCursor() - Web APIs
dataerror the specified key or key range is invalid.
IDBObjectStore.put() - Web APIs
if unspecified, it results to null.
IDBRequest.error - Web APIs
WebAPIIDBRequesterror
for a full working example, see our to-do notifications app (view example live.) var title = "walk dog"; // open up a transaction as usual var objectstore = db.transaction(['todolist'], "readwrite").objectstore('todolist'); // get the do-do list with the specified title var objectstoretitlerequest = objectstore.get(title); objectstoretitlerequest.onsuccess = function() { // grab the data object returned as the result var data = objectstoretitlerequest.result; // update the notified value in the object to "yes" data.notified = "yes"; // create another request that inserts the item // back into the database var updatetitlerequest = objectsto...
IdleDeadline.didTimeout - Web APIs
the read-only didtimeout property on the idledeadline interface is a boolean value which indicates whether or not the idle callback is being invoked because the timeout interval specified when window.requestidlecallback() was called has expired.
IdleDeadline - Web APIs
properties idledeadline.didtimeout read only a boolean whose value is true if the callback is being executed because the timeout specified when the idle callback was installed has expired.
ImageCapture() constructor - Web APIs
return value a new imagecapture object which can be used to capture still frames from the specified video track.
IndexedDB API - Web APIs
idblocaleawarekeyrange defines a key range that can be used to retrieve data from a database in a certain range, sorted according to the rules of the locale specified for a certain index (see createindex()'s optionalparameters.).
compareVersion - Web APIs
= 2; int bld_diff = 1; int equal = 0; in communicator 4.5, the following constants are defined and available for checking the value returned by compareversion: <code>installtrigger.major_diff installtrigger.minor_diff installtrigger.rel_diff installtrigger.bld_diff installtrigger.equal </code> description the compareversion method compares the version of an installed file or package with a specified version.
IntersectionObserver.observe() - Web APIs
when the visibility of the specified element crosses over one of the observer's visibility thresholds (as listed in intersectionobserver.thresholds), the observer's callback is executed with an array of intersectionobserverentry objects representing the intersection changes which occurred.
IntersectionObserver.root - Web APIs
the intersection of this bounding rectangle, offset by any margins specified in the options passed to the intersectionobserver() constructor, the target element's bounds, minus the bounds of every element or other object which overlaps the target element, is considered to be the visible area of the target element.
IntersectionObserverEntry.rootBounds - Web APIs
the intersectionobserverentry interface's read-only rootbounds property is a domrectreadonly corresponding to the target's root intersection rectangle, offset by the intersectionobserver.rootmargin if one is specified.
IntersectionObserverEntry.time - Web APIs
the time is specified in milliseconds since the creation of the containing document.
KeyboardEvent.charCode - Web APIs
obsolete initial definition; specified as deprecated ...
KeyboardEvent.getModifierState() - Web APIs
the keyboardevent.getmodifierstate() method returns the current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false.
KeyboardEvent.keyCode - Web APIs
obsolete initial definition; specified as deprecated ...
KeyboardEvent.which - Web APIs
obsolete initial definition; specified as deprecated ...
KeyboardLayoutMap.get() - Web APIs
return value the value of the specified key.
KeyboardLayoutMap.has() - Web APIs
the has() method of the keyboardlayoutmap interface returns a boolean indicating whether the object has an element with the specified key.
KeyboardLayoutMap - Web APIs
keyboardlayoutmap.has() returns a boolean indicating whether the keyboardlayoutmap object has an element with the specified key.
KeyframeEffect - Web APIs
animationeffect.updatetiming() updates the specified timing properties.
Location: assign() - Web APIs
WebAPILocationassign
the location.assign() method causes the window to load and display the document at the url specified.
Location: origin - Web APIs
WebAPILocationorigin
the origin read-only property of the location interface is a usvstring containing the unicode serialization of the origin of the represented url; that is: for url using the http or https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url using file: scheme, the value is browser dependant; for url using the blob: scheme, the origin of the url following blob:.
Location: password - Web APIs
WebAPILocationpassword
the password property of the location interface is a usvstring containing the password specified before the domain name.
Location: username - Web APIs
WebAPILocationusername
the username property of the location interface is a usvstring containing the username specified before the domain name.
LockManager.request() - Web APIs
signal optional: an abortsignal (the signal property of an abortcontroller); if specified and the abortcontroller is aborted, the lock request is dropped if it was not already granted.
LockedFile.readAsText() - Web APIs
by default, utf-8 is assumed if this parameter is not specified.
MediaElementAudioSourceNode.mediaElement - Web APIs
this stream was specified when the node was first created, either using the mediaelementaudiosourcenode() constructor or the audiocontext.createmediaelementsource() method.
load() - Web APIs
the mediakeysession.load() method returns a promise that resolves to a boolean value after loading data for a specified session object.
MediaKeySession - Web APIs
mediakeysession.load() returns a promise that resolves to a boolean value after loading data for a specified session object.
MediaPositionState.playbackRate - Web APIs
negative values can be specified to indicate the media is playing in reverse, with decreasing values then indicating faster and faster reverse playback.
MediaQueryList - Web APIs
removelistener() removes the specified listener callback from the callbacks to be invoked when the mediaquerylist changes media query status, which happens any time the document switches between matching and not matching the media queries listed in the mediaquerylist.
MediaRecorder.audioBitsPerSecond - Web APIs
this may differ from the bit rate specified in the constructor (if it was provided).
MediaRecorder.mimeType - Web APIs
the mimetype read-only property returns the mime media type that was specified when creating the mediarecorder object, or, if none was specified, which was chosen by the browser.
MediaRecorder.onerror - Web APIs
try again later."); break; case securityerror: shownotification("recording the specified source " + "is not allowed due to security " + "restrictions."); break; default: shownotification("a problem occurred while trying " + "to record the video."); break; } }; /* this would be a good place to create a worker to handle writing the buffers to disk periodically */ re...
MediaRecorder.videoBitsPerSecond - Web APIs
this may differ from the bit rate specified in the constructor, if it was provided.
MediaRecorderErrorEvent.error - Web APIs
notsupportederror a mediarecorder couldn't be created because the specified options weren't valid.
MediaSession.setPositionState() - Web APIs
exceptions typeerror this error can occur in an array of circumstances: the specified mediapositionstate object's duration is missing, negative, or null.
MediaSessionActionDetails.action - Web APIs
seekto moves the playback position to the specified time within the media.
MediaSessionActionDetails.fastSeek - Web APIs
the boolean property fastseek in the mediasessionactiondetails dictionary is an optional value which, when specified and true, indicates that the requested seekto operation is part of an ongoing series of seekto operations.
MediaSessionActionDetails.seekOffset - Web APIs
if the offset isn't specified, the user agent will choose an appropriate offset automatically.
MediaStream() - Web APIs
if any parameters are given, the specified tracks are added to the new stream.
MediaStream.onaddtrack - Web APIs
the mediastreamtrack representing the track which was added is specified in the event's track property.
MediaStream.onremovetrack - Web APIs
the mediastreamtrack representing the track which was removed is specified in the event's track property.
MediaStreamTrack.getConstraints() - Web APIs
these constraints indicate values and ranges of values that the web site or application has specified are required or acceptable for the included constrainable properties.
MediaStreamTrack.getSettings() - Web APIs
to instead fetch the most-recently established constraints for the track's properties, as specified by the site's code, use getconstraints().
MediaStreamTrack - Web APIs
overconstrained sent when the constraints specified for the track cause the track to be incompatible and therefore to not be used.
MediaStreamTrackAudioSourceNode - Web APIs
constructor new mediastreamtrackaudiosourcenode() creates a new mediastreamtrackaudiosourcenode object instance with the specified options.
MediaStreamTrackEvent - Web APIs
constructor mediastreamtrackevent() constructs a new mediastreamtrackevent with the specified configuration.
MediaTrackConstraints.autoGainControl - Web APIs
syntax var constraintsobject = { autogaincontrol: constraint }; constraintsobject.autogaincontrol = constraint; value if this value is a simple true or false, the user agent will attempt to obtain media with automatic gain control enabled or disabled as specified, if possible, but will not fail if this can't be done.
MediaTrackConstraints.echoCancellation - Web APIs
syntax var constraintsobject = { echocancellation: constraint }; constraintsobject.echocancellation = constraint; value if this value is a simple true or false, the user agent will attempt to obtain media with echo cancellation enabled or disabled as specified, if possible, but will not fail if this can't be done.
MediaTrackConstraints.facingMode - Web APIs
an exact value in this case indicates that the specified facing mode is specifically required; for example: var constraints = { facingmode: { exact: "user" } }; this indicates that only a user-facing camera is acceptable; if there is no user-facing camera, or the user declines permission to use that camera, the media request will fail.
MediaTrackConstraints.noiseSuppression - Web APIs
syntax var constraintsobject = { noisesuppression: constraint }; constraintsobject.noisesuppression = constraint; value if this value is a simple true or false, the user agent will attempt to obtain media with noise suppression enabled or disabled as specified, if possible, but will not fail if this can't be done.
MediaTrackConstraints - Web APIs
properties of shared screen tracks these constraints apply to mediatrackconstraints objects specified as part of the displaymediastreamconstraints object's video property when using getdisplaymedia() to obtain a stream for screen sharing.
MediaTrackSettings.aspectRatio - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.aspectratio property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.autoGainControl - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.autogaincontrol property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.channelCount - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.channelcount property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.deviceId - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.deviceid property you provided when calling either getusermedia().
MediaTrackSettings.echoCancellation - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.echocancellation property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.facingMode - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.facingmode property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.frameRate - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.framerate property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.groupId - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.groupid property you provided when calling either getusermedia().
MediaTrackSettings.height - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.height property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.noiseSuppression - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.noisesuppression property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.sampleRate - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.samplerate property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.sampleSize - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.samplesize property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.volume - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.volume property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings.width - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.width property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
MediaTrackSettings - Web APIs
properties of video tracks aspectratio a double-precision floating point value indicating the current value of the aspectratio property, specified precisely to 10 decimal places.
MediaTrackSupportedConstraints - Web APIs
instead, the specified constraints will be applied, with any unrecognized constraints stripped from the request.that can lead to confusing and hard to debug errors, so be sure to use getsupportedconstraints() to retrieve this information before attempting to establish constraints if you need to know the difference between silently ignoring a constraint and a constraint being accepted.
Media Source API - Web APIs
extensions to other interfaces url.createobjecturl() creates an object url pointing to a mediasource object that can then be specified as the src value of an html media element to play a media stream.
MerchantValidationEvent - Web APIs
methods merchantvalidationevent.complete() secure context pass the data retrieved from the url specified by validationurl into complete() to complete the validation process for the paymentrequest.
MouseEvent.getModifierState() - Web APIs
the mouseevent.getmodifierstate() method returns the current state of the specified modifier key: true if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, false.
MouseEvent - Web APIs
mouseevent.getmodifierstate() returns the current state of the specified modifier key.
MutationObserver - Web APIs
constructor mutationobserver() creates and returns a new mutationobserver which will invoke a specified callback function when dom changes occur.
MutationObserverInit.attributeOldValue - Web APIs
when observe() is called, the specified options are attributes and attributeoldvalue, which means that changes to attribute values will be reported, and each mutation record will include the oldvalue property specifying the attribute's previous value.
MutationObserverInit.characterData - Web APIs
if true, the callback specified when observe() was used to start observing the node or subtree is called any time the contents of a text node are changed.
MutationObserverInit.characterDataOldValue - Web APIs
by default, only changes to the text of the node specified as the target parameter when you called observe() are monitored.
MutationObserverInit.childList - Web APIs
the mutationobserverinit dictionary's optional childlist property indicates whether or not to monitor the specified node or nodes for the addition or removal of new child nodes.
NDEFMessage - Web APIs
constructor ndefmessage.ndefmessage() returns a new ndefmessage containing specified data.
NDEFReader - Web APIs
constructor ndefreader.ndefreader() returns an ndefreader with configuration specified in the parameters or default ones if no parameters are specified.
NDEFRecord - Web APIs
constructor ndefrecord() returns a new ndefrecord with configuration specified in the parameters or default ones if no parameters are specified.
NDEFWriter.write() - Web APIs
WebAPINDEFWriterwrite
the write() method of ndefwriter interface writes a specified message to a compatiable nfc tag.
Navigator.requestMediaKeySystemAccess() - Web APIs
notsupportederror either the specified keysystem isn't supported by the platform or the browser, or none of the configurations specified by supportedconfigurations can be satisfied (if, for example, none of the codecs specified in contenttype are available).
Node.baseURI - Web APIs
WebAPINodebaseURI
syntax var nodebaseuri = node.baseuri; value a domstring representing the base url of the specified node.
Node.isSupported() - Web APIs
WebAPINodeisSupported
if the version is not specified, supporting any version of the feature will cause the method to return true.
Node.namespaceURI - Web APIs
WebAPINodenamespaceURI
you can create an element with the specified namespaceuri using the dom level 2 method document.createelementns and attributes with the method element.setattributens.
Node.nextSibling - Web APIs
WebAPINodenextSibling
the node.nextsibling read-only property returns the node immediately following the specified one in their parent's childnodes, or returns null if the specified node is the last child in the parent element.
Node.normalize() - Web APIs
WebAPINodenormalize
the node.normalize() method puts the specified node and all of its sub-tree into a "normalized" form.
Node.parentNode - Web APIs
WebAPINodeparentNode
the node.parentnode read-only property returns the parent of the specified node in the dom tree.
Node.prefix - Web APIs
WebAPINodeprefix
the node.prefix read-only property returns the namespace prefix of the specified node, or null if no prefix is specified.
Node.previousSibling - Web APIs
the node.previoussibling read-only property returns the node immediately preceding the specified one in its parent's childnodes list, or null if the specified node is the first in that list.
Node.removeChild() - Web APIs
WebAPINoderemoveChild
examples simple examples given this html: <div id="top"> <div id="nested"></div> </div> to remove a specified element when knowing its parent node: let d = document.getelementbyid("top"); let d_nested = document.getelementbyid("nested"); let throwawaynode = d.removechild(d_nested); to remove a specified element without having to specify its parent node: let node = document.getelementbyid("nested"); if (node.parentnode) { node.parentnode.removechild(node); } to remove all children from an element:...
NodeIterator.nextNode() - Web APIs
in old browsers, as specified in old versions of the specifications, the method may throws the invalid_state_err domexception if this method is called after the nodeiterator.detach()method.
NodeIterator.previousNode() - Web APIs
in old browsers, as specified in old versions of the specifications, the method may throws the invalid_state_err domexception if this method is called after the nodeiterator.detach()method.
NodeIterator.referenceNode - Web APIs
the nodeiterator.referencenode read-only returns the node to which the iterator is anchored; as new nodes are inserted, the iterator remains anchored to the reference node as specified by this property.
NodeIterator - Web APIs
nodeiterator.root read only returns a node representing the root node as specified when the nodeiterator was created.
NonDocumentTypeChildNode.nextElementSibling - Web APIs
the nondocumenttypechildnode.nextelementsibling read-only property returns the element immediately following the specified one in its parent's children list, or null if the specified element is the last one in the list.
NonDocumentTypeChildNode.previousElementSibling - Web APIs
the nondocumenttypechildnode.previouselementsibling read-only property returns the element immediately prior to the specified one in its parent's children list, or null if the specified element is the first one in the list.
Notification.Notification() - Web APIs
it defaults to auto, which just adopts the browser's language setting behavior, but you can override that behaviour by setting values of ltr and rtl (although most browsers seem to ignore these settings.) lang: the notification's language, as specified using a domstring representing a bcp 47 language tag.
Notification.body - Web APIs
WebAPINotificationbody
the body read-only property of the notification interface indicates the body string of the notification, as specified in the body option of the notification() constructor.
Notification.data - Web APIs
WebAPINotificationdata
the data read-only property of the notification interface returns a structured clone of the notification's data, as specified in the data option of the notification() constructor.
Notification.dir - Web APIs
WebAPINotificationdir
the dir read-only property of the notification interface indicates the text direction of the notification, as specified in the dir option of the notification() constructor.
Notification.icon - Web APIs
WebAPINotificationicon
the icon read-only property of the notification interface contains the url of an icon to be displayed as part of the notification, as specified in the icon option of the notification() constructor.
Notification.image - Web APIs
the image read-only property of the notification interface contains the url of an image to be displayed as part of the notification, as specified in the image option of the notification() constructor.
Notification.onclick - Web APIs
examples in the following example, we use an onclick handler to open a webpage in a new tab (specified by the inclusion of the '_blank' parameter) once a notification is clicked: notification.onclick = function(event) { event.preventdefault(); // prevent the browser from focusing the notification's tab window.open('http://www.mozilla.org', '_blank'); } specifications specification status comment notifications apithe definition of 'onclick' in that specification.
Notification.renotify - Web APIs
the renotify read-only property of the notification interface specifies whether the user should be notified after a new notification replaces an old one, as specified in the renotify option of the notification() constructor.
Notification.silent - Web APIs
this is specified in the silent option of the notification() constructor.
Notification.tag - Web APIs
WebAPINotificationtag
the tag read-only property of the notification interface signifies an identifying tag for the notification, as specified in the tag option of the notification() constructor.
Notification.timestamp - Web APIs
the timestamp read-only property of the notification interface returns a domtimestamp, as specified in the timestamp option of the notification() constructor.
Notification.title - Web APIs
the title read-only property of the notification interface indicates the title of the notification, as specified in the title parameter of the notification() constructor.
NotificationEvent - Web APIs
note: this interface is specified in the notifications api, but accessed through serviceworkerglobalscope.
OfflineAudioContext - Web APIs
offlineaudiocontext.suspend() schedules a suspension of the time progression in the audio context at the specified time and returns a promise.
OscillatorNode.OscillatorNode() - Web APIs
the oscillatornode() constructor of the web audio api creates a new oscillatornode object which is an audionode that represents a periodic waveform, like a sine wave, optionally setting the node's properties' values to match values in a specified object.
OscillatorNode.start() - Web APIs
syntax oscillator.start(when); // start playing oscillator at the point in time specified by when parameters when optional an optional double representing the time (in seconds) when the oscillator should start, in the same coordinate system as audiocontext's currenttime attribute.
OscillatorNode.type - Web APIs
exceptions invalidstateerror the value custom was specified.
OscillatorNode - Web APIs
it is an audioscheduledsourcenode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone.
PaintWorklet.registerPaint - Web APIs
invalidmodificationerror thrown when the a worklet already exists with the specified name.
PannerNode.orientationX - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and coneoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being played.
PannerNode.orientationY - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being played.
PannerNode.orientationZ - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being played.
PannerNode.positionX - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being played.
PannerNode.positionY - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being played.
PannerNode.positionZ - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being played.
PannerNode - Web APIs
this feature was not clearly specified and had a number of issues, so it was removed from the specification.
ParentNode.append() - Web APIs
WebAPIParentNodeappend
exceptions hierarchyrequesterror: node cannot be inserted at the specified point in the hierarchy.
PaymentAddress - Web APIs
note: properties for which values were not specified contain empty strings.
PaymentDetailsUpdate.shippingAddressErrors - Web APIs
the paymentdetailsupdate dictionary's shippingaddresserrors property, if present, contains an addresserrors object whose contents provide error messages for one or more of the values in the paymentaddress specified as paymentrequest.shippingaddress.
PaymentItem - Web APIs
pending secure context a boolean value which is true if the specified amount has not yet been finalized.
PaymentMethodChangeEvent - Web APIs
return value a newly-created paymentmethodchangeevent object describing a change to the options specified for the payment method given in the methodname property.
PaymentRequest: shippingoptionchange event - Web APIs
paymentrequest.addeventlistener("shippingoptionchange", event => { const value = calculatenewtotal(paymentrequest.shippingoption); const total = { currency: "eur", label: "total due", value, }; event.updatewith({ total }); }, false); after caling a custom function, calculatenewtotal(), to compute the updated total based on the newly-selected shipping option as specified by the shippingoption.
PaymentRequest.show() - Web APIs
notsupportederror the promise rejects with a notsupportederror if the user agent does not support the payment methods specified when the paymentrequest constructor was called.
PaymentRequestEvent.openWindow() - Web APIs
the openwindow property of the paymentrequestevent interface opens the specified url in a new window, if and only if the given url is on the same origin as the calling page.
PaymentRequestEvent - Web APIs
methods openwindow() opens the specified url in a new window, if and only if the given url is on the same origin as the calling page.
PaymentResponse.retry() - Web APIs
if show() is rejected, the payment request failed, usually because either there's already one being processed, because the user agent doesn't support any of the specified payment methods, or because of a security issue.
performance.setResourceTimingBufferSize() - Web APIs
the setresourcetimingbuffersize() method sets the browser's resource timing buffer size to the specified number of "resource" performance entry type objects.
PerformanceObserver() - Web APIs
return value a new performanceobserver object which will call the specified callback when observed performance events occur.
PerformanceObserver.observe() - Web APIs
the performance entry types are specified as an array of domstring objects, each naming one entry type; the type names are documented in performance entry type names in performanceentry.entrytype.
PerformanceObserver - Web APIs
the performance observer's callback function will be invoked when a performance entry is recorded for one of the specified entrytypes performanceobserver.disconnect() stops the performance observer callback from receiving performance entries.
PerformanceObserverEntryList.getEntries() - Web APIs
the list's members are determined by the set of entry types specified in the call to the observe() method.
PerformanceResourceTiming.initiatorType - Web APIs
syntax resource.initiatortype; return value a string representing the type of resource that initiated the performance event, as specified above.
PerformanceResourceTiming - Web APIs
performanceresourcetiming.initiatortyperead only a string representing the type of resource that initiated the performance entry, as specified in performanceresourcetiming.initiatortype.
PerformanceServerTiming.description - Web APIs
the description read-only property returns a domstring value of the server-specified metric description, or an empty string.
PerformanceServerTiming.duration - Web APIs
the duration read-only property returns a double that contains the server-specified metric duration, or value 0.0.
PerformanceServerTiming.name - Web APIs
the name read-only property returns a domstring value of the server-specified metric name.
Point - Web APIs
WebAPIPoint
specifications this class was specified in the defunct 20 march 2009 working draft of css 2d transforms module level 3.
PromiseRejectionEvent() - Web APIs
return value a new promiserejectionevent configured as specified by the parameters.
PublicKeyCredential.id - Web APIs
recommendation specified in the context of publickeycredential.
PushManager.subscribe() - Web APIs
if specified, all messages from your application server must use the vapid authentication scheme, and include a jwt signed with the corresponding private key.
PushManager.unregister() - Web APIs
the unregister() method was used to ask the system to unregister and delete the specified endpoint.
PushManager - Web APIs
pushmanager.unregister() unregisters and deletes a specified subscription endpoint.
PushSubscription.getKey() - Web APIs
specifications specification status comment push api working draft this is the push api spec, but note that getkey() is not currently specified in here.
Push API - Web APIs
WebAPIPush API
service worker additions the following additions to the service worker api have been specified in the push api spec to provide an entry point for using push messages.
RTCConfiguration.bundlePolicy - Web APIs
if any other value is specified, no configuration is specified when creating the rtcpeerconnection, or if the bundlepolicy property isn't included in the rtcconfiguration object specified when creating the connection, balanced is assumed.
RTCConfiguration.iceServers - Web APIs
if the array is empty, or if the iceservers option isn't specified, the ice agent will negotiate without the use of any servers, which will limit the connection to local peers.
RTCDTMFSender.insertDTMF() - Web APIs
calling insertdtmf() will append the specified tones to the end of the current tone buffer, so that those tones play after the previously-enqueued tones.
RTCDTMFSender - Web APIs
methods rtcdtmfsender.insertdtmf() given a string describing a set of dtmf codes and, optionally, the duration of and inter-tone gap between the tones, insertdtmf() starts sending the specified tones.
RTCDTMFToneChangeEvent.RTCDTMFToneChangeEvent() - Web APIs
return value a newly-created rtcdtmftonechangeevent, configured as specified in the provided options.
RTCDataChannel.binaryType - Web APIs
when a binary message is received on the data channel, the resulting message event's messageevent.data property is an object of the type specified by the binarytype.
RTCDataChannel.bufferedAmount - Web APIs
whenever this value decreases to fall to or below the value specified in the bufferedamountlowthreshold property, the user agent fires the bufferedamountlow event.
RTCDataChannel: error event - Web APIs
the error's name is rtcerror and the message is an error string specified by the webrtc layer.
RTCDataChannel.label - Web APIs
syntax var name = adatachannel.label; value a string identifier assigned by the web site or app when the data channel was created, as specified when rtcpeerconnection.createdatachannel() was called to create the channel.
RTCDataChannel.maxRetransmits - Web APIs
this can only be set when the rtcdatachannel is created by calling rtcpeerconnection.createdatachannel(), using the maxretransmits field in the specified options.
RTCDataChannel.onbufferedamountlow - Web APIs
this event, which is represented by a simple event object, is sent when the amount of data buffered to be sent falls to or below the threshold specified by the channel's bufferedamountlowthreshold.
RTCDataChannel.protocol - Web APIs
if no protocol was specified when the data channel was created, then this property's value is "" (the empty string).
RTCDataChannelEvent() - Web APIs
value a new rtcdatachannelevent configured as specified.
RTCIceCandidate.address - Web APIs
address is null by default if not otherwise specified.
RTCIceCandidate.protocol - Web APIs
protocol is null by default if not specified properly in the sdp, but this is an error condition and will result in a thrown exception when you call rtcpeerconnection.addicecandidate().
RTCIceCandidate.sdpMLineIndex - Web APIs
this value is specified when creating the rtcicecandidate by setting the corresponding sdpmlineindex value in the rtcicecandidateinit object when creating a new candidate with new rtcicecandidate().
RTCIceCandidate.sdpMid - Web APIs
if you call the constructor with an m-line string instead of an rtcicecandidateinit object, the value of sdpmid is extracted from the specified candidate m-line string.
RTCIceCandidate.type - Web APIs
host the candidate is a host candidate, whose ip address as specified in the rtcicecandidate.ip property is in fact the true address of the remote peer.
RTCIceCandidate.usernameFragment - Web APIs
this value is specified when creating the rtcicecandidate by setting the corresponding usernamefragment value in the rtcicecandidateinit object when creating a new candidate with new rtcicecandidate().
RTCIceCandidatePairStats.nominated - Web APIs
once a candidate pair has been nominated and the two peers have each reconfigured themselves to use the specified configuration, the ice negotiation process can potentially end (or it can continue, to allow the connection to adapt to changing conditions).
RTCIceCandidatePairStats.selected - Web APIs
that object's selectedcandidatepairid property indicates whether or not the specified transport is the one being used.
RTCIceCandidatePairStats.writable - Web APIs
note: this property was removed from the specification in early 2017 because you can determine whether or not an incoming ice request is available to read by checking to see if responsesreceived is greater than 0 and that the time specified by consentexpiredtimestamp has not passed: if (icpstats.responsesreceived > 0 && icpstats.consentexpiredtimestamp < performance.now()) { /* at least one ice response has been received */ } ...
RTCIceCandidateStats.candidateType - Web APIs
syntax candidatetype = rtcicecandidatestats.candidatetype; value a domstring whose value is one of the strings found in the rtcicecandidatetype enumerated type:host the candidate is a host candidate, whose ip address as specified in the rtcicecandidate.ip property is in fact the true address of the remote peer.
RTCIceCandidateStats.networkType - Web APIs
note: keep in mind that the specified value only reflects the initial connection between the local peer and the next hop along the network toward reaching the remote peer.
RTCIceCandidateStats.protocol - Web APIs
the rtcicecandidatestats dictionary's protocol property specifies the protocol the specified candidate would use for communication with the remote peer.
RTCIceCandidateType - Web APIs
host the candidate is a host candidate, whose ip address as specified in the rtcicecandidate.ip property is in fact the true address of the remote peer.
RTCIceServers.urls - Web APIs
WebAPIRTCIceServerurls
syntax var iceserver = { urls = iceserverurl | [ url1, ..., urln ], username: "webrtc", // optional credential: "turnpassword" // optional }; iceservers.push(iceserver); the value of this property may be specified as a single url or as an array of multiple urls.
RTCNetworkType - Web APIs
note: keep in mind that the specified value only reflects the initial connection between the local peer and the next hop along the network toward reaching the remote peer.
RTCPeerConnection.connectionState - Web APIs
the read-only connectionstate property of the rtcpeerconnection interface indicates the current state of the peer connection by returning one of the string values specified by the enum rtcpeerconnectionstate.
RTCPeerConnection.getDefaultIceServers() - Web APIs
syntax var defaulticeservers = rtcpeerconnection.getdefaulticeservers(); return value an array of ice servers, specified as objects based on rtciceserver, which the browser will use if none are specified in the configuration of the rtcpeerconnection.
RTCPeerConnection.getSenders() - Web APIs
the function gets the list of the peer connection's senders and iterates over every sender, setting the corresponding media track's enabled to the inverse of the specified muting.
RTCPeerConnection.onaddstream - Web APIs
example this code, based on an older version of our signaling and video calling sample, responds to addstream events by setting the video source for a <video> element to the stream specified in the event, and then enabling a "hang up" button in the app's user interface.
RTCPeerConnection.onicecandidateerror - Web APIs
} else if (event.errorcode >= 700 && event.errorcode <= 799) { // server could not be reached; a specific error number is // provided but these are not yet specified.
RTCPeerConnection.removeTrack() - Web APIs
the rtcpeerconnection.removetrack() method tells the local end of the connection to stop sending media from the specified track, without actually removing the corresponding rtcrtpsender from the list of senders as reported by rtcpeerconnection.getsenders().
RTCPeerConnection.signalingState - Web APIs
the read-only signalingstate property on the rtcpeerconnection interface returns one of the string values specified by the rtcsignalingstate enum; these values describe the state of the signaling process on the local end of the connection while connecting or reconnecting to another peer.
RTCPeerConnectionIceErrorEvent - Web APIs
constructor rtcpeerconnectioniceerrorevent() creates and returns a new rtcpeerconnectioniceerrorevent object, with its type and other properties initialized as specified in the parameters.
RTCPeerConnectionIceEvent() - Web APIs
return value a newly-created rtcpeerconnectioniceevent, configured as specified in the provided options.
RTCRtpCodecParameters - Web APIs
mimetype optional the codec's mime media type and subtype specified as a domstring of the form "type/subtype".
RTCRtpEncodingParameters.maxBitrate - Web APIs
in addition, there's no guarantee that the network interface can support the specified bandwidth, in which case the actual bandwidth will be lower.
RTCRtpReceiver.getCapabilities() static function - Web APIs
return value an rtcrtpcapabilities object stating what capabilities the browser has for receiving the specified media kind over an rtcpeerconnection.
RTCRtpSender.getCapabilities() static function - Web APIs
return value an rtcrtpcapabilities object stating what capabilities the browser has for sending the specified media kind over an rtcpeerconnection.
RTCRtpSender - Web APIs
static methods rtcrtpsender.getcapabilities() returns an rtcrtpcapabilities object describing the system's capabilities for sending a specified kind of media data.
RTCRtpTransceiver.direction - Web APIs
for example, if the direction is specified as "sendrecv", the corresponding sdp a-line is: a=sendrecv specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtptransceiver.direction' in that specification.
RTCRtpTransceiver.setCodecPreferences() - Web APIs
the specified set of codecs and configurations will be used for all future connections including this transceiver until this method is called again.
RTCRtpTransceiverInit - Web APIs
streams optional a list of mediastream objects to add to the transceiver'srtcrtpreceiver; when the remote peer's rtcpeerconnection's track event occurs, these are the streams that will be specified by that event.
RTCSessionDescription - Web APIs
the session description's type will be specified using one of these values.
RTCTrackEventInit.streams - Web APIs
if streams is not specified, its default value is an empty array.
Range.setStart() - Web APIs
WebAPIRangesetStart
setting the start point below (lower in the document) the end point will result in a collapsed range with the start and end points both set to the specified start position.
Range.surroundContents() - Web APIs
the range.surroundcontents() method moves content of the range into a new node, placing the new node at the start of the specified range.
ReadableStream.getReader() - Web APIs
undefined (or not specified at all — this is the default), which results in a readablestreamdefaultreader being created that can read individual chunks from a stream.
RenderingContext - Web APIs
by using the shorthand renderingcontext, methods and properties which can make use of any of these interfaces can be specified and written more easily; since <canvas> supports several rendering systems, it's helpful from a specification and browser implementation perspective to have a shorthand that means "one of these interfaces." as such, renderingcontext is an implementation detail, and isn't something web developers directly use.
Report - Web APIs
WebAPIReport
res on our web page: let options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); }, options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor: observer.observe(); because of the event handler we set up inside the reportingobserver() constructor, we can now click the button to display the report details.
ReportingObserver - Web APIs
res on our web page: let options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); }, options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor: observer.observe(); later on in the example we deliberately use the deprecated version of mediadevices.getusermedia(): if(navigator.mozgetusermedia) { navigator.mozgetusermedia( constraints, success, failure); } else { navigator.getusermedia( constraints, success, failure); } this causes a deprecation report to be generated; because of the e...
Request.integrity - Web APIs
WebAPIRequestintegrity
if an integrity has not been specified, the property returns ''.
Request.redirect - Web APIs
WebAPIRequestredirect
syntax var myredirect = request.redirect; value a requestredirect enum value, which can be one the following strings: follow error manual if not specified when the request is created, it takes the default value of follow.
ResizeObserver.observe() - Web APIs
the observe() method of the resizeobserver interface starts observing the specified element or svgelement.
ResizeObserver.unobserve() - Web APIs
the unobserve() method of the resizeobserver interface ends the observing of a specified element or svgelement.
Using the Resource Timing API - Web APIs
the setresourcetimingbuffersize() method sets the resource performance entry buffer size to the specified number of resource performance entries.
Resource Timing API - Web APIs
the setresourcetimingbuffersize() method sets the resource performance entry buffer size to the specified number of resource performance entries.
cx - Web APIs
if unspecified, the effect is as if the value is set to 0.
cy - Web APIs
if unspecified, the effect is as if the value is set to 0.
r - Web APIs
if unspecified, the effect is as if the value is set to 0.
SVGDocument - Web APIs
title domstring the title of a document as specified by the "title" sub-element of the "svg" root element (i.e., <svg><title>here is the title</title>...</svg>) url domstring the complete uri of the document.
SVGSVGElement - Web APIs
svgsvgelement.unsuspendredraw() cancels a specified suspendredraw() by providing a unique suspend handle id that was returned by a previous suspendredraw() call.
SVGStylable - Web APIs
svg stylable interface the svgstylable interface is implemented on all objects corresponding to svg elements that can have style, class and presentation attributes specified on them.
SVGTests - Web APIs
WebAPISVGTests
methods svgtests.hasextension() read only returns true if the browser supports the given extension, specified by a uri.
Screen.lockOrientation() - Web APIs
the lockorientation() method of the screen interface locks the screen into a specified orientation.
Screen Capture API - Web APIs
similar to getusermedia(), this method creates a promise that resolves with a mediastream containing the display area selected by the user, in a format that matches the specified options.
Screen Wake Lock API - Web APIs
concepts and usage most devices by default turn off their screen after a specified amount of time to prolong the life of the hardware.
Selection.containsNode() - Web APIs
if not specified, the default value false is used.
Selection.getRangeAt() - Web APIs
return value the specified range object.
Selection.selectAllChildren() - Web APIs
the selection.selectallchildren() method adds all the children of the specified node to the selection.
ServiceWorkerGlobalScope.onnotificationclick - Web APIs
this property is specified on the notifications_api even though it's part of serviceworkerglobalscope.
onnotificationclose - Web APIs
this property is specified on the notifications_api even though it's part of serviceworkerglobalscope.
ServiceWorkerGlobalScope.onpush - Web APIs
this event is specified in the push api, but accessed through serviceworkerglobalscope.
ServiceWorkerGlobalScope.onpushsubscriptionchange - Web APIs
working draft initial definition (note: this event is specified in the push api, but accessed through serviceworkerglobalscope.) ...
ServiceWorkerRegistration.getNotifications() - Web APIs
if specified, only notifications that have this tag will be returned.
Service Worker API - Web APIs
if successful, your service worker will be downloaded to the client and attempt installation/activation (see below) for urls accessed by the user inside the whole origin, or inside a subset specified by you.
SharedWorker - Web APIs
constructors sharedworker() creates a shared web worker that executes the script at the specified url.
SpeechGrammarList.addFromString() - Web APIs
the value can be between 0.0 and 1.0; if not specified, the default used is 1.0.
SpeechRecognition.lang - Web APIs
if not specified, this defaults to the html lang attribute value, or the user agent's language setting if that isn't set either.
SpeechRecognition - Web APIs
if not specified, this defaults to the html lang attribute value, or the user agent's language setting if that isn't set either.
StylePropertyMapReadOnly.get() - Web APIs
the get() method of the stylepropertymapreadonly interface returns a cssstylevalue object for the first value of the specified property.
StylePropertyMapReadOnly.has() - Web APIs
the has() method of the stylepropertymapreadonly interface indicates whether the specified property is in the stylepropertymapreadonly object.
StyleSheet.title - Web APIs
WebAPIStyleSheettitle
the title is often specified in the ownernode.
SubtleCrypto.decrypt() - Web APIs
invalid encryption algorithm, or invalid key for the specified encryption algorithm).
SubtleCrypto.wrapKey() - Web APIs
aes-kw is specified in rfc 3394.
SubtleCrypto - Web APIs
the wrapped key matches the format specified in the given parameters, and wrapping is done by the given wrapping key, using the specified algorithm.
SyncManager.register() - Web APIs
id: the unique identifier of the specified syncregistration object.
Text.replaceWholeText() - Web APIs
the text.replacewholetext() method replaces the text of the node and all of its logically adjacent text nodes with the specified text.
TextDecoder() - Web APIs
the textdecoder() constructor returns a newly created textdecoder object for the encoding specified in parameter.
TextDecoder - Web APIs
constructor textdecoder() returns a newly constructed textdecoder that will generate a code point stream with the decoding method specified in parameters.
TextTrackList - Web APIs
gettrackbyid() returns the texttrack found within the texttracklist whose id matches the specified string.
Touch.radiusX - Web APIs
WebAPITouchradiusX
it is specified in the touch events – level 2 draft specification and not in touch events recommendation.
Touch.radiusY - Web APIs
WebAPITouchradiusY
it is specified in the touch events – level 2 draft specification and not in touch events recommendation.
Touch.rotationAngle - Web APIs
it is specified in the touch events – level 2 draft specification and not in touch events recommendation.
TouchList.item() - Web APIs
WebAPITouchListitem
the item() method returns the touch object at the specified index in the touchlist.
TrackDefault.byteStreamTrackID - Web APIs
if not specified in the constructor, this value will be an empty string and the sourcebuffer can contain any tracks of the specified trackdefault.type.
TreeWalker - Web APIs
treewalker.root read only returns a node representing the root node as specified when the treewalker was created.
URL() - Web APIs
WebAPIURLURL
if not specified, it defaults to ''.
URL.origin - Web APIs
WebAPIURLorigin
the exact structure varies depending on the type of url: for http or https urls, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified).
URL.password - Web APIs
WebAPIURLpassword
the password property of the url interface is a usvstring containing the password specified before the domain name.
URL.username - Web APIs
WebAPIURLusername
the username property of the url interface is a usvstring containing the username specified before the domain name.
URLSearchParams.append() - Web APIs
the append() method of the urlsearchparams interface appends a specified key/value pair as a new search parameter.
URLSearchParams.has() - Web APIs
the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
URLSearchParams - Web APIs
methods urlsearchparams.append() appends a specified key/value pair as a new search parameter.
URLUtilsReadOnly.origin - Web APIs
the urlutilsreadonly.origin read-only property is a domstring containing the unicode serialization of the origin of the represented url, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified).
URL API - Web APIs
WebAPIURL API
also covered are definitions of various terms related to addressing of computers on a network, and the algorithms for parsing ip addresses and dom addresses are specified.
USB - Web APIs
WebAPIUSB
usb.requestdevice() returns a promise that resolves with an instance of usbdevice if the specified device is found.
USBAlternateInterface - Web APIs
this is the value of the string descriptor with the index specified by the iinterface field of the interface descriptor defining this interface.
USBConfiguration.configurationValue - Web APIs
the configurationvalue read-only property of the usbconfiguration interface null syntax var value = usbconfiguration.configurationvalue value the configuration descriptor of the usbdevice specified in the constructor of the current usbconfiguration instance.
USBDevice.opened - Web APIs
WebAPIUSBDeviceopened
it shows how to test that a device is open before calling usbdevice.controltransferout to set a specified led color.
USBDevice.selectAlternateInterface() - Web APIs
the selectalternateinterface() method of the usbdevice interface returns a promise that resolves when the specified alternative endpoint is selected.
USBDevice.selectConfiguration() - Web APIs
the selectconfiguration() method of the usbdevice interface returns a promise that resolves when the specified configuration is selected.
USBDevice.serialNumber - Web APIs
syntax var serialnumber = usbdevice.serialnumber value the serial number for the specified usb device specifications specification status comment webusbthe definition of 'serialnumber' in that specification.
VideoTrack.id - Web APIs
WebAPIVideoTrackid
syntax var trackid = videotrack.id; value a domstring which identifies the track, suitable for use when calling gettrackbyid() on an videotracklist such as the one specified by a media element's videotracks property.
VideoTrack.label - Web APIs
WebAPIVideoTracklabel
example this example returns an array of track kinds and labels for potential use in a user interface to select video tracks for a specified media element.
Videotrack.language - Web APIs
syntax var videotracklanguage = videotrack.language; value a domstring specifying the bcp 47 (rfc 5646) format language tag of the primary language used in the video track, or an empty string ("") if the language is not specified or known, or if the track doesn't contain speech.
VideoTrack - Web APIs
the language is specified as a bcp 47 (rfc 5646) language code, such as "en-us" or "pt-br".
VideoTrackList - Web APIs
gettrackbyid() returns the videotrack found within the videotracklist whose id matches the specified string.
WebGL2RenderingContext.getIndexedParameter() - Web APIs
return value depends on the requested information (as specified with target).
WebGL2RenderingContext.getInternalformatParameter() - Web APIs
return value depends on the requested information (as specified with pname).
WebGL2RenderingContext.vertexAttribIPointer() - Web APIs
the main difference is that while values specified by vertexattribpointer are always interpreted as floating-point values in the shader (even if they were originally specified as integers in the buffer), this method allows specifying values which are interpreted as integers in the shader.
WebGLRenderingContext.getBufferParameter() - Web APIs
return value depends on the requested information (as specified with pname).
WebGLRenderingContext.getProgramInfoLog() - Web APIs
the webglrenderingcontext.getprograminfolog returns the information log for the specified webglprogram object.
WebGLRenderingContext.getProgramParameter() - Web APIs
return value returns the requested program information (as specified with pname).
WebGLRenderingContext.getRenderbufferParameter() - Web APIs
return value depends on the requested information (as specified with pname).
WebGLRenderingContext.getShaderInfoLog() - Web APIs
the webglrenderingcontext.getshaderinfolog returns the information log for the specified webglshader object.
WebGLRenderingContext.getShaderParameter() - Web APIs
return value returns the requested shader information (as specified with pname).
WebGLRenderingContext.getShaderPrecisionFormat() - Web APIs
the webglrenderingcontext.getshaderprecisionformat() method of the webgl api returns a new webglshaderprecisionformat object describing the range and precision for the specified shader numeric format.
WebGLRenderingContext.getTexParameter() - Web APIs
return value returns the requested texture information (as specified with pname).
WebGLRenderingContext.getVertexAttrib() - Web APIs
return value returns the requested vertex attribute information (as specified with pname).
WebGLRenderingContext.getVertexAttribOffset() - Web APIs
the webglrenderingcontext.getvertexattriboffset() method of the webgl api returns the address of a specified vertex attribute.
WebGLRenderingContext.readPixels() - Web APIs
the webglrenderingcontext.readpixels() method of the webgl api reads a block of pixels from a specified rectangle of the current color framebuffer into an arraybufferview object.
WebGLRenderingContext.scissor() - Web APIs
the webglrenderingcontext.scissor() method of the webgl api sets a scissor box, which limits the drawing to a specified rectangle.
WebGLRenderingContext.stencilOp() - Web APIs
gl.replace sets the stencil buffer value to the reference value as specified by webglrenderingcontext.stencilfunc().
WebGLRenderingContext.stencilOpSeparate() - Web APIs
gl.replace sets the stencil buffer value to the reference value as specified by webglrenderingcontext.stencilfunc().
WebGLRenderingContext.texParameter[fi]() - Web APIs
the param parameter is a glfloat or glint specifying the value for the specified parameter pname.
WebGLRenderingContext.useProgram() - Web APIs
the webglrenderingcontext.useprogram() method of the webgl api sets the specified webglprogram as part of the current rendering state.
Compressed texture formats - Web APIs
usage unless otherwise specified, this article applies to both webgl 1 and 2 contexts.
WebGL constants - Web APIs
int_vec3 0x8b54 int_vec4 0x8b55 bool 0x8b56 bool_vec2 0x8b57 bool_vec3 0x8b58 bool_vec4 0x8b59 float_mat2 0x8b5a float_mat3 0x8b5b float_mat4 0x8b5c sampler_2d 0x8b5e sampler_cube 0x8b60 shader precision-specified types constant name value description low_float 0x8df0 medium_float 0x8df1 high_float 0x8df2 low_int 0x8df3 medium_int 0x8df4 high_int 0x8df5 framebuffers and renderbuffers constant name value description framebuffer 0x8d40 ...
Getting started with WebGL - Web APIs
your browser or machine may not support it."); return; } // set clear color to black, fully opaque gl.clearcolor(0.0, 0.0, 0.0, 1.0); // clear the color buffer with specified clear color gl.clear(gl.color_buffer_bit); } window.onload = main; the first thing we do here is obtain a reference to the canvas, assigning it to a variable named canvas.
WebGL model view projection - Web APIs
it's the 3d region of space defined by the field of view and the distances specified as the nearest and farthest content that should be rendered.
WebRTC connectivity - Web APIs
when changing the description by calling setlocaldescription() or setremotedescription(), the specified description is set as the pending description, and the webrtc layer begins to evaluate whether or not it's acceptable.
WebRTC API - Web APIs
events bufferedamountlow the amount of data currently buffered by the data channel—as indicated by its bufferedamount property—has decreased to be at or below the channel's minimum buffered data size, as specified by bufferedamountlowthreshold.
WebSocket() - Web APIs
these strings are used to indicate sub-protocols, so that a single server can implement multiple websocket sub-protocols (for example, you might want one server to be able to handle different types of interactions depending on the specified protocol).
WebSocket.protocol - Web APIs
the websocket.protocol read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the protocols parameter when creating the websocket object, or the empty string if no connection is established.
WebSocket.send() - Web APIs
WebAPIWebSocketsend
the websocket.send() method enqueues the specified data to be transmitted to the server over the websocket connection, increasing the value of bufferedamount by the number of bytes needed to contain the data.
Writing WebSocket client applications - Web APIs
these strings are used to indicate sub-protocols, so that a single server can implement multiple websocket sub-protocols (for example, you might want one server to be able to handle different types of interactions depending on the specified protocol).
Writing WebSocket servers - Web APIs
closing the connection to close a connection either the client or server can send a control frame with data containing a specified control sequence to begin the closing handshake (detailed in section 5.5.1).
Web Video Text Tracks Format (WebVTT) - Web APIs
leave the second line blank, and on the third line the time for first cue is to be specified.
Using bounded reference spaces - Web APIs
the options specified when requesting the session indicate that at a minimum, the session must be compatible with the local-floor reference space, but that it would be nice if the bounded-floor space were supported as well.
Using the Web Animations API - Web APIs
currently, there should be at least two keyframes specified (representing the starting and ending states of the animation sequence).
Controlling multiple parameters with ConstantSourceNode - Web APIs
so n becomes the value of the specified parameter (gain for the gainnodes and pan for the stereopannernode.
Example and tutorial: Simple synth keyboard - Web APIs
the oscillator's frequency is set to the value specified in the freq parameter by setting the value of the oscillator.frequency audioparam object.
Background audio processing using AudioWorklet - Web APIs
calling addmodule() loads the specified javascript file, which should contain the implementation of the audio processor.
Web Bluetooth API - Web APIs
interfaces bluetooth returns a promise to a bluetoothdevice object with the specified options.
Using Web Workers - Web APIs
once created, a worker can send messages to the javascript code that created it by posting messages to an event handler specified by that code (and vice versa).
Window: DOMContentLoaded event - Web APIs
bubbles yes cancelable yes (although specified as a simple event that isn't cancelable) interface event event handler property none the original target for this event is the document that has loaded.
Window.alert() - Web APIs
WebAPIWindowalert
the window.alert() method displays an alert dialog with the optional specified content and an ok button.
Window.captureEvents() - Web APIs
the window.captureevents() method registers the window to capture all events of the specified type.
Window.clearImmediate() - Web APIs
this method clears the action specified by window.setimmediate.
Window.dialogArguments - Web APIs
this lets you determine what parameters were specified when the modal dialog was created.
window.dump() - Web APIs
WebAPIWindowdump
if the -console option was not specified then the output goes to stderr.
Window.getDefaultComputedStyle() - Web APIs
must be null (or not specified) for regular elements.
Window.localStorage - Web APIs
for example, the user may have their browser configured to deny permission to persist data for the specified origin.
Window.moveBy() - Web APIs
WebAPIWindowmoveBy
the moveby() method of the window interface moves the current window by a specified amount.
Window.moveTo() - Web APIs
WebAPIWindowmoveTo
the moveto() method of the window interface moves the current window to the specified coordinates.
Window.openDialog() - Web APIs
WebAPIWindowopenDialog
the variables specified in the javascript code which gets loaded from the dialog), it is not possible to pass return values back past the close operation using globals (or any other constructs).
Window.requestAnimationFrame() - Web APIs
the window.requestanimationframe() method tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint.
Window.resizeBy() - Web APIs
WebAPIWindowresizeBy
the window.resizeby() method resizes the current window by a specified amount.
Window.scrollByLines() - Web APIs
the window.scrollbylines() method scrolls the document by the specified number of lines.
Window.scrollByPages() - Web APIs
the window.scrollbypages() method scrolls the current document by the specified number of pages.
Window.sessionStorage - Web APIs
for example, the user may have their browser configured to deny permission to persist data for the specified origin.
WindowClient.navigate() - Web APIs
the navigate() method of the windowclient interface loads a specified url into a controlled client page then returns a promise that resolves to the existing windowclient.
WindowClient - Web APIs
windowclient.navigate() loads a specified url into a controlled client page.
WindowOrWorkerGlobalScope.fetch() - Web APIs
typeerror the specified url string includes user credentials.
Worker - Web APIs
WebAPIWorker
constructors worker() creates a dedicated web worker that executes the script at the specified url.
WritableStream.WritableStream() - Web APIs
write(chunk, controller) optional this method, also defined by the developer, will be called when a new chunk of data (specified in the chunk parameter) is ready to be written to the underlying sink.
XDomainRequest - Web APIs
post data is specified in this method.
Sending and Receiving Binary Data - Web APIs
}; oreq.send(); receiving binary data in older browsers the load_binary_resource() function shown below loads binary data from the specified url, returning it to the caller.
init() - Web APIs
if this is specified, it is used even if the global has a window with a load group already established.
XMLHttpRequest.overrideMimeType() - Web APIs
syntax xmlhttprequest.overridemimetype(mimetype) parameters mimetype a domstring specifying the mime type to use instead of the one specified by the server.
XMLHttpRequest.responseText - Web APIs
example var xhr = new xmlhttprequest(); xhr.open('get', '/server', true); // if specified, responsetype must be empty string or "text" xhr.responsetype = 'text'; xhr.onload = function () { if (xhr.readystate === xhr.done) { if (xhr.status === 200) { console.log(xhr.response); console.log(xhr.responsetext); } } }; xhr.send(null); specifications specification status comment xmlhttprequest living standard ...
XMLHttpRequest.responseXML - Web APIs
example var xhr = new xmlhttprequest; xhr.open('get', '/server'); // if specified, responsetype must be empty string or "document" xhr.responsetype = 'document'; // force the response to be parsed as xml xhr.overridemimetype('text/xml'); xhr.onload = function () { if (xhr.readystate === xhr.done && xhr.status === 200) { console.log(xhr.response, xhr.responsexml); } }; xhr.send(); specifications specification status comment xmlhttpreques...
XMLHttpRequest.send() - Web APIs
null if no value is specified for the body, a default value of null is used.
XMLHttpRequest.setRequestHeader() - Web APIs
each time you call setrequestheader() after the first time you call it, the specified text is appended to the end of the existing header's content.
XMLHttpRequest.upload - Web APIs
timeout ontimeout the upload timed out because a reply did not arrive within the time interval specified by the xmlhttprequest.timeout.
XMLHttpRequest - Web APIs
xmlhttprequest.getresponseheader() returns the string containing the text of the specified header, or null if either the response has not yet been received or the header doesn't exist in the response.
XMLSerializer - Web APIs
serializetostream() the subtree rooted by the specified element is serialized to a byte stream using the character set specified.
XPathEvaluator.createExpression() - Web APIs
namespace_err if the expression contains namespace prefixes which cannot be resolved by the specified xpathnsresolver, a domexception of type namespace_error is raised.
XPathEvaluator.createNSResolver() - Web APIs
return value an xpathnsresolver object which resolves namespaces with respect to the definitions in scope for a specified node.
XPathEvaluator - Web APIs
xpathevaluator.evaluate() evaluates an xpath expression string and returns a result of the specified type if possible.
XPathException - Web APIs
type_err 52 if the expression cannot be converted to return the specified type.
XRBoundedReferenceSpace.boundsGeometry - Web APIs
it's important that your content not be designed to require the user to exit the bounds specified by boundsgeometry.
XRBoundedReferenceSpace - Web APIs
the specified bounds may, in fact, describe the shape and size of the room the user is located in, in order to let the webxr site or application prevent the user from colliding with the walls or other obstacles in the real world.
XRFrame - Web APIs
WebAPIXRFrame
methods getpose() returns an xrpose object representing the spatial relationship between the two specified xrspace objects.
XRInputSourceArray.forEach() - Web APIs
the xrinputsourcearray method foreach() executes the specified callback once for each input source in the array, starting at index 0 and progressing until the end of the list.
XRInputSourceEvent.frame - Web APIs
instead, the xrframe specified by the frame property is simply a method to provide access to the getpose() method, which you can use to get the relative positions of the objects in the scene at the time the event occurred.
XRInputSourceEventInit.frame - Web APIs
instead, the xrframe specified by the frame property is simply a method to provide access to the getpose() method, which you can use to get the relative positions of the objects in the scene at the time the event occurred.
XRInputSourcesChangeEvent - Web APIs
the specified type must be inputsourceschange, which is the only event that uses this interface.
XRPermissionDescriptor.mode - Web APIs
no specific features are specified during this query; see requiredfeatures and optionalfeatures for more information on specifying features during a webxr permission check.
XRPermissionStatus - Web APIs
any feature which was specified in either the optionalfeatures or requiredfeatures when calling navigator.permissions.query() are listed in granted if and only if permission to use them is granted.
XRPose.transform - Web APIs
WebAPIXRPosetransform
the transform read-only attribute of the xrpose interface is a xrrigidtransform object providing the position and orientation of the pose relative to the base xrspace as specified when the pose was obtained by calling xrframe.getpose().
XRReferenceSpace - Web APIs
the webxr device api's xrreferencespace interface describes the coordinate system for a specific tracked entity or object within the virtual world using a specified tracking behavior.
XRRenderState - Web APIs
when you apply changes using the xrsession method updaterenderstate(), the specified changes take effect after the current animation frame has completed, but before the next one begins.
XRRigidTransform.orientation - Web APIs
examples to create a reference space which is oriented to look straight up, positioned 2 meters off of ground level: xrreferencespace = refspace.getoffsetreferencespace( new xrrigidtransform({y: -2}, {x: 0.0, y: 1.0, z: 0.0, w: 1.0}); ); the unit quaternion specified here is [0.0, 1.0, 0.0, 1.0] to indicate that the object should be facing directly along the y axis.
XRRigidTransform - Web APIs
constructor new xrrigidtransform() creates a new xrrigidtransform object which represents a transform that applies a specified position and/or orientation.
XRSession.cancelAnimationFrame() - Web APIs
usage notes this function has no effect if the specified handle cannot be found.
XRSession.requestAnimationFrame() - Web APIs
the specified callback is executed once before the next repaint; if you wish for it to be executed for the following repaint, you must call requestanimationframe() again.
XRSessionEvent - Web APIs
constructor xrsessionevent() creates and returns a new xrsessionevent object configured using the specified xrsessioneventinit object's values as available.
XRSessionMode - Web APIs
usage notes the xrsessionmode type indicates the values that can be specified when calling xr.issessionsupported() to determine whether or not the specified session type is supported and available to be used, and by requestsession() to attempt to open a new webxr session.
XRView.transform - Web APIs
WebAPIXRViewtransform
the read-only transform property of the xrview interface is an xrrigidtransform object which provides the position and orientation of the viewpoint relative to the xrreferencespace specified when the xrframe.getviewerpose() method was called to obtain the view object.
XRViewport - Web APIs
thus the values specified in an xrviewport define a rectangle whose bottom-left corner is at (x, y) and which extends width pixels toward the left and height pixels upward.
XRWebGLLayer.antialias - Web APIs
the specific antialiasing technique used is left to the user agent's discretion and cannot be specified by the web site or web app.
XRWebGLLayer.ignoreDepthValues - Web APIs
the value of ignoredepthvalues can only be set when the xrwebgllayer is instantiated, by setting the corresponding value in the xrwebgllayerinit object specified as the constructor's layerinit parameter.
XRWebGLLayerInit.framebufferScaleFactor - Web APIs
the xrwebgllayerinit dictionary's framebufferscalefactor property, when specified upon instantiating a new xrwebgllayer using its constructor, xrwebgllayer(), specifies the scaling factor to use when determining the size of the frame buffer to use when rendering the scene, relative to the default xr device display resolution.
XRWebGLLayerInit.ignoreDepthValues - Web APIs
each entry in the depth buffer corresponds to the depth of the fragment whose color is at the same location in the color buffer, and must have a value between 0.0 and 1.0, where 0.0 corresponds to the distance specified in the xrsession object's renderstate record's depthnear and 1.0 represents the distance given by depthfar.
XSL Transformations in Mozilla FAQ - Web APIs
future builds might only load an xslt stylesheet if media is not specified, or if the specified media include screen.
Using the aria-valuetext attribute - Accessibility
if aria-valuetext is specified, assistive technologies should render that value instead of the value of aria-valuenow.
Using the progressbar role - Accessibility
note: assistive technologies generally will render the value of aria-valuenow as a percent of the range between the value of aria-valuemin and aria-valuemax, unless aria-valuetext is specified.
ARIA Test Cases - Accessibility
aria-live="polite" aria-relevant="text" aria-live="polite" aria-relevant="all" aria-live="polite" aria-relevant="additions removals text"" aria-live="polite -- should have same behavior as "all" aria-relevant="additions text" aria-live="polite" aria-live="polite" -- aria-relevant is not set, so should act the same as "additions text" expected at behavior: (al) if aria-relevant is not specified, the screen reader should read only live node additions and text changes (al) if aria-relevant is specified, the screen reader should read all the changes specified by aria-relevant and no more.
ARIA: feed role - Accessibility
wai-aria roles, states, and properties aria-labelled if the feed has no visible title, the feed element has a label specified with aria-label.
Web applications and ARIA FAQ - Accessibility
these are specified by adding attributes to the element.
Multipart labels: Using ARIA for labels with embedded fields inside them - Accessibility
both aria-labelledby and aria-describedby are specified on the form element that is to be labelled, for example an <input> in both cases, the label for/label control bindings that may also exist are overridden by aria-labelledby.
ARIA - Accessibility
these are specified by adding attributes to the element.
Custom properties (--*): CSS variables - CSS: Cascading Style Sheets
WebCSS--*
initial valuesee proseapplies toall elementsinheritedyescomputed valueas specified with variables substitutedanimation typediscrete syntax --somekeyword: left; --somecolor: #0000ff; --somecomplexvalue: 3px 6px rgb(20, 32, 54); <declaration-value> this value matches any sequence of one or more tokens, so long as the sequence does not contain an unallowed token.
-moz-float-edge - CSS: Cascading Style Sheets
formal definition initial valuecontent-boxapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax border-box | content-box | margin-box | padding-box examples html <div class="box"> <p>lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </div> css .box { display: block; height: 5px; margin: 0.5em auto 0.5em auto; color: gray; -moz-float-edge: margin-box; box-sizing: border-box; } result specifications not part of any sta...
-moz-force-broken-image-icon - CSS: Cascading Style Sheets
formal definition initial value0applies toimagesinheritednocomputed valueas specifiedanimation typediscrete formal syntax <integer> examples html <img src='/broken/image/link.png' alt='broken image link'> css img { -moz-force-broken-image-icon: 1; height: 100px; width: 100px; } result screenshotlive sample note: unless the image has a specified height and width the broken image icon will not be displayed but the alt attribute will also be hidden if -moz-force-broke...
-moz-outline-radius - CSS: Cascading Style Sheets
refer to the corresponding dimension of the border box-moz-outline-radius-topright: refer to the corresponding dimension of the border box-moz-outline-radius-bottomright: refer to the corresponding dimension of the border box-moz-outline-radius-bottomleft: refer to the corresponding dimension of the border boxcomputed valueas each of the properties of the shorthand:-moz-outline-radius-topleft: as specified-moz-outline-radius-topright: as specified-moz-outline-radius-bottomright: as specified-moz-outline-radius-bottomleft: as specifiedanimation typeas each of the properties of the shorthand:-moz-outline-radius-topleft: a length, percentage or calc();-moz-outline-radius-topright: a length, percentage or calc();-moz-outline-radius-bottomright: a length, percentage or calc();-moz-outline-radius-bottoml...
-moz-user-input - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | none | enabled | disabled examples disabling user input for an element input.example { /* the user will be able to select the text, but not change it.
-webkit-border-before - CSS: Cascading Style Sheets
-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-style: as each of the properties of the shorthand:border-bottom-style: as specifiedborder-left-style: as specifiedborder-right-style: as specifiedborder-top-style: as specifiedcolor: if the value is translucent, the computed value will be the rgba() corresponding one.
-webkit-box-reflect - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ above | below | right | left ]?
-webkit-mask-box-image - CSS: Cascading Style Sheets
initial value: none applies to: all elements inherited: no media: visual computed value: as specified syntax -webkit-mask-box-image: <mask-box-image> [<top> <right> <bottom> <left> <x-repeat> <y-repeat>] where: <mask-box-image> <uri> | <gradient> | none <top> <right> <bottom> <left> <length> | <percentage> <x-repeat> <y-repeat> repeat | stretch | round | space values <uri> the location of the image resource to be used as a mask image.
-webkit-mask-repeat-y - CSS: Cascading Style Sheets
; } .exampletwo { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-y: no-repeat; } using multiple mask images you can specify a different <repeat-style> for each mask image, separated by commas: .examplethree { -webkit-mask-image: url('mask1.png'), url('mask2.png'); -webkit-mask-repeat-y: repeat, space; } each image is matched with the corresponding repeat style, from first specified to last.
-webkit-overflow-scrolling - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscrolling boxesinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | touch examples html <div class="scroll-touch"> <p> this paragraph has momentum scrolling </p> </div> <div class="scroll-auto"> <p> this paragraph does not.
-webkit-print-color-adjust - CSS: Cascading Style Sheets
/* keyword values */ -webkit-print-color-adjust: economy; -webkit-print-color-adjust: exact; /* global values */ -webkit-print-color-adjust: inherit; -webkit-print-color-adjust: initial; -webkit-print-color-adjust: unset; syntax the -webkit-print-color-adjust property is specified as one of the keyword values listed below.
-webkit-tap-highlight-color - CSS: Cascading Style Sheets
formal definition initial valueblackapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
-webkit-touch-callout - CSS: Cascading Style Sheets
formal definition initial valuedefaultapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax default | none examples turn off touch callout .example { -webkit-touch-callout: none; } specifications not part of any standard.
:-moz-suppressed - CSS: Cascading Style Sheets
the :-moz-suppressed css pseudo-class is a mozilla extension that matches elements representing images that were suppressed because loading images from the specified site has been blocked.
::-webkit-scrollbar - CSS: Cascading Style Sheets
examples .visible-scrollbar, .invisible-scrollbar, .mostly-customized-scrollbar { display: block; width: 10em; overflow: auto; height: 2em; } .invisible-scrollbar::-webkit-scrollbar { display: none; } /* demonstrate a "mostly customized" scrollbar * (won't be visible otherwise if width/height is specified) */ .mostly-customized-scrollbar::-webkit-scrollbar { width: 5px; height: 8px; background-color: #aaa; /* or add it to the track */ } /* add a thumb */ .mostly-customized-scrollbar::-webkit-scrollbar-thumb { background: #000; } <div class="visible-scrollbar"> etiam sagittis sem sed lacus laoreet, eu fermentum eros auctor.
::selection - CSS: Cascading Style Sheets
note: ::selection was in drafts of css selectors level 3, but it was removed in the candidate recommendation phase because its was under-specified (especially with nested elements) and interoperability wasn't achieved (based on discussion in the w3c style mailing list).
:lang() - CSS: Cascading Style Sheets
WebCSS:lang
acceptable values are specified in the html spec.
:nth-child() - CSS: Cascading Style Sheets
/* selects the second <li> element in a list */ li:nth-child(2) { color: lime; } /* selects every fourth element among any group of siblings */ :nth-child(4n) { color: lime; } syntax the nth-child pseudo-class is specified with a single argument that describes a pattern for matching element indices in a list of siblings.
:nth-last-child() - CSS: Cascading Style Sheets
syntax the nth-last-child pseudo-class is specified with a single argument, which represents the pattern for matching elements, counting from the end.
:nth-last-of-type() - CSS: Cascading Style Sheets
syntax the nth-last-of-type pseudo-class is specified with a single argument, which represents the pattern for matching elements, counting from the end.
:nth-of-type() - CSS: Cascading Style Sheets
/* selects every fourth <p> element among any group of siblings */ p:nth-of-type(4n) { color: lime; } syntax the nth-of-type pseudo-class is specified with a single argument, which represents the pattern for matching elements.
:state() - CSS: Cascading Style Sheets
WebCSS:state
the :state css pseudo-class represents any custom element with the specified custom state in elementinternals.states.
additive-symbols - CSS: Cascading Style Sheets
formal definition related at-rule@counter-styleinitial valuen/acomputed valueas specified formal syntax [ <integer> && <symbol> ]#where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
suffix - CSS: Cascading Style Sheets
" (full stop followed by a space)computed valueas specified formal syntax <symbol>where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
font-display - CSS: Cascading Style Sheets
formal definition related at-rule@font-faceinitial valueautocomputed valueas specified formal syntax [ auto | block | swap | fallback | optional ] examples specifying fallback font-display @font-face { font-family: examplefont; src: url(/path/to/fonts/examplefont.woff) format('woff'), url(/path/to/fonts/examplefont.eot) format('eot'); font-weight: 400; font-style: normal; font-display: fallback; } specifications specification status comment ...
font-variation-settings - CSS: Cascading Style Sheets
formal definition related at-rule@font-faceinitial valuenormalcomputed valueas specified formal syntax normal | [ <string> <number> ]# examples setting font weight and stretch in a @font-face rule @font-face { font-family: 'opentypefont'; src: url('open_type_font.woff2') format('woff2'); font-weight: normal; font-style: normal; font-variation-settings: 'wght' 400, 'wdth' 300; } specifications specification status comment css fonts module l...
unicode-range - CSS: Cascading Style Sheets
formal definition related at-rule@font-faceinitial valueu+0-10ffffcomputed valueas specified formal syntax <unicode-range># examples using a different font for a single character in this example we create a simple html containing a single <div> element, including an ampersand, that we want to style with a different font.
@font-face - CSS: Cascading Style Sheets
otherwise, the font resource specified using the url() function is downloaded and used.
-webkit-device-pixel-ratio - CSS: Cascading Style Sheets
syntax the -webkit-device-pixel-ratio feature is specified as a <number> value.
-webkit-transition - CSS: Cascading Style Sheets
note: you should not use this media feature; it was never specified, has never been widely implemented, and has been removed from all browsers.
any-hover - CSS: Cascading Style Sheets
WebCSS@mediaany-hover
syntax the any-hover feature is specified as a keyword value chosen from the list below.
any-pointer - CSS: Cascading Style Sheets
syntax the any-pointer feature is specified as a keyword value chosen from the list below.
aspect-ratio - CSS: Cascading Style Sheets
syntax the aspect-ratio feature is specified as a <ratio> value representing the width-to-height aspect ratio of the viewport.
color-index - CSS: Cascading Style Sheets
syntax the color-index feature is specified as an <integer> value representing the number of entries in the output device's color lookup table.
color - CSS: Cascading Style Sheets
WebCSS@mediacolor
syntax the color feature is specified as an <integer> value that represents the number of bits per color component (red, green, blue) of the output device.
device-aspect-ratio - CSS: Cascading Style Sheets
syntax the device-aspect-ratio feature is specified as a <ratio>.
device-height - CSS: Cascading Style Sheets
syntax the device-height feature is specified as a <length> value.
device-width - CSS: Cascading Style Sheets
syntax the device-width feature is specified as a <length> value.
display-mode - CSS: Cascading Style Sheets
syntax the display-mode feature is specified as a keyword value chosen from the list below.
grid - CSS: Cascading Style Sheets
WebCSS@mediagrid
syntax the grid feature is specified as a <mq-boolean> value (0 or 1) representing whether or not the ouput device is grid-based.
height - CSS: Cascading Style Sheets
WebCSS@mediaheight
syntax the height feature is specified as a <length> value representing the viewport height.
hover - CSS: Cascading Style Sheets
WebCSS@mediahover
syntax the hover feature is specified as a keyword value chosen from the list below.
inverted-colors - CSS: Cascading Style Sheets
syntax the inverted-colors feature is specified as a keyword value chosen from the list below.
monochrome - CSS: Cascading Style Sheets
WebCSS@mediamonochrome
syntax the monochrome feature is specified as an <integer> representing the number of bits per pixel in the monochrome frame buffer.
orientation - CSS: Cascading Style Sheets
syntax the orientation feature is specified as a keyword value chosen from the list below.
overflow-block - CSS: Cascading Style Sheets
syntax the overflow-block feature is specified as a keyword value chosen from the list below.
overflow-inline - CSS: Cascading Style Sheets
syntax the overflow-inline feature is specified as a keyword value chosen from the list below.
pointer - CSS: Cascading Style Sheets
WebCSS@mediapointer
syntax the pointer feature is specified as a keyword value chosen from the list below.
resolution - CSS: Cascading Style Sheets
WebCSS@mediaresolution
syntax the resolution feature is specified as a <resolution> value representing the pixel density of the output device.
scan - CSS: Cascading Style Sheets
WebCSS@mediascan
syntax the scan feature is specified as a single keyword value chosen from the list below.
scripting - CSS: Cascading Style Sheets
WebCSS@mediascripting
syntax the scripting feature is specified as a keyword value chosen from the list below.
shape - CSS: Cascading Style Sheets
WebCSS@mediashape
syntax the shape descrete feature is specified as one of two acceptable strings, either rect reprsenting a rectangular screen or round representing a circular, oval or elliptical screen.
update - CSS: Cascading Style Sheets
syntax the update feature is specified as a single keyword value chosen from the list below.
width - CSS: Cascading Style Sheets
WebCSS@mediawidth
syntax the width feature is specified as a <length> value representing the viewport width.
@media - CSS: Cascading Style Sheets
WebCSS@media
display-mode the display mode of the application, as specified in the web app manifest's display member defined in the web app manifest spec.
bleed - CSS: Cascading Style Sheets
WebCSS@pagebleed
formal definition related at-rule@pageinitial valueautocomputed valueas specified formal syntax auto | <length> examples setting a page bleed of 1cm @page { bleed: 1cm; } specifications specification status comment css paged media module level 3the definition of 'bleed' in that specification.
marks - CSS: Cascading Style Sheets
WebCSS@pagemarks
formal definition related at-rule@pageinitial valuenonecomputed valueas specified formal syntax none | [ crop | cross ] examples adding crop and cross marks @page { marks: crop cross; } specifications specification status comment css paged media module level 3the definition of 'marks' in that specification.
size - CSS: Cascading Style Sheets
WebCSS@pagesize
formal definition related at-rule@pageinitial valueautocomputed valueas specified, but with relative lengths converted into absolute lengths formal syntax <length>{1,2} | auto | [ <page-size> | [ portrait | landscape ] ] examples specifying size and orientation @page { size: 4in 6in landscape; } nesting inside a @media rule @media print { @page { size: 50mm 150mm; } } specifications specification status comment css paged media m...
max-height - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the height of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport max height in pixels @viewport { max-height: 600px; } specifications specification status comment ...
max-width - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the width of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport max width in pixels @viewport { max-width: 600px; } specifications specification status comment ...
max-zoom - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesthe zoom factor itselfcomputed valueauto, or a non-negative number or percentage as specified formal syntax auto | <number> | <percentage> examples setting max-zoom @viewport { max-zoom: 1.5; } specifications specification status comment css device adaptationthe definition of '"max-zoom" descriptor' in that specification.
min-height - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the height of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport min height in pixels @viewport { min-height: 200px; } specifications specification status comment ...
min-width - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the width of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport min width in pixels @viewport { min-width: 200px; } specifications specification status comment ...
min-zoom - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesthe zoom factor itselfcomputed valueauto, or a non-negative number or percentage as specified formal syntax auto | <number> | <percentage> examples setting min zoom factor @viewport { min-zoom: 2.0; } specifications specification status comment css device adaptationthe definition of '"min-zoom" descriptor' in that specification.
orientation - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the size of bounding boxcomputed valueas specified formal syntax auto | portrait | landscape examples setting viewport orientation @viewport { orientation: landscape; } specifications specification status comment css device adaptationthe definition of '"orientation" descriptor' in that specification.
user-zoom - CSS: Cascading Style Sheets
mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.4 | understanding wcag 2.0 formal definition related at-rule@viewportinitial valuezoompercentagesrefer to the size of bounding boxcomputed valueas specified formal syntax zoom | fixed examples disabling user zoom @viewport { user-zoom: fixed; } specifications specification status comment css device adaptationthe definition of '"user-zoom" descriptor' in that specification.
viewport-fit - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautocomputed valueas specified formal syntax auto | contain | cover examples scaling viewport to fit device display @viewport { viewport-fit: cover; } specifications specification status comment css round display level 1the definition of '"viewport-fit" descriptor' in that specification.
width - CSS: Cascading Style Sheets
WebCSS@viewportwidth
formal definition related at-rule@viewportinitial valueas each of the properties of the shorthand:min-width: automax-width: nonepercentagesas each of the properties of the shorthand:min-width: refer to the width of the containing blockmax-width: refer to the width of the containing blockcomputed valueas each of the properties of the shorthand:min-width: the percentage as specified or the absolute lengthmax-width: the percentage as specified or the absolute length or none formal syntax <viewport-length>{1,2}where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting minimum and maximum width @viewport { width: 500px; } specifications specification status comment css device adap...
zoom - CSS: Cascading Style Sheets
WebCSS@viewportzoom
formal definition related at-rule@viewportinitial valueautopercentagesthe zoom factor itselfcomputed valueauto, or a non-negative number or percentage as specified formal syntax auto | <number> | <percentage> examples setting viewport zoom factor @viewport { zoom: 2.0; } specifications specification status comment css device adaptationthe definition of '"zoom" descriptor' in that specification.
@viewport - CSS: Cascading Style Sheets
WebCSS@viewport
lengths specified as percentages are calculated relative to the initial viewport, which is the viewport before any user agent or authored styles have had an opportunity to adjust the viewport.
At-rules - CSS: Cascading Style Sheets
WebCSSAt-rule
(deferred to level 4 of css spec) since each conditional group may also contain nested statements, there may be an unspecified amount of nesting.
Detecting CSS animation support - CSS: Cascading Style Sheets
then we check if the css animation-name property on the style collection for the element specified by the variable elem is set.
Using multiple backgrounds - CSS: Cascading Style Sheets
that is, the following background properties can be specified as a list, one per background: background, background-attachment, background-clip, background-image, background-origin, background-position, background-repeat, background-size.
Box alignment for block, absolutely positioned and table layout - CSS: Cascading Style Sheets
aligning in these layout methods today as we do not currently have browser support for box alignment in block layout, your options for alignment are either to use one of the existing alignment methods or, to make even a single item inside a container a flex item in order to use the alignment properties as specified in flexbox.
Basic concepts of flexbox - CSS: Cascading Style Sheets
the first value specified is flex-direction and the second value is flex-wrap.
Flow Layout and Overflow - CSS: Cascading Style Sheets
in the below example, i have only specified overflow-y: scroll so we do not get the unwanted horizontal scrollbar.
Variable fonts guide - CSS: Cascading Style Sheets
the basic syntax is the same, but the font technology can be specified, and allowable ranges for descriptors like font-weight and font-stretch can be supplied, rather than named according to the font file being loaded.
Basic Concepts of grid layout - CSS: Cascading Style Sheets
this sets the grid to the specified pixel which fits to the layout you desire.
Grid template areas - CSS: Cascading Style Sheets
this time, instead of placing my items using line numbers specified on the items themselves, i create the whole layout on the grid container.
Stacking without the z-index property - CSS: Cascading Style Sheets
when the z-index property is not specified on any element, elements are stacked in the following order (from bottom to top): the background and borders of the root element descendant non-positioned blocks, in order of appearance in the html descendant positioned elements, in order of appearance in the html keep in mind, when the order property alters rendering from the "order of appearance in the html" within flex containers, it similarly affects the order for stacking context.
Basic Shapes - CSS: Cascading Style Sheets
both circle() and ellipse() values for shape-outside are specified as accepting this argument of <shape-radius>.
Overview of CSS Shapes - CSS: Cascading Style Sheets
it takes a variety of values, all of which define different shapes, specified in the <basic-shape> datatype.
Using CSS transitions - CSS: Cascading Style Sheets
most timing functions can be specified by providing the graph of the corresponding function, as defined by four points defining a cubic bezier.
Questions about CSS - CSS: Cascading Style Sheets
WebCSSFAQ
an imported style sheet, using the css @import notation to automatically import and merge an external style sheet with the current style sheet style attributes specified by the viewer to the browser the default style sheet assumed by the browser in general, the web page creator's style sheet takes precedence, but it's recommended that browsers provide ways for the viewer to override the style attributes in some respects.
Center an element - CSS: Cascading Style Sheets
in the future we may be able to center elements without needing to turn the parent into a flex container, as the box alignment properties used here are specified to apply to block layout too.
Using Media Queries for Accessibility - CSS: Cascading Style Sheets
syntax the -ms-high-contrast media feature is specified as one of the following values.
Visual formatting model - CSS: Cascading Style Sheets
then, for each element, css generates zero or more boxes as specified by that element’s display property value.
Actual value - CSS: Cascading Style Sheets
calculating a property's actual value the user agent performs four steps to calculate a property's actual (final) value: first, the specified value is determined based on the result of cascading, inheritance, or using the initial value.
align-items - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | stretch | <baseline-position> | [ <overflow-position>?
align-self - CSS: Cascading Style Sheets
otherwise the specified value.animation typediscrete formal syntax auto | normal | stretch | <baseline-position> | <overflow-position>?
<angle-percentage> - CSS: Cascading Style Sheets
use in calc() where an <angle-percentage> is specified as an allowable type, this means that the percentage resolves to an angle and therefore can be used in a calc() expression.
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | auto | button | textfield | menulist-button | <compat-auto>where <compat-auto> = searchfield | textarea | push-button | slider-horizontal | checkbox | radio | square-button | menulist | listbox | meter | progress-bar examples the following would make an element look like a menulist button: .exampleone { appearance: menulist-button; } see also th...
backdrop-filter - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typea filter function list formal syntax none | <filter-function-list>where <filter-function-list> = [ <filter-function> | <url> ]+where <filter-function> = <blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>where <blur()> = blur( <length> )<brightness()> = brightness( <number-percentage> )<co...
background-blend-mode - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <blend-mode>#where <blend-mode> = normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity examples <div id="div"></div> <select id="select"> <option>normal</option> <option>multiply</option> <option selected>screen</option> <...
background-position-x - CSS: Cascading Style Sheets
ues */ background-position-x: 0px; background-position-x: 1cm; background-position-x: 8em; /* side-relative values */ background-position-x: right 3px; background-position-x: left 25%; /* multiple values */ background-position-x: 0px, center; /* global values */ background-position-x: inherit; background-position-x: initial; background-position-x: unset; the background-position-x property is specified as one or more values, separated by commas.
background-position-y - CSS: Cascading Style Sheets
*/ background-position-y: 0px; background-position-y: 1cm; background-position-y: 8em; /* side-relative values */ background-position-y: bottom 3px; background-position-y: bottom 10%; /* multiple values */ background-position-y: 0px, center; /* global values */ background-position-y: inherit; background-position-y: initial; background-position-y: unset; the background-position-y property is specified as one or more values, separated by commas.
<basic-shape> - CSS: Cascading Style Sheets
description computed values of basic shapes the values in a <basic-shape> function are computed as specified, with these exceptions: omitted values are included and compute to their defaults.
border-block-end-style - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples dashed border with vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-block-end-style: dashed; } results specifications specification ...
border-block-start-style - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples dashed border wtih vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-block-start-style: dashed; } results specifications specificatio...
border-block-style - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples dashed border with vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-block-style: dashed; } results specifications specification s...
border-bottom-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-bottom-color: red; border-bottom-color: #ffbb00; border-bottom-color: rgb(255, 0, 0); border-bottom-color: hsla(100%, 50%, 25%, 0.75); border-bottom-color: currentcolor; border-bottom-color: transparent; /* global values */ border-bottom-color: inherit; border-bottom-color: initial; border-bottom-color: unset; the border-bottom-color property is specified as a single value.
border-inline-end-style - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-inline-end-style: dashed; } results specifications specification status comment ...
border-inline-style - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples html content <div> <p class="exampletext">example text</p> </div> css content div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-inline-style: dashed; } specifications specification status comment ...
border-left-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-left-color: red; border-left-color: #ffbb00; border-left-color: rgb(255, 0, 0); border-left-color: hsla(100%, 50%, 25%, 0.75); border-left-color: currentcolor; border-left-color: transparent; /* global values */ border-left-color: inherit; border-left-color: initial; border-left-color: unset; the border-left-color property is specified as a single value.
border-radius - CSS: Cascading Style Sheets
10px 5% / 20px 30px; /* (first radius values) / top-left | top-right-and-bottom-left | bottom-right */ border-radius: 10px 5px 2em / 20px 25px 30%; /* (first radius values) / top-left | top-right | bottom-right | bottom-left */ border-radius: 10px 5% / 20px 25em 30px 35em; /* global values */ border-radius: inherit; border-radius: initial; border-radius: unset; the border-radius property is specified as: one, two, three, or four <length> or <percentage> values.
border-right-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-right-color: red; border-right-color: #ffbb00; border-right-color: rgb(255, 0, 0); border-right-color: hsla(100%, 50%, 25%, 0.75); border-right-color: currentcolor; border-right-color: transparent; /* global values */ border-right-color: inherit; border-right-color: initial; border-right-color: unset; the border-right-color property is specified as a single value.
border-top-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-top-color: red; border-top-color: #ffbb00; border-top-color: rgb(255, 0, 0); border-top-color: hsla(100%, 50%, 25%, 0.75); border-top-color: currentcolor; border-top-color: transparent; /* global values */ border-top-color: inherit; border-top-color: initial; border-top-color: unset; the border-top-color property is specified as a single value.
calc() - CSS: Cascading Style Sheets
WebCSScalc
math expressions involving percentages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables may be treated as if auto had been specified.
caret-color - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritedyescomputed valueauto is computed as specified and <color> values are computed as defined for the color property.animation typea color formal syntax auto | <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
clamp() - CSS: Cascading Style Sheets
WebCSSclamp
notes math expressions involving percentages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables may be treated as if auto had been specified.
clear - CSS: Cascading Style Sheets
WebCSSclear
formal definition initial valuenoneapplies toblock-level elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | left | right | both | inline-start | inline-end examples clear: left html <div class="wrapper"> <p class="black">lorem ipsum dolor sit amet, consectetuer adipiscing elit.
clip - CSS: Cascading Style Sheets
WebCSSclip
formal definition initial valueautoapplies toabsolutely positioned elementsinheritednocomputed valueauto if specified as auto, otherwise a rectangle with four values, each of which is auto if specified as auto or the computed length otherwiseanimation typea rectangle formal syntax <shape> | autowhere <shape> = rect(<top>, <right>, <bottom>, <left>) examples clipping an image css .dotted-border { border: dotted; position: relative; width: 536px; height: 350px; } #top-left, #middle, #bottom-right { ...
color - CSS: Cascading Style Sheets
WebCSScolor
; color: rgba(34 12 64 / 0.3); color: rgb(34.0 12 64 / 60%); color: rgba(34.6 12 64 / 30%); /* <hsl()> values */ color: hsl(30, 100%, 50%, 0.6); color: hsla(30, 100%, 50%, 0.6); color: hsl(30 100% 50% / 0.6); color: hsla(30 100% 50% / 0.6); color: hsl(30.0 100% 50% / 60%); color: hsla(30.2 100% 50% / 60%); /* global values */ color: inherit; color: initial; color: unset; the color property is specified as a single <color> value.
column-rule-color - CSS: Cascading Style Sheets
syntax /* <color> values */ column-rule-color: red; column-rule-color: rgb(192, 56, 78); column-rule-color: transparent; column-rule-color: hsla(0, 100%, 50%, 0.6); /* global values */ column-rule-color: inherit; column-rule-color: initial; column-rule-color: unset; the column-rule-color property is specified as a single <color> value.
column-rule-width - CSS: Cascading Style Sheets
syntax /* keyword values */ column-rule-width: thin; column-rule-width: medium; column-rule-width: thick; /* <length> values */ column-rule-width: 1px; column-rule-width: 2.5em; /* global values */ column-rule-width: inherit; column-rule-width: initial; column-rule-width: unset; the column-rule-width property is specified as a single <'border-width'> value.
cross-fade() - CSS: Cascading Style Sheets
(black.png) 75%); /* 25% white, 75% black */ cross-fade( url(white.png) 50%, url(black.png) 50%); /* 50% white, 50% black */ cross-fade( url(white.png) 75%, url(black.png) 25%); /* 75% white, 25% black */ cross-fade( url(white.png) 100%, url(black.png) 0%); /* fully white */ cross-fade( url(green.png) 75%, url(red.png) 75%); /* both green and red at 75% */ if any percentages are omitted, all the specified percentages are summed together and subtracted from 100%.
direction - CSS: Cascading Style Sheets
WebCSSdirection
formal definition initial valueltrapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax ltr | rtl examples setting right-to-left direction blockquote { direction: rtl; } specifications specification status comment css writing modes module level 3the definition of 'direction' in that specification.
<display-box> - CSS: Cascading Style Sheets
however it also has display: contents specified therefore this <div> will not be rendered, the border and width will no longer apply, and the child element will be displayed as if the parent had never existed.
<display-inside> - CSS: Cascading Style Sheets
note: browsers that support the two value syntax, on finding the inner value only, such as when display: flex or display: grid is specified, will set their outer value to block.
<display-outside> - CSS: Cascading Style Sheets
note: browsers that support the two value syntax, on finding the outer value only, such as when display: block or display: inline is specified, will set the inner value to flow.
element() - CSS: Cascading Style Sheets
WebCSSelement
syntax element(id) where: id the id of an element to use as the background, specified using the html attribute #id on the element.
blur() - CSS: Cascading Style Sheets
syntax blur(radius) parameters radius the radius of the blur, specified as a <length>.
brightness() - CSS: Cascading Style Sheets
syntax brightness(amount) parameters amount the brightness of the result, specified as a <number> or a <percentage>.
contrast() - CSS: Cascading Style Sheets
syntax contrast(amount) parameters amount the contrast of the result, specified as a <number> or a <percentage>.
grayscale() - CSS: Cascading Style Sheets
syntax grayscale(amount) parameters amount the amount of the conversion, specified as a <number> or a <percentage>.
hue-rotate() - CSS: Cascading Style Sheets
syntax hue-rotate(angle) parameters angle the relative change in hue of the input sample, specified as an <angle>.
invert() - CSS: Cascading Style Sheets
syntax invert(amount) parameters amount the amount of the conversion, specified as a <number> or a <percentage>.
opacity() - CSS: Cascading Style Sheets
syntax opacity(amount) parameters amount the amount of the conversion, specified as a <number> or a <percentage>.
saturate() - CSS: Cascading Style Sheets
syntax saturate(amount) parameters amount the amount of the conversion, specified as a <number> or a <percentage>.
sepia() - CSS: Cascading Style Sheets
syntax sepia(amount) parameters amount the amount of the conversion, specified as a <number> or a <percentage>.
<filter-function> - CSS: Cascading Style Sheets
syntax the <filter-function> data type is specified using one of the filter functions listed below.
flex-direction - CSS: Cascading Style Sheets
flexbox & the keyboard navigation disconnect — tink source order matters | adrian roselli mdn understanding wcag, guideline 1.3 explanations understanding success criterion 1.3.2 | w3c understanding wcag 2.0 formal definition initial valuerowapplies toflex containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax row | row-reverse | column | column-reverse examples reversing flex container columns and rows html <h4>this is a column-reverse</h4> <div id="content"> <div class="box" style="background-color:red;">a</div> <div class="box" style="background-color:lightblue;">b</div> <div class="box" style="background-color:yellow;">c</div> </div> <h4>this is a row...
flex-flow - CSS: Cascading Style Sheets
WebCSSflex-flow
formal definition initial valueas each of the properties of the shorthand:flex-direction: rowflex-wrap: nowrapapplies toflex containersinheritednocomputed valueas each of the properties of the shorthand:flex-direction: as specifiedflex-wrap: as specifiedanimation typediscrete formal syntax <'flex-direction'> | <'flex-wrap'> examples setting column-reverse and wrap element { /* main-axis is the block direction with reversed main-start and main-end.
<flex> - CSS: Cascading Style Sheets
syntax the <flex> data type is specified as a <number> followed by the unit fr.
font-feature-settings - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | <feature-tag-value>#where <feature-tag-value> = <string> [ <integer> | on | off ]?
font-optical-sizing - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | none examples disabling optical sizing <p class="optical-sizing">this paragraph is optically sized.
font-smooth - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | never | always | <absolute-size> | <length>where <absolute-size> = xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large examples basic usage example the following example shows the safari/chromium and firefox equivalents that turn on font-smoothing on macos.
font-synthesis - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | [ weight | style ] examples disabling font synthesis html <em class="syn">synthesize me!
font-variant-alternates - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | [ stylistic( <feature-value-name> ) | historical-forms | styleset( <feature-value-name># ) | character-variant( <feature-value-name># ) | swash( <feature-value-name> ) | ornaments( <feature-value-name> ) | annotation( <feature-value-name> ) ]where <feature-value-name> = <custom-ident> examples html <p>firefox rocks!</p> <p class="variant">firefox ...
font-variant-east-asian - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]where <east-asian-variant-values> = [ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]<east-asian-width-values> = [ full-width | proportional-width ] examples setting east asian glyph variants this example require font "yu gothic" installed in your os, other fonts may no...
font-variant-numeric - CSS: Cascading Style Sheets
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 ...
font-variant - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | none | [ <common-lig-values> | <discretionary-lig-values> | <historical-lig-values> | <contextual-alt-values> | stylistic( <feature-value-name> ) | historical-forms | styleset( <feature-value-name># ) | character-variant( <feature-value-name># ) | swash( <feature-value-name> ) | ornaments( <feature-value-name> ) | annotation( <feature-value-name> ) |...
font-variation-settings - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typea transform formal syntax normal | [ <string> <number> ]# examples you can find a number of other variable fonts examples at our variable fonts guide, v-fonts.com, and axis-praxis.org.
<frequency-percentage> - CSS: Cascading Style Sheets
description use in calc() where a <frequency-percentage> is specified as an allowable type, this means that the percentage resolves to a frequency and therefore can be used in a calc() expression.
<frequency> - CSS: Cascading Style Sheets
WebCSSfrequency
though the units are case-insensitive, it is good practice to use a capital "h" for hz and khz, as specified in the si.
grid-auto-flow - CSS: Cascading Style Sheets
formal definition initial valuerowapplies togrid containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ row | column ] | dense examples setting grid auto-placement html <div id="grid"> <div id="item1"></div> <div id="item2"></div> <div id="item3"></div> <div id="item4"></div> <div id="item5"></div> </div> <select id="direction" onchange="changegridautoflow()"> <option value="column">column</option> <option value="row">row</option> </select> ...
grid-template-areas - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies togrid containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | <string>+ examples specifying named grid areas html <section id="page"> <header>header</header> <nav>navigation</nav> <main>main area</main> <footer>footer</footer> </section> css #page { display: grid; width: 100%; height: 250px; grid-template-areas: "head head" "nav main" "nav foot...
inherit - CSS: Cascading Style Sheets
WebCSSinherit
the inherit css keyword causes the element for which it is specified to take the computed value of the property from its parent element.
initial-letter-align - CSS: Cascading Style Sheets
formal definition initial valueautoapplies to::first-letter pseudo-elements and inline-level first child of a block containerinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ auto | alphabetic | hanging | ideographic ] examples aligning initial letter html <p class="auto ">initial letter - auto</p> <p class="alphabetic">initial letter - alphabetic</p> <p class="hanging">initial letter - hanging</p> <p class="ideographic">initial letter - ideographic</p> css .auto { -webkit-initial-letter-align: auto; initial-letter-al...
initial-letter - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies to::first-letter pseudo-elements and inline-level first child of a block containerinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | [ <number> <integer>?
justify-content - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies toflex containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | <content-distribution> | <overflow-position>?
justify-items - CSS: Cascading Style Sheets
formal definition initial valuelegacyapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | stretch | <baseline-position> | <overflow-position>?
justify-self - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toblock-level boxes, absolutely-positioned boxes, and grid itemsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | normal | stretch | <baseline-position> | <overflow-position>?
<length-percentage> - CSS: Cascading Style Sheets
es.</p> css p { /* length-percentage examples */ width: 75%; height: 200px; margin: 3rem; padding: 1%; border-radius: 10px 10%; font-size: 250%; line-height: 1.5em; /* length examples */ text-shadow: 1px 1px 1px red; border: 5px solid red; letter-spacing: 3px; /* percentage example */ text-size-adjust: 20%; } result use in calc() where a <length-percentage> is specified as an allowable type, this means that the percentage resolves to a length and therefore can be used in a calc() expression.
line-break - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | loose | normal | strict | anywhere examples setting text wrapping see whether the text is wrapped before "々", "ぁ" and "。".
margin-block-end - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting block end margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; margin-bl...
margin-block-start - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting block start margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin-...
margin-block - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typediscrete formal syntax <'margin-left'>{1,2} examples setting block start and end margins html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical...
margin-inline-end - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting inline end margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin-i...
margin-inline-start - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting inline start margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin...
margin-trim - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specifiedanimation typediscrete formal syntax none | in-flow | all examples basic usage once support is implemented for this property, it will probably work like so: when you've got a container with some inline children and you want to put a margin between each child but not have it interfere with the spacing at the end of the row, you might do something like this: article { background-color: red;...
mask-border-mode - CSS: Cascading Style Sheets
formal definition initial valuealphaapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax luminance | alpha examples basic usage this property doesn't yet seem to have support anywhere.
mask-border-source - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax none | <image>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
mask-composite - CSS: Cascading Style Sheets
formal definition initial valueaddapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <compositing-operator>#where <compositing-operator> = add | subtract | intersect | exclude examples compositing mask layers with addition css #masked { width: 100px; height: 100px; background-color: #8cffa0; mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg), url(https://mdn.mozillademos.org/files/12676/star.svg); ma...
mask-image - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax <mask-reference>#where <mask-reference> = none | <image> | <mask-source>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient><mask-source> = <url>where <image()> = image( <image-tags>?
mask-repeat - CSS: Cascading Style Sheets
", function (evt) { document.getelementbyid("masked").style.maskrepeat = evt.target.value; }); result multiple mask image support you can specify a different <repeat-style> for each mask image, separated by commas: .examplethree { mask-image: url('mask1.png'), url('mask2.png'); mask-repeat: repeat-x, repeat-y; } each image is matched with the corresponding repeat style, from first specified to last.
max() - CSS: Cascading Style Sheets
WebCSSmax
notes math expressions involving percentages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables may be treated as if auto had been specified.
min() - CSS: Cascading Style Sheets
WebCSSmin
notes math expressions involving percentages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables may be treated as if auto had been specified.
minmax() - CSS: Cascading Style Sheets
WebCSSminmax
as a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track.
mix-blend-mode - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies toall elementsinheritednocomputed valueas specifiedanimation typediscretecreates stacking contextyes formal syntax <blend-mode>where <blend-mode> = normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity examples effect of different mix-blend-mode values <div class="grid"> <div class="col"> <div class="note">blending in...
object-position - CSS: Cascading Style Sheets
formal definition initial value50% 50%applies toreplaced elementsinheritedyespercentagesrefer to width and height of element itselfcomputed valueas specifiedanimation typerepeatable list of simple list of length, percentage, or calc formal syntax <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
offset - CSS: Cascading Style Sheets
WebCSSoffset
or: autooffset-rotate: autoapplies totransformable elementsinheritednopercentagesas each of the properties of the shorthand:offset-position: refertosizeofcontainingblockoffset-distance: refer to the total path lengthoffset-anchor: relativetowidthandheightcomputed valueas each of the properties of the shorthand:offset-position: for <length> the absolute value, otherwise a percentageoffset-path: as specifiedoffset-distance: for <length> the absolute value, otherwise a percentageoffset-anchor: for <length> the absolute value, otherwise a percentageoffset-rotate: as specifiedanimation typeas each of the properties of the shorthand:offset-position: a positionoffset-path: as <angle>, <basic-shape> or <path()>offset-distance: a length, percentage or calc();offset-anchor: a positionoffset-rotate: as <angle...
opacity - CSS: Cascading Style Sheets
WebCSSopacity
webaim: color contrast checker mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial value1.0applies toall elementsinheritednocomputed valuethe specified value, clipped in the range [0,1]animation typea number formal syntax <alpha-value>where <alpha-value> = <number> | <percentage> examples setting background opacity html <div class="light">you can barely see this.</div> <div class="medium">this is easier to see.</div> <div class="heavy">this is very easy to see.</div> css div { background-color: yellow; } .light { opacity: 0.2; /* barel...
orphans - CSS: Cascading Style Sheets
WebCSSorphans
formal definition initial value2applies toblock container elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax <integer> examples setting a minimum orphan size of three lines html <div> <p>this is the first paragraph containing some text.</p> <p>this is the second paragraph containing some more text than the first one.
outline-offset - CSS: Cascading Style Sheets
formal definition initial value0applies toall elementsinheritednocomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea length formal syntax <length> examples setting outline offset in pixels html <p>gallia est omnis divisa in partes tres.</p> css p { outline: 1px dashed red; outline-offset: 10px; background: yellow; border: 1px solid blue; margin: 15px; } result specifications specification status comm...
overflow-anchor - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | none examples prevent scroll anchoring to prevent scroll anchoring in a document, use the overflow-anchor property.
page-break-after - CSS: Cascading Style Sheets
user agents may also apply it to other elements like table-row elements.inheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | always | avoid | left | right | recto | verso examples setting a page break after footnotes /* move to a new page after footnotes */ div.footnotes { page-break-after: always; } specifications specification status comment css logical properties and values level 1the definition of 'recto and verso' in that specificatio...
page-break-before - CSS: Cascading Style Sheets
user agents may also apply it to other elements like table-row elements.inheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | always | avoid | left | right | recto | verso examples avoid a page break before the dic /* avoid page break before the div */ div.note { page-break-before: avoid; } specifications specification status comment css logical properties and values level 1the definition of 'recto and verso' in that specification.
page-break-inside - CSS: Cascading Style Sheets
user agents may also apply it to other elements like table-row elements.inheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | avoid examples avoiding page breaks inside elements html <div class="page"> <p>this is the first paragraph.</p> <section class="list"> <span>a list</span> <ol> <li>one</li> <!-- <li>two</li> --> </ol> </section> <ul> <li>one</li> <!-- <li>two</li> --> </ul> <p>this is the second paragraph.</p> <p>this i...
place-content - CSS: Cascading Style Sheets
ms is less than the size of the alignment container, any auto-sized items have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container formal definition initial valuenormalapplies tomulti-line flex containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'align-content'> <'justify-content'>?
place-items - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:align-items: normaljustify-items: legacyapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:align-items: as specifiedjustify-items: as specifiedanimation typediscrete formal syntax <'align-items'> <'justify-items'>?
place-self - CSS: Cascading Style Sheets
otherwise the specified value.justify-self: as specifiedanimation typediscrete formal syntax <'align-self'> <'justify-self'>?
quotes - CSS: Cascading Style Sheets
WebCSSquotes
formal definition initial valuedepends on user agentapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | auto | [ <string> <string> ]+ examples basic quote marks html <q>to be or not to be.
rotate - CSS: Cascading Style Sheets
WebCSSrotate
formal definition initial valuenoneapplies totransformable elementsinheritednocomputed valueas specifiedanimation typea transformcreates stacking contextyes formal syntax none | <angle> | [ x | y | z | <number>{3} ] && <angle> examples rotate an element on hover html <div> <p class="rotate">rotation</p> </div> css * { box-sizing: border-box; } html { font-family: sans-serif; } div { width: 150px; margin: 0 auto; } p { padding: 10px 5px; border: 3px solid black; border-rad...
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 { dis...
ruby-align - CSS: Cascading Style Sheets
formal definition initial valuespace-aroundapplies toruby bases, ruby annotations, ruby base containers, ruby annotation containersinheritedyescomputed valueas specifiedanimation typediscrete formal syntax start | center | space-between | space-around examples ruby aligned at the start of the base text html <ruby> <rb>this is a long text to check</rb> <rp>(</rp><rt>short ruby</rt><rp>)</rp> </ruby> css ruby { ruby-align: start; } result ruby aligned at the center of the base text html <ruby> <rb>this is a long text to check</rb> <rp>�...
ruby-position - CSS: Cascading Style Sheets
formal definition initial valueoverapplies toruby annotations containersinheritedyescomputed valueas specifiedanimation typediscrete formal syntax over | under | inter-character examples ruby positioned over the text html <ruby> <rb>超電磁砲</rb> <rp>(</rp><rt>レールガン</rt><rp>)</rp> </ruby> css ruby { ruby-position:over; } result ruby positioned under the text html <ruby> <rb>超電磁砲</rb> <rp>(</rp><rt>レールガン</rt><rp>)</rp> </ruby> css ruby { ...
scroll-padding-block-end - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-block-end' in that specification.
scroll-padding-block-start - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-block-start' in that specification.
scroll-padding-block - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax [ auto | <length-percentage> ]{1,2}where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-block' in that specification.
scroll-padding-bottom - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-bottom' in that specification.
scroll-padding-inline-end - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-inline-end' in that specification.
scroll-padding-inline-start - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-inline-start' in that specification.
scroll-padding-inline - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax [ auto | <length-percentage> ]{1,2}where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-inline' in that specification.
scroll-padding-left - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-left' in that specification.
scroll-padding-right - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-right' in that specification.
scroll-padding-top - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-top' in that specification.
scroll-padding - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax [ auto | <length-percentage> ]{1,4}where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding' in that specification.
scroll-snap-coordinate - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednopercentagesrefer to the element’s border boxcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea position formal syntax none | <position>#where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
scroll-snap-destination - CSS: Cascading Style Sheets
formal definition initial value0px 0pxapplies toscroll containersinheritednopercentagesrelative to same axis of the padding-box of the scroll containercomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea position formal syntax <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
scroll-snap-points-x - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toscroll containersinheritednopercentagesrelative to same axis of the padding-box of the scroll containercomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typediscrete formal syntax none | repeat( <length-percentage> )where <length-percentage> = <length> | <percentage> examples setting horizontal scroll snap points html <div id="container"> <div>1</div> <div>2</div> <div>3</div> </div> css #container { width: 200px; overflow: auto; white-space: nowrap; scroll-...
scroll-snap-points-y - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toscroll containersinheritednopercentagesrelative to same axis of the padding-box of the scroll containercomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typediscrete formal syntax none | repeat( <length-percentage> )where <length-percentage> = <length> | <percentage> examples setting vertical scroll snap points html <div id="container"> <div>1</div> <div>2</div> <div>3</div> </div> css #container { height: 200px; width: 220px; overflow-x: hidden; overflow-y:...
scroll-snap-stop - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | always examples snapping in different axes this example is duplicated from scroll-snap-type with minor variances.
scroll-snap-type-x - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toscroll containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | mandatory | proximity specifications not part of any standard.
scroll-snap-type-y - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toscroll containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | mandatory | proximity specifications not part of any standard.
scroll-snap-type - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | [ x | y | block | inline | both ] [ mandatory | proximity ]?
shape-image-threshold - CSS: Cascading Style Sheets
formal definition initial value0.0applies tofloatsinheritednocomputed valuethe same as the specified value after clipping the <number> to the range [0.0, 1.0].animation typea number formal syntax <alpha-value>where <alpha-value> = <number> | <percentage> examples aligning text to a gradient this example creates a <div> block with a gradient background image.
shape-margin - CSS: Cascading Style Sheets
formal definition initial value0applies tofloatsinheritednopercentagesrefer to the width of the containing blockcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea length, percentage or calc(); formal syntax <length-percentage>where <length-percentage> = <length> | <percentage> examples adding a margin to a polygon html <section> <div class="shape"></div> we are not quite sure of any one thing in biology; our knowledge of geology is relatively very slight, and the economic laws ...
<shape> - CSS: Cascading Style Sheets
WebCSSshape
syntax the <shape> data type is specified using the rect() function, which produces a region in the form of a rectangle.
tab-size - CSS: Cascading Style Sheets
WebCSStab-size
formal definition initial value8applies toblock containersinheritedyescomputed valuethe specified integer or an absolute lengthanimation typea length formal syntax <integer> | <length> examples expanding by character count pre { tab-size: 4; /* set tab size to 4 characters wide */ } collapse tabs pre { tab-size: 0; /* remove indentation */ } comparing to the default size this example compares a default tab size with a custom tab size.
text-align-last - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toblock containersinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | start | end | left | right | center | justify examples justifying the last line <p>integer elementum massa at nulla placerat varius.
text-decoration-skip-ink - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | all | none examples html <p>you should go on a quest for a cup of coffee.</p> <p class="no-skip-ink">or maybe you'd prefer some tea?</p> <p>この文は、 text-decoration-skip-ink: auto の使用例を示しています。</p> <p class="skip-ink-all">この文は、 text-decoration-skip-ink: all の使用例を示しています。</p> css p { ...
text-decoration-skip - CSS: Cascading Style Sheets
formal definition initial valueobjectsapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | [ objects | [ spaces | [ leading-spaces | trailing-spaces ] ] | edges | box-decoration ] examples skipping edges html <p>hey, grab a cup of <em>coffee!</em></p> css p { margin: 0; font-size: 3em; text-decoration: underline; text-decoration-skip: edges; } result specifications specification status comment c...
text-decoration-thickness - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the font size of the element itselfcomputed valueas specifiedanimation typeby computed value type formal syntax auto | from-font | <length> | <percentage> examples varying thickness html <p class="thin">here's some text with a 1px red underline.</p> <p class="thick">this one has a 5px red underline.</p> <p class="shorthand">this uses the equivalent shorthand.</p> css .thin { text-decoration-line: underline; text-decoration-style: solid; text-d...
text-emphasis-position - CSS: Cascading Style Sheets
formal definition initial valueover rightapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax [ over | under ] && [ right | left ] examples preferring ruby over emphasis marks some editors prefer to hide emphasis marks when they conflict with ruby.
text-emphasis-style - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | [ [ filled | open ] | [ dot | circle | double-circle | triangle | sesame ] ] | <string> examples h2 { text-emphasis-style: sesame; } specifications specification status comment css text decoration module level 3the definition of 'text-emphasis' in that specification.
text-underline-position - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | from-font | [ under | [ left | right ] ] examples a simple example let's take a couple of simple example paragraphs: <p class="horizontal">lorem ipsum dolor sit amet, consectetur adipiscing elit.
<time-percentage> - CSS: Cascading Style Sheets
examples use in calc() where a <time-percentage> is specified as an allowable type, this means that the percentage resolves to a time and therefore can be used in a calc() expression.
matrix() - CSS: Cascading Style Sheets
syntax the matrix() function is specified with six values.
matrix3d() - CSS: Cascading Style Sheets
syntax the matrix3d() function is specified with 16 values.
perspective() - CSS: Cascading Style Sheets
syntax the perspective distance used by perspective() is specified by a <length> value, which represents the distance between the user and the z=0 plane.
rotate() - CSS: Cascading Style Sheets
syntax the amount of rotation created by rotate() is specified by an <angle>.
rotateX() - CSS: Cascading Style Sheets
syntax the amount of rotation created by rotatex() is specified by an <angle>.
rotateY() - CSS: Cascading Style Sheets
syntax the amount of rotation created by rotatey() is specified by an <angle>.
rotateZ() - CSS: Cascading Style Sheets
syntax the amount of rotation created by rotatez() is specified by an <angle>.
scale3d() - CSS: Cascading Style Sheets
syntax the scale3d() function is specified with three values, which represent the amount of scaling to be applied in each direction.
scaleX() - CSS: Cascading Style Sheets
scalex(-1) defines an axial symmetry, with a vertical axis passing through the origin (as specified by the transform-origin property).
scaleY() - CSS: Cascading Style Sheets
scaley(-1) defines an axial symmetry, with a horizontal axis passing through the origin (as specified by the transform-origin property).
scaleZ() - CSS: Cascading Style Sheets
scalez(-1) defines an axial symmetry, with the z-axis passing through the origin (as specified by the transform-origin property).
skewX() - CSS: Cascading Style Sheets
the abscissa coordinate of each point is modified by a value proportionate to the specified angle and the distance to the origin; thus, the farther from the origin a point is, the greater will be the value added it.
skewY() - CSS: Cascading Style Sheets
the ordinate coordinate of each point is modified by a value proportionate to the specified angle and the distance to the origin; thus, the farther from the origin a point is, the greater will be the value added it.
<transform-function> - CSS: Cascading Style Sheets
syntax the <transform-function> data type is specified using one of the transformation functions listed below.
transform-origin - CSS: Cascading Style Sheets
; /* x-offset-keyword | y-offset | z-offset */ transform-origin: left 5px -3px; /* x-offset-keyword | y-offset-keyword | z-offset */ transform-origin: right bottom 2cm; /* y-offset-keyword | x-offset-keyword | z-offset */ transform-origin: bottom right 2cm; /* global values */ transform-origin: inherit; transform-origin: initial; transform-origin: unset; the transform-origin property may be specified using one, two, or three values, where each value represents an offset.
transform-style - CSS: Cascading Style Sheets
formal definition initial valueflatapplies totransformable elementsinheritednocomputed valueas specifiedanimation typediscretecreates stacking contextyes formal syntax flat | preserve-3d examples transform style demonstration in this example we have a 3d cube created using transforms.
transition-property - CSS: Cascading Style Sheets
formal definition initial valueallapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | <single-transition-property>#where <single-transition-property> = all | <custom-ident> examples there are several examples of css transitions included in the main css transitions article.
unicode-bidi - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies toall elements, though some values have no effect on non-inline elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | embed | isolate | bidi-override | isolate-override | plaintext examples css .bible-quote { direction: rtl; unicode-bidi: embed; } html <div class="bible-quote"> a line of text </div> <div> another line of text </div> result specifications specification status comment css writing modes module level 3the ...
<url> - CSS: Cascading Style Sheets
WebCSSurl
syntax the <url> data type is specified using the url() functional notation.
Used value - CSS: Cascading Style Sheets
the following are the css 2.1 properties that do depend on layout, so they have a different computed value and used value: (taken from css 2.1 changes: specified, computed, and actual values): background-position bottom, left, right, top height, width margin-bottom, margin-left, margin-right, margin-top min-height, min-width padding-bottom, padding-left, padding-right, padding-top text-indent specification specification status comment css level 2 (revision 2)the definition of 'used value' in that specification.
user-modify - CSS: Cascading Style Sheets
syntax the -moz-user-modify property is specified as one of the keyword values from the list below.
user-select - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | text | none | contain | all examples html <p>you should be able to select this text.</p> <p class="unselectable">hey, you can't select this text!</p> <p class="all">clicking once will select all of this text.</p> css .unselectable { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .all { -m...
widows - CSS: Cascading Style Sheets
WebCSSwidows
formal definition initial value2applies toblock container elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax <integer> examples controlling column widows html <div> <p>this is the first paragraph containing some text.</p> <p>this is the second paragraph containing some more text than the first one.
will-change - CSS: Cascading Style Sheets
.slide { will-change: transform; } formal definition initial valueautoapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | <animateable-feature>#where <animateable-feature> = scroll-position | contents | <custom-ident> examples via script this is an example showing how to apply the will-change property through scripting, which is probably what you should be doing in most cases.
zoom - CSS: Cascading Style Sheets
WebCSSzoom
formal definition initial valuenormalapplies toall elementsinheritednocomputed valueas specifiedanimation typean integer formal syntax normal | reset | <number> | <percentage> examples first example html <p class="small">small</p> <p class="normal">normal</p> <p class="big">big</p> css p.small { zoom: 75%; } p.normal { zoom: normal; } p.big { zoom: 2.5; } p { display: inline-block; } p:hover { zoom: reset; } result second example html <div id="a" class="circle"></div...
exsl:node-set() - EXSLT
WebEXSLTexslnode-set
returns the node-set corresponding to the specified object.
exsl:object-type() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes exsl:object-type() returns a string that indicates the type of the specified object.
Common (exsl) - EXSLT
WebEXSLTexsl
this lets you process the xml created within a variable to process it in multiple steps.exsl:object-type()exsl:object-type() returns a string that indicates the type of the specified object.
math:highest() - EXSLT
WebEXSLTmathhighest
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes math:highest() returns the node in the specified node-set with the highest value (where the highest value calculated using math:max()).
math:lowest() - EXSLT
WebEXSLTmathlowest
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes math:lowest() returns the node in the specified node-set with the lowest value (where the lowest value calculated using math:min()).
Math (math) - EXSLT
WebEXSLTmath
math:highest()math:highest() returns the node in the specified node-set with the highest value (where the highest value calculated using math:max()).math:lowest()math:lowest() returns the node in the specified node-set with the lowest value (where the lowest value calculated using math:min()).math:max()math:max() returns the maximum value of a node-set.math:min()math:min() returns the minimum value of a node-set.
Regular expressions (regexp) - EXSLT
WebEXSLTregexp
regexp:match()regexp:match() performs regular expression matching on a string, returning the submatches found as a result.regexp:replace()regexp:replace() replaces the portions of a string that match a given regular expression with the contents of another string.regexp:test()regexp:test() tests to see whether a string matches a specified regular expression.
set:distinct() - EXSLT
WebEXSLTsetdistinct
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes set:distinct() returns a subset of the nodes in the specified node-set, returning only nodes with unique string values.
Sets (set) - EXSLT
WebEXSLTset
in other words, it returns a node-set whose nodes are in one node-set but not in the other.set:distinct()set:distinct() returns a subset of the nodes in the specified node-set, returning only nodes with unique string values.set:has-same-node()set:has-same-node() determines whether two node-sets have any nodes in common.set:intersection()set:intersection() returns the intersection of two node-sets.
Getting Started - Developer guides
you have two options to access that data: httprequest.responsetext – returns the server response as a string of text httprequest.responsexml – returns the response as an xmldocument object you can traverse with javascript dom functions note that the steps above are valid only if you used an asynchronous request (the third parameter of open() was unspecified or set to true).
WAI ARIA Live Regions/API Support - Developer guides
retrieving author-supplied aria live region semantics from an event for any mutation event in a page, the author can get the following object attributes from the event object, if they are defined on some ancestor element (closest ancestor wins): object attribute name possible values default value if not specified meaning aria markup if required container-live "off" | "polite" | "assertive" "off" interruption policy aria-live on ancestor element container-relevant "[additions] [removals] [text]" | "all" "additions text" what types of mutations are possibly relevant?
Adding captions and subtitles to HTML5 video - Developer guides
webvtt the files that contain the actual subtitle data are simple text files that follow a specified format, in this case the web video text tracks (webvtt) format.
Block formatting context - Developer guides
see also float, clear css key concepts: css syntax, at-rule, comments, specificity and inheritance, the box, layout modes and visual formatting models, and margin collapsing, or the initial, computed, resolved, specified, used, and actual values.
DOM onevent handlers - Developer guides
(the html specification names these: onblur, onerror, onfocus, onload, and onscroll.) event handler's parameters, this binding, and the return value when the event handler is specified as an html attribute, the specified code is wrapped into a function with the following parameters: event — for all event handlers except onerror.
Content categories - Developer guides
a form owner is either the containing <form> element or the element whose id is specified in the form attribute.
Parsing and serializing XML - Developer guides
to serialize the dom tree doc into xml text, call xmlserializer.serializetostring(): var oserializer = new xmlserializer(); var sxml = oserializer.serializetostring(doc); serializing html documents if the dom you have is an html document, you can serialize using serializetostring(), but there is a simpler option: just use the element.innerhtml property (if you want just the descendants of the specified node) or the element.outerhtml property if you want the node and all its descendants.
HTML attribute: accept - HTML: Hypertext Markup Language
acceptable file types can be specified with the accept attribute, which takes a comma-separated list of allowed file extensions or mime types.
HTML attribute: crossorigin - HTML: Hypertext Markup Language
by default (that is, when the attribute is not specified), cors is not used at all.
HTML attribute: maxlength - HTML: Hypertext Markup Language
if no maxlength is specified, or an invalid value is specified, the input or textarea has no maximum length.
HTML attribute: minlength - HTML: Hypertext Markup Language
if no minlength is specified, or an invalid value is specified, the input has no minimum length.
HTML attribute: rel - HTML: Hypertext Markup Language
WebHTMLAttributesrel
useful for resources the user will likely need, it helps reduce latency and thereby improves performance when the user does access the resources as the browser preemptively performed dns resolution for the origin of the specified resource.
HTML attribute: required - HTML: Hypertext Markup Language
attribute interactions because a read-only field cannot have a value, required does not have any effect on inputs with the readonly attribute also specified.
HTML attribute: size - HTML: Hypertext Markup Language
WebHTMLAttributessize
if no size is specified, or an invalid value is specified, the input has no size declared, and the form control will be the default width based on the user agent.
HTML attribute: step - HTML: Hypertext Markup Language
WebHTMLAttributesstep
min="019-12-25t19:30" step="7"> number 1 <input type="number" min="0" step="0.1" max="10"> range 1 <input type="range" min="0" step="2" max="10"> if any is not explicity set, valid values for the number, date/time input types, and range input types are equal to the basis for stepping - the min value and increments of the step value, up to the max value, if specified.
<a>: The Anchor element - HTML: Hypertext Markup Language
WebHTMLElementa
revobsolete since html5 specified a reverse link; the opposite of the rel attribute.
<applet>: The Embed Java Applet element - HTML: Hypertext Markup Language
WebHTMLElementapplet
the url specified by code might be relative to the codebase attribute.
<basefont> - HTML: Hypertext Markup Language
WebHTMLElementbasefont
color this attribute sets the text color using either a named color or a color specified in the hexadecimal #rrggbb format.
<code>: The Inline Code element - HTML: Hypertext Markup Language
WebHTMLElementcode
preferences set by the user might take precedence over the specified css.
<col> - HTML: Hypertext Markup Language
WebHTMLElementcol
charoff this attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char attribute.
<colgroup> - HTML: Hypertext Markup Language
WebHTMLElementcolgroup
charoff this attribute is used to indicate the number of characters to offset the column data from the alignment character specified by the char attribute.
<dl>: The Description List element - HTML: Hypertext Markup Language
WebHTMLElementdl
the element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements).
<dt>: The Description Term element - HTML: Hypertext Markup Language
WebHTMLElementdt
the subsequent <dd> (description details) element provides the definition or other related text associated with the term specified using <dt>.
<embed>: The Embed External Content element - HTML: Hypertext Markup Language
WebHTMLElementembed
the html <embed> element embeds external content at the specified point in the document.
<figure>: The Figure with Optional Caption element - HTML: Hypertext Markup Language
WebHTMLElementfigure
the html <figure> (figure with optional caption) element represents self-contained content, potentially with an optional caption, which is specified using the (<figcaption>) element.
<font> - HTML: Hypertext Markup Language
WebHTMLElementfont
color this attribute sets the text color using either a named color or a color specified in the hexadecimal #rrggbb format.
<hr>: The Thematic Break (Horizontal Rule) element - HTML: Hypertext Markup Language
WebHTMLElementhr
if no value is specified, the default value is left.
<input type="checkbox"> - HTML: Hypertext Markup Language
WebHTMLElementinputcheckbox
if the value is not otherwise specified, it is the string on by default.
<input type="date"> - HTML: Hypertext Markup Language
WebHTMLElementinputdate
only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate default value if neither of those is provided) are valid.
<input type="radio"> - HTML: Hypertext Markup Language
WebHTMLElementinputradio
if the value is not otherwise specified, it is the string on by default.
<input type="reset"> - HTML: Hypertext Markup Language
WebHTMLElementinputreset
in this example, r is specified as the access key (you'll need to press r plus the particular modifier keys for your browser/os combination; see accesskey for a useful list of those).
<main> - HTML: Hypertext Markup Language
WebHTMLElementmain
a document mustn't have more than one <main> element that doesn't have the hidden attribute specified.
<map> - HTML: Hypertext Markup Language
WebHTMLElementmap
if the id attribute is also specified, both attributes must have the same value.
<menu> - HTML: Hypertext Markup Language
WebHTMLElementmenu
must only be specified when the parent element is a <menu> in the context menu state.
<menuitem> - HTML: Hypertext Markup Language
WebHTMLElementmenuitem
(if specified, the type attribute of the <menu> element must be popup; if missing, the parent element of the <menu> must itself be a <menu> in the popup menu state.) permitted aria roles none dom interface htmlmenuitemelement attributes this element includes the global attributes; in particular title can be used to describe the command, or provide usage hints.
theme-color - HTML: Hypertext Markup Language
WebHTMLElementmetanametheme-color
if specified, the content attribute must contain a valid css <color>.
Standard metadata names - HTML: Hypertext Markup Language
WebHTMLElementmetaname
indicating multiple color schemes indicates that the first scheme is preferred by the document, but that the second specified scheme is acceptable if the user prefers it.
<ol>: The Ordered List element - HTML: Hypertext Markup Language
WebHTMLElementol
type sets the numbering type: a for lowercase letters a for uppercase letters i for lowercase roman numerals i for uppercase roman numerals 1 for numbers (default) the specified type is used for the entire list unless a different type attribute is used on an enclosed <li> element.
<param>: The Object Parameter element - HTML: Hypertext Markup Language
WebHTMLElementparam
specifies the mime type of values found at the uri specified by value.
<script>: The Script element - HTML: Hypertext Markup Language
WebHTMLElementscript
if referrerpolicy is not explicitly specified on the <script> element, it will adopt a higher-level referrer policy, i.e.
<table>: The Table element - HTML: Hypertext Markup Language
WebHTMLElementtable
in complex tables, scope can be specified so as to provide necessary information about the cells related to a header.
<tbody>: The Table Body element - HTML: Hypertext Markup Language
WebHTMLElementtbody
charoff this attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char attribute.
<tfoot>: The Table Foot element - HTML: Hypertext Markup Language
WebHTMLElementtfoot
charoff deprecated since html4obsolete since html5 this attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char attribute.
<thead>: The Table Head element - HTML: Hypertext Markup Language
WebHTMLElementthead
charoff in html 4, in html5 this attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char attribute.
<track>: The Embed Text Track element - HTML: Hypertext Markup Language
WebHTMLElementtrack
this attribute must be specified and its url value must have the same origin as the document — unless the <audio> or <video> parent element of the track element has a crossorigin attribute.
is - HTML: Hypertext Markup Language
this attribute can only be used if the specified custom element name has been successfully defined in the current document, and extends the element type it is being applied to.
itemref - HTML: Hypertext Markup Language
itemref provides a list of element ids (not itemids) elsewhere in the document, with additional properties the itemref attribute can only be specified on elements that have an itemscope attribute specified.
tabindex - HTML: Hypertext Markup Language
if not specified, it takes the default value 0.
Inline elements - HTML: Hypertext Markup Language
since this is a presentational characteristic it is nowadays specified by css in the flow layout.
Link types: noreferrer - HTML: Hypertext Markup Language
the noreferrer keyword for the rel attribute of the <a>, <area>, and <form> elements instructs the browser, when navigating to the target resource, to omit the referer header and otherwise leak no referrer information — and additionally to behave as if the noopener keyword were also specified.
Microdata - HTML: Hypertext Markup Language
every html element may have an itemprop attribute specified, where an itemprop consists of a name and value pair.
Preloading content with rel="preload" - HTML: Hypertext Markup Language
<link rel="prerender"> renders a specified webpage in the background, speeding up its load if the user navigates to it.
HTML: Hypertext Markup Language
WebHTML
global attributes global attributes may be specified on all html elements, even those not specified in the standard.
Reason: invalid token ‘xyz’ in CORS header ‘Access-Control-Allow-Methods’ - HTTP
if any of the specified values are not recognized by the client user agent, this error occurs.
Reason: missing token ‘xyz’ in CORS header ‘Access-Control-Allow-Headers’ from CORS preflight channel - HTTP
this error occurs when attempting to preflight a header that is not expressly allowed (that is, it's not included in the list specified by the access-control-allow-headers header sent by the server).
Reason: CORS request not HTTP - HTTP
cors requests may only use the https url scheme, but the url specified by the request is of a different type.
Configuring servers for Ogg media - HTTP
include regular key frames when the browser seeks through ogg media to a specified time, it has to seek to the nearest key frame before the seek target, then download and decode the video from there until the requested target time.
Alt-Svc - HTTP
WebHTTPHeadersAlt-Svc
multiple entries can be specified in a single alt-svc header using comma as separator.
Cache-Control - HTTP
min-fresh=<seconds> indicates the client wants a response that will still be fresh for at least the specified number of seconds.
Content-Encoding - HTTP
this token, except if explicitly specified, is always deemed acceptable.
Content-Language - HTTP
if no content-language is specified, the default is that the content is intended for all language audiences.
Content-Range - HTTP
header type response header forbidden header name no cors-safelisted response-header no syntax content-range: <unit> <range-start>-<range-end>/<size> content-range: <unit> <range-start>-<range-end>/* content-range: <unit> */<size> directives <unit> the unit in which ranges are specified.
CSP: default-src - HTTP
examples no inheritance with default-src if there are other directives specified, default-src does not influence them.
CSP: frame-ancestors - HTTP
if no url scheme is specified for a host-source and the iframe is loaded from an https url, the url for the page loading the iframe must also be https, per the w3c spec on matching source expressions.
CSP: navigate-to - HTTP
the http content-security-policy (csp) navigate-to directive restricts the urls to which a document can initiate navigations by any means including <form> (if form-action is not specified), <a>, window.location, window.open, etc.
CSP: plugin-types - HTTP
instantiation of an <embed>, <object> or <applet> element will fail if: the element to load does not declare a valid mime type, the declared type does not match one of specified types in the plugin-types directive, the fetched resource does not match the declared type.
CSP: referrer - HTTP
"none-when-downgrade" this is the user agent's default behavior if no policy is specified.
CSP: report-uri - HTTP
these violation reports consist of json documents sent via an http post request to the specified uri.
Content-Type - HTTP
examples content-type in html forms in a post request, resulting from an html form submission, the content-type of the request is specified by the enctype attribute on the <form> element.
DNT - HTTP
WebHTTPHeadersDNT
null the user has not specified a preference about tracking.
ETag - HTTP
WebHTTPHeadersETag
the method by which etag values are generated is not specified.
Expect - HTTP
WebHTTPHeadersExpect
header type request header forbidden header name yes syntax no other expectations except "100-continue" are specified currently.
Feature-Policy: unsized-media - HTTP
this restriction solves "layout instability" problem caused by providing default dimensions for images whose size is not specified in advance so that image doesn't change size after loading.
Feature-Policy - HTTP
it can do so by delivering the following http response header to define a feature policy: feature-policy: microphone 'none'; geolocation 'none' by specifying the 'none' keyword for the origin list, the specified features will be disabled for all browsing contexts (this includes all iframes), regardless of their origin.
Proxy-Authenticate - HTTP
if no realm is specified, clients often display a formatted host name instead.
Range - HTTP
WebHTTPHeadersRange
header type request header forbidden header name no syntax range: <unit>=<range-start>- range: <unit>=<range-start>-<range-end> range: <unit>=<range-start>-<range-end>, <range-start>-<range-end> range: <unit>=<range-start>-<range-end>, <range-start>-<range-end>, <range-start>-<range-end> range: <unit>=-<suffix-length> directives <unit> the unit in which ranges are specified.
SameSite cookies - HTTP
the warning appears because the samesite policy for a cookie has not specified explicitly: set-cookie: flavor=choco while you could rely on modern browsers to apply samesite=lax automatically, you should rather specify it explicitly to clearly communicate your intent which samesite policy applies to your cookie.
Transfer-Encoding - HTTP
this token, except if explicitly specified, is always deemed acceptable.
WWW-Authenticate - HTTP
if no realm is specified, clients often display a formatted hostname instead.
X-Frame-Options - HTTP
in supporting legacy browsers, a page can be displayed in a frame only on the specified origin uri.
Link prefetching FAQ - HTTP
a web page provides a set of prefetching hints to the browser, and after the browser is finished loading the page, it begins silently prefetching specified documents and stores them in its cache.
HTTP Messages - HTTP
WebHTTPMessages
the presence of the body and its size is specified by the start-line and http headers.
DELETE - HTTP
WebHTTPMethodsDELETE
the http delete request method deletes the specified resource.
GET - HTTP
WebHTTPMethodsGET
the http get method requests a representation of the specified resource.
Network Error Logging - HTTP
the following object keys can be specified in the nel header: report_to the reporting api group to send network error reports to (see below).
HTTP resources and specifications - HTTP
http was first specified in the early 1990s.
A typical HTTP session - HTTP
WebHTTPSession
the most common requests are get and post: the get method requests a data representation of the specified resource.
JavaScript data types and data structures - JavaScript
undefined [[set]] function object or undefined the function is called with an argument that contains the assigned value and is executed whenever a specified property is attempted to be changed.
Equality comparisons and sameness - JavaScript
internally, when an immutable property is redefined, the newly-specified value is compared against the current value using same-value equality.
Concurrency model and the event loop - JavaScript
basically, the settimeout needs to wait for all the code for queued messages to complete even though you specified a particular time limit for your settimeout.
Unicode property escapes - JavaScript
if a unicodepropertyname is specified, the value must correspond to the property type given.
Regular expressions - JavaScript
if the number is valid (matches the character sequence specified by the regular expression), the script shows a message thanking the user and confirming the number.
Using Promises - JavaScript
you can capture these for analysis and handling by your code—or just to avoid having them cluttering up your output—by adding a handler for the unhandledrejection event, like this: window.addeventlistener("unhandledrejection", event => { /* you might start here by adding code to examine the promise specified by event.promise and the reason in event.reason */ event.preventdefault(); }, false); by calling the event's preventdefault() method, you tell the javascript runtime not to do its default action when rejected promises go unhandled.
Deprecated and obsolete features - JavaScript
object.prototype.eval() evaluates a string of javascript code in the context of the specified object.
TypeError: can't redefine non-configurable property "x" - JavaScript
examples non-configurable properties created by object.defineproperty the object.defineproperty() creates non-configurable properties if you haven't specified them as configurable.
SyntaxError: missing ) after condition - JavaScript
the if statement executes a statement if a specified condition is truthy.
TypeError: can't delete non-configurable array element - JavaScript
examples non-configurable properties created by object.defineproperty the object.defineproperty() creates non-configurable properties by default if you haven't specified them as configurable.
Arrow function expressions - JavaScript
in a concise body, only an expression is specified, which becomes the implicit return value.
setter - JavaScript
description in javascript, a setter can be used to execute a function whenever a specified property is attempted to be changed.
Functions - JavaScript
historically, this was left unspecified, and some browsers would define zero whether the block executed or not.
Array.prototype.every() - JavaScript
this algorithm is exactly the one specified in ecma-262, 5th edition, assuming object and typeerror have their original values, and that callbackfn.call evaluates to the original value of function.prototype.call.
Array.prototype.filter() - JavaScript
this algorithm is exactly equivalent to the one specified in ecma-262, 5th edition, assuming that fn.call evaluates to the original value of function.prototype.bind(), and that array.prototype.push() has its original value.
Array.prototype.flat() - JavaScript
the flat() method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth.
Array.from() - JavaScript
polyfill notes: this algorithm is exactly as specified in ecma-262 6th edition (assuming object and typeerror have their original values and that callback.call() evaluates to the original value of function.prototype.call()).
Array.prototype.includes() - JavaScript
return value a boolean which is true if the value valuetofind is found within the array (or the part of the array indicated by the index fromindex, if specified).
Array.prototype.indexOf() - JavaScript
this algorithm matches the one specified in ecma-262, 5th edition, assuming typeerror and math.abs() have their original values.
Array.prototype.join() - JavaScript
the join() method creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas or a specified separator string.
Array.prototype.lastIndexOf() - JavaScript
this algorithm is exactly the one specified in ecma-262, 5th edition, assuming object, typeerror, number, math.floor, math.abs, and math.min have their original values.
Array.prototype.map() - JavaScript
this algorithm is exactly the one specified in ecma-262, 5th edition, assuming object, typeerror, and array have their original values and that callback.call evaluates to the original value of function.prototype.call.
Array.prototype.some() - JavaScript
this algorithm is exactly the one specified in ecma-262, 5th edition, assuming object and typeerror have their original values and that fun.call evaluates to the original value of function.prototype.call().
Array.prototype.splice() - JavaScript
description if the specified number of elements to insert differs from the number of elements being removed, the array's length will be changed.
Array.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified array and its elements.
Array - JavaScript
is how to remove an item // ["strawberry", "mango"] remove items from an index position let vegetables = ['cabbage', 'turnip', 'radish', 'carrot'] console.log(vegetables) // ["cabbage", "turnip", "radish", "carrot"] let pos = 1 let n = 2 let removeditems = vegetables.splice(pos, n) // this is how to remove items, n defines the number of items to be removed, // starting at the index position specified by pos and progressing toward the end of array.
ArrayBuffer() constructor - JavaScript
return value a new arraybuffer object of the specified size.
BigInt.prototype.valueOf() - JavaScript
syntax bigintobj.valueof() return value a bigint representing the primitive value of the specified bigint object.
BigInt64Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
BigUint64Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
DataView.prototype.byteLength - JavaScript
examples using the bytelength property var buffer = new arraybuffer(8); var dataview = new dataview(buffer); dataview.bytelength; // 8 (matches the bytelength of the buffer) var dataview2 = new dataview(buffer, 1, 5); dataview2.bytelength; // 5 (as specified when constructing the dataview) var dataview3 = new dataview(buffer, 2); dataview3.bytelength; // 6 (due to the offset of the constructed dataview) specifications specification ecmascript (ecma-262)the definition of 'dataview.prototype.bytelength' in that specification.
DataView.prototype.byteOffset - JavaScript
examples using the byteoffset property var buffer = new arraybuffer(8); var dataview = new dataview(buffer); dataview.byteoffset; // 0 (no offset specified) var dataview2 = new dataview(buffer, 3); dataview2.byteoffset; // 3 (as specified when constructing the dataview) specifications specification ecmascript (ecma-262)the definition of 'dataview.prototype.byteoffset' in that specification.
DataView.prototype.getBigInt64() - JavaScript
the getbigint64() method gets a signed 64-bit integer (long long) at the specified byte offset from the start of the dataview.
DataView.prototype.getBigUint64() - JavaScript
the getbiguint64() method gets an unsigned 64-bit integer (unsigned long long) at the specified byte offset from the start of the dataview.
DataView.prototype.getFloat32() - JavaScript
the getfloat32() method gets a signed 32-bit float (float) at the specified byte offset from the start of the dataview.
DataView.prototype.getFloat64() - JavaScript
the getfloat64() method gets a signed 64-bit float (double) at the specified byte offset from the start of the dataview.
DataView.prototype.getInt16() - JavaScript
the getint16() method gets a signed 16-bit integer (short) at the specified byte offset from the start of the dataview.
DataView.prototype.getInt32() - JavaScript
the getint32() method gets a signed 32-bit integer (long) at the specified byte offset from the start of the dataview.
DataView.prototype.getInt8() - JavaScript
the getint8() method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the dataview.
DataView.prototype.getUint16() - JavaScript
the getuint16() method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the dataview.
DataView.prototype.getUint32() - JavaScript
the getuint32() method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the dataview.
DataView.prototype.getUint8() - JavaScript
the getuint8() method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the dataview.
DataView.prototype.setBigInt64() - JavaScript
the setbigint64() method stores a signed 64-bit integer (long long) value at the specified byte offset from the start of the dataview.
DataView.prototype.setBigUint64() - JavaScript
the setbiguint64() method stores an unsigned 64-bit integer (unsigned long long) value at the specified byte offset from the start of the dataview.
DataView.prototype.setFloat32() - JavaScript
the setfloat32() method stores a signed 32-bit float (float) value at the specified byte offset from the start of the dataview.
DataView.prototype.setFloat64() - JavaScript
the setfloat64() method stores a signed 64-bit float (double) value at the specified byte offset from the start of the dataview.
DataView.prototype.setInt16() - JavaScript
the setint16() method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the dataview.
DataView.prototype.setInt32() - JavaScript
the setint32() method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the dataview.
DataView.prototype.setInt8() - JavaScript
the setint8() method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the dataview.
DataView.prototype.setUint16() - JavaScript
the setuint16() method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the dataview.
DataView.prototype.setUint32() - JavaScript
the setuint32() method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the dataview.
DataView.prototype.setUint8() - JavaScript
the setuint8() method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the dataview.
Date() constructor - JavaScript
timestamp string datestring a string value representing a date, specified in a format recognized by the date.parse() method.
Date.UTC() - JavaScript
description utc() takes comma-delimited date and time parameters and returns the number of milliseconds between january 1, 1970, 00:00:00, universal time and the specified date and time.
Date.prototype.getDate() - JavaScript
the getdate() method returns the day of the month for the specified date according to local time.
Date.prototype.getDay() - JavaScript
the getday() method returns the day of the week for the specified date according to local time, where 0 represents sunday.
Date.prototype.getFullYear() - JavaScript
the getfullyear() method returns the year of the specified date according to local time.
Date.prototype.getHours() - JavaScript
the gethours() method returns the hour for the specified date, according to local time.
Date.prototype.getMilliseconds() - JavaScript
the getmilliseconds() method returns the milliseconds in the specified date according to local time.
Date.prototype.getMinutes() - JavaScript
the getminutes() method returns the minutes in the specified date according to local time.
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.getSeconds() - JavaScript
the getseconds() method returns the seconds in the specified date according to local time.
Date.prototype.getUTCDate() - JavaScript
the getutcdate() method returns the day (date) of the month in the specified date according to universal time.
Date.prototype.getUTCDay() - JavaScript
the getutcday() method returns the day of the week in the specified date according to universal time, where 0 represents sunday.
Date.prototype.getUTCFullYear() - JavaScript
the getutcfullyear() method returns the year in the specified date according to universal time.
Date.prototype.getUTCHours() - JavaScript
the getutchours() method returns the hours in the specified date according to universal time.
Date.prototype.getUTCMinutes() - JavaScript
the getutcminutes() method returns the minutes in the specified date according to universal time.
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.getUTCSeconds() - JavaScript
the getutcseconds() method returns the seconds in the specified date according to universal time.
Date.prototype.setFullYear() - JavaScript
the setfullyear() method sets the full year for a specified date according to local time.
Date.prototype.setHours() - JavaScript
the sethours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since january 1, 1970 00:00:00 utc until the time represented by the updated date instance.
Date.prototype.setMilliseconds() - JavaScript
the setmilliseconds() method sets the milliseconds for a specified date according to local time.
Date.prototype.setMinutes() - JavaScript
the setminutes() method sets the minutes for a specified date according to local time.
Date.prototype.setSeconds() - JavaScript
the setseconds() method sets the seconds for a specified date according to local time.
Date.prototype.setUTCDate() - JavaScript
the setutcdate() method sets the day of the month for a specified date according to universal time.
Date.prototype.setUTCFullYear() - JavaScript
the setutcfullyear() method sets the full year for a specified date according to universal time.
Date.prototype.setUTCHours() - JavaScript
the setutchours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since january 1, 1970 00:00:00 utc until the time represented by the updated date instance.
Date.prototype.setUTCMilliseconds() - JavaScript
the setutcmilliseconds() method sets the milliseconds for a specified date according to universal time.
Date.prototype.setUTCMinutes() - JavaScript
the setutcminutes() method sets the minutes for a specified date according to universal time.
Date.prototype.setUTCMonth() - JavaScript
the setutcmonth() method sets the month for a specified date according to universal time.
Date.prototype.setUTCSeconds() - JavaScript
the setutcseconds() method sets the seconds for a specified date according to universal time.
Date.prototype.setYear() - JavaScript
the setyear() method sets the year for a specified date according to local time.
Error - JavaScript
instance methods error.prototype.tostring() returns a string representing the specified object.
Float32Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
Float64Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
Function.prototype.call() - JavaScript
return value the result of calling the function with the specified this value and arguments.
Function.caller - JavaScript
the function.caller property returns the function that invoked the specified function.
Function.name - JavaScript
a function object's read-only name property indicates the function's name as specified when it was created, or it may be rather anonymous or ''(an empty string) for functions created anonymously.
Int16Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
Int32Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
Int8Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
Intl.Locale.prototype.language - JavaScript
let langstr = new intl.locale("en-latn-us"); console.log(langstr.language); // prints "en" overriding language via the configuration object while the language subtag must be specified, the locale constructor takes a configuration object, which can override the language subtag.
Intl.NumberFormat.prototype.formatToParts() - JavaScript
the structure the formattoparts() method returns, looks like this: [ { type: "integer", value: "3" }, { type: "group", value: "." }, { type: "integer", value: "500" } ] possible types are the following: currency the currency string, such as the symbols "$" and "€" or the name "dollar", "euro" depending on how currencydisplay is specified.
JSON.parse() - JavaScript
throw new syntaxerror("json.parse"); }; } examples using json.parse() json.parse('{}'); // {} json.parse('true'); // true json.parse('"foo"'); // "foo" json.parse('[1, 5, "false"]'); // [1, 5, "false"] json.parse('null'); // null using the reviver parameter if a reviver is specified, the value computed by parsing is transformed before being returned.
JSON.stringify() - JavaScript
the json.stringify() method converts a javascript object or value to a json string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
JSON - JavaScript
json.stringify(value[, replacer[, space]]) return a json string corresponding to the specified value, optionally including only certain properties or replacing property values in a user-defined manner.
Map.prototype.delete() - JavaScript
the delete() method removes the specified element from a map object by key.
Map.prototype.set() - JavaScript
the set() method adds or updates an element with a specified key and a value to a map object.
Math.cos() - JavaScript
the math.cos() static function returns the cosine of the specified angle, which must be specified in radians.
Math.floor() - JavaScript
return value a number representing the largest integer less than or equal to the specified number.
Number.MAX_SAFE_INTEGER - JavaScript
the reasoning behind that number is that javascript uses double-precision floating-point format numbers as specified in ieee 754 and can only safely represent numbers between -(253 - 1) and 253 - 1.
Number.MIN_SAFE_INTEGER - JavaScript
the reasoning behind that number is that javascript uses double-precision floating-point format numbers as specified in ieee 754 and can only safely represent numbers between -(253 - 1) and 253 - 1.
Number.parseInt() - JavaScript
the number.parseint() method parses a string argument and returns an integer of the specified radix or base.
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.
Number.prototype.toLocaleString() - JavaScript
a check that works in all hosts, including those supporting ecma-262 prior to ed 5.1, is to test for the features specified in ecma-402 that are required to support regional options for number.prototype.tolocalestring directly: function tolocalestringsupportsoptions() { return !!(typeof intl == 'object' && intl && typeof intl.numberformat == 'function'); } this tests for a global intl object, checks that it's not null and that it has a numberformat property that is a function.
Number.prototype.toPrecision() - JavaScript
the toprecision() method returns a string representing the number object to the specified precision.
Number.prototype.valueOf() - JavaScript
syntax numobj.valueof() return value a number representing the primitive value of the specified number object.
Object.prototype.__defineGetter__() - JavaScript
func a function to be bound to a lookup of the specified property.
Object.prototype.__defineSetter__() - JavaScript
fun a function to be called when there is an attempt to set the specified property.
Object.defineProperty() - JavaScript
creating a property when the property specified doesn't exist in the object, object.defineproperty() creates a new property as described.
Object.getPrototypeOf() - JavaScript
the value of the internal [[prototype]] property) of the specified object.
Object.prototype.isPrototypeOf() - JavaScript
return value a boolean indicating whether the calling object lies in the prototype chain of the specified object.
Promise.allSettled() - JavaScript
return value a pending promise that will be asynchronously fulfilled once every promise in the specified collection of promises has completed, either by successfully being fulfilled or by being rejected.
Reflect - JavaScript
static methods reflect.apply(target, thisargument, argumentslist) calls a target function with arguments as specified by the argumentslist parameter.
RegExp.prototype.compile() - JavaScript
flags if specified, flags can have any combination of the following values: g global match i ignore case m multiline; treat beginning and end characters (^ and $) as working over multiple lines (i.e., match the beginning or end of each line (delimited by \n or \r), not only the very beginning or end of the whole input string) y sticky; matches only from the index indicated by the lastindex property of this regular expression in the target string (and does not attempt to match from any later indexes).
RegExp.prototype.test() - JavaScript
the test() method executes a search for a match between a regular expression and a specified string.
RegExp - JavaScript
regexp.prototype.tostring() returns a string representing the specified object.
Set.prototype.add() - JavaScript
the add() method appends a new element with a specified value to the end of a set object.
Set.prototype.delete() - JavaScript
the delete() method removes the specified element from a set object.
SharedArrayBuffer() constructor - JavaScript
return value a new sharedarraybuffer object of the specified size.
String.prototype.charCodeAt() - JavaScript
'abc'.charcodeat(0) // returns 65 fixing charcodeat() to handle non-basic-multilingual-plane characters if their presence earlier in the string is unknown this version might be used in for loops and the like when it is unknown whether non-bmp characters exist before the specified index position.
String.prototype.endsWith() - JavaScript
the endswith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.
String.prototype.fontcolor() - JavaScript
the fontcolor() method creates a <font> html element that causes a string to be displayed in the specified font color.
String.prototype.fontsize() - JavaScript
the fontsize() method creates a <font> html element that causes a string to be displayed in the specified font size.
String.prototype.lastIndexOf() - JavaScript
the lastindexof() method returns the index within the calling string object of the last occurrence of the specified value, searching backwards from fromindex.
String length - JavaScript
previously, no maximum length was specified.
String.prototype.normalize() - JavaScript
errors thrown rangeerror a rangeerror is thrown if form isn't one of the values specified above.
String.prototype.padEnd() - JavaScript
return value a string of the specified targetlength with the padstring applied at the end of the current str.
String.prototype.padStart() - JavaScript
return value a string of the specified targetlength with padstring applied from the start.
String.prototype.split() - JavaScript
if provided, splits the string at each occurrence of the specified separator, but stops when limit entries have been placed in the array.
String.prototype.startsWith() - JavaScript
the startswith() method determines whether a string begins with the characters of a specified string, returning true or false as appropriate.
String.prototype.substring() - JavaScript
return value a new string containing the specified part of the given string.
String.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified object.
Symbol.prototype[@@toPrimitive] - JavaScript
syntax symbol()[symbol.toprimitive](hint) return value the primitive value of the specified symbol object.
Symbol.prototype.valueOf() - JavaScript
syntax symbol().valueof() return value the primitive value of the specified symbol object.
TypedArray.prototype.byteLength - JavaScript
examples using the bytelength property var buffer = new arraybuffer(8); var uint8 = new uint8array(buffer); uint8.bytelength; // 8 (matches the bytelength of the buffer) var uint8 = new uint8array(buffer, 1, 5); uint8.bytelength; // 5 (as specified when constructing the uint8array) var uint8 = new uint8array(buffer, 2); uint8.bytelength; // 6 (due to the offset of the constructed uint8array) specifications specification ecmascript (ecma-262)the definition of 'typedarray.prototype.bytelength' in that specification.
TypedArray.prototype.byteOffset - JavaScript
examples using the byteoffset property var buffer = new arraybuffer(8); var uint8 = new uint8array(buffer); uint8.byteoffset; // 0 (no offset specified) var uint8 = new uint8array(buffer, 3); uint8.byteoffset; // 3 (as specified when constructing uint8array) specifications specification ecmascript (ecma-262)the definition of 'typedarray.prototype.byteoffset' in that specification.
TypedArray.from() - JavaScript
n') { throw new typeerror('# is not a constructor'); } if (this.__proto__ !== typedarrayclass) { throw new typeerror('this is not a typed array.'); } func = func || function (elem) { return elem; }; if (typeof func !== 'function') { throw new typeerror('specified argument is not a function'); } obj = object(obj); if (!obj['length']) { return new this(0); } var copy_data = []; for(var i = 0; i < obj.length; i++) { copy_data.push(obj[i]); } copy_data = copy_data.map(func, thisobj); var typed_array = new this(copy_dat...
TypedArray.prototype.length - JavaScript
examples using the length property var buffer = new arraybuffer(8); var uint8 = new uint8array(buffer); uint8.length; // 8 (matches the length of the buffer) var uint8 = new uint8array(buffer, 1, 5); uint8.length; // 5 (as specified when constructing the uint8array) var uint8 = new uint8array(buffer, 2); uint8.length; // 6 (due to the offset of the constructed uint8array) specifications specification ecmascript (ecma-262)the definition of 'typedarray.prototype.length' in that specification.
TypedArray.prototype.set() - JavaScript
the set() method stores multiple values in the typed array, reading input values from a specified array.
TypedArray.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified array and its elements.
Uint16Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
Uint32Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
Uint8Array() constructor - JavaScript
buffer, byteoffset, length when called with a buffer, and optionally a byteoffset and a length argument, a new typed array view is created that views the specified arraybuffer.
WeakMap.prototype.delete() - JavaScript
the delete() method removes the specified element from a weakmap object.
WeakMap.prototype.set() - JavaScript
the set() method adds a new element with a specified key and value to a weakmap object.
WeakSet.prototype.delete() - JavaScript
the delete() method removes the specified element from a weakset object.
WeakSet.prototype.has() - JavaScript
return value boolean returns true if an element with the specified value exists in the weakset object; otherwise false.
WebAssembly.CompileError - JavaScript
webassembly.compileerror.prototype.tostring() returns a string representing the specified error object..
WebAssembly.Global() constructor - JavaScript
if no value is specified, a typed 0 value is used, as specified by the defaultvalue algorithm.
WebAssembly.LinkError - JavaScript
webassembly.linkerror.prototype.tostring() returns a string representing the specified error object..
WebAssembly.Memory() constructor - JavaScript
if maximum is specified and is smaller than initial, a rangeerror is thrown.
WebAssembly.Memory.prototype.grow() - JavaScript
the grow() protoype method of the memory object increases the size of the memory instance by a specified number of webassembly pages.
WebAssembly.Memory - JavaScript
instance methods memory.prototype.grow() increases the size of the memory instance by a specified number of webassembly pages (each one is 64kb in size).
WebAssembly.RuntimeError - JavaScript
webassembly.runtimeerror.prototype.tostring() returns a string representing the specified error object..
WebAssembly.Table() constructor - JavaScript
if maximum is specified and is smaller than initial, a rangeerror is thrown.
WebAssembly.Table.prototype.grow() - JavaScript
the grow() prototype method of the webassembly.table object increases the size of the table instance by a specified number of elements.
WebAssembly.Table - JavaScript
table.prototype.grow() increases the size of the table instance by a specified number of elements.
escape() - JavaScript
warning: although escape() is not strictly deprecated (as in "removed from the web standards"), it is defined in annex b of the ecma-262 standard, whose introduction states: … all of the language features and behaviours specified in this annex have one or more undesirable characteristics and in the absence of legacy usage would be removed from this specification.
eval() - JavaScript
in the following example, the string constructor is specified and eval() returns a string object rather than evaluating the string.
unescape() - JavaScript
warning: although unescape() is not strictly deprecated (as in "removed from the web standards"), it is defined in annex b of the ecma-262 standard, whose introduction states: … all of the language features and behaviours specified in this annex have one or more undesirable characteristics and in the absence of legacy usage would be removed from this specification.
Lexical grammar - JavaScript
see also the page about parseint() exponential the decimal exponential literal is specified by the following format: ben; where b is a base number (integer or floating), followed by e char (which serves as separator or exponent indicator) and n, which is exponent or power number – a signed integer (as per 2019 ecma-262 specs): 0e-5 // => 0 0e+5 // => 0 5e1 // => 50 175e-2 // => 1.75 1e3 // => 1000 1e-3 // => 0.001 binary binary number syntax uses a leading zero follow...
Left shift assignment (<<=) - JavaScript
the left shift assignment operator (<<=) moves the specified amount of bits to the left and assigns the result to the variable.
Logical AND (&&) - JavaScript
however, the && operator actually returns the value of one of the specified operands, so if this operator is used with non-boolean values, it will return a non-boolean value.
Logical OR (||) - JavaScript
however, the || operator actually returns the value of one of the specified operands, so if this operator is used with non-boolean values, it will return a non-boolean value.
Pipeline operator (|>) - JavaScript
the result is syntactic sugar in which a function call with a single argument can be written like this: let url = "%21" |> decodeuri; the equivalent call in traditional syntax looks like this: let url = decodeuri("%21"); syntax expression |> function the value of the specified expression is passed into the function as its sole parameter.
Right shift assignment (>>=) - JavaScript
the right shift assignment operator (>>=) moves the specified amount of bits to the right and assigns the result to the variable.
Unsigned right shift assignment (>>>=) - JavaScript
the unsigned right shift assignment operator (>>>=) moves the specified amount of bits to the right and assigns the result to the variable.
yield - JavaScript
in this case, execution of the generator ends and an iteratorresult is returned to the caller in which the value is the value specified by the return statement and done is true.
function declaration - JavaScript
the function declaration (function statement) defines a function with the specified parameters.
if...else - JavaScript
the if statement executes a statement if a specified condition is truthy.
return - JavaScript
if specified, a given value is returned to the function caller.
switch - JavaScript
if the expression matches the specified valuen, the statements inside the case clause are executed until either the end of the switch statement or a break.
try...catch - JavaScript
ructures, like this: try { myroutine(); // may throw three types of exceptions } catch (e) { if (e instanceof typeerror) { // statements to handle typeerror exceptions } else if (e instanceof rangeerror) { // statements to handle rangeerror exceptions } else if (e instanceof evalerror) { // statements to handle evalerror exceptions } else { // statements to handle any unspecified exceptions logmyerrors(e); // pass exception object to error handler } } a common use case for this is to only catch (and silence) a small subset of expected errors, and then re-throw the error in other cases: try { myroutine(); } catch (e) { if (e instanceof rangeerror) { // statements to handle this very common expected error } else { throw e; // re-throw the error uncha...
while - JavaScript
the while statement creates a loop that executes a specified statement as long as the test condition evaluates to true.
Strict mode - JavaScript
thus for a strict mode function, the specified this is not boxed into an object, and if unspecified, this will be undefined: 'use strict'; function fun() { return this; } console.assert(fun() === undefined); console.assert(fun.call(2) === 2); console.assert(fun.apply(null) === null); console.assert(fun.call(undefined) === undefined); console.assert(fun.bind(true)() === true); that means, among other things, that in browsers it's no longer ...
JavaScript typed arrays - JavaScript
filereader.prototype.readasarraybuffer() the filereader.prototype.readasarraybuffer() method starts reading the contents of the specified blob or file.
display - Web app manifests
note: if the display member is not specified, it defaults to browser.
related_applications - Web app manifests
id the id used to represent the application on the specified platform.
Web app manifests
izes": "192x192", "type": "image/png" }], "related_applications": [{ "platform": "play", "url": "https://play.google.com/store/apps/details?id=cheeaun.hackerweb" }] } deploying a manifest web app manifests are deployed in your html pages using a <link> element in the <head> of a document: <link rel="manifest" href="/manifest.webmanifest"> note: the .webmanifest extension is specified in the media type registration section of the specification (the response of the manifest file should return content-type: application/manifest+json).
MathML attribute reference - MathML
href all used to set a hyperlink to a specified uri.
<math> - MathML
WebMathMLElementmath
href used to set a hyperlink to a specified uri.
<merror> - MathML
WebMathMLElementmerror
href used to set a hyperlink to a specified uri.
<mfrac> - MathML
WebMathMLElementmfrac
href used to set a hyperlink to a specified uri.
<mglyph> - MathML
WebMathMLElementmglyph
href used to set a hyperlink to a specified uri.
<mi> - MathML
WebMathMLElementmi
href used to set a hyperlink to a specified uri.
<mmultiscripts> - MathML
href used to set a hyperlink to a specified uri.
<mn> - MathML
WebMathMLElementmn
href used to set a hyperlink to a specified uri.
<mo> - MathML
WebMathMLElementmo
(it is the default value if the operator is the last argument in a <mrow> element with more than one argument.) href used to set a hyperlink to a specified uri.
<mover> - MathML
WebMathMLElementmover
href used to set a hyperlink to a specified uri.
<mpadded> - MathML
href used to set a hyperlink to a specified uri.
<mroot> - MathML
WebMathMLElementmroot
href used to set a hyperlink to a specified url.
<mrow> - MathML
WebMathMLElementmrow
href used to set a hyperlink to a specified uri.
<msqrt> - MathML
WebMathMLElementmsqrt
href used to set a hyperlink to a specified uri.
<mstyle> - MathML
WebMathMLElementmstyle
in addition, the scriptlevel attribute can never reduce the font size below scriptminsize in order to avoid unreadable small font sizes and depends on the multiplier specified in scriptsizemultiplier.
<msub> - MathML
WebMathMLElementmsub
href used to set a hyperlink to a specified uri.
<msubsup> - MathML
href used to set a hyperlink to a specified uri.
<msup> - MathML
WebMathMLElementmsup
href used to set a hyperlink to a specified uri.
<mtext> - MathML
WebMathMLElementmtext
href used to set a hyperlink to a specified uri.
<munder> - MathML
WebMathMLElementmunder
href used to set a hyperlink to a specified uri.
<munderover> - MathML
href used to set a hyperlink to a specified uri.
MathML element reference - MathML
yph> (displaying non-standard symbols) i <mi> (identifier) l <mlabeledtr> (labeled row in a table or a matrix) <mlongdiv> (long division notation) m <mmultiscripts> (prescripts and tensor indices) n <mn> (number) o <mo> (operator) <mover> (overscript) p <mpadded> (space around content) <mphantom> (invisible content with reserved space) r <mroot> (radical with specified index) <mrow> (grouped sub-expressions) s <ms> (string literal) <mscarries> (annotations such as carries) <mscarry> (single carry, child element of <mscarries>) <msgroup> (grouped rows of <mstack> and <mlongdiv> elements) <msline> (horizontal lines inside <mstack> elements) <mspace> (space) <msqrt> (square root without an index) <msrow> (rows in <mstack> elements) <mstack> (stacked ...
Digital audio concepts - Web media technologies
the encoder will attempt to produce an encoded sound file that, when playing it back, uses, on average, the specified number of bits for each second of audio.
Performance budgets - Web Performance
webpack), has performance features that will notify you when assets exceed specified limits.
Using dns-prefetch - Web Performance
the cross-origin domain is then specified in the href attribute: syntax <link rel="dns-prefetch" href="https://fonts.gstatic.com/" > examples <html> <head> <link rel="dns-prefetch" href="https://fonts.gstatic.com/"> <!-- and all other head elements --> </head> <body> <!-- your page content --> </body> </html> you should place dns-prefetch hints in the <head> element any time your site references resources on cro...
Add to Home screen - Progressive web apps (PWAs)
note: the .webmanifest extension is specified in the media type registration section of the specification, but generally browsers will support manifests with other appropriate extensions, e.g.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
d, delay: delay, ttl: ttl, }), }); }; when the button is clicked, fetch asks the server to send the notification with the given parameters: payload is the text that to be shown in the notification, delay defines a delay in seconds until the notification will be shown, and ttl is the time-to-live setting that keeps the notification available on the server for a specified amount of time, also defined in seconds.
Structural overview of progressive web apps - Progressive web apps (PWAs)
lf.addeventlistener('install', function(e) { console.log('[service worker] install'); e.waituntil( caches.open(cachename).then(function(cache) { console.log('[service worker] caching all: app shell and content'); return cache.addall(contenttocache); }) ); }); with that done, we implement the service worker's fetch event handler; its job is to return the contents of the specified file, either from the cache or by loading it over the network (caching it upon doing so): self.addeventlistener('fetch', function(e) { e.respondwith( caches.match(e.request).then(function(r) { console.log('[service worker] fetching resource: '+e.request.url); return r || fetch(e.request).then(function(response) { return caches.open(cachename).then(function(cache) { ...
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
op-color="white" offset="0"/> <stop stop-opacity="0" offset="1"/> </lineargradient> <circle cx="0.25" cy="0.25" r="0.25" id="circle" fill="white"/> <rect x="0.5" y="0.2" width="300" height="100" fill="url(#gradient-1)"/> </mask> </svg> .target { mask: url(#mask-1); } p { width: 300px; border: 1px solid #000; display: inline-block; } note that in the css, the mask is specified using a url to the id #mask-1, which is the id of the svg mask specified below it.
SVG Conditional Processing Attributes - SVG: Scalable Vector Graphics
the svg conditional processing attributes are all the attributes that can be specified on some svg elements to control whether or not the element on which it appears should be rendered.
SVG Core Attributes - SVG: Scalable Vector Graphics
WebSVGAttributeCore
the svg core attributes are all the common attributes that can be specified on any svg element.
SVG Event Attributes - SVG: Scalable Vector Graphics
WebSVGAttributeEvents
they specifies some script to run when the event of the given type is dispatched to the element on which the attributes are specified.
SVG Styling Attributes - SVG: Scalable Vector Graphics
WebSVGAttributeStyling
the svg styling attributes are all the attributes that can be specified on any svg element to apply css styling effects.
accumulate - SVG: Scalable Vector Graphics
this attribute will be ignored if the animation function is specified with only the to attribute.
ascent - SVG: Scalable Vector Graphics
WebSVGAttributeascent
if the attribute is not specified, the effect is as if the attribute were set to the difference between the units-per-em value and the vert-origin-y value for the corresponding font.
baseProfile - SVG: Scalable Vector Graphics
for example, the value of the attribute could be used by an authoring tool to warn the user when they are modifying the document beyond the scope of the specified base profile.
calcMode - SVG: Scalable Vector Graphics
if paced is specified, any keytimes or keysplines will be ignored.
cap-height - SVG: Scalable Vector Graphics
note: it was specified to share the syntax and semantics of the obsolete cap-height descriptor of the @font-face at-rule defined in an early version of css 2.
color-profile - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it only has an effect on the following element: <image> usage notes value auto | srgb | <name> | <iri> default value auto animatable yes auto all colors are presumed to be defined in the srgb color space unless a more precise embedded profile is specified within content data.
color-rendering - SVG: Scalable Vector Graphics
in this case, the svg user agent should perform color operations in a way that optimizes performance, which might mean sacrificing the color interpolation precision as specified by through the linearrgb value for color-interpolation-filters.
contentScriptType - SVG: Scalable Vector Graphics
usage notes value one of the content types specified in the media types default value application/ecmascript animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of 'contentscripttype' in that specification.
contentStyleType - SVG: Scalable Vector Graphics
usage notes value one of the content types specified in the media types default value text/css animatable no since css is the only widely deployed style sheet language for online styling and it's already defined as default value if contentstyletype is ommitted, the attribute is not well supported in user agents.
descent - SVG: Scalable Vector Graphics
WebSVGAttributedescent
note: it was specified to share the syntax and semantics of the obsolete descent descriptor of the @font-face at-rule defined in an early version of css 2.
direction - SVG: Scalable Vector Graphics
in many cases, the bidirectional unicode algorithm produces the desired result automatically, so this attribute doesn't need to be specified in those cases.
divisor - SVG: Scalable Vector Graphics
WebSVGAttributedivisor
if the specified divisor is 0 then the default value will be used instead.
dur - SVG: Scalable Vector Graphics
WebSVGAttributedur
(for animation elements the attribute will be ignored if media is specified.) indefinite this value specifies the simple duration as indefinite.
enable-background - SVG: Scalable Vector Graphics
if one, two, or three values are specified or if neither <width> nor <height> are specified, the backgroundimage and backgroundalpha of a filter primitive are processed as if background image processing were not enabled.
externalResourcesRequired - SVG: Scalable Vector Graphics
this attribute applies to all types of resource references, including style sheets, color profiles and fonts specified by a reference using a <font-face> element or a css @font-face specification.
filterRes - SVG: Scalable Vector Graphics
if only one value is specified, it is used for both directions.
font-family - SVG: Scalable Vector Graphics
the font-family attribute indicates which font family will be used to render the text, specified as a prioritized list of font family names and/or generic family names.
from - SVG: Scalable Vector Graphics
WebSVGAttributefrom
when used with the by attribute, the animation will change the attribute relatively from the from value by the value specified in by.
g1 - SVG: Scalable Vector Graphics
WebSVGAttributeg1
the total set of possible first glyphs in the kerning pair is the union of glyphs specified by the u1 and g1 attributes.
g2 - SVG: Scalable Vector Graphics
WebSVGAttributeg2
the total set of possible second glyphs in the kerning pair is the union of glyphs specified by the u2 and g2 attributes.
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
if another angle is specified, it is rounded to the closest of the permitted values.
glyph-orientation-vertical - SVG: Scalable Vector Graphics
if another angle is specified, it is rounded to the closest of the permitted values.
kerning - SVG: Scalable Vector Graphics
WebSVGAttributekerning
the given length is added to the inter-character spacing value specified by the letter-spacing attribute.
keyTimes - SVG: Scalable Vector Graphics
each time value in the keytimes list is specified as a floating point value between 0 and 1 (inclusive), representing a proportional offset into the duration of the animation element.
lang - SVG: Scalable Vector Graphics
WebSVGAttributelang
that attribute specified a list of languages in bcp 47 format.
markerHeight - SVG: Scalable Vector Graphics
relative values refer to the height specified via the viewbox and preserveaspectratio attributes.
markerWidth - SVG: Scalable Vector Graphics
relative values refer to the width specified via the viewbox and preserveaspectratio attributes.
media - SVG: Scalable Vector Graphics
WebSVGAttributemedia
if not specified, the style sheet is applied unconditionally.
name - SVG: Scalable Vector Graphics
WebSVGAttributename
unlike the syntax allowed between the parentheses of the local(…) clause in an @font-face rule src descriptor, the font name specified in this attribute is not surrounded in single or double quotes.
overflow - SVG: Scalable Vector Graphics
when scroll is specified on an <svg> element, a scrollbar or panner is normally shown for the svg viewport whether or not any of its content is clipped.
paint-order - SVG: Scalable Vector Graphics
if any of the three painting components is omitted, they will be painted in their default order after the specified components.
patternContentUnits - SVG: Scalable Vector Graphics
note: that this attribute has no effect if attribute viewbox is specified on the <pattern> element.
rotate - SVG: Scalable Vector Graphics
WebSVGAttributerotate
the rotate attribute specifies how the animated element rotates as it travels along a path specified in an <animatemotion> element.
spacing - SVG: Scalable Vector Graphics
WebSVGAttributespacing
exact this value indicates that the typographic characters should be rendered exactly according to the spacing rules as specified by the layout rules for text-on-a-path.
stop-color - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following element: <stop> usage notes value currentcolor | <color> <icccolor> default value black animatable yes currentcolor this keyword denotes the current fill color and can be specified in the same manner as within a <paint> specification for the fill and stroke attributes.
stroke-miterlimit - SVG: Scalable Vector Graphics
d="m1, 9 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3 m1,19 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3 m1,29 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3" /> </svg> when two line segments meet at a sharp angle and miter joins have been specified for stroke-linejoin, it is possible for the miter to extend far beyond the thickness of the line stroking the path.
transform-origin - SVG: Scalable Vector Graphics
usage notes values [ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?where <length-percentage> = <length> | <percentage> default value 50%, 50% animatable yes the transform-origin property may be specified using one, two, or three values, where each value represents an offset.
u1 - SVG: Scalable Vector Graphics
WebSVGAttributeu1
the total set of possible first glyphs in the kerning pair is the union of glyphs specified by the u1 and g1 attributes.
u2 - SVG: Scalable Vector Graphics
WebSVGAttributeu2
the total set of possible second glyphs in the kerning pair is the union of glyphs specified by the u2 and g2 attributes.
values - SVG: Scalable Vector Graphics
WebSVGAttributevalues
if this attribute is specified, any from, to, and by attribute values set on the element are ignored.
vector-effect - SVG: Scalable Vector Graphics
the default rendering behaviour is used which is to first fill the geometry of a shape with a specified paint, then stroke the outline with a specified paint.
version - SVG: Scalable Vector Graphics
WebSVGAttributeversion
while it is specified to accept any number, the only two valid choices are currently 1.0 and 1.1.
<feColorMatrix> - SVG: Scalable Vector Graphics
these specified amounts can be any real number, though the final r' will be clamped between 0 and 1.
<feComponentTransfer> - SVG: Scalable Vector Graphics
working draft specified that missing transfer function elements are treated like they were specified with their type attributes set to identity.
<feGaussianBlur> - SVG: Scalable Vector Graphics
the <fegaussianblur> svg filter primitive blurs the input image by the amount specified in stddeviation, which defines the bell-curve.
<feOffset> - SVG: Scalable Vector Graphics
WebSVGElementfeOffset
the input image as a whole is offset by the values specified in the dx and dy attributes.
<hatch> - SVG: Scalable Vector Graphics
WebSVGElementhatch
the <hatch> svg element is used to fill or stroke an object using one or more pre-defined paths that are repeated at fixed intervals in a specified direction to cover the areas to be painted.
<pattern> - SVG: Scalable Vector Graphics
WebSVGElementpattern
value type: userspaceonuse|objectboundingbox; default value: userspaceonuse; animatable: yes note: this attribute has no effect if a viewbox attribute is specified on the <pattern> element.
<symbol> - SVG: Scalable Vector Graphics
WebSVGElementsymbol
candidate recommendation allowed geometry properties to be specified on a symbol scalable vector graphics (svg) 1.1 (second edition)the definition of '<symbol>' in that specification.
<tref> - SVG: Scalable Vector Graphics
WebSVGElementtref
the textual content for a <text> svg element can be either character data directly embedded within the <text> element or the character data content of a referenced element, where the referencing is specified with a <tref> element.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
attribute deprecated in favor of child <title> implementation status unknown spaces in svg view fragments implementation status unknown pixel: and percent: spatial media fragments implementation status unknown linking to <view> elements does not cause implicit box transformation to show nearest ancestor <svg> element implementation status unknown unspecified svg view fragment parameters don't cause corresponding attributes to be reset to initial values implementation status unknown viewtarget attribute of <view> and corresponding svg view fragment parameter removed implementation status unknown fragment-only urls are always same-document implementation status unknown additional attributes on <a> implemented (bug...
Scripting - SVG: Scalable Vector Graphics
WebSVGScripting
this behaviour is specified by the w3c in the dom level 2 style specification.
Basic Transformations - SVG: Scalable Vector Graphics
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100"> <svg width="100" height="100" viewbox="0 0 50 50"> <rect width="50" height="50" /> </svg> </svg> the example above has basically the same effect as the one above, namely that the rect will be twice as large as specified.
SVG fonts - SVG: Scalable Vector Graphics
« previousnext » when svg was specified, support for web fonts was not widespread in browsers.
Same-origin policy - Web security
definition of an origin two urls have the same origin if the protocol, port (if specified), and host are the same for both.
Subresource Integrity - Web security
how browsers handle subresource integrity browsers handle sri by doing the following: when a browser encounters a <script> or <link> element with an integrity attribute, before executing the script or before applying any stylesheet specified by the <link> element, the browser must first compare the script or stylesheet to the expected hash given in the integrity value.
Using custom elements - Web Components
which attributes to notice change for is specified in a static get observedattributes method let's look at an example of these in use.
xml:base - XML: Extensible Markup Language
WebXMLxml:base
the base uri of an element is: the base uri specified by an xml:base attribute on the element, if one exists, otherwise the base uri of the element's parent element within the document entity or external entity, if one exists, otherwise the base uri of the document entity or external entity containing the element.
choose - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the choose function returns one of the specified objects based on a boolean parameter.
document - XPath
other specific conditions exist with specified behaviors.
namespace-uri - XPath
notes if the given node does not have a specified namespace, the returned string will be an empty string.
system-property - XPath
notes xsl:version, a number giving the version of xslt implemented by the processor; for xslt processors implementing the version of xslt specified by this document, this is the number 1.0 xsl:vendor, a string identifying the vendor of the xslt processor xsl:vendor-url, a string containing a url identifying the vendor of the xslt processor; typically this is the host page (home page) of the vendor's web site.
Index - XPath
WebXPathIndex
20 choose function, xpath, xslt the choose function returns one of the specified objects based on a boolean parameter.
<xsl:number> - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElementnumber
(the nested format can be specified with the format attribute, e.g.
<xsl:param> - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElementparam
optional attributes select uses an xpath expression to provide a default value if none is specified.
PI Parameters - XSLT: Extensible Stylesheet Language Transformations
passing them to specified <xsl:param>'s.
An Overview - XSLT: Extensible Stylesheet Language Transformations
locations on the tree are specified using xpath, another w3c recommendation.
XSLT: Extensible Stylesheet Language Transformations
WebXSLT
specifying parameters using processing instructions firefox allows stylesheet parameters to be specified when using the <?xml-stylesheet?> processing instruction.
Caching compiled WebAssembly modules - WebAssembly
note: the entire site's wasm cache (not just the given url) is versioned by the specified dbversion passed into the function.
WebAssembly Concepts - WebAssembly
keep secure — webassembly is specified to be run in a safe, sandboxed execution environment.
Understanding WebAssembly text format - WebAssembly
here we’ve specified 0, and a size of 2 (see above), so we can fill in two references at indexes 0 and 1.