Search completed in 1.07 seconds.
Patterns - SVG: Scalable Vector Graphics
« previousnext »
patterns
patterns are arguably one of the more confusing fill types to use in svg.
... « previousnext »
patterns
patterns are arguably one of the more confusing fill types to use in svg.
...width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <lineargradient id="gradient1"> <stop offset="5%" stop-color="white"/> <stop offset="95%" stop-color="blue"/> </lineargradient> <lineargradient id="gradient2" x1="0" x2="0" y1="0" y2="1"> <stop offset="5%" stop-color="red"/> <stop offset="95%" stop-color="orange"/> </lineargradient> <
pattern id="
pattern" x="0" y="0" width=".25" height=".25"> <rect x="0" y="0" width="50" height="50" fill="skyblue"/> <rect x="0" y="0" width="25" height="25" fill="url(#gradient2)"/> <circle cx="25" cy="25" r="20" fill="url(#gradient1)" fill-opacity="0.5"/> </
pattern> </defs> <rect fill="url(#
pattern)" stroke="black" width="200" height="200"/> </svg> screenshotlive sample ins...
...And 41 more matches
CanvasRenderingContext2D.createPattern() - Web APIs
the canvasrenderingcontext2d.create
pattern() method of the canvas 2d api creates a
pattern using the specified image and repetition.
... the canvasrenderingcontext2d.create
pattern() method of the canvas 2d api creates a
pattern using the specified image and repetition.
... the canvasrenderingcontext2d.create
pattern() method of the canvas 2d api creates a
pattern using the specified image and repetition.
...And 29 more matches
HTML attribute: pattern - HTML: Hypertext Markup Language
the
pattern attribute specifies a regular expression the form control's value should match.
... the
pattern attribute specifies a regular expression the form control's value should match.
... the
pattern attribute specifies a regular expression the form control's value should match.
...And 28 more matches
util/match-pattern - Archive of obsolete content
test strings containing urls against simple
patterns.
... test strings containing urls against simple
patterns.
... test strings containing urls against simple
patterns.
...And 25 more matches
SVGPatternElement - Web APIs
the svg
patternelement interface corresponds to the <
pattern> element.
...onaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgelement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#d4dde4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#d4dde4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#d4dde4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svg
patternelement" target="_top"><rect x="311" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svg
patternelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this inte...
...396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svg
patternelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement and implements the ones from svgfittoviewbox and svgurireference.
...And 21 more matches
<pattern> - SVG: Scalable Vector Graphics
the <
pattern> element defines a graphics object which can be redrawn at repeated x- and y-coordinate intervals ("tiled") to cover an area.
... the <
pattern> element defines a graphics object which can be redrawn at repeated x- and y-coordinate intervals ("tiled") to cover an area.
... the <
pattern> element defines a graphics object which can be redrawn at repeated x- and y-coordinate intervals ("tiled") to cover an area.
...And 19 more matches
patternContentUnits - SVG: Scalable Vector Graphics
the
patterncontentunits attribute indicates which coordinate system to use for the contents of the <
pattern> element.
... the
patterncontentunits attribute indicates which coordinate system to use for the contents of the <
pattern> element.
... the
patterncontentunits attribute indicates which coordinate system to use for the contents of the <
pattern> element.
...And 17 more matches
ValidityState.patternMismatch - Web APIs
the read-only
patternmismatch property of a validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's
pattern attribute.
... the read-only
patternmismatch property of a validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's
pattern attribute.
... the read-only
patternmismatch property of a validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's
pattern attribute.
...And 15 more matches
CanvasPattern.setTransform() - Web APIs
the canvas
pattern.settransform() method uses an svgmatrix or dommatrix object as the
pattern's transformation matrix and invokes it on the
pattern.
... the canvas
pattern.settransform() method uses an svgmatrix or dommatrix object as the
pattern's transformation matrix and invokes it on the
pattern.
... the canvas
pattern.settransform() method uses an svgmatrix or dommatrix object as the
pattern's transformation matrix and invokes it on the
pattern.
...And 9 more matches
patternUnits - SVG: Scalable Vector Graphics
the
patternunits attribute indicates which coordinate system to use for the geometry properties of the <
pattern> element.
... the
patternunits attribute indicates which coordinate system to use for the geometry properties of the <
pattern> element.
... the
patternunits attribute indicates which coordinate system to use for the geometry properties of the <
pattern> element.
...And 7 more matches
patternTransform - SVG: Scalable Vector Graphics
the
patterntransform attribute defines a list of transform definitions that are applied to a
pattern tile.
... the
patterntransform attribute defines a list of transform definitions that are applied to a
pattern tile.
... the
patterntransform attribute defines a list of transform definitions that are applied to a
pattern tile.
...And 5 more matches
Accessibility and Spacial Patterns - Accessibility
channel." distance between stripes photosensitive seizures may be caused by static images as well as animation.
...ds of images that create problems, and stripes have been studied most closely.
...radial, curved or straight, and may be formed by rows of repeating elements.
...And 3 more matches
CanvasPattern - Web APIs
the canvas
pattern interface represents an opaque object describing a
pattern, based on an image, a canvas, or a video, created by the canvasrenderingcontext2d.create
pattern() method.
... the canvas
pattern interface represents an opaque object describing a
pattern, based on an image, a canvas, or a video, created by the canvasrenderingcontext2d.create
pattern() method.
... opaque object describing a
pattern, based on an image, a canvas, or a video, created by the canvasrenderingcontext2d.create
pattern() method.
...rn() method.
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
because webrtc doesn't mandate a specific transport mechanism for signaling during the negotiation of a new peer connection, it's highly flexible.
...ployments of webrtc-capable browsers, it was realized that parts of the negotiation process were more complicated than they needed to be for typical use cases.
... ways in which negotiation have improved since the early days of webrtc.
...tion.
Parser API
position; end: position; } each position object consists of a line number (1-indexed) and a column number (0-indexed): interface position { line: uint32 >= 1; column: uint32 >= 0; } programs interface program <: node { type: "program"; body: [ statement ]; } a complete program source tree.
...nt { } any declaration node.
...tor: boolean; expression: boolean; } a function declaration.
...And 45 more matches
Index - Web APIs
ent.
... reference canvasimagesource provides a mechanism for other interfaces to be used as image sources for some methods of the canvasdrawimage and canvasfillstrokestyles interfaces.
... other interfaces to be used as image sources for some methods of the canvasdrawimage and canvasfillstrokestyles interfaces.
...And 26 more matches
Applying styles and colors - Web APIs
« previousnext » in the chapter about drawing shapes, we used only the default line and fill styles.
...s to your drawings.
...we have only seen methods of the drawing context.
...And 21 more matches
Regular expressions - JavaScript
« previousnext » regular expressions are
patterns used to match character combinations in strings.
... « previousnext » regular expressions are
patterns used to match character combinations in strings.
...essions are also objects.
...And 21 more matches
<input type="tel"> - HTML: Hypertext Markup Language
ific input type for telephone numbers also makes adding custom validation and handling of phone numbers more convenient.
..., telephone number inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum length, in utf-16 characters, to accept as a valid input minlength the minimum length that is considered valid for the field's contents
pattern a regular expression the entered value must match to pass constraint validation placeholder an example value to display inside the field when it has no value readonly a boolean attribute which, if present, indicates that the field's contents should not be user-editable size the number of characters wide the input field should be onscreen list the val...
...e telephone number field.
...And 20 more matches
Client-side form validation - Learn web development
but to recap: required: specifies whether a form field needs to be filled in before the form can be submitted.
...eld needs to be filled in before the form can be submitted.
... the element matches the :invalid css pseudo-class, and sometimes other ui pseudo-classes (e.g., :out-of-range) depending on the error, which lets you apply a specific style to invalid elements.
...And 19 more matches
<input type="url"> - HTML: Hypertext Markup Language
omatically applied as appropriate to visually denote whether the current value of the field is a valid url or not.
...heir type, url inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid
pattern a regular expression the input's contents must match in order to be valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be spellcheck contr...
...egative integer value smaller than or equal to the value specified by maxlength.
...And 19 more matches
SVG documentation index - SVG: Scalable Vector Graphics
lresourcesrequired attribute specifies whether referenced resources that are not part of the current document are required for proper rendering of the given container or graphics element.
...ferent meanings.
...ong which a referenced element is animated.
...And 19 more matches
<input type="email"> - HTML: Hypertext Markup Language
lly denote whether the current value of the field is a valid e-mail address or not.
... list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid multiple whether or not to allow multiple, comma-separated, e-mail addresses to be entered
pattern a regular expression the input's contents must match in order to be valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be list the values of t...
...pecify the required attribute, the user must enter a valid e-mail address for the field to be considered valid.
...And 18 more matches
page-mod - Archive of obsolete content
run scripts in the context of web pages whose url matches a given
pattern.
... run scripts in the context of web pages whose url matches a given
pattern.
...ntent scripts by exchanging messages.
...And 17 more matches
WebRequest.jsm
event in question, passing it the listener to remove.
...the filter argument is the second argument to addlistener().
...cular event.
...And 17 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
t, url maximum length (number of characters) of value min numeric types minimum value minlength password, search, tel, text, url minimum length (number of characters) of value multiple email, file boolean.
...f characters) of value min numeric types minimum value minlength password, search, tel, text, url minimum length (number of characters) of value multiple email, file boolean.
....guest; let hatsize = form.elements["hat-size"]; when this code has run, guestname will be the htmlinputelement for the guest field, and hatsize the object for the hat-size field.
...And 16 more matches
<input type="password"> - HTML: Hypertext Markup Language
ote: any forms involving sensitive information like passwords (e.g.
...ngetext(), and setselectionrange() value the value attribute contains a domstring whose value is the current contents of the text editing control being used to enter the password.
...f the value.
...And 13 more matches
nsIZipReader
zipwriter.
... in the user interface, the character matching is only fine on utf-8 zip archives.
... the entry is a directory, the directory will be extracted non-recursively.
...And 12 more matches
<input type="search"> - HTML: Hypertext Markup Language
tive example is stored in a github repository.
..., search field inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid
pattern a regular expression the input's contents must match in order to be valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be spellcheck contr...
...its) the user can enter into the search field.
...And 10 more matches
Tutorials
a recap of the javascript programming language aimed at intermediate-level developers.
...termediate-level developers.
...l javascript guide a comprehensive, regularly updated guide to javascript for all levels of learning from beginner to advanced.
...And 10 more matches
context-menu - Archive of obsolete content
selectioncontext() this context occurs when the menu is invoked on a page in which the user has made a selection.
...er has made a selection.
...tion.
...And 9 more matches
Web accessibility for seizures and physical reactions - Accessibility
tions.
...al
patterns, especially stripes, can also cause physical reactions even though they are not animated.
...disorders is documented in such articles as “gamma oscillations and photosensitive epilepsy”, where it is noted “certain visual images, even in the absence of motion or flicker, can trigger seizures in patients with photosensitive epilepsy” the epilepsy foundation, in its article, "shedding light on photosensitivity, one of epilepsy's most complex conditions" talks about static images and
patterns.
...And 9 more matches
<input type="text"> - HTML: Hypertext Markup Language
ractive example is stored in a github repository.
...eir type, text inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid
pattern a regular expression the input's contents must match in order to be valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be spellcheck contr...
...gative integer value smaller than or equal to the value specified by maxlength.
...And 9 more matches
Typical use cases of Flexbox - CSS: Cascading Style Sheets
s into the overall picture of css layout.
...bs that might be better done by grid layout, as a fallback for grid, and also in order to get alignment capabilities.
...and by using justify-content: space-between make equal amounts of space between the items.
...And 8 more matches
String.prototype.replace() - JavaScript
the replace() method returns a new string with some or all matches of a
pattern replaced by a replacement.
... the replace() method returns a new string with some or all matches of a
pattern replaced by a replacement.
... the replace() method returns a new string with some or all matches of a
pattern replaced by a replacement.
...And 8 more matches
RegExp() constructor - JavaScript
the regexp constructor creates a regular expression object for matching text with a
pattern.
...r an introduction to regular expressions, read the regular expressions chapter in the javascript guide.
...lar expressions, read the regular expressions chapter in the javascript guide.
...And 7 more matches
Index - Archive of obsolete content
-db add-on sdk exposes the indexeddb api to add-ons.
... add a toolbar to the firefox user interface.
... 124 util/array helper functions for working with arrays.
...And 6 more matches
Overview of events and handlers - Developer guides
this overview of events and event handling explains the code design
pattern used to react to incidents occurring when a browser accesses a web page, and it summarizes the types of such incidents modern web browsers can handle.
...the innovation of the dynamic approach allows for a page to be partially rendered even when the browser has not finished retrieving all resources; this approach also allows for event driven actions, which javascript leverages.
...y rendered even when the browser has not finished retrieving all resources; this approach also allows for event driven actions, which javascript leverages.
...And 6 more matches
Proxy Auto-Configuration (PAC) file - HTTP
"www.google.com" , "www.mozilla.org") // false (domain name mismatch) localhostordomainis("home.mozilla.org", "www.mozilla.org") // false (hostname mismatch) isresolvable() syntax isresolvable(host) parameters host is the hostname from the url.
...ismatch) isresolvable() syntax isresolvable(host) parameters host is the hostname from the url.
...) syntax isresolvable(host) parameters host is the hostname from the url.
...And 6 more matches
String.prototype.replaceAll() - JavaScript
as of august 2020 the replaceall() method is supported by firefox but not by chrome.
... as of august 2020 the replaceall() method is supported by firefox but not by chrome.
...u'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 5 more matches
height - SVG: Scalable Vector Graphics
ment in the user coordinate system.
... yes note: starting with svg2, height is a geometry property meaning this attribute can also be used as a css property for images.
...te: starting with svg2, height is a geometry property meaning this attribute can also be used as a css property for images.
...And 5 more matches
width - SVG: Scalable Vector Graphics
ment in the user coordinate system.
... yes note: starting with svg2, width is a geometry property meaning this attribute can also be used as a css property for images.
...te: starting with svg2, width is a geometry property meaning this attribute can also be used as a css property for images.
...And 5 more matches
x - SVG: Scalable Vector Graphics
rmatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fefunca>, <fefuncb>, <fefuncg>, <fefuncr>, <fegaussianblur>, <feimage>, <femerge>, <femergenode>, <femorphology>, <feoffset>, <fepointlight>, <fespecularlighting>, <fespotlight>, <fetile>, <feturbulence>, <filter>, <foreignobject>, <glyphref>, <image>, <mask>, <
pattern>, <rect>, <svg>, <text>, <tref>, <tspan>, and <use> html,body,svg { height:100% } <svg viewbox="0 0 300 100" xmlns="http://www.w3.org/2000/svg"> <rect x="20" y="20" width="60" height="60" /> <rect x="120" y="20" width="60" height="60" /> <rect x="220" y="20" width="60" height="60" /> </svg> altglyph warning: as of svg2 <altglyph> is deprecated and shouldn't be used.
...note: starting with svg2, x is a geometry property meaning this attribute can also be used as a css property for images.
... with svg2, x is a geometry property meaning this attribute can also be used as a css property for images.
...And 5 more matches
y - SVG: Scalable Vector Graphics
rmatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fefunca>, <fefuncb>, <fefuncg>, <fefuncr>, <fegaussianblur>, <feimage>, <femerge>, <femergenode>, <femorphology>, <feoffset>, <fepointlight>, <fespecularlighting>, <fespotlight>, <fetile>, <feturbulence>, <filter>, <foreignobject>, <glyphref>, <image>, <mask>, <
pattern>, <rect>, <svg>, <text>, <tref>, <tspan>, and <use> html,body,svg { height:100% } <svg viewbox="0 0 100 300" xmlns="http://www.w3.org/2000/svg"> <rect y="20" x="20" width="60" height="60" /> <rect y="120" x="20" width="60" height="60" /> <rect y="220" x="20" width="60" height="60" /> </svg> altglyph warning: as of svg2 <altglyph> is deprecated and shouldn't be used.
... note: starting with svg2, y is a geometry property meaning this attribute can also be used as a css property for images.
...g with svg2, y is a geometry property meaning this attribute can also be used as a css property for images.
...And 5 more matches
Modifying Web Pages Based on URL - Archive of obsolete content
to follow this tutorial you'll need to have learned the basics of jpm.
... to follow this tutorial you'll need to have learned the basics of jpm.
...match a particular
pattern (for example, "http://example.org/") as they are loaded, use page-mod module.
...And 4 more matches
Organizing your CSS - Learn web development
than having to work out your own personal methodology from scratch.
...ology from scratch.
...ct oriented css (oocss), an approach made popular by the work of nicole sullivan.
...And 4 more matches
Limitations of chrome scripts
this page describes
patterns that used to work in the chrome process that will no longer work in multiprocess firefox.
...ns that used to work in the chrome process that will no longer work in multiprocess firefox.
...n multiprocess firefox.
...And 4 more matches
Mozilla internal string guide
sed across modules, use nsastring references to pass strings.
...size need.
... could accommodate the new logical length.
...And 4 more matches
CanvasRenderingContext2D.setLineDash() - Web APIs
the setlinedash() method of the canvas 2d api's canvasrenderingcontext2d interface sets the line dash
pattern used when stroking lines.
... the setlinedash() method of the canvas 2d api's canvasrenderingcontext2d interface sets the line dash
pattern used when stroking lines.
...e a solid line.
...And 4 more matches
Navigator.vibrate() - Web APIs
the navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
... the navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
...ethod pulses the vibration hardware on the device, if such hardware exists.
...And 4 more matches
RegExp.prototype[@@replace]() - JavaScript
the [@@replace]() method replaces some or all matches of a this
pattern in a string by a replacement, and returns the result of the replacement as a new string.
...ored in a github repository.
...lacement
patterns are supported; see the specifying a string as a parameter section in string.prototype.replace() page.
...And 4 more matches
RegExp - JavaScript
the regexp object is used for matching text with a
pattern.
...lar expression will remain constant.
..., if you use literal notation to construct a regular expression used in a loop, the regular expression won't be recompiled on each iteration.
...And 4 more matches
Web video codec guide - Web media technologies
an internal pixel format, or otherwise represents the image using a means other than simple pixels, the format of the original image doesn't make any difference.
...are placed into the video file.
... frames are full frames, which are used to repair any damage or artifact residue that's currently visible.
...And 4 more matches
href - SVG: Scalable Vector Graphics
link to a resource as a reference url.
...lement; to be valid, the reference must be to a different <lineargradient> or <radialgradient> element.
...valid, the reference must be to a different <lineargradient> or <radialgradient> element.
...And 4 more matches
page-worker - Archive of obsolete content
allow object an object with keys to configure the permissions on the page worker.
...ect with keys to configure the permissions on the page worker.
... page are allowed to run.
...And 3 more matches
Third-party APIs - Learn web development
elayer() method), and the default zoom level.
...in your application — the developer of the application must apply to get a key, and then include it in their code to be allowed access to the api's functionality.
...pi allows you to retrieve new york times news story information and display it on your site.
...And 3 more matches
Server-side web frameworks - Learn web development
request) # perform operations using information from the request.
...ou can change the url used to deliver a particular feature without having to change the underlying code.
...iver a particular feature without having to change the underlying code.
...And 3 more matches
Componentizing our Svelte app - Learn web development
uld work (try checking/unchecking a couple, and then observing that the filters still work as expected), but our "x out of y items completed" status heading will no longer update accordingly.
...later on.
...tween components: props-down, events-up
pattern the bind directive is pretty straightforward and allows you to share data between a parent and child component with minimal fuss.
...And 3 more matches
Creating JavaScript callbacks in components
callback
patterns in idl xpcom components use idl to create interfaces.
... callback
patterns in idl xpcom components use idl to create interfaces.
... callback
patterns in idl xpcom components use idl to create interfaces.
...And 3 more matches
An Overview of XPCOM
posed is a well-defined list of callable methods (i.e., the interface).
...fies a given set of interfaces that it wants implemented, and any number of different cids may step in and fill that request.
... difference between a contract id and a cid is what makes it possible to override components.
...And 3 more matches
CanvasRenderingContext2D - Web APIs
1.0.
...renderingcontext2d.linejoin defines the type of corners where two lines meet.
...lues: ltr, rtl, inherit (default).
...And 3 more matches
xlink:href - SVG: Scalable Vector Graphics
of that link depends on the context of each element using it.
...tops due to its own xlink:href attribute, then the current element can inherit those attributes or gradient stops.
...s own xlink:href attribute, then the current element can inherit those attributes or gradient stops.
...And 3 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
age used to specified objects' interfaces apart from any specific programming language.
...age.
...chanics a mime type (now properly called "media type", but also sometimes "content type") is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png).
...And 2 more matches
MVC - MDN Web Docs Glossary: Definitions of Web-related terms
mvc (model-view-controller) is a
pattern in software design commonly used to implement user interfaces, data, and controlling logic.
... mvc (model-view-controller) is a
pattern in software design commonly used to implement user interfaces, data, and controlling logic.
...terfaces, data, and controlling logic.
...And 2 more matches
nsAutoRefTraits
se(t*) static method and possibly the addref(t*) static method need to be added.
...ddref(t*) static method need to be added.
...) is necessary for nscountedref<t> but not for nsautoref<t>.
...And 2 more matches
Reference Manual
about "in/out" parameters?
... // initialize member |nscomptr|s in the member initialization clause of your // constructor...
...truction form.
...And 2 more matches
HTMLInputElement - Web APIs
s min attribute, containing the minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.
... or date-time) value for this item, which must not be greater than its maximum (max attribute) value.
...s / sets the element's minlength attribute, containing the minimum number of characters (in unicode code points) that the value can have.
...And 2 more matches
Vibration API - Web APIs
most modern mobile devices include vibration hardware, which lets software code provide physical feedback to the user by causing the device to shake.
...ost modern mobile devices include vibration hardware, which lets software code provide physical feedback to the user by causing the device to shake.
...ice to shake.
...And 2 more matches
Cookbook template - CSS: Cascading Style Sheets
note: this is a template page for a css cookbook page.
... note: this is a template page for a css cookbook page.
...ments what does this
pattern need to include, or what problems does it need to solve?
...And 2 more matches
Recipe: Media objects - CSS: Cascading Style Sheets
the media object is a
pattern we see all over the web.
... the media object is a
pattern we see all over the web.
...h a maximum size of 200 pixels, when we have a small image such as the icon, the track only gets as large as the size of that image — the max-content size.
...And 2 more matches
<input type="month"> - HTML: Hypertext Markup Language
normalized to the format yyyy-mm.
... this is an issue because of the number of different ways in which people write dates.
...f the browser falls back to treating it like a text input, the
pattern will be used.
...And 2 more matches
HTML documentation index - HTML: Hypertext Markup Language
as it is impossible to meet both criteria.
... attribute, attributes, constraint validation the boolean multiple attribute, if set, means the form control accepts one or more values.
...r the email and file input types and the <select>, the manner by which the user opts for multiple values depends on the form control.
...And 2 more matches
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
//text/xml; charset="utf-8" // send to get headers first?
...type (as seems to be the case); can some other tool be uesd in ff (or ie) to detect encoding of local file?
...$/; 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 encname = '([a-za-z][a-za-z0-9._-]*)'; var
pattern = new regexp('^<\\?xml\\s+.*encoding\\s*=\\s*([\'"])'+encname+'\\1.*\\?>'); // check document if not?
...j++) { xincludeparent.insertbefore(responsenodes[j], xinclude); } xincludeparent.removechild(xinclude); } else if (responsetype === 'responsetext') { if (encname) { var encodingtype = response.match(
pattern); if (encodingtype) { encodingtype = encodingtype[2]; } else { encodingtype = 'utf-8'; } // need to make a whole new request apparently since cannot conv...
SourceMap.jsm
its children.
...: the traversal function.
...al function.
...ype.join except for sourcenodes.
Running Automated JavaScript Tests
lgrind.
... all the options.
...he jstests test suite also includes some tests from web-platform-tests.
...unning jstest in a browser jstests also runs on browser, with the following command: ./mach jstestbrowser to run specific test, you can use --filter=
pattern command-line argument, where
pattern is a regexp
pattern that is tested against file:///{path_to_obj_dir}/dist/test-stage/jsreftest/tests/jsreftest.html?test={relative_path_to_test_from_js/src/tests} string: ./mach jstestbrowser --filter=
pattern running jstests on treeherder when viewing treeherder after a push to the mozilla repositories, jstests run in the browser are shown as r(j) meaning "javascript reftests".
Index
ng mozilla, extensions, mozilla, needsupdate, obsolete, xpcom, xpcom:language bindings, xpconnect programmers writing and reviewing javascript code in mozilla should understand how code using xpcom in javascript can leak so that they can avoid leaks.
...nt, xpcom in mozilla code, a stream is an object which represents access to a sequence of characters.
... 796 nsinavhistoryqueryresultnode developing mozilla, extensions, interfaces, places, xpcom, xpcom api reference returns the queries that build the node's children; only valid for result_type_query nodes.
..., xpcom, xpcom api reference places results use a model-view-controller (mvc) design
pattern.
CanvasRenderingContext2D.fillStyle - Web APIs
the canvasrenderingcontext2d.fillstyle property of the canvas 2d api specifies the color, gradient, or
pattern to use inside shapes.
... the canvasrenderingcontext2d.fillstyle property of the canvas 2d api specifies the color, gradient, or
pattern to use inside shapes.
...e color, gradient, or
pattern to use inside shapes.
..., or
pattern to use inside shapes.
CanvasRenderingContext2D.strokeStyle - Web APIs
the canvasrenderingcontext2d.strokestyle property of the canvas 2d api specifies the color, gradient, or
pattern to use for the strokes (outlines) around shapes.
... the canvasrenderingcontext2d.strokestyle property of the canvas 2d api specifies the color, gradient, or
pattern to use for the strokes (outlines) around shapes.
...rn to use for the strokes (outlines) around shapes.
... strokes (outlines) around shapes.
Constraint validation API - Web APIs
the constraint validation api enables checking values that users have entered into form controls, before submitting the values to the server.
...validity state is set to invalid.
... the following form: <form> <label for="name">enter username (upper and lowercase letters): </label> <input type="text" name="name" id="name" required
pattern="[a-za-z]+"> <button>submit</button> </form> the basic html form validation features will cause this to produce a default error message if you try to submit the form with either no valid filled in, or a value that does not match the
pattern.
...ample renders like so: in brief: we check the valid state of the input element every time its value is changed by running the checkvalidity() method via the input event handler.
Node - Web APIs
he user's console: "\n\t", "foo", "\n\t", "bar", "\n\t", "baz" note: whitespace forms part of a text node, meaning indentation and newlines form separate text between the element nodes.
...eachnode() function: searching for text on a web-page.
...a wrapper function named grep to do the searching: function grep(parentnode,
pattern) { const matches = [] let endscan = false eachnode(parentnode, function(node){ if (endscan) { return false } // ignore anything which isn't a text node if (node.nodetype !== node.text_node) { return } if (typeof
pattern === "string") { if (-1 !== node.textcontent.indexof(
pattern)) { matches.push(node) } } else if (
pattern.test(node.textcontent)) { if (!
pattern.global) { endscan = true matches = node } else { matches.push(node) } } }) return matches } for example, to find text nodes that contain typos: const typos = ["teh", "adn", "btu", "adress", "youre", "msitakes"] const
pattern = new regexp("\\b(...
...e.textcontent)) { if (!
pattern.global) { endscan = true matches = node } else { matches.push(node) } } }) return matches } for example, to find text nodes that contain typos: const typos = ["teh", "adn", "btu", "adress", "youre", "msitakes"] const
pattern = new regexp("\\b(" + typos.join("|") + ")\\b", "gi") const mistakes = grep(document.body,
pattern) console.log(mistakes) specifications specification status comment domthe definition of 'node' in that specification.
ARIA: feed role - Accessibility
technology users can read articles, jump forward and backward by article, and reliably trigger new articles to load while in reading mode.
...yboard commands for moving focus among articles so that keyboard users can navigate through your feed.
...nd a description with an aria-describedby, suggesting to screen readers which elements to speak after the label when navigating by article.
...e been loaded or the total number in the feed, depending on which value is more helpful to users.
str:split() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes str:split() splits a string using a
pattern string to determine where the splits should occur, returning a node-set containing the resulting strings.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes str:split() splits a string using a
pattern string to determine where the splits should occur, returning a node-set containing the resulting strings.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes str:split() splits a string using a
pattern string to determine where the splits should occur, returning a node-set containing the resulting strings.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes str:split() splits a string using a
pattern string to determine where the splits should occur, returning a node-set containing the resulting strings.
Constraint validation - Developer guides
om constraint validation or have a sanitization algorithm transforming incorrect values to a correct default.
... following attributes are used to describe basic constraints: attribute input types supporting the attribute possible values constraint description associated violation
pattern text, search, url, tel, email, password a javascript regular expression (compiled with the ecmascript 5 global, ignorecase, and multiline flags disabled) the value must match the
pattern.
...ttributes are used to describe basic constraints: attribute input types supporting the attribute possible values constraint description associated violation
pattern text, search, url, tel, email, password a javascript regular expression (compiled with the ecmascript 5 global, ignorecase, and multiline flags disabled) the value must match the
pattern.
... <option value="ch">switzerland</option> <option value="fr">france</option> <option value="de">germany</option> <option value="nl">the netherlands</option> </select> <input type="submit" value="validate"> </form> this displays the following form: first, we write a function checking the constraint itself: function checkzip() { // for each country, defines the
pattern that the zip has to follow var constraints = { ch : [ '^(ch-)?\\d{4}$', "switzerland zips must have exactly 4 digits: e.g.
<input type="datetime-local"> - HTML: Hypertext Markup Language
format yyyy-mm-ddthh:mm.
...e-local input doesn't use it, the text input fallback will.
...n="[0-9]{4}-[0-9]{2}-[0-9]{2}t[0-9]{2}:[0-9]{2}" required> <span class="validity"></span> </div> <div> <input type="submit" value="book party!"> </div> <input type="hidden" id="timezone" name="timezone" value="-08:00"> </form> if you try submitting it, you'll see that the browser now displays an error message (and highlights the input as invalid) if your entry doesn't match the
pattern nnnn-nn-nntnn:nn, where n is a number from 0 to 9.
..."timezone" value="-08:00"> </form> if you try submitting it, you'll see that the browser now displays an error message (and highlights the input as invalid) if your entry doesn't match the
pattern nnnn-nn-nntnn:nn, where n is a number from 0 to 9.
<input type="time"> - HTML: Hypertext Markup Language
ond problem is the more serious; as mentioned previously, time inputs' values are always normalized to the format hh:mm or hh:mm:ss.
...ur time input.
...e" type="time" name="appt-time" min="12:00" max="18:00" required
pattern="[0-9]{2}:[0-9]{2}"> <span class="validity"></span> </div> <div> <input type="submit" value="submit form"> </div> </form> if you try submitting it, you'll see that non-supporting browsers now display an error message (and highlight the input as invalid) if your entry doesn't match the
pattern nn:nn, where n is a number from 0 to 9.
... <div> <input type="submit" value="submit form"> </div> </form> if you try submitting it, you'll see that non-supporting browsers now display an error message (and highlight the input as invalid) if your entry doesn't match the
pattern nn:nn, where n is a number from 0 to 9.
SyntaxError: invalid regular expression flag "x" - JavaScript
in regular expression literal, are not one of g, i, m, s, u, or y.
... literal, which consists of a
pattern enclosed between slashes, the flags are defined after the second slash.
...osed between slashes, the flags are defined after the second slash.
...ipt.
throw - JavaScript
n input string for a u.s.
...ent throws an exception by creating an object of type zipcodeformatexception.
... of type zipcodeformatexception.
... 12345 * 12345-6789 * 123456789 * 12345 6789 * * if the argument passed to the zipcode constructor does not * conform to one of these
patterns, an exception is thrown.
Progressive web apps (PWAs)
progressive web apps are web apps that use emerging web browser apis and features along with traditional progressive enhancement strategy to bring a native app-like user experience to cross-platform web applications.
... progressive web apps are web apps that use emerging web browser apis and features along with traditional progressive enhancement strategy to bring a native app-like user experience to cross-platform web applications.
...kpwa application, why it is built that way, and what benefits it brings.pwa developer guidein the articles listed here, you'll find guides about every aspect of development specific to the greation of progressive web applications (pwas).structural overview of progressive web appsin this structural overview, we'll look at the features that make up a standard web application, as well as some design
patterns you can follow when building your pwa.
... showing how and when to use web storage, indexeddb, and service workers.
requiredFeatures - SVG: Scalable Vector Graphics
t whether to render the element or not.
...svg11/feature#shape http://www.w3.org/tr/svg11/feature#text http://www.w3.org/tr/svg11/feature#paintattribute http://www.w3.org/tr/svg11/feature#opacityattribute http://www.w3.org/tr/svg11/feature#graphicsattribute http://www.w3.org/tr/svg11/feature#marker http://www.w3.org/tr/svg11/feature#colorprofile http://www.w3.org/tr/svg11/feature#gradient http://www.w3.org/tr/svg11/feature#
pattern http://www.w3.org/tr/svg11/feature#clip http://www.w3.org/tr/svg11/feature#mask http://www.w3.org/tr/svg11/feature#filter http://www.w3.org/tr/svg11/feature#xlinkattribute http://www.w3.org/tr/svg11/feature#font http://www.w3.org/tr/svg11/feature#extensibility http://www.w3.org/tr/svg11/feature#svgdom-static the browser supports all of the dom interfaces and methods that corre...
... the display and visibility attributes http://www.w3.org/tr/svg11/feature#marker the browser supports the <marker> element http://www.w3.org/tr/svg11/feature#colorprofile the browser supports the <color-profile> element http://www.w3.org/tr/svg11/feature#gradient the browser supports the <lineargradient>, <radialgradient> and <stop> elements http://www.w3.org/tr/svg11/feature#
pattern the browser supports the <
pattern> element http://www.w3.org/tr/svg11/feature#clip the browser supports the <clippath> element and the clip-path, clip-rule attributes http://www.w3.org/tr/svg11/feature#basicclip the browser supports the <clippath> element and the clip-path attribute http://www.w3.org/tr/svg11/feature#mask the browser supports the <mask> element http://www.
...lorprofile</text> <!-- testing : http://www.w3.org/tr/svg11/feature#gradient --> <rect class="ko" x="10" y="660" height="25" width="430" /> <rect class="ok" x="10" y="660" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#gradient" /> <text x="20" y="677">http://www.w3.org/tr/svg11/feature#gradient</text> <!-- testing : http://www.w3.org/tr/svg11/feature#
pattern --> <rect class="ko" x="10" y="685" height="25" width="430" /> <rect class="ok" x="10" y="685" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#
pattern" /> <text x="20" y="702">http://www.w3.org/tr/svg11/feature#
pattern</text> <!-- testing : http://www.w3.org/tr/svg11/feature#clip --> <rect class="ko" x="10" y="710" height="25" width="430" /> <rect class...
viewBox - SVG: Scalable Vector Graphics
50% is resolve to 5 which means the center of the circle is in the bottom/right corner of the viewport.
...s for width or height lower or equal to 0 disable rendering of the element.
... height lower or equal to 0 disable rendering of the element.
... are using this attribute: <marker>, <
pattern>, <svg>, <symbol>, and <view>.
Fills and Strokes - SVG: Scalable Vector Graphics
as its argument.
...ber specifies a distance for the filled area, and the second a distance for the unfilled area.
...nd path fills 5 pixel units, with 5 blank units until the next dash of 5 units.
...miters; and stroke-dashoffset, which specifies where to start a dasharray on a line.
HTML forms in legacy browsers - Learn web development
s on older android phones or iphones, the stock browsers that don't update are also legacy browsers.
...nt forms that are "nicer" or "with advanced functionality", but building efficient html forms is not a question of design or technology.
...; /* restyle the search input */ } theappearance property can be used to display an element using platform-native styling, or, as is done with the value of none, remove default platform-native based styling.
Index - Learn web development
r you've understood our html: a good basis for accessibility article.
...nd to work with older css as well.
... regex client-side form validation sometimes requires javascript if you want to customize styling and error messages, but it always requires you to think carefully about the user.
Client-side storage - Learn web development
on't).
...e.getattribute('data-note-id')) — recall that the id of the record was saved in a data-note-id attribute on the <li> when it was first displayed.
... // only run the next code when both promises have fulfilled promise.all([mp4blob, webmblob]).then(function(values) { // display the video fetched from the network with displayvideo() displayvideo(values[0], values[1], video.name); // store it in the idb using storevideo() storevideo(values[0], values[1], video.name); }); let's look at storevideo() first.
Getting started with React - Learn web development
opers often set up such tooling with a build step.
...me="app-link" href="https://reactjs.org" target="_blank" rel="noopener noreferrer" > learn react </a> </header> </div> ); } export default app; the app.js file consists of three main parts: some import statements at the top, the app component in the middle, and an export statement at the bottom.
...link" href="https://reactjs.org" target="_blank" rel="noopener noreferrer" > learn react </a> </header> </div> ); } the app function returns a jsx expression.
Leak-hunting strategies and tips
phs that don't entrain other objects.
...llocations mac, linux build with --enable-valgrind and some other options lsan all allocations mac, linux any build apple tools ?
...lsan all allocations mac, linux any build apple tools ?
Redis Tips
e that you'll seldom feel you need to consult it.
...h publishes a message to a channel.
...er client: redis2> publish log.bacon yes publish log.bacon yes (integer) 1 see message received in first client: redis1> 1) "pmessage" 2) "log.*" 3) "log.bacon" 4) "yes" pubsub is useful for things like: chat programs message passing among application components log routing from applications in multiple languages it's good stuff.
Index
ates and bloats the code, and it requires more testing.
...wall with the compose window.
...rms match.
Mozilla
cribes how to package a hunspell spell check dictionary as a firefox add-on, or how to update your existing add-on, so that it can be installed, uninstalled and updated without a restart.
...lled, uninstalled and updated without a restart.
...f code is the observer (or listener)
pattern.
Waterfall - Firefox Developer Tools
nt to the main thread.
... is easy to correlate from one to the other.
...rkers are displayed using a button in the toolbar: waterfall
patterns exactly what you'll see in the waterfall is very dependent on the kind of thing your site is doing: javascript-heavy sites will have a lot of orange, while visually dynamic sites will have a lot of purple and green.
Using IndexedDB - Web APIs
h using the asynchronous api of indexeddb.
...onous api of indexeddb.
...and, so it's event.target.result).
NDEFReader.scan() - Web APIs
the scan() method of ndefreader interface reads ndef records from compatible nfc devices, e.g., ndef nfc tags.
... the scan() method of ndefreader interface reads ndef records from compatible nfc devices, e.g., ndef nfc tags.
... the scan() method of ndefreader interface reads ndef records from compatible nfc devices, e.g., ndef nfc tags.
Lighting a WebXR setting - Web APIs
musée du louvre in paris, france.
...t involving the geolocation api.
...ith compass coordinates, and by reducing the precision of the sun's light angle, the location can no longer be accurately estimated using this technique.
Accessibility documentation index - Accessibility
ssibility project 82 accessibility information for web authors accessibility, authoring dhtml accessibility roadmap: a peek into how dhtml will be made accessible in the future.
...sibility information for web authors accessibility, authoring dhtml accessibility roadmap: a peek into how dhtml will be made accessible in the future.
...functionality that their desktop counterparts do.
Pagination - CSS: Cascading Style Sheets
this cookbook
pattern demonstrates the navigation
pattern used to display pagination, where the user can move between pages of content such as search results.
... this cookbook
pattern demonstrates the navigation
pattern used to display pagination, where the user can move between pages of content such as search results.
...s the pagination
pattern typically displays items in a row.
Split Navigation - CSS: Cascading Style Sheets
a navigation
pattern where one or more elements are separated from the rest of the navigation items.
... a navigation
pattern where one or more elements are separated from the rest of the navigation items.
... a navigation
pattern where one or more elements are separated from the rest of the navigation items.
Event developer guide - Developer guides
events refers both to a design
pattern used for the asynchronous handling of various incidents which occur in the lifetime of a web page and to the naming, characterization, and use of a large number of incidents of different types.
... events refers both to a design
pattern used for the asynchronous handling of various incidents which occur in the lifetime of a web page and to the naming, characterization, and use of a large number of incidents of different types.
...chronous handling of various incidents which occur in the lifetime of a web page and to the naming, characterization, and use of a large number of incidents of different types.
<input type="date"> - HTML: Hypertext Markup Language
.
...ite dates.
...iewing the following in a unsupporting browser: <form> <label for="bday">enter your birthday: <input type="date" name="bday" required
pattern="\d{4}-\d{2}-\d{2}"> <span class="validity"></span> </label> <p> <button>submit</button> </p> </form> if you submit it, you'll see that the browser displays an error and highlights the input as invalid if your entry doesn't match the
pattern ####-##-## (where # is a digit from 0 to 9).
Microformats - HTML: Hypertext Markup Language
summary microformats (sometimes abbreviated μf) are standards used to embed semantics & structured data in html, and provide an api to be used by search engines, aggregators, and other tools.
...ch as: html example <a class="h-card" href="http://alice.example.com">alice blogger</a> when a parser encounters this data, it will know that this page contains a "card" which describes a person or organization named alice blogger with a url of http://alice.example.com/.
...ral.
RegExp.prototype.compile() - JavaScript
the deprecated compile() method is used to (re-)compile a regular expression during execution of a script.
... the deprecated compile() method is used to (re-)compile a regular expression during execution of a script.
...cky; 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).
String.prototype.split() - JavaScript
the split() method divides a string into an ordered list of substrings, puts these substrings into an array, and returns the array.
... the split() method divides a string into an ordered list of substrings, puts these substrings into an array, and returns the array.
...or a
pattern; where the
pattern is provided as the first parameter in the method's call.
preserveAspectRatio - SVG: Scalable Vector Graphics
down as much as possible, while still meeting the other criteria in this case, if the aspect ratio of the viewbox does not match the viewport, some of the viewbox will extend beyond the bounds of the viewport (i.e., the area into which the viewbox will draw is larger than the viewport).
...in the rectangle define by the <image> element.
...le define by the <image> element.
SVG element reference - SVG: Scalable Vector Graphics
ncg> <fefuncr> <fegaussianblur> <feimage> <femerge> <femergenode> <femorphology> <feoffset> <fepointlight> <fespecularlighting> <fespotlight> <fetile> <feturbulence> <filter> <foreignobject> g <g> h <hatch> <hatchpath> i <image> l <line> <lineargradient> m <marker> <mask> <mesh> <meshgradient> <meshpatch> <meshrow> <metadata> <mpath> p <path> <
pattern> <polygon> <polyline> r <radialgradient> <rect> s <script> <set> <solidcolor> <stop> <style> <svg> <switch> <symbol> t <text> <textpath> <title> <tspan> u <unknown> <use> v <view> svg elements by category animation elements <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <discard>, <mpath>, <set> basic shapes <circle>, <ellipse>, <line...
...e> <svg> <switch> <symbol> t <text> <textpath> <title> <tspan> u <unknown> <use> v <view> svg elements by category animation elements <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <discard>, <mpath>, <set> basic shapes <circle>, <ellipse>, <line>, <polygon>, <polyline>, <rect> container elements <a>, <defs>, <g>, <marker>, <mask>, <missing-glyph>, <
pattern>, <svg>, <switch>, <symbol>, <unknown> descriptive elements <desc>, <metadata>, <title> filter primitive elements <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>,<fefunca>, <fefuncb>, <fefuncg>, <fefuncr>,<fegaussianblur>, <feimage>, <femerge>, <femergenode>, <femorphology>, <feoffset>, <...
..., <meshgradient>, <radialgradient>, <stop> graphics elements <circle>, <ellipse>, <image>, <line>, <mesh>, <path>, <polygon>, <polyline>, <rect>, <text>, <use> graphics referencing elements <mesh>, <use> light source elements <fedistantlight>, <fepointlight>, <fespotlight> never-rendered elements <clippath>, <defs>, <hatch>, <lineargradient>, <marker>, <mask>, <meshgradient>, <metadata>, <
pattern>, <radialgradient>, <script>, <style>, <symbol>, <title> paint server elements <hatch>, <lineargradient>, <meshgradient>, <
pattern>, <radialgradient>, <solidcolor> renderable elements <a>, <circle>, <ellipse>, <foreignobject>, <g>, <image>, <line>, <mesh>, <path>, <polygon>, <polyline>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, <unknown>, <use> shape elements <circle>,...
LookupNamespaceURI - Archive of obsolete content
i = lookupnamespaceuri; } function lookupnamespaceuri (prefix) { return lookupnamespaceurihelper(this, prefix); } function lookupnamespaceurihelper (node, prefix) { // adapted directly from http://www.w3.org/tr/dom-level-3-core/namespaces-algorithms.html#lookupnamespaceurialgo var i, att, htmlmode = document.contenttype, // mozilla only xmlns
pattern = /^xmlns:(.*)$/; switch (node.nodetype) { case 1: // element_node (could also just test for node.element_node, etc., if supported in all browsers) if (node.namespaceuri != null && node.prefix === prefix) { // note: prefix could be "null" in the case we are looking for default namespace return node.namespaceuri; ...
... != null && node.prefix === prefix) { // note: prefix could be "null" in the case we are looking for default namespace return node.namespaceuri; } if (node.attributes.length) { for (i = 0; i < node.attributes.length; i++) { att = node.attributes[i]; if (xmlns
pattern.test(att.name) && xmlns
pattern.exec(att.name)[1] === prefix) { if (att.value) { return att.value; } return null; // unknown } if (att.name === 'xmlns' && prefix == null) { // default namespace ...
LookupPrefix - Archive of obsolete content
{ return _lookupnamespaceprefix(namespaceuri, node.ownerelement); } return null; default: if (node.parentnode) { // entityreferences may have to be skipped to get to it return _lookupnamespaceprefix(namespaceuri, node.parentnode); } return null; } } // private function for lookupprefix only function _lookupnamespaceprefix (namespaceuri, originalelement) { var xmlns
pattern = /^xmlns:(.*)$/; if (originalelement.namespaceuri && originalelement.namespaceuri === namespaceuri && originalelement.prefix && originalelement.lookupnamespaceuri(originalelement.prefix) === namespaceuri) { return originalelement.prefix; } if (originalelement.attributes && originalelement.attributes.length) { for (var i=0; i < originalelement.attributes.length; i++) { var att = orig...
...ment.namespaceuri && originalelement.namespaceuri === namespaceuri && originalelement.prefix && originalelement.lookupnamespaceuri(originalelement.prefix) === namespaceuri) { return originalelement.prefix; } if (originalelement.attributes && originalelement.attributes.length) { for (var i=0; i < originalelement.attributes.length; i++) { var att = originalelement.attributes[i]; xmlns
pattern.lastindex = 0; var localname = att.localname || att.name.substr(att.name.indexof(':')+1); // latter test for ie which doesn't support localname if (localname.indexof(':') !== -1) { // for firefox when in html mode localname = localname.substr(att.name.indexof(':')+1); } if ( xmlns
pattern.test(att.name) && att.value === namespaceuri && lookupnamespaceuri(originalelement...
prefwindow - Archive of obsolete content
windowtype is a string specifying a window type.
... note that you can define an initwithparams() function in your sub window - to handle parameters passed using openwindow() in case the window was already open.
::-ms-fill - Archive of obsolete content
h the :indeterminate pseudo-class.) by default, internet explorer and edge display a moving dots animation for an indeterminate progress bar.
... edge display a moving dots animation for an indeterminate progress bar.
Mobile accessibility - Learn web development
up and left in a smooth motion.
...nus accessible because the screen is so much narrower on mobile devices, it is very common to use media queries and other technologies to make the navigation menu shrink down to a tiny icon at the top of the display — which can be pressed to reveal the menu only if it's needed — when the site is viewed on mobile.
Grids - Learn web development
th page layout.
...ay: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(100px, auto); grid-gap: 20px; } if you add extra content you will see that the track expands to allow it to fit.
Eclipse CDT Manual Setup
t "cdt managed build settings entries" is not selected.
...e "language settings provider options" that appear below, make sure that "share setting entries between projects (global provider)" is not ticked.
Cross Process Object Wrappers
browser.contentdocument), it is given back a cpow that wraps the content object.
...n as a listener to the button's "click" event.
Setting up CDT to work on SpiderMonkey
for me, that means changing "build directory" to read ${workspace_loc:/spidermonkey/_dbg.obj}.
... build" is deactivated, as cdt’s indexer will freak out otherwise.
Shell global objects
g allocation failure at successive allocations until the function completes without seeing a failure.
...ntil the function completes without seeing a failure.
Avoiding leaks in JavaScript XPCOM components
s environment because some of the objects you're dealing with are reference-counted behind the scenes.
...nter to n, so the wrapper wrapping n owns a reference to n as long as j is reachable from a garbage collection root.
XPCOM guide
om components for your firefox add-ons and the like.
...service(), etc methods are expensive and should be avoided when possible.receiving startup notificationssometimes it's necessary for xpcom components to receive notifications as to the progress of the application's startup process, so they can start new services at appropriate times, for example.xpcom array guidemozilla has many array classes because each array is optimized for a particular usage
pattern.
nsINavHistoryResult
toolkit/components/places/nsinavhistoryservice.idlscriptable describes the result of a history or bookmark query.
... thunderbird 3.3 / seamonkey 2.1) places results use a model-view-controller (mvc) design
pattern.
LockManager.request() - Web APIs
to a resource.
...ck for a given name is held, other "shared" locks for the same name can be granted, but no "exclusive" locks with that name can be held or granted.
Using readable streams - Web APIs
al stream we are discussing here.
...readstream(); controller.close(); }) }, pull(controller) { // we don't really need a pull in this example }, cancel() { // this is called if the reader cancels, // so we should stop generating strings clearinterval(interval); } }); in the readstream() function itself, we lock a reader to the stream using readablestream.getreader(), then follow the same kind of
pattern we saw earlier — reading each chunk with read(), checking whether done is true and then ending the process if so, and reading the next chunk and processing it if not, before running the read() method again.
ValidityState - Web APIs
with the exception of the valid property, which is true if the element's value obeys all constraints.
...traints.
WebGL best practices - Web APIs
program(prog); } for (const [vs, fs, prog] of programs) { if (!gl.getprogramparameter(prog, gl.link_status)) { console.error('link failed: ' + gl.getprograminfolog(prog)); console.error('vs info-log: ' + gl.getshaderinfolog(vs)); console.error('fs info-log: ' + gl.getshaderinfolog(fs)); } } khr_parallel_shader_compile for non-blocking compile/link status while we've described a
pattern to allow browsers to compile and link in parallel, normally checking compile_status or link_status blocks until the compile or link completes.
...instead, but be aware that this often results in corrupted rendering due to lack of precision (particularly mobile systems) though the corruption is not going to be visible on a typical desktop computer.
WebRTC API - Web APIs
pps.
...c lets you build peer-to-peer communication of arbitrary data, audio, or video—or any combination thereof—into a browser application.
Web APIs
e cssnamespacerule cssnumericvalue cssomstring csspagerule csspositionvalue cssprimitivevalue csspseudoelement cssrule cssrulelist cssstyledeclaration cssstylerule cssstylesheet cssstylevalue csssupportsrule cssunitvalue cssunparsedvalue cssvalue cssvaluelist cssvariablereferencevalue cache cachestorage canvascapturemediastreamtrack canvasgradient canvasimagesource canvas
pattern canvasrenderingcontext2d caretposition channelmergernode channelsplitternode characterdata childnode client clients clipboard clipboardevent clipboarditem closeevent comment compositionevent constantsourcenode constrainboolean constraindomstring constraindouble constrainulong contentindex contentindexevent convolvernode countqueuingstrategy crashreportbody credential credentialsco...
...svgfontfaceurielement svgforeignobjectelement svggelement svggeometryelement svgglyphelement svgglyphrefelement svggradientelement svggraphicselement svghkernelement svgimageelement svglength svglengthlist svglineelement svglineargradientelement svgmpathelement svgmaskelement svgmatrix svgmeshelement svgmetadataelement svgmissingglyphelement svgnumber svgnumberlist svgpathelement svg
patternelement svgpoint svgpolygonelement svgpolylineelement svgpreserveaspectratio svgradialgradientelement svgrect svgrectelement svgrenderingintent svgsvgelement svgscriptelement svgsetelement svgsolidcolorelement svgstopelement svgstringlist svgstylable svgstyleelement svgswitchelement svgsymbolelement svgtrefelement svgtspanelement svgtests svgtextcontentelement svgtextelement svgtextpatheleme...
Web Accessibility: Understanding Colors and Luminance - Accessibility
color ("hues"), however, independent of luminance, that deserves special attention as it applies to accessibility, and that is the concept of saturation.
...sibilty accessibility learning path color <color> web accessibility for seizures and physical reactions color blindness discussions (general) what is the “grayscale” setting for in accessibility options?
Sticky footers - CSS: Cascading Style Sheets
a sticky footer
pattern is one where the footer of your page "sticks" to the bottom of the viewport in cases where the content is shorter than the viewport height.
... a sticky footer
pattern is one where the footer of your page "sticks" to the bottom of the viewport in cases where the content is shorter than the viewport height.
CSS Layout cookbook - CSS: Cascading Style Sheets
the css layout cookbook aims to bring together recipes for common layout
patterns, things you might need to implement in your own sites.
...when to choose multi-column layout, flexbox or grid for your columns.
Index - Developer guides
which uses the unprefixed version of the spec.
...orientation and motion events, it's important to understand what the values you're given by the browser mean.
Object.defineProperty() - JavaScript
'); return temperature; }, set(value) { temperature = value; archive.push({ val: temperature }); } }); this.getarchive = function() { return archive; }; } var arc = new archiver(); arc.temperature; // 'get!' arc.temperature = 11; arc.temperature = 13; arc.getarchive(); // [{ val: 11 }, { val: 13 }] in this example, a getter always returns the same value.
...erature = 13; arc.getarchive(); // [{ val: 11 }, { val: 13 }] in this example, a getter always returns the same value.
Destructuring assignment - JavaScript
return values that you're not interested in: function f() { return [1, 2, 3]; } const [a, , b] = f(); console.log(a); // 1 console.log(b); // 3 const [c] = f(); console.log(c); // 1 you can also ignore all returned values: [,,] = f(); assigning the rest of an array to a variable when destructuring an array, you can unpack and assign the remaining part of it to a variable using the rest
pattern: const [a, ...b] = [1, 2, 3]; console.log(a); // 1 console.log(b); // [2, 3] be aware that a syntaxerror will be thrown if a trailing comma is used on the left-hand side with a rest element: const [a, ...b,] = [1, 2, 3]; // syntaxerror: rest element may not have a trailing comma // always consider using rest operator as the last element unpacking values from a regular expression match when...
...property names, like on object literals, can be used with destructuring.
Performance fundamentals - Web Performance
concept: everyone prefers, say, games that display 60 frames per second over ones that display 10 frames per second, even if they can't explain why.
...ver ones that display 10 frames per second, even if they can't explain why.
Structural overview of progressive web apps - Progressive web apps (PWAs)
while progressive web apps (pwas) can do anything any web content can do, they need to have a particular structure and include specific components in order to be recognized as a web app that can be used both on the web and installed and run as a local application.
...hing" instantly, instead of a loading spinner or a blank page.
in - SVG: Scalable Vector Graphics
document under the filter region at the time that the <filter> element was invoked.
...paque everywhere, but that might not be the case if a shape is painted with a gradient or
pattern which itself includes transparent or semi-transparent parts.
transform - SVG: Scalable Vector Graphics
.
...ttribute, transform can be used by any element (in svg 1.1, only these 16 elements were allowed to use it: <a>, <circle>, <clippath>, <defs>, <ellipse>, <foreignobject>, <g>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <switch>, <text>, and <use>).
xlink:title - SVG: Scalable Vector Graphics
ears when a user lets a mouse pointer hover over a starting resource.
... animatable no <anything> this value specifies the title used to describe the meaning of the link or resource.
<feTile> - SVG: Scalable Vector Graphics
the <fetile> svg filter primitive allows to fill a target rectangle with a repeated, tiled
pattern of an input image.
... the <fetile> svg filter primitive allows to fill a target rectangle with a repeated, tiled
pattern of an input image.
Using templates and slots - Web Components
ate> element, e.g., within say a regular <div> element, and still take advantage of the place-holder features of <slot> for shadow dom content, and doing so may indeed avoid the small trouble of needing to first access the template element's content property (and clone it).
..."description"> <slot name="attributes"> the <template> wraps the named slots in a <details> element.
format-number - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the format-number function evaluates a number and returns a string representing the number in a given format.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the format-number function evaluates a number and returns a string representing the number in a given format.
Content Scripts - Archive of obsolete content
the content of the page: // main.js var tabs = require("sdk/tabs"); var contentscriptstring = 'document.body.innerhtml = "<h1>this page has been eaten</h1>";' tabs.activetab.attach({ contentscript: contentscriptstring }); the following high-level sdk modules can use content scripts to modify web pages: page-mod: enables you to attach content scripts to web pages that match a specific url
pattern.
Developing for Firefox Mobile - Archive of obsolete content
ils supported ui/button/action not supported ui/button/toggle not supported ui/frame not supported ui/id supported ui/sidebar not supported ui/toolbar not supported util/array supported util/collection supported util/deprecate supported util/list supported util/match-
pattern supported util/object supported util/uuid supported window/utils supported ...
Canvas code snippets - Archive of obsolete content
tx); } } canvas2dcontext.setup = function() { var methods = ['arc', 'arcto', 'beginpath', 'beziercurveto', 'clearrect', 'clip', 'closepath', 'drawimage', 'fill', 'fillrect', 'filltext', 'lineto', 'moveto', 'quadraticcurveto', 'rect', 'restore', 'rotate', 'save', 'scale', 'settransform', 'stroke', 'strokerect', 'stroketext', 'transform', 'translate']; var gettermethods = ['create
pattern', 'drawfocusring', 'ispointinpath', 'measuretext', // drawfocusring not currently supported // the following might instead be wrapped to be able to chain their child objects 'createimagedata', 'createlineargradient', 'createradialgradient', 'getimagedata', 'putimagedata' ]; var props = ['canvas', 'fillstyle', 'font', 'globalalpha', 'globalcompositeoperation', 'linecap', 'line...
Index of archived content - Archive of obsolete content
t/assert test/harness test/httpd test/runner test/utils ui/button/action ui/button/toggle ui/frame ui/id ui/sidebar ui/toolbar util/array util/collection util/deprecate util/list util/match-
pattern util/object util/uuid window/utils release notes tools cfx cfx to jpm console jpm jpm-mobile jpmignore package.json tutorials ...
JXON - Archive of obsolete content
lement, an element with pure text content, an empty element with attributes, an element with text content and attributes, an element containing elements with different names, an element containing elements with identical names, an element containing elements and contiguous text, an element containing elements and non contiguous text.
MMgc - Archive of obsolete content
e gives us a very natural place to do this work we have better control over how much time is spent marking without threads when smp systems become more prevalent it may be worth investigating this approach because true parallelism may afford better performance.
importUserCertificates - Archive of obsolete content
ificate has the same dn as one or more certificates that already exist in the user's certificate store, the nickname associated with the certificate(s) of the same dn in the certificate store is used, and the <tt>"nicknamestring"</tt> parameter is ignored.
String Rosetta Stone - Archive of obsolete content
find a substring nsstring findinreadable(const nsastring&
pattern, nsastring::const_iterator start, nsastring::const_iterator end, nsstringcomparator& acomparator = nsdefaultstringcomparator()) std::string size_type find(const basic_string& s, size_type pos = 0) const size_type find(const chart* s, size_type pos, size_type n) const size_type find(const chart* s, size_type pos = 0) const size_type find(chart c, size_type pos = 0) const qstring int qstring::indexof ( const qstring & str, int from = 0, qt::casesensitivity cs = qt::casesensitive ) const format a printf style string nsstring appendprintf() std::string n/a qstring qstring & qstring::sprintf ( const char * cformat, ...
Template Logging - Archive of obsolete content
on"> <triple subject="?person" predicate="http://example.com/name" object="?name"/> <content uri="?uri"> <member container="?uri" child="?human"> <triple subject="?person" predicate="http://example.com/name" object="?name"/> note that subtle difference in these examples.
Implementation Status - Archive of obsolete content
ment fails to apply to child attributes 342319; 6.1.5 calculate supported 6.1.6 constraint supported 6.1.7 p3ptype unsupported 279049; 6.2.1 atomic datatype partial we will support simpletype's using length, minlength, maxlength,
pattern, maxinclusive, mininclusive, maxexclusive, minexclusive, totaldigits, and fractiondigits 7.
Supporting older browsers - Learn web development
class="item">item three</div> </div> note: the clear property also has no effect once the cleared item becomes a grid item, so you could have a layout with a cleared footer, which is then turned into a grid layout.
create fancy boxes - Learn web development
(175deg, rgba(0,0,0,0) 75%, #9f8fa4 75%), linear-gradient( 85deg, rgba(0,0,0,0) 83%, #9f8fa4 83%), linear-gradient(175deg, rgba(0,0,0,0) 70%, #74a6ae 70%), linear-gradient( 85deg, rgba(0,0,0,0) 80%, #74a6ae 80%); } gradients can be used in some very creative ways.
Define terms with HTML - Learn web development
dl> <dt>jambalaya</dt> <dd> rice-based entree typically containing chicken, sausage, seafood, and spices </dd> <dt>sukiyaki</dt> <dd> japanese specialty consisting of thinly sliced meat, vegetables, and noodles, cooked in sake and soy sauce </dd> <dt>chianti</dt> <dd> dry italian red wine originating in tuscany </dd> </dl> the basic
pattern, as you can see, is to alternate <dt> terms with <dd> descriptions.
Limitations of frame scripts
observers in the chrome process, most observers should be registered in the chrome process and will not work in the content process.
Limitations of frame scripts
observers in the chrome process, most observers should be registered in the chrome process and will not work in the content process.
PBackground
orks in both chrome and content processes a lot of code "just works" in the content process.
Introduction to Layout in Mozilla
puted stylistic data style data is computed lazily, as it is asked for reflow recursively compute geometry (x, y, w, h) for frames, views, and widgets given w & h constraints of “root frame” compute (x, y, w, h) for all children constraints propagated “down” via nshtmlreflowstate desired size returned “up” via nshtmlreflowmetrics basic
pattern parent frame initializes child reflow state (available w, h); places child frame (x, y); invokes child’s reflow method child frame computes desired (w, h), returns via reflow metrics parent frame sizes child frame and view based on child’s metrics n.b.
Task.jsm
sync function" that starts a new task.
Certificate functions
vocationpolicy mxr 3.12 and later cert_getprevgeneralname mxr 3.10 and later cert_getprevnameconstraint mxr 3.10 and later cert_getsloptime mxr 3.2 and later cert_getsslcacerts mxr 3.2 and later cert_getstatename mxr 3.2 and later cert_getusepkixforvalidation mxr 3.12 and later cert_getvaliddns
patternsfromcert mxr 3.12 and later cert_gentime2formattedascii mxr 3.2 and later cert_hexify mxr 3.2 and later cert_importcachain mxr 3.2 and later cert_importcerts mxr 3.2 and later cert_isrootdercert mxr 3.8 and later cert_isusercert mxr 3.6 and later cert_keyfromdercrl mxr 3.4 and later ...
NSS_3.12_release_notes.html
ert.h) cert_findcrlentryreasonexten (see cert.h) cert_findcrlnumberexten (see cert.h) cert_findnameconstraintsexten (see cert.h) cert_getclassicocspdisabledpolicy (see cert.h) cert_getclassicocspenabledhardfailurepolicy (see cert.h) cert_getclassicocspenabledsoftfailurepolicy (see cert.h) cert_getpkixverifynistrevocationpolicy (see cert.h) cert_getusepkixforvalidation (see cert.h) cert_getvaliddns
patternsfromcert (see cert.h) cert_newtempcertificate (see cert.h) cert_setocsptimeout (see certhigh/ocsp.h) cert_setusepkixforvalidation (see cert.h) cert_pkixverifycert (see cert.h) hash_gettype (see sechash.h) nss_initwithmerge (see nss.h) pk11_createmergelog (see pk11pub.h) pk11_creategenericobject (see pk11pub.h) pk11_createpbev2algorithmid (see pk11pub.h) pk11_destroymergelog (see pk11pub.h) pk11_g...
NSS functions
vocationpolicy mxr 3.12 and later cert_getprevgeneralname mxr 3.10 and later cert_getprevnameconstraint mxr 3.10 and later cert_getsloptime mxr 3.2 and later cert_getsslcacerts mxr 3.2 and later cert_getstatename mxr 3.2 and later cert_getusepkixforvalidation mxr 3.12 and later cert_getvaliddns
patternsfromcert mxr 3.12 and later cert_gentime2formattedascii mxr 3.2 and later cert_hexify mxr 3.2 and later cert_importcachain mxr 3.2 and later cert_importcerts mxr 3.2 and later cert_isrootdercert mxr 3.8 and later cert_isusercert mxr 3.6 and later cert_keyfromdercrl mxr 3.4 and later ...
NSS_3.12.3_release_notes.html
y value to enable) tells nss to send ec key points across the pkcs#11 interface in the non-standard unencoded format that was used by default before nss 3.12.3.
Pork Tools
the definition and call sites of those functions.
SpiderMonkey Internals
gc is exact, c/c++ applications must ensure that all live objects, strings, and numbers are gc-reachable.
JSVAL_TO_INT
integer without any type checking or error handling.
JSVAL_TRUE
val_true and jsval_false are jsval constants that represent the javascript boolean values, true and false.
JS_GetNaNValue
description js_getnanvalue returns a value of type js::value that represents an ieee floating-point quiet not-a-number (nan).
The Rust programming language
y of volunteers, designed to help developers create fast, secure applications which take full advantage of the powerful features of modern multi-core processors.
XPCOM array guide
introduction array types mozilla has many array classes because each array is optimized for a particular usage
pattern.
Using XPCOM Components
your component as an instance or a service is a design question, really, and something you should be clear about in the documentation for your component.
RefPtr
to me when the compiler will reject an attempt to use nscomptr to hold a concrete class pointer and when it will not (will it only rejecte it if a qi is involved in the construction or or assignment to the nscomptr (common in implementation details of nscomptr) but not when an instance of the concrete class is assigned directly?).
Filelink Providers
ld contain a form with the id "provider-form", with its onsubmit attribute set to "return false;".
MailNews Protocols
imap pop3 nntp smtp mailbox rss these are all implemented in c++, except for rss.
AudioParam - Web APIs
the web audio api's audioparam interface represents an audio-related parameter, usually a parameter of an audionode (such as gainnode.gain).
Beacon API - Web APIs
ata by creating an image element and setting its src attribute within the unload handler.
Compositing example - Web APIs
dth = size * 2; proto.canvas.height = size * 2; proto.fillstyle = color1; // top-left proto.fillrect(0, 0, size, size); proto.fillstyle = color2; // top-right proto.fillrect(size, 0, size, size); proto.fillstyle = color2; // bottom-left proto.fillrect(0, size, size, size); proto.fillstyle = color1; // bottom-right proto.fillrect(size, size, size, size); var
pattern = proto.create
pattern(proto.canvas, "repeat");
pattern.data = proto.canvas.todataurl(); return
pattern; }; var op_8x8 = createinterlace(8, "#fff", "#eee"); ...
Document Object Model (DOM) - Web APIs
helement svgglyphrefelement svggradientelement svggraphicselement svghatchelement svghatchpathelement svghkernelement svgimageelement svglineargradientelement svglineelement svgmarkerelement svgmaskelement svgmeshelement svgmeshgradientelement svgmeshpatchelement svgmeshrowelement svgmetadataelement svgmissingglyphelement svgmpathelement svgpathelement svg
patternelement svgpolylineelement svgpolygonelement svgradialgradientelement svgrectelement svgscriptelement svgsetelement svgsolidcolorelement svgstopelement svgstyleelement svgsvgelement svgswitchelement svgsymbolelement svgtextcontentelement svgtextelement svgtextpathelement svgtextpositioningelement svgtitleelement svgtrefelement svgtspanelement svguseelement svgunknownelemen...
SVGUnitTypes - Web APIs
the svgunittypes interface defines a commonly used set of constants used for reflecting gradientunits,
patterncontentunits and other similar attributes.
Using the Screen Capture API - Web APIs
ical display surface is one which is in part or completely obscured, either by being overlapped by another object to some extent, or by being entirely hidden or offscreen.
SpeechGrammar - Web APIs
the speechgrammar interface of the web speech api represents a set of words or
patterns of words that we want the recognition service to recognize.
SpeechGrammarList - Web APIs
the speechgrammarlist interface of the web speech api represents a list of speechgrammar objects containing words or
patterns of words that we want the recognition service to recognize.
Advanced techniques: Creating and sequencing audio - Web APIs
buffer = await response.arraybuffer(); const audiobuffer = await audiocontext.decodeaudiodata(arraybuffer); return audiobuffer; } we can then use the await operator when calling this function, which ensures that we can only run subsequent code when it has finished executing.
XRSession.requestAnimationFrame() - Web APIs
amebuffer(xrwebgllayer.framebuffer) for (xrview of viewer.views) { let xrviewport = xrwebgllayer.getviewport(xrview) gl.viewport(xrviewport.x, xrviewport.y, xrviewport.width, xrviewport.height) // webgl draw calls will now be rendered into the appropriate viewport.
Grid template areas - CSS: Cascading Style Sheets
o) / 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr ; } we will revisit the other functionality offered by this shorthand later in these guides when we take a look at auto placement and the grid-auto-flow property.
Grid wrapper - CSS: Cascading Style Sheets
the grid wrapper
pattern is useful for aligning grid content within a central wrapper, while also allowing items to break out and align to the edge of the containing element or page when desired.
Linear-gradient Generator - CSS: Cascading Style Sheets
ortant; } /** * main container */ #container { width: 1000px; height: 100%; display: table; margin: 0 auto; } #gradient-container { width: 450px; height: 250px; min-width: 8px; min-height: 8px; margin: 100px auto; border: 1px solid #ddd; position: relative; } #gradient-container[data-alpha="true"]:after { content: ""; width: 100%; height: 100%; background: url('images/canvas-
pattern.png'); position: absolute; z-index: -1; } /** * gradient axis */ .gradient-axis { width: 125%; height: 4px; margin: -3px 0 0 0; border: 1px solid #ccc; position: absolute; top: 50%; left: 0; opacity: 0.5; } .gradient-axis[data-active='true'] { opacity: 1; z-index: 1; } .gradient-axis:after { content: ""; width: 25px; height: 100%; background-color: #ccc; position: absolute...
border-bottom-width - CSS: Cascading Style Sheets
ne of the following values: thin a thin border medium a medium border thick a thick border note: because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific.
border-image - CSS: Cascading Style Sheets
ource: none or the image with its uri made absoluteborder-image-width: as specified, but with relative lengths converted into absolute lengthsanimation typediscrete formal syntax <'border-image-source'> | <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>?
border-left-width - CSS: Cascading Style Sheets
ne of the following values: thin a thin border medium a medium border thick a thick border note: because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific.
border-right-width - CSS: Cascading Style Sheets
ne of the following values: thin a thin border medium a medium border thick a thick border note: because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific.
border-top-width - CSS: Cascading Style Sheets
ne of the following values: thin a thin border medium a medium border thick a thick border note: because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific.
border-width - CSS: Cascading Style Sheets
ne of the following values: thin a thin border medium a medium border thick a thick border note: because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific.
mask-border - CSS: Cascading Style Sheets
iscretemask-border-slice: discretemask-border-source: discretemask-border-width: discretecreates stacking contextyes formal syntax <'mask-border-source'> | <'mask-border-slice'> [ / <'mask-border-width'>?
repeat() - CSS: Cascading Style Sheets
the repeat() css function represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring
pattern to be written in a more compact form.
CSS: Cascading Style Sheets
ificity, inheritance and the cascade css units and values box model and margin collapse the containing block stacking and block-formatting contexts initial, computed, used, and actual values css shorthand properties css flexible box layout css grid layout media queries animation cookbook the css layout cookbook aims to bring together recipes for common layout
patterns, things you might need to implement in your sites.
Strings (str) - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the exslt strings package provides functions that allow the manipulation of strings.
Ajax - Developer guides
m a string, a file or via javascript and how to serialize xml documents to strings, javascript object trees (jxon) or files.
disabled - HTML: Hypertext Markup Language
are still focusable, whereas disabled controls can not receive focus and are not submitted with the form and generally do not function as controls until they are enabled.
Content-Location - HTTP
ccept header: request header response header accept: application/json, text/json content-location: /documents/foo.json accept: application/xml, text/xml content-location: /documents/foo.xml accept: text/plain, text/* content-location: /documents/foo.txt these urls are examples — the site could serve the different filetypes with any url
patterns it wishes, such as a query string parameter: /documents/foo?format=json, /documents/foo?format=xml, and so on.
HTTP resources and specifications - HTTP
.0 doesn't extend the http standard obsolete microsoft document specifying legacy document modes* defines x-ua-compatible note rfc 5689 http extensions for web distributed authoring and versioning (webdav) these extensions of the web, as well as carddav and caldav, are out-of-scope for http on the web.
Closures - JavaScript
ative way of doing this, but it is possible to emulate private methods using closures.
Functions - JavaScript
as fat arrow function) has a shorter syntax compared to function expressions and does not have its own this, arguments, super, or new.target.
Assertions - JavaScript
assertions include boundaries, which indicate the beginnings and endings of lines and words, and other
patterns indicating in some way that a match is possible (including look-ahead, look-behind, and conditional expressions).
let - JavaScript
ounter, }); }; thing.prototype.showpublic = function() { return this.someproperty; }; thing.prototype.showprivate = function() { return privatescope.get(this).hidden; }; } console.log(typeof privatescope); // "undefined" var thing = new thing(); console.log(thing); // thing {someproperty: "foo"} thing.showpublic(); // "foo" thing.showprivate(); // 1 the same privacy
pattern with closures over local variables can be created with var, but those need a function scope (typically an iife in the module
pattern) instead of just a block scope like in the example above.
class - SVG: Scalable Vector Graphics
se> <feblend> <fecolormatrix> <fecomponenttransfer> <fecomposite> <feconvolvematrix> <fediffuselighting> <fedisplacementmap> <feflood> <fegaussianblur> <feimage> <femerge> <femorphology> <feoffset> <fespecularlighting> <fetile> <feturbulence> <filter> <font> <foreignobject> <g> <glyph> <glyphref> <image> <line> <lineargradient> <marker> <mask> <missing-glyph> <path> <
pattern> <polygon> <polyline> <radialgradient> <rect> <stop> <svg> <switch> <symbol> <text> <textpath> <title> <tref> <tspan> <use> ...
mask - SVG: Scalable Vector Graphics
a css property and is a shorthand for many other properties: mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-size, and mask-composite.
pointer-events - SVG: Scalable Vector Graphics
fill = '#' + color.tostring(16).padstart(6,'0') // let's apply our color in the // element we actually clicked on e.target.style.fill = fill }) as a presentation attribute, it can be applied to any element but it is mostly relevant only on the following twenty-three elements: <a>, <circle>, <clippath>, <defs>, <ellipse>, <foreignobject>, <g>, <image>, <line>, <marker>, <mask>, <path>, <
pattern>, <polygon>, <polyline>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, <use> usage notes value bounding-box | visiblepainted | visiblefill | visiblestroke | visible | painted | fill | stroke | all | none default value visiblepainted animatable yes for a detailed explanation of each possible value, have a look at the css pointer-event...
stroke-dasharray - SVG: Scalable Vector Graphics
the stroke-dasharray attribute is a presentation attribute defining the
pattern of dashes and gaps used to paint the outline of the shape; note: as a presentation attribute, stroke-dasharray can be used as a css property.
stroke - SVG: Scalable Vector Graphics
the stroke attribute is a presentation attribute defining the color (or any svg paint servers like gradients or
patterns) used to paint the outline of the shape; note: as a presentation attribute stroke can be used as a css property.
xlink:arcrole - SVG: Scalable Vector Graphics
person," but in the context of a particular arc it might have the role of "mother" and in the context of a different arc it might have the role of "daughter." twentytwo elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <lineargradient>, <mpath>, <
pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, <use> usage notes value <iri> default value none animatable no <iri> this value specifies an iri reference that identifies some resource that describes the intended property.
SVG Attribute reference - SVG: Scalable Vector Graphics
ing lighting-color limitingconeangle local m marker-end marker-mid marker-start markerheight markerunits markerwidth mask maskcontentunits maskunits mathematical max media method min mode n name numoctaves o offset opacity operator order orient orientation origin overflow overline-position overline-thickness p panose-1 paint-order path pathlength
patterncontentunits
patterntransform
patternunits ping pointer-events points pointsatx pointsaty pointsatz preservealpha preserveaspectratio primitiveunits r r radius referrerpolicy refx refy rel rendering-intent repeatcount repeatdur requiredextensions requiredfeatures restart result rotate rx ry s scale seed shape-rendering slope spacing specularconstant specul...
<a> - SVG: Scalable Vector Graphics
aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <
pattern>, <script>, <style>, <switch>, <text>, <view> specifications specification status comment scalable vector graphics (svg) 2the definition of '<a>' in that specification.
<defs> - SVG: Scalable Vector Graphics
ke-width, transform, vector-effect, visibility usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <
pattern>, <script>, <style>, <switch>, <text>, <view> specifications specification status comment scalable vector graphics (svg) 2the definition of '<defs>' in that specification.
<g> - SVG: Scalable Vector Graphics
-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <
pattern>, <script>, <style>, <switch>, <text>, <view> specifications specification status comment scalable vector graphics (svg) 2the definition of '<g>' in that specification.
<marker> - SVG: Scalable Vector Graphics
aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <
pattern>, <script>, <style>, <switch>, <text>, <view> specifications specification status comment svg markersthe definition of '<marker>' in that specification.
<mask> - SVG: Scalable Vector Graphics
stroke-opacity, stroke-width, transform, vector-effect, visibility usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <
pattern>, <script>, <style>, <switch>, <text>, <view> specifications specification status comment css masking module level 1the definition of '<mask>' in that specification.
<svg> - SVG: Scalable Vector Graphics
-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <
pattern>, <script>, <style>, <switch>, <text>, <view> specifications specification status comment scalable vector graphics (svg) 2the definition of '<svg>' in that specification.
<symbol> - SVG: Scalable Vector Graphics
-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <
pattern>, <script>, <style>, <switch>, <text>, <view> note: a <symbol> element itself is not meant to be rendered.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
implementation status unknown display behavior of <style> defined via ua style sheet implementation status unknown !important user agent style rules controlling never-rendered elements implementation status unknown :focus and ::selection styles implementation status unknown geometry change notes x and y attributes removed from <
pattern> and <filter> implementation status unknown auto value of width and height computes to 0 but 100% on <svg> not implemented coordinate systems, transformations and units change notes exception for bad values on svgmatrix.skewx() and svgmatrix.skewy() implementation status unknown bounding box for element with no position at (0, 0) impl...
number - XPath
object] ) arguments object(optional) the object to be converted to a number.
Index - XPath
found 57 pages: # page tags and summary 1 xpath css selectors, dom, jxon, landing, path, xml, xpath, xslt xpath stands for xml path language.
XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes xpath stands for xml path language.