Search completed in 1.21 seconds.
filter - CSS: Cascading Style Sheets
the
filter css property applies graphical effects like blur or color shift to an element.
...
filters are commonly used to adjust the rendering of images, backgrounds, and borders.
...you can also reference an svg
filter with a url to an svg
filter element.
...And 50 more matches
Using IIR filters - Web APIs
the iir
filternode interface of the web audio api is an audionode processor that implements a general infinite impulse response (iir)
filter; this type of
filter can be used to implement tone control devices and graphic equalizers, and the
filter response parameters can be specified, so that it can be tuned as needed.
... demo our simple example for this guide provides a play/pause button that starts and pauses audio play, and a toggle that turns an iir
filter on and off, altering the tone of the sound.
... it also provides a canvas on which is drawn the frequency response of the audio, so you can see what effect the iir
filter has.
...And 32 more matches
React interactivity: Editing, filtering, conditional rendering - Learn web development
this includes allowing you to edit existing tasks, and
filtering the list of tasks between all, completed, and incomplete tasks.
... objective: to learn about conditional rendering in react, and implementing list
filtering and an editing ui in our app.
...we'll use array.prototype.map() instead of array.prototype.
filter() because we want to return a new array with some changes, instead of deleting something from the array.
...And 31 more matches
BiquadFilterNode - Web APIs
the biquad
filternode interface represents a simple low-order
filter, and is created using the audiocontext.createbiquad
filter() method.
... it is an audionode that can represent different kinds of
filters, tone control devices, and graphic equalizers.
... a biquad
filternode always has exactly one input and one output.
...And 18 more matches
BiquadFilterNode() - Web APIs
the biquad
filternode() constructor of the web audio api creates a new biquad
filternode object, which represents a simple low-order
filter, and is created using the audiocontext.createbiquad
filter() method.
... syntax var biquad
filternode = new biquad
filternode(context, options) parameters inherits parameters from the audionodeoptions dictionary.
...this is a standard second-order resonant lowpass
filter with 12db/octave rolloff.
...And 17 more matches
-ms-filter - Archive of obsolete content
the -ms-
filter css property is a microsoft extension that sets or retrieves the
filter or collection of
filters applied to an object.
... warning: not to be confused with the standard
filter property, as the two are fundamentally incompatible with each other.
... syntax the -ms-
filter property is specified as a string that contains a list of one or more items, separated by spaces, of the following types:
filters transitions procedural surfaces formal syntax
filter: <-ms-
filter-function>+ -ms-
filter: [ "'" <-ms-
filter-function># "'" ] | [ '"' <-ms-
filter-function># '"' ] where <-ms-
filter-function> = <-ms-
filter-function-progid> | <-ms-
filter-function-legacy> where <-ms-
filter-function-progid> = 'progid:' [ <ident-token> '.' ]* [ <ident-token> | <function-token> <any-value> ')' ] <-ms-
filter-function-legacy> = <ident-token> | <function-token> <any-value> ')' the <string> contains the ...
...And 16 more matches
Array.prototype.filter() - JavaScript
the
filter() method creates a new array with all elements that pass the test implemented by the provided function.
... syntax let newarray = arr.
filter(callback(element[, index, [array]])[, thisarg]) parameters callback function is a predicate, to test each element of the array.
... arrayoptional the array
filter was called upon.
...And 15 more matches
IIRFilterNode - Web APIs
the iir
filternode interface of the web audio api is a audionode processor which implements a general infinite impulse response (iir)
filter; this type of
filter can be used to implement tone control devices and graphic equalizers as well.
... it lets the parameters of the
filter response be specified, so that it can be tuned as needed.
... number of inputs 1 number of outputs 1 channel count mode "max" channel count same as on the input channel interpretation "speakers" typically, it's best to use the biquad
filternode interface to implement higher-order
filters.
...And 13 more matches
MailNews Filters
mailnews
filters consist of a set of search terms, and a set of
filter actions.
...
filter execution is done by evaluating the search terms using the core mailnews/base/search code, and then applying the
filter hits when the search terms match.
... for new incoming messages, the protocol specific object that handles new messages calls nsimsg
filterlist::apply
filterstohdr and passes itself in as nsimsg
filterhitnotify interface to handle
filter hits.
...And 11 more matches
SVGFilterElement - Web APIs
the svg
filterelement interface provides access to the properties of <
filter> elements, as well as methods to manipulate them.
...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
filterelement" target="_top"><rect x="321" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svg
filterelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties svgfilte...
...relement.
filterunits read only an svganimatedenumeration that corresponds to the
filterunits attribute of the given <
filter> element.
...And 10 more matches
Filtering - Archive of obsolete content
for example, you wish the user to be able to select a value from a list, and the template results should be
filtered based on that value.
...for instance, to apply a
filter, you might add a new <triple> element.
... to remove the
filter, the <triple> should be removed again.
...And 9 more matches
TypedArray.prototype.filter() - JavaScript
the
filter() method creates a new typed array with all elements that pass the test implemented by the provided function.
... this method has the same algorithm as array.prototype.
filter().
... syntax typedarray.
filter(callback[, thisarg]) parameters callback function to test each element of the typed array.
...And 9 more matches
BiquadFilterNode.type - Web APIs
the type property of the biquad
filternode interface is a string (enum) value defining the kind of
filtering algorithm the node is implementing.
... syntax var audioctx = new audiocontext(); var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.type = 'lowpass'; value a string (enum) representing a biquad
filtertype.
... type values and their meaning type description frequency q gain lowpass standard second-order resonant lowpass
filter with 12db/octave rolloff.
...And 8 more matches
NodeFilter.acceptNode() - Web APIs
the node
filter.acceptnode() method returns an unsigned short that will be used to tell if a given node must be accepted or not by the nodeiterator or treewalker iteration algorithm.
... this method is expected to be written by the user of a node
filter.
... possible return values are: constant description node
filter.
filter_accept value returned by the node
filter.acceptnode() method when a node should be accepted.
...And 8 more matches
NodeFilter - Web APIs
a node
filter interface represents an object used to
filter the nodes in a nodeiterator or treewalker.
... a node
filter knows nothing about the document or traversing nodes; it only knows how to evaluate a single node against the provided
filter.
... node
filter.acceptnode() returns an unsigned short that will be used to tell if a given node must be accepted or not by the nodeiterator or treewalker iteration algorithm.
...And 8 more matches
<filter-function> - CSS: Cascading Style Sheets
the <
filter-function> css data type represents a graphical effect that can change the appearance of an input image.
... it is used in the
filter and backdrop-
filter properties.
... syntax the <
filter-function> data type is specified using one of the
filter functions listed below.
...And 7 more matches
color-interpolation-filters - SVG: Scalable Vector Graphics
the color-interpolation-
filters attribute specifies the color space for imaging operations performed via
filter effects.
... notes: this property just has an affect on
filter operations.
... therefore, it has no effect on
filter primitives like <feoffset>, <feimage>, <fetile> or <feflood>.
...And 7 more matches
CanvasRenderingContext2D.filter - Web APIs
the canvasrenderingcontext2d.
filter property of the canvas 2d api provides
filter effects such as blurring and grayscaling.
... it is similar to the css
filter property and accepts the same values.
... syntax ctx.
filter = "<
filter-function1> [<
filter-function2>] [<
filter-functionn>]"; ctx.
filter = "none"; values the
filter property accepts a value of "none" or one or more of the following
filter functions in a domstring.
...And 6 more matches
SVGFilterPrimitiveStandardAttributes - Web APIs
the svg
filterprimitivestandardattributes interface defines the set of dom attributes that are common across the
filter primitive interfaces.
... <div id="interfacediagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/svg
filterprimitivestandardattributes" target="_top"><rect x="1" y="1" width="360" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="181" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svg
filterprimitivestandardattributes</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties svg
filterprimitivestandardattri...
... svg
filterprimitivestandardattributes.y read only an svganimatedlength corresponding to the y attribute of the given element.
...And 5 more matches
filter - SVG: Scalable Vector Graphics
the
filter attribute specifies the
filter effects defined by the <
filter> element that shall be applied to its element.
... note: as a presentation attribute,
filter can be used as a css property.
... see css
filter for further information.
...And 5 more matches
SVG Filters Tutorial - SVG: Scalable Vector Graphics
filters svg allows us to use similar tools as the bitmap description language such as the use of shadow, blur effects or even merging the results of different
filters.
... with the
filter element <
filter> it is possible to add these effects and later on attach them to an object.
...
filters act like layers.
...And 5 more matches
nsIMsgFilterCustomAction
defined in comm-central/ mailnews/ base/ search/ public/ nsimsg
filtercustomaction.idl interface nsimsg
filtercustomaction : nsisupports { /* globally unique string to identify this
filter action.
...*/ readonly attribute astring name; /** * is this custom action valid for a particular
filter type?
... * * @param type the
filter type * @param scope the search scope * * @return true if valid */ boolean isvalidfortype(in nsmsg
filtertypetype type, in nsmsgsearchscopevalue scope); /** * after the user inputs a particular action value for the action, determine * if that value is valid.
...And 4 more matches
IIRFilterNode() - Web APIs
the iir
filternode() constructor of the web audio api creates a new iir
filternode object which an audionode processor which implements a general infinite impulse response
filter.
... syntax var iir
filternode = new iir
filternode(context, options) parameters inherits parameters from the audionodeoptions dictionary.
... unlike other nodes in the web audio api, the options passed into the iir
filter upon creation are not optional.
...And 4 more matches
backdrop-filter - CSS: Cascading Style Sheets
the backdrop-
filter css property lets you apply graphical effects such as blurring or color shifting to the area behind an element.
... /* keyword value */ backdrop-
filter: none; /* url to svg
filter */ backdrop-
filter: url(common
filters.svg#
filter); /* <
filter-function> values */ backdrop-
filter: blur(2px); backdrop-
filter: brightness(60%); backdrop-
filter: contrast(40%); backdrop-
filter: drop-shadow(4px 4px 10px blue); backdrop-
filter: grayscale(30%); backdrop-
filter: hue-rotate(120deg); backdrop-
filter: invert(70%); backdrop-
filter: opacity(20%); backdrop-
filter: sepia(90%); backdrop-
filter: saturate(80%); /* multiple
filters */ backdrop-
filter: url(
filters.svg#
filter) blur(4px) saturate(150%); /* global values */ backdrop-
filter: inherit; backdrop-
filter: initial; backdrop-f...
...ilter: unset; syntax values none no
filter is applied to the backdrop.
...And 4 more matches
Filter effects - SVG: Scalable Vector Graphics
filters are svg's mechanism to create sophisticated effects.
...while basic blurs can be achieved with the help of gradients, the blur
filter is needed to do anything beyond.
... example
filters are defined by <
filter> element, which should be put in the <defs> section of your svg file.
...And 4 more matches
Sorting and filtering a custom tree view - Archive of obsolete content
this is example code for sorting and
filtering a custom tree view, that is, a tree whose values are loaded via javascript.
...sort.xul <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <!doctype window> <window title="sorting a custom tree view example" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="init()"> <script type="application/javascript" src="sort.js"/> <hbox align="center" id="search-box"> <label accesskey="f" control="
filter">
filter</label> <textbox id="
filter" oninput="input
filter(event)" flex="1"/> <button id="clear
filter" oncommand="clear
filter()" label="clear" accesskey="c" disabled="true"/> </hbox> <tree id="tree" flex="1" persist="sortdirection sortresource" sortdirection="ascending" sortresource="description"> <treecols> <treecol id="name" label="name" flex="1" persist="width ordinal hidden" onclic...
...ption" flex="1" persist="width ordinal hidden" onclick="sort(this)" class="sortdirectionindicator"/> <splitter class="tree-splitter"/> <treecol id="weapon" label="weapon" flex="1" persist="width ordinal hidden" onclick="sort(this)" class="sortdirectionindicator"/> </treecols> <treechildren id="tree-children"/> </tree> </window> sort.js var table = null; var data = null; var tree; var
filtertext = ""; function init() { tree = document.getelementbyid("tree"); loadtable(); } //this function is called every time the tree is sorted,
filtered, or reloaded function loadtable() { //remember scroll position.
...And 3 more matches
nsIMsgFilterList
defined in comm-central/ mailnews/ base/ search/ public/ nsimsg
filterlist.idl attributes folder attribute nsimsgfolder nsimsg
filterlist::folder version readonly attribute short nsimsg
filterlist::version arbitraryheaders readonly attribute acstring nsimsg
filterlist::arbitraryheaders shoulddownloadallheaders readonly attribute boolean nsimsg
filterlist::shoulddownloadallheaders
filtercount readonly attribute unsigned long nsimsg
filterlist::
filtercount loggingenabled attribute boolean nsimsg
filterlist::loggingenabled defaultfile attribute nsilocalfile nsimsg
filterlist::defaultfile logstream attribute nsioutputstream nsimsg
filterlist::logstream logurl readonly attribute acstring nsimsg
filterlist::logurl methods get
filterat() nsimsg
filter nsimsg
filterlist::get
filterat (in unsigned l...
...ong
filterindex ) get
filternamed() nsimsg
filter nsimsg
filterlist::get
filternamed (in astring
filtername) set
filterat() nsimsg
filter nsimsg
filterlist::set
filterat ( in unsigned long
filterindex, in nsimsg
filter filter ) remove
filter() void nsimsg
filterlist::remove
filter (in nsimsg
filter filter) remove
filterat() void nsimsg
filterlist::remove
filterat (in unsigned long
filterindex) move
filterat() void nsimsg
filterlist::move
filterat ( in unsigned long
filterindex, in nsmsg
filtermotionvalue motion ) insert
filterat() void nsimsg
filterlist::insert
filterat ( in unsigned long
filterindex, in nsimsg
filter filter ) move
filter() void nsimsg
filterlist::move
filter ( in nsimsg
filter filter, in nsmsgfilt...
...ermotionvalue motion ) create
filter() nsimsg
filter nsimsg
filterlist::create
filter ( in astring name ) savetofile() void nsimsg
filterlist::savetofile ( in nsioutputstream stream ) parsecondition() void nsimsg
filterlist::parsecondition ( in nsimsg
filter a
filter, in string condition ) savetodefaultfile() void nsimsg
filterlist::savetodefaultfile ( ) apply
filterstohdr() void nsimsg
filterlist::apply
filterstohdr ( in nsmsg
filtertypetype
filtertype, in nsimsgdbhdr msghdr, in nsimsgfolder folder, in nsimsgdatabase db, in string headers, in unsigned long headersize, in nsimsg
filterhitnotify listener, in nsimsgwindow msgwindow, in nsilocalfile amessagefile ) ...
...And 3 more matches
nsIProtocolProxyFilter
netwerk/base/public/nsiprotocolproxy
filter.idlscriptable this interface is used to apply
filters to the proxies selected for a given uri.
... 1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) this interface is used to apply
filters to the proxies selected for a given uri.
... use nsiprotocolproxyservice.register
filter() to hook up instances of this interface.
...And 3 more matches
BiquadFilterNode.getFrequencyResponse() - Web APIs
the getfrequencyresponse() method of the biquad
filternode interface takes the current
filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
... syntax biquad
filternode.getfrequencyresponse(frequencyarray, magresponseoutput, phaseresponseoutput); parameters frequencyarray a float32array containing an array of frequencies, specified in hertz, which you want to
filter.
... example in the following example we are using a biquad
filter on a media stream (for the full demo, see our stream-source-buffer demo live, or read the source.) as part of this demo, we get the frequency responses for this biquad
filter, for five sample frequencies.
...And 3 more matches
IIRFilterNode.getFrequencyResponse() - Web APIs
the getfrequencyresponse() method of the iir
filternode interface takes the current
filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
... syntax iir
filternode.getfrequencyresponse(frequencyarray, magresponseoutput, phaseresponseoutput); parameters frequencyarray a float32array containing an array of frequencies, specified in hertz, which you want to
filter.
... examples in the following example we are using an iir
filter on a media stream (for a complete full demo, see our stream-source-buffer demo live, or read its source.) as part of this demo, we get the frequency responses for this iir
filter, for five sample frequencies.
...And 3 more matches
MutationObserverInit.attributeFilter - Web APIs
the mutationobserverinit dictionary's optional attribute
filter property is an array of strings specifying the names of the attributes whose values are to be monitored for changes.
... if the attributes permission is true but no attribute
filter is included in the options object, all attributes' values are watched for changes.
... syntax var options = { attribute
filter: [ "list", "of", "attribute", "names" ] } value an array of domstring objects, each specifying the name of one attribute whose value is to be monitored for changes.
...And 3 more matches
BaseAudioContext.createBiquadFilter() - Web APIs
the createbiquad
filter() method of the baseaudiocontext interface creates a biquad
filternode, which represents a second order
filter configurable as several different common
filter types.
... syntax baseaudiocontext.createbiquad
filter(); returns a biquad
filternode.
... example the following example shows basic usage of an audiocontext to create a biquad
filter node.
...And 2 more matches
BaseAudioContext.createIIRFilter() - Web APIs
the createiir
filter() method of the baseaudiocontext interface creates an iir
filternode, which represents a general infinite impulse response (iir)
filter which can be configured to serve as various types of
filter.
... syntax var iir
filter = audiocontext.createiir
filter(feedforward, feedback); parameters feedforward an array of floating-point values specifying the feedforward (numerator) coefficients for the transfer function of the iir
filter.
... feedback an array of floating-point values specifying the feedback (denominator) coefficients for the transfer function of the iir
filter.
...And 2 more matches
BiquadFilterNode.Q - Web APIs
the q property of the biquad
filternode interface is an a-rate audioparam, a double representing a q factor, or quality factor.
... syntax var audioctx = new audiocontext(); var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.q.value = 100; note: though the audioparam returned is read-only, the value it represents is not.
... example the following example shows basic usage of an audiocontext to create a biquad
filter node.
...And 2 more matches
BiquadFilterNode.detune - Web APIs
the detune property of the biquad
filternode interface is an a-rate audioparam representing detuning of the frequency in cents.
... syntax var audioctx = new audiocontext(); var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.detune.value = 100; note: though the audioparam returned is read-only, the value it represents is not.
... example the following example shows basic usage of an audiocontext to create a biquad
filter node.
...And 2 more matches
BiquadFilterNode.frequency - Web APIs
the frequency property of the biquad
filternode interface is a k-rate audioparam, a double representing a frequency in the current
filtering algorithm measured in hertz (hz).
... syntax var audioctx = new audiocontext(); var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.frequency.value = 3000; note: though the audioparam returned is read-only, the value it represents is not.
... example the following example shows basic usage of an audiocontext to create a biquad
filter node.
...And 2 more matches
BiquadFilterNode.gain - Web APIs
the gain property of the biquad
filternode interface is a a-rate audioparam, a double representing the gain used in the current
filtering algorithm.
... syntax var audioctx = new audiocontext(); var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.gain.value = 25; note: though the audioparam returned is read-only, the value it represents is not.
... example the following example shows basic usage of an audiocontext to create a biquad
filter node.
...And 2 more matches
NodeIterator.filter - Web APIs
the nodeiterator.
filter read-only method returns a node
filter object, that is an object implement an acceptnode(node) method, used to screen nodes.
... when creating the nodeiterator, the
filter object is passed in as the third parameter, and the object method acceptnode(node) is called on every single node to determine whether or not to accept it.
... this function should return the constant node
filter.
filter_accept for cases when the node should be accepted and node
filter.
filter_reject for cases when the node should be rejected.
...And 2 more matches
<filter> - SVG: Scalable Vector Graphics
the <
filter> svg element defines a custom
filter effect by grouping atomic
filter primitives.
... it is never rendered itself, but must be used by the
filter attribute on svg elements, or the
filter css property for svg/html elements.
... usage context categoriesnonepermitted contentany number of the following elements, in any order:descriptive elements
filter primitive elements<animate>, <set> attributes global attributes core attributes presentation attributes xlink attributes class style externalresourcesrequired specific attributes x y width height
filterres
filterunits primitiveunits xlink:href dom interface this element implements the svg
filterelement interface.
...And 2 more matches
nsIMsgFilter
defined in comm-central/ mailnews/ base/ search/ public/ nsimsg
filter.idl attributes type attribute nsmsgruleactiontype type; priority // target priority..
...throws an exception if the action is not label attribute nsmsglabelvalue label; junkscore attribute long junkscore; strvalue attribute autf8string strvalue; customid // action id if type is custom attribute acstring customid; customaction // custom action associated with customid // (which must be set prior to reading this attribute) readonly attribute nsimsg
filtercustomaction customaction; methods addterm() void nsimsg
filter::addterm ( in nsmsgsearchattribvalue attrib, in nsmsgsearchopvalue op, in nsimsgsearchvalue value, in boolean booleanand, in acstring arbitraryheader ) getterm() void nsimsg
filter::getterm ( in long termindex, in nsmsgsearchattri...
...bvalue attrib, in nsmsgsearchopvalue op, in nsimsgsearchvalue value, out boolean booleanand, out acstring arbitraryheader ) appendterm() void nsimsg
filter::appendterm (in nsimsgsearchterm term) createterm() nsimsgsearchterm nsimsg
filter::createterm ( ) matchhdr() void nsimsg
filter::matchhdr ( in nsimsgdbhdr msghdr, in nsimsgfolder folder, in nsimsgdatabase db, in string headers, in unsigned long headersize, out boolean result ) logrulehit() void nsimsg
filter::logrulehit ( in nsimsgruleaction a
filteraction, in nsimsgdbhdr aheader ) createaction() nsimsgruleaction nsimsg
filter::createaction ( ) getactionat() nsimsgruleaction nsimsg
filter::getactionat (in lo...
...ng aindex) appendaction() void nsimsg
filter::appendaction (in nsimsgruleaction action ) clearactionlist() void nsimsg
filter::clearactionlist() getsortedactionlist() void nsimsg
filter::getsortedactionlist (in nsisupportsarray actionlist) ...
Edit CSS filters - Firefox Developer Tools
css
filter properties in the rules view have a circular gray and white swatch next to them: clicking the swatch opens a
filter editor: the
filter editor lists each of the effects performed by that
filter on a separate line.
... saving
filter presets from firefox 42 onwards, you can also add
filters to a list of presets.
...you can save the current
filter to the preset list: click to edit the
filter, display the preset list by clicking the icon as shown below.
... you can then apply saved
filters to new elements.
TreeWalker.filter - Web APIs
the treewalker.
filter read-only property returns a node
filter that is the
filtering object associated with the treewalker.
... when creating the treewalker, the
filter object is passed in as the third parameter, and its method node
filter.acceptnode() is called on every single node to determine whether or not to accept it.
... syntax node
filter = treewalker.
filter; example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); node
filter = treewalker.
filter; // document.body in this case specifications specification status comment domthe definition of 'treewalker.
filter' in that specification.
... living standard no change from document object model (dom) level 2 traversal and range specification document object model (dom) level 2 traversal and range specificationthe definition of 'treewalker.
filter' in that specification.
filterRes - SVG: Scalable Vector Graphics
the
filterres attribute indicates the width and height of the intermediate images in pixels of a
filter primitive.
... note that negative values or zero values disable the rendering of the element which referenced the
filter.
... only one element is using this attribute: <
filter> usage notes value <number-optional-number> default value none animatable yes <number-optional-number> this value takes one or two values, the first one outlining the resolution in horizontal direction, the second one in vertical direction.
... specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of '
filterres' in that specification.
filterUnits - SVG: Scalable Vector Graphics
the
filterunits attribute defines the coordinate system for the attributes x, y, width and height.
... only one element is using this attribute: <
filter> usage notes value userspaceonuse | objectboundingbox default value objectboundingbox animatable yes userspaceonuse x, y, width and height represent values in the current coordinate system that results from taking the current user coordinate system in place at the time when the <
filter> element is referenced (i.e., the user coordinate system for the element referencing the <
filter> element via a
filter attribute).
... specifications specification status comment
filter effects module level 1the definition of '
filterunits' in that specification.
... working draft initial definition scalable vector graphics (svg) 1.1 (second edition)the definition of '
filterunits' in that specification.
Spam filtering
spam detection happens after
filters are run.
... white listing happens after
filters, but before spam detection.
... currently, spam
filtering is does not work for news, but it would be possible to add support for this.
EXT_texture_filter_anisotropic - Web APIs
the ext_texture_
filter_anisotropic extension is part of the webgl api and exposes two constants for anisotropic
filtering (af).
... examples var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); var ext = ( gl.getextension('ext_texture_
filter_anisotropic') || gl.getextension('moz_ext_texture_
filter_anisotropic') || gl.getextension('webkit_ext_texture_
filter_anisotropic') ); if (ext){ var max = gl.getparameter(ext.max_texture_max_anisotropy_ext); gl.texparameterf(gl.texture_2d, ext.texture_max_anisotropy_ext, max); } specifications specification status comment ext_texture_
filter_anisotropicthe definiti...
...on of 'ext_texture_
filter_anisotropic' in that specification.
Descendants and Filters - Archive of obsolete content
filters in many cases, especially with the * selector, you don't want to work with all of the nodes that would be returned by the .
...the
filtering conditional therefore creates a list with just fido and killer as members.
nsIThreadEventFilter
the nsithreadevent
filter interface may be implemented to determine whether or not an event may be accepted by a nested event queue; see nsithreadinternal.pusheventqueue() for more information.
... you should implement this interface and its acceptevent() method, then pass the object implementing it as the
filter.
Filter Effects - CSS: Cascading Style Sheets
filter effects is a module of css that defines a way of processing an element’s rendering before it is displayed in the document.
... reference properties backdrop-
filter filter data types <
filter-function> specifications specification status comment
filter effects module level 1the definition of '
filter' in that specification.
nsMsgFilterFileAttribValue
defined in comm-central/ mailnews/ base/ search/ public/ nsimsg
filterlist.idl const nsmsg
filterfileattribvalue attribnone = 0; const nsmsg
filterfileattribvalue attribversion = 1; const nsmsg
filterfileattribvalue attriblogging = 2; const nsmsg
filterfileattribvalue attribname = 3; const nsmsg
filterfileattribvalue attribenabled = 4; const nsmsg
filterfileattribvalue attribdescription = 5; const nsmsg
filterfileattribvalue attribtype = 6; const nsmsg
filterfileattribvalue attribscriptfile = 7; const nsmsg
filterfileattribvalue attribaction = 8; const nsmsg
filterfileattribvalue attribactionvalue = 9; const nsmsg
filterfileattribvalue attribcondition = 10; const nsmsg
filterfileattribvalue attribcustomid = 11; ...
Filter Incoming Mail
filter incoming mail to
filter incoming mail, the first step is to detect new messages inconming.
SVG documentation index - SVG: Scalable Vector Graphics
29 azimuth
filters, svg, svg attribute the azimuth attribute specifies the direction angle for the light source on the xy plane (clockwise), in degrees from the x axis.
... 30 basefrequency
filters, svg, svg attribute the basefrequency attribute represents the base frequency parameter for the noise function of the <feturbulence>
filter primitive.
... 35 bias
filters, needsexample, svg, svg attribute the bias attribute shifts the range of the
filter.
...And 89 more matches
Index - Web APIs
229 baseaudiocontext.createbiquad
filter() api, audiocontext, baseaudiocontext, method, reference, web audio api, createbiquad
filter a biquad
filternode.
... 239 baseaudiocontext.createiir
filter() api, audio, audiocontext, baseaudiocontext, createiir
filter, method, reference, web audio api,
filter the createiir
filter() method of the baseaudiocontext interface creates an iir
filternode, which represents a general infinite impulse response (iir)
filter which can be configured to serve as various types of
filter.
... 278 biquad
filternode api, biquad
filternode, interface, reference, web audio api the biquad
filternode interface represents a simple low-order
filter, and is created using the audiocontext.createbiquad
filter() method.
...And 34 more matches
Componentizing our Svelte app - Learn web development
filterbutton.svelte: the all, active, and completed buttons that allow you to apply
filters to the displayed todo items.
... in this article we will concentrate on creating the
filterbutton and todo components; we'll get to the others in future articles.
... extracting our
filter component we'll begin by creating our
filterbutton.svelte.
...And 26 more matches
Dynamic behavior in Svelte: working with variables and props - Learn web development
in this article we'll be using variables and props to make our app dynamic, allowing us to add and delete todos, mark them as complete, and
filter them by status.
...ipt> section at the top of src/components/todos.svelte and give it some content, as follows: <script> let todos = [ { id: 1, name: 'create a svelte starter app', completed: true }, { id: 2, name: 'create your first component', completed: true }, { id: 3, name: 'complete the rest of the tutorial', completed: false } ] let totaltodos = todos.length let completedtodos = todos.
filter(todo => todo.completed).length </script> now let's do something with that information.
...at the bottom of the todos.svelte <script> section, add the removetodo() function like so: function removetodo(todo) { todos = todos.
filter(t => t.id !== todo.id) } we'll call it via the delete button.
...And 25 more matches
TypeScript support in Svelte - Learn web development
typescript will warn us about the todos prop and the t variable in the call to todos.
filter(t =>...).
...(ts) $: completedtodos = todos.
filter(t => t.completed).length we will use the todotype we already defined to tell typescript that todos is a todotype array — replace your export let todos line with the following: import type { todotype } from '../types/todo.type' export let todos: todotype[] notice that now typescript can infer that the t variable in todos.
filter(t => t.completed) is of type todotype.
... nevertheless, if we think it makes our code easier to read, we could specify it like this: $: completedtodos = todos.
filter((t: todotype) => t.completed).length most of the time typescript will be able to correctly infer the reactive variable type, but sometimes you might get an "implicitly has an 'any' type" error when working with reactive assignments.
...And 22 more matches
nsIFilePicker
to create an instance, use: var filepicker = components.classes["@mozilla.org/filepicker;1"] .createinstance(components.interfaces.nsifilepicker); method overview void append
filter(in astring title, in astring
filter); void append
filters(in long
filtermask); void init(in nsidomwindow parent, in astring title, in short mode); void open(in nsifilepickershowncallback afilepickershowncallback); short show(); obsolete since gecko 57.0 attributes attribute type description addtorecentdocs boolean if true,...
...
filterindex long the (0-based) index of the
filter which is currently selected in the file picker dialog.
... set this to choose a particular
filter to be selected by default.
...And 22 more matches
Document.createNodeIterator() - Web APIs
syntax const nodeiterator = document.createnodeiterator(root[, whattoshow[,
filter]]); values root the root node at which to begin the nodeiterator's traversal.
... whattoshow optional is an optional unsigned long representing a bitmask created by combining the constant properties of node
filter.
... it is a convenient way of
filtering for certain types of node.
...And 17 more matches
Document.createTreeWalker() - Web APIs
syntax document.createtreewalker(root, whattoshow[,
filter[, entityreferenceexpansion]]); parameters root a root node of this treewalker traversal.
... whattoshow optional a unsigned long representing a bitmask created by combining the constant properties of node
filter.
... it is a convenient way of
filtering for certain types of node.
...And 16 more matches
in - SVG: Scalable Vector Graphics
the in attribute identifies input for the given
filter primitive.
... the value can be either one of the six keywords defined below, or a string which matches a previous result attribute value within the same <
filter> element.
... if no value is provided and this is the first
filter primitive, then this
filter primitive will use sourcegraphic as its input.
...And 14 more matches
Simple Query Syntax - Archive of obsolete content
the
filtering isn't shown in this example.
... it is still possible to do
filtering using simple query and we'll look at this below.
... simple query conditions simple queries also use a simpler way of handling triple elements to
filter out unwanted results.
...And 13 more matches
nsIMsgIncomingServer
inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void clearallvalues(); void cleartemporaryreturnreceipts
filter(); void closecachedconnections(); void configuretemporary
filters(in nsimsg
filterlist
filterlist); void configuretemporaryreturnreceipts
filter(in nsimsg
filterlist
filterlist); obsolete since gecko 1.8 void displayofflinemsg(in nsimsgwindow awindow); boolean equals(in nsimsgincomingserver server); void forgetpassword(); void forgetsessionpassword(); astring generateprettynameformigration(); boolean getboolattribute(in string name); boolean getboolvalue(in strin...
...g attr); acstring getcharattribute(in string name); acstring getcharvalue(in string attr); nsilocalfile getfilevalue(in string relpref, in string abspref); nsimsg
filterlist get
filterlist(in nsimsgwindow amsgwindow); long getintattribute(in string name); long getintvalue(in string attr); nsimsgfolder getmsgfolderfromuri(in nsimsgfolder afolderresource, in acstring auri); void getnewmessages(in nsimsgfolder afolder, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener); acstring getpasswordwithui(in astring apromptstring, in astring aprompttitle, in nsimsgwindow amsgwindow, out boolean okayvalue); astring getunicharattribute(in string name); astring getunicharvalue(in string attr); boolean isnewhdrduplicate(in nsimsgdbhdr anewhdr); void onuserorhostnamechanged(in ...
...emovefiles(); void setboolattribute(in string name, in boolean value); void setboolvalue(in string attr, in boolean value); void setcharattribute(in string name, in acstring value); void setcharvalue(in string attr, in acstring value); void setdefaultlocalpath(in nsilocalfile adefaultlocalpath); void setfilevalue(in string relpref, in string abspref, in nsilocalfile avalue); void set
filterlist(in nsimsg
filterlist a
filterlist); void setintattribute(in string name, in long value); void setintvalue(in string attr, in long value); void setunicharattribute(in string name, in astring value); void setunicharvalue(in string attr, in astring value); void shutdown(); void storepassword(); astring tostring(); void writetofoldercache(in nsimsgfoldercache foldercache); attrib...
...And 13 more matches
nsIProtocolProxyService
esolve(in nsiuri auri, in unsigned long aflags,in nsiprotocolproxycallback acallback); nsiproxyinfo newproxyinfo(in acstring atype, in autf8string ahost,in long aport, in unsigned long aflags, in unsigned long afailovertimeout, in nsiproxyinfo afailoverproxy); nsiproxyinfo getfailoverforproxy(in nsiproxyinfo aproxyinfo, in nsiuri auri, in nsresult areason); void register
filter(in nsiprotocolproxy
filter a
filter, in unsigned long aposition); void unregister
filter(in nsiprotocolproxy
filter a
filter); constants constant value description resolve_non_blocking 1<<0 this flag may be passed to the resolve method to request that it fail instead of block the calling thread.
... register
filter() this method may be used to register a proxy
filter instance.
... each proxy
filter is registered with an associated position that determines the order in which the
filters are applied (starting from position 0).
...And 13 more matches
NodeIterator - Web APIs
syntax a nodeiterator can be created using the document.createnodeiterator() method, as follows: const nodeiterator = document.createnodeiterator(root, whattoshow,
filter); properties this interface doesn't inherit any property.
... the possible values are: constant numerical value description node
filter.show_all -1 (that is the max value of unsigned long) shows all nodes.
... node
filter.show_attribute 2 shows attribute attr nodes.
...And 12 more matches
TreeWalker - Web APIs
the possible values are: constant numerical value description node
filter.show_all -1 (that is the max value of unsigned long) shows all nodes.
... node
filter.show_attribute 2 shows attribute attr nodes.
... node
filter.show_cdata_section 8 shows cdatasection nodes.
...And 12 more matches
<feComposite> - SVG: Scalable Vector Graphics
the <fecomposite> svg
filter primitive performs the combination of two input images pixel-wise in image space using one of the porter-duff compositing operations: over, in, atop, out, xor, and lighter.
... the arithmetic operation is useful for combining the output from the <fediffuselighting> and <fespecularlighting>
filters with texture data.
... if the arithmetic operation is chosen, each result pixel is computed using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 where: i1 and i2 indicate the corresponding pixel channel values of the input image, which map to in and in2 respectively k1, k2, k3 and k4 indicate the values of the attributes with the same name usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes » presentation attributes »
filter primitive attributes » class style specific attributes in in2 operator k1 k2 k3 k4 dom interface this element implements the svgfecompositeelement interface.
...And 12 more matches
NodeIterator.whatToShow - Web APIs
syntax var nodetypes = nodeiterator.whattoshow; the values that can be combined to form the bitmask are: constant numerical value description node
filter.show_all -1 (that is the max value of unsigned long) shows all nodes.
... node
filter.show_attribute 2 shows attribute attr nodes.
... node
filter.show_cdata_section 8 shows cdatasection nodes.
...And 11 more matches
TreeWalker.whatToShow - Web APIs
the possible values are: constant numerical value description node
filter.show_all -1 (that is the max value of unsigned long) shows all nodes.
... node
filter.show_attribute 2 shows attribute attr nodes.
... node
filter.show_cdata_section 8 shows cdatasection nodes.
...And 11 more matches
Advanced techniques: Creating and sequencing audio - Web APIs
we're going to introduce sample loading, envelopes,
filters, wavetables, and frequency modulation.
...the techniques we are using are: name of voice technique associated web audio api feature "sweep" oscillator, periodic wave oscillatornode, periodicwave "pulse" multiple oscillators oscillatornode "noise" random noise buffer, biquad
filter audiobuffer, audiobuffersourcenode, biquad
filternode "dial up" loading a sound sample to play audiocontext.decodeaudiodata(), audiobuffersourcenode note: this instrument was not created to sound good, it was created to provide demonstration code and represents a very simplified version of such an instrument.
... amp.gain.setvalueattime(1, audioctx.currenttime); let lfo = audioctx.createoscillator(); lfo.type = 'square'; lfo.frequency.setvalueattime(lfohz, audioctx.currenttime); lfo.connect(amp.gain); osc.connect(amp).connect(audioctx.destination); lfo.start(); osc.start(); osc.stop(audioctx.currenttime + pulsetime); } the "noise" — random noise buffer with biquad
filter now we need to make some noise!
...And 10 more matches
jspage - Archive of obsolete content
ion(){a.window.detachevent("onunload",arguments.callee);a.head=a.html=a.window=null; });}return $extend(a,document.prototype);},afterimplement:function(b,a){document[b]=document.prototype[b]=a;}});document.prototype={$family:{name:"document"}}; new document(document);array.implement({every:function(c,d){for(var b=0,a=this.length;b<a;b++){if(!c.call(d,this[b],b,this)){return false;}}return true; },
filter:function(d,e){var c=[];for(var b=0,a=this.length;b<a;b++){if(d.call(e,this[b],b,this)){c.push(this[b]);}}return c;},clean:function(){return this.
filter($defined); },indexof:function(c,d){var a=this.length;for(var b=(d<0)?math.max(0,a+d):d||0;b<a;b++){if(this[b]===c){return b;}}return -1;},map:function(d,e){var c=[]; for(var b=0,a=this.length;b<a;b++){c[b]=d.call(e,this[b],b,this);}return c;},some...
...ction(a){return(this.hasownproperty(a))?this[a]:null; },set:function(a,b){if(!this[a]||this.hasownproperty(a)){this[a]=b;}return this;},empty:function(){hash.each(this,function(b,a){delete this[a];},this); return this;},include:function(a,b){if(this[a]==undefined){this[a]=b;}return this;},map:function(b,c){var a=new hash;hash.each(this,function(e,d){a.set(d,b.call(c,e,d,this)); },this);return a;},
filter:function(b,c){var a=new hash;hash.each(this,function(e,d){if(b.call(c,e,d,this)){a.set(d,e);}},this);return a;},every:function(b,c){for(var a in this){if(this.hasownproperty(a)&&!b.call(c,this[a],a)){return false; }}return true;},some:function(b,c){for(var a in this){if(this.hasownproperty(a)&&b.call(c,this[a],a)){return true;}}return false;},getkeys:function(){var a=[]; hash.each(this,function(c...
....document.body)||window.frames[d.id])?b():c.addlistener("load",b);return c;}});var elements=new native({initialize:function(f,b){b=$extend({ddup:true,cash:true},b); f=f||[];if(b.ddup||b.cash){var g={},e=[];for(var c=0,a=f.length;c<a;c++){var d=document.id(f[c],!b.cash);if(b.ddup){if(g[d.uid]){continue;}g[d.uid]=true; }if(d){e.push(d);}}f=e;}return(b.cash)?$extend(f,this):f;}});elements.implement({
filter:function(a,b){if(!a){return this;}return new elements(array.
filter(this,(typeof a=="string")?function(c){return c.match(a); }:a,b));}});document.implement({newelement:function(a,b){if(browser.engine.trident&&b){["name","type","checked"].each(function(c){if(!b[c]){return;}a+=" "+c+'="'+b[c]+'"'; if(c!="checked"){delete b[c];}});a="<"+a+">";}return document.id(this.createelement(a)).set(b);},newtex...
...And 9 more matches
Advanced styling effects - Learn web development
this article acts as a box of tricks, providing an introduction to some interesting advanced styling features such as box shadows, blend modes, and
filters.
...
filters while you can't change the composure of an image using css, there are some creative things you can do.
... one very nice property, which can help you bring interest to your designs, is the
filter property.
...And 9 more matches
nsIDOMMozNetworkStatsManager
the query may be
filtered by connection type and date.
... options optional
filtering options.
... networkstatsgetoptions is a dictionary object providing
filtering options.
...And 9 more matches
Network request list - Firefox Developer Tools
filtering requests you can
filter requests by content type, by whether they are xmlhttprequests or websocket requests, or by request properties.
...
filter type how to apply content type use the buttons in the toolbar (html, css, js).
...you can
filter by plain text (in which case the text is used to find partial matches; entering "for" will match any message that contains the word "for") or—as of firefox 75—using regular expressions (by writing the regexp bracketed within slashes; "/.+corp.*/" will look for any occurrence of "corp" which has at least one character before it and may or may not have any characters after it, for example).
...And 9 more matches
x - SVG: Scalable Vector Graphics
are using this attribute: <altglyph>, <feblend>, <fecolormatrix>, <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 <alt...
... value <length> | <percentage> default value 0% animatable yes fepointlight for <fepointlight>, x defines the x location for the light source in the coordinate system defined by the primitiveunits attribute on the <
filter> element.
... value <length> | <percentage> default value 0% animatable yes fespotlight for <fespotlight>, x defines the x location for the light source in the coordinate system defined by the primitiveunits attribute on the <
filter> element.
...And 8 more matches
y - SVG: Scalable Vector Graphics
are using this attribute: <altglyph>, <feblend>, <fecolormatrix>, <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 <alt...
... value <length> | <percentage> default value 0% animatable yes fepointlight for <fepointlight>, y defines the y location for the light source in the coordinate system defined by the primitiveunits attribute on the <
filter> element.
... value <length> | <percentage> default value 0% animatable yes fespotlight for <fespotlight>, y defines the y location for the light source in the coordinate system defined by the primitiveunits attribute on the <
filter> element.
...And 8 more matches
JavaScript Debugger Service - Archive of obsolete content
rorhook[onerror] returns false // it is not well-known why debughook sometimes fails to trigger jsd.debughook = { onexecute: function(frame, type, rv) { stacktrace = ""; for (var f = frame; f; f = f.callingframe) { stacktrace += f.script.filename + "@" + f.line + "@" + f.functionname + "\n"; } dump(stacktrace); return components.interfaces.jsdiexecutionhook.return_continue; } };
filters jsd also allows the use of
filters to track which scripts should trigger the hooks.
... note that the jsdi
filter only applies to jsdiexecutionhooks, which are breakpointhook, debughook, debuggerhook, interrupthook and throwhook.
... note that
filters are matched in a first in, first compared fashion.
...And 7 more matches
WebRequest.jsm
st, use code like: let {webrequest} = cu.import("resource://gre/modules/webrequest.jsm", {}); the webrequest object has the following properties, each of which corresponds to a specific stage in executing a web request: onbeforerequest onbeforesendheaders onsendheaders onheadersreceived onresponsestarted oncompleted each of these objects defines two functions: addlistener(callback,
filter, opt_extrainfospec) removelistener(callback) adding listeners use addlistener to add a listener to a particular event.
...
filter object the optional
filter argument is used to restrict the requests for which the listener callback will be invoked.
... see
filtering.
...And 7 more matches
Intercepting Page Loads - Archive of obsolete content
http observers are great for load detection, and
filtering by url.
...in a nutshell, there are a lot of state and status changes going on when a page loads, and the notify constants allow you to
filter out the events you don't need to listen to.
... picking the right
filter not only simplifies your code, but also reduces the performance impact your extension will have in regular navigation.
...And 6 more matches
No Proxy For configuration - Archive of obsolete content
note for former-ie users: "*" is supported only at the beginning of domain
filters (*.mozilla.org).
... an ip address ip address "1.2.3.4" does not block hostnames that resolve to the ip address ("127.0.0.1" does not block "localhost") a network network w/ cidr block "10.0.0.0/8" does not block hostnames that resolve to the ip address range (10.0.0.0/8 is not "no proxy for intranet hostnames") optional - port-specific (optional) ":" + port number "<
filter>:81" only black-lists port.
...port-only
filters ":80" or "*:80" are not supported.
...And 6 more matches
Open and Save Dialogs - Archive of obsolete content
default directory and
filters there are two features you can set of the dialog before it is displayed.
... the second is a
filter that indicates the list of file types that are displayed in the dialog.
...to add
filters, call the append
filters() function to set the file types that you wish to have displayed.
...And 6 more matches
Parser API
interface comprehensionexpression <: expression { type: "comprehensionexpression"; body: expression; blocks: [ comprehensionblock | comprehensionif ];
filter: expression | null; } an array comprehension.
...the optional
filter expression corresponds to the final if clause, if present.
... interface generatorexpression <: expression { type: "generatorexpression"; body: expression; blocks: [ comprehensionblock | comprehensionif ];
filter: expression | null; } a generator expression.
...And 6 more matches
Index
42 components.utils.isxraywrapper when privileged javascript in gecko accesses objects belonging to less-privileged code (such as untrusted web content), it does so, by default, with "xray vision": a mechanism that
filters out certain changes to the objects that could cause them to behave in unexpected ways.
... 767 nsimsg
filter interfaces, interfaces:scriptable, xpcom, xpcom interface reference, thunderbird no summary!
... 768 nsimsg
filtercustomaction defined in comm-central/ mailnews/ base/ search/ public/ nsimsg
filtercustomaction.idl 769 nsimsg
filterlist interfaces, interfaces:scriptable, xpcom, xpcom interface reference, thunderbird defined in comm-central/ mailnews/ base/ search/ public/ nsimsg
filterlist.idl 770 nsimsgfolder interfaces, interfaces:scriptable, message database, messages, needscontent, xpcom api reference, xpcom interface reference, thunderbird the nsimsgfolder interface is used to interact with folders in thunderbird.
...And 6 more matches
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
there are 3 properties you can use: mask, clip-path, and
filter.
...for example, you can resize the circle in the clip path established above: function toggleradius() { var circle = document.getelementbyid("circle"); circle.r.baseval.value = 0.40 - circle.r.baseval.value; } example:
filtering this demonstrates applying a
filter to html content using svg.
... it establishes several
filters, which are applied with css to three elements in both the normal and mouse hover states.
...And 6 more matches
result - SVG: Scalable Vector Graphics
the result attribute defines the assigned name for this
filter primitive.
... if supplied, then graphics that result from processing this
filter primitive can be referenced by an in attribute on a subsequent
filter primitive within the same <
filter> element.
... if no value is provided, the output will only be available for re-use as the implicit input into the next
filter primitive if that
filter primitive provides no value for its in attribute.
...And 6 more matches
Componentizing our React app - Learn web development
remembering that components are either obvious pieces of ui, or reused pieces of ui, or both, we can make two more components: <form/> <
filterbutton/> since we know we need both, we can batch some of the file creation work together with a terminal command.
... run this command in your terminal, taking care that you're in the root directory of your app: touch src/components/form.js src/components/
filterbutton.js the <form /> open components/form.js and do the following: import react at the top of the file, like we did in todo.js.
... </label> </h2> <input type="text" id="new-todo-input" classname="input input__lg" name="text" autocomplete="off" /> <button type="submit" classname="btn btn__primary btn__lg"> add </button> </form> ); } export default form; the <
filterbutton /> do the same things you did to create form.js inside
filterbutton.js, but call the component
filterbutton() and copy the html for the first button inside the <div> element with the class of
filters from app.js into the return statement.
...And 5 more matches
Profiling with the Firefox Profiler
"
filter stacks" will allow you to search for functions by name.
... one of the easiest ways to find slowness caused by a page's js is to type its url into the "
filter stacks" box.
... tip: if things are blank elsewhere in the ui, you may have text entered into the "
filter stacks" box.
...And 5 more matches
nsIDBChangeListener
this can be used to
filter out events that you yourself started.
...this can be used to
filter out events that you yourself started.
...this can be used to
filter out events that you yourself started.
...And 5 more matches
Web Audio API - Web APIs
a simple, typical workflow for web audio would look something like this: create audio context inside the context, create sources — such as <audio>, oscillator, stream create effects nodes, such as reverb, biquad
filter, panner, compressor choose final destination of audio, for example your system speakers connect the sources up to the effects, and the effects to the destination.
...a
filter like biquad
filternode, or volume control like gainnode).
... defining audio effects
filters interfaces for defining effects that you want to apply to your audio sources.
...And 5 more matches
Index - Archive of obsolete content
e4x also adds new javascript operators for
filtering xml lists, and for enumerating xml children and descendants.
... 1623 sorting and
filtering a custom tree view this is example code for sorting and
filtering a custom tree view, that is, a tree whose values are loaded via javascript.
...using a literal as the object of a triple is a common way to
filter out specific items.
...And 4 more matches
Elements - Archive of obsolete content
button - the button attribute imposes a
filter on the handler.
... modifiers - the modifiers attribute imposes a
filter on key and mouse handlers.
... any - this causes the
filter to ignore the state of any modifiers that occur before the any keword.
...And 4 more matches
Routing in Ember - Learn web development
previous overview: client-side javascript frameworks next in this article we learn about routing, or url-based
filtering as it is sometimes referred to.
... url-based
filtering ember comes with a routing system that has a tight integration with the browser url.
... at the moment, we already have the "all" page, as we are currently not doing any
filtering in the page that we've been working with, but we will need to reorganize it a bit to handle a different view for the "active" and "completed" todos.
...And 4 more matches
Accessibility/LiveRegionDevGuide
filtering events text changed events certain web page mutation events, such as adding to a list, trigger both an object changed and a text changed event.
...
filtering user actions this paragraph describes object properties and event naming schemes that are used to help an at determine if an event is an actual live region event or is the result of user action.
...
filtering for performance the most significant difference between at-spi and iaccessible2 is that at-spi is an inter-process communication service while iaccessible2 runs in process.
...And 4 more matches
Eclipse CDT Manual Setup
(if an "indexing" item starts after the "refreshing the workspace" item has finished, click the little red box beside that item to cancel it, since we want to configure the project before the indexer runs.) initial project properties so that the indexer will run faster and give better results, and so that eclipse doesn't give results for irrelevant files, you should add some resource
filters to have eclipse ignore certain non-source files and directories.
... to create resource
filters, open the project properties (different to the workspace preferences!) by selecting properties from the context menu for the project (root item) in the project explorer tab on the left, or by selecting project > properties from the menubar.
... select "resource > resource
filters" on the left of the window that opens, then use the add button to add the following
filters: add an "exclude all"
filter for folders with a project relative path matching ".hg".
...And 4 more matches
nsIMsgFolder
inherits from: nsisupports method overview void startfolderloading(); void endfolderloading(); void updatefolder(in nsimsgwindow awindow); nsimsg
filterlist get
filterlist(in nsimsgwindow msgwindow); void set
filterlist(in nsimsg
filterlist
filterlist); void forcedbclosed(); void delete(); void deletesubfolders(in nsisupportsarray folders, in nsimsgwindow msgwindow); void propagatedelete(in nsimsgfolder folder, in boolean deletestorage,in nsimsgwindow msgwindow); void recursivedelete(in boolean d...
...simsgwindow window); nsimsgfolder getchildwithuri(in acstring uri, in boolean deep, in boolean caseinsensitive); void downloadallforoffline(in nsiurllistener listener, in nsimsgwindow window); void enablenotifications(in long notificationtype, in boolean enable, in boolean dbbatching); boolean iscommandenabled(in acstring command); boolean matchorchange
filterdestination(in nsimsgfolder folder,in boolean caseinsensitive); boolean confirmfolderdeletionfor
filter(in nsimsgwindow msgwindow); void alert
filterchanged(in nsimsgwindow msgwindow); void throwalertmsg(in string msgname, in nsimsgwindow msgwindow); astring getstringwithfoldernamefrombundle(in string msgname); void notifycompactcompleted(); long...
... comparesortkeys(in nsimsgfolder msgfolder); [noscript] void getsortkey(out octet_ptr key, out unsigned long length); boolean call
filterplugins(in nsimsgwindow amsgwindow); acstring getstringproperty(in string propertyname); void setstringproperty(in string propertyname, in acstring propertyvalue); boolean isancestorof(in nsimsgfolder folder); boolean containschildnamed(in astring name); nsimsgfolder getchildnamed(in astring aname); nsimsgfolder findsubfolder(in acstring escapedsubfoldername); void addfolderlistener(in nsifolderlistener listener); void removefolderlistener(in nsifolderlistener listener); void notifypropertychanged(in nsiatom property, in acstring oldvalue, in acstring newvalue); ...
...And 4 more matches
nsIXULTemplateBuilder
the condition syntax allows for common conditional handling; additional
filtering may be applied by adding a custom
filter to a rule with the builder's addrule
filter() method.
...lt); void replaceresult(in nsixultemplateresult aoldresult, in nsixultemplateresult anewresult, in nsidomnode aquerynode); void resultbindingchanged(in nsixultemplateresult aresult); nsixultemplateresult getresultforid(in astring aid); nsixultemplateresult getresultforcontent(in nsidomelement aelement); boolean hasgeneratedcontent(in nsirdfresource anode, in nsiatom atag); void addrule
filter(in nsidomnode arule, in nsixultemplaterule
filter a
filter); [noscript] void init(in nsicontent aelement); [noscript] void createcontents(in nsicontent aelement, in boolean aforcecreation); void addlistener(in nsixulbuilderlistener alistener); void removelistener(in nsixulbuilderlistener alistener); attributes attribute type description root nsidomelement readonly: the root node in ...
...addrule
filter() adds a rule
filter for a given rule, which may be used for specialized rule
filtering.
...And 4 more matches
Index
38 mailnews
filters mailnews, thunderbird mailnews
filters consist of a set of search terms, and a set of
filter actions.
...
filter execution is done by evaluating the search terms using the core mailnews/base/search code, and then applying the
filter hits when the search terms match.
... for new incoming messages, the protocol specific object that handles new messages calls nsimsg
filterlist::apply
filterstohdr and passes itself in as nsimsg
filterhitnotify interface to handle
filter hits.
...And 4 more matches
Examine and edit CSS - Firefox Developer Tools
filter rules containing this property: next to overridden declarations is an icon you can click to
filter the rules list to show only those rules that include that property.
...
filtering rules there's a box at the top of the rules view labeled "
filter styles": as you type: any rules which don't contain the typed string at all are hidden any declarations which contain the typed string are highlighted click the "x" at the end of the search box to remove the
filter.
...once you've typed in a
filter, you can press esc to remove it again.
...And 4 more matches
Audio and video manipulation - Developer guides
having native audio and video in the browser means we can use these data streams with technologies such as <canvas>, webgl or web audio api to modify audio and video directly, for example adding reverb/compression effects to audio, or grayscale/sepia
filters to video.
... mediastreamaudiosourcenode audio
filters the web audio api has a lot of different
filter/effects that can be applied to audio using the biquad
filternode, for example.
... html <video id="my-video" controls src="myvideo.mp4" type="video/mp4"> </video> javascript var context = new audiocontext(), audiosource = context.createmediaelementsource(document.getelementbyid("my-video")),
filter = context.createbiquad
filter(); audiosource.connect(
filter);
filter.connect(context.destination); // configure
filter filter.type = "lowshelf";
filter.frequency.value = 1000;
filter.gain.value = 25; playable code <video id="my-video" controls="true" width="480" height="270" crossorigin="anonymous"> <source src="https://udn.realityripple.com/samples/5b/8cd6da9c65.webm" type="video/webm"> <source src="https://udn.realityripple.com/samples/6f/08625b424a.m4v" type="video/mp4"> </video> <div class="playable-buttons"> <input id="edit" type="button" value="edi...
...And 4 more matches
height - SVG: Scalable Vector Graphics
twenty five elements are using this attribute: <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <feturbulence>, <
filter>, <foreignobject>, <image>, <mask>, <pattern>, <rect>, <svg>, and <use> html,body,svg { height:100% } <svg viewbox="0 0 300 100" xmlns="http://www.w3.org/2000/svg"> <!-- with a height of 0 or less, nothing will be rendered --> <rect y="0" x="0" width="90" height="0"/> <rect y="0" x="100" width="90" height="60"/> <rect y="0" x="200" width="90" height="100%"/> </svg> feblend for <...
... value <length> | <percentage> default value 100% animatable yes
filter for <
filter>, height defines the vertical length for the rendering area of the
filter.
... specifications specification status comment
filter effects module level 1the definition of 'height' in that specification.
...And 4 more matches
kernelUnitLength - SVG: Scalable Vector Graphics
for lighting
filter primitives, it indicates the intended distance for the x and y coordinates, for <feconvolvematrix>, it indicates the intended distance between successive columns and rows in the kernel matrix.
... three elements are using this attribute: <feconvolvematrix>, <fediffuselighting>, and <fespecularlighting> feconvolvematrix for the <feconvolvematrix>, kernelunitlength indicates the intended distance in current
filter units (i.e., units as determined by the value of primitiveunits attribute) between successive columns and rows, respectively, in the kernelmatrix.
... fediffuselighting for the <fediffuselighting>, kernelunitlength indicates the intended distance in current
filter units (i.e., units as determined by the value of attribute primitiveunits) for the x and y coordinate, respectively, in the surface normal calculation formulas.
...And 4 more matches
width - SVG: Scalable Vector Graphics
twenty five elements are using this attribute: <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <feturbulence>, <
filter>, <foreignobject>, <image>, <mask>, <pattern>, <rect>, <svg>, and <use> html,body,svg { height:100% } <svg viewbox="0 0 100 300" xmlns="http://www.w3.org/2000/svg"> <!-- with a width of 0 or less, nothing will be rendered --> <rect x="0" y="0" width="0" height="90"/> <rect x="0" y="100" width="60" height="90"/> <rect x="0" y="200" width="100%" height="90"/> </svg> feblend for <f...
... value <length> | <percentage> default value 100% animatable yes
filter for <
filter>, width defines the horizontal length for the rendering area of the
filter.
... specifications specification status comment
filter effects module level 1the definition of 'width' in that specification.
...And 4 more matches
xlink:href - SVG: Scalable Vector Graphics
22 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>, and <use>} html, body, svg { height: 100%; } <svg viewbox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a xlink:href="https://developer.mozilla.org/"><text x="10" y="25">mdn web docs</text></a> </svg> a for <a>, xlink:href defines the location of t...
... value <iri> default value none animatable yes
filter for <
filter>, xlink:href defines the reference to another <
filter> element within the current svg document fragment.
... any attributes which are defined on the referenced <
filter> element which are not defined on this element are inherited by this element.
...And 4 more matches
<feDiffuseLighting> - SVG: Scalable Vector Graphics
the <fediffuselighting> svg
filter primitive lights an image using the alpha channel as a bump map.
... the light map produced by this
filter primitive can be combined with a texture image using the multiply term of the arithmetic operator of the <fecomposite>
filter primitive.
... usage context categories
filter primitive elementpermitted contentany number of descriptive elements and exactly one light source element, in any order.
...And 4 more matches
Array comprehensions - Archive of obsolete content
for future-facing usages, consider using array.prototype.map, array.prototype.
filter, arrow functions, and spread syntax.
...comprehensions can often be used in place of calls to map() and
filter(), or as a way of combining the two.
...here is a comprehension which selects only even numbers: var numbers = [1, 2, 3, 21, 22, 30]; var evens = [for (i of numbers) if (i % 2 === 0) i]; console.log(evens); // logs 2,22,30
filter() can be used for the same purpose: var evens = numbers.
filter(i => i % 2 === 0); map() and
filter() style operations can be combined into a single array comprehension.
...And 3 more matches
Index - Learn web development
105 advanced styling effects article, beginner, blend modes, boxes, css, codingscripting,
filters, styling, box shadows, effects, shapes we hope this article was fun — playing with shiny toys generally is, and it is always interesting to see what kinds of advanced styling tools are becoming available in modern browsers.
...we can display, add, edit and delete todos, mark them as completed, and
filter by status.
...our app can display, add, and delete todos, toggle their completed status, show how many of them are completed and apply
filters.
...And 3 more matches
Beginning our React todo list - Learn web development
</label> </h2> <input type="text" id="new-todo-input" classname="input input__lg" name="text" autocomplete="off" /> <button type="submit" classname="btn btn__primary btn__lg"> add </button> </form> <div classname="
filters btn-group stack-exception"> <button type="button" classname="btn toggle-btn" aria-pressed="true"> <span classname="visually-hidden">show </span> <span>all</span> <span classname="visually-hidden"> tasks</span> </button> <button type="button" classname="btn toggle-btn" aria-pressed="false"> <span classname="visually-hidden">show </sp...
... we have an array of buttons that will be used to
filter our tasks.
... the form will allow us to make tasks; the buttons will let us
filter them; the heading and list are our way to read them.
...And 3 more matches
Starting our Svelte Todo list app - Learn web development
filter tasks by status: all tasks, active tasks, or completed tasks.
... </label> </h2> <input type="text" id="todo-0" autocomplete="off" class="input input__lg" /> <button type="submit" disabled="" class="btn btn__primary btn__lg"> add </button> </form> <!--
filter --> <div class="
filters btn-group stack-exception"> <button class="btn toggle-btn" aria-pressed="true"> <span class="visually-hidden">show</span> <span>all</span> <span class="visually-hidden">tasks</span> </button> <button class="btn toggle-btn" aria-pressed="false"> <span class="visually-hidden">show</span> <span>active</span> <span class="visua...
... three buttons to
filter by task status.
...And 3 more matches
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
add the following import statement below the existing ones: import moreactions from './moreactions.svelte' then add the described functions at the end of the <script> section: const checkalltodos = (completed) => todos.foreach(t => t.completed = completed) const removecompletedtodos = () => todos = todos.
filter(t => !t.completed) now go to the bottom of the todos.svelte markup section and replace the btn-group <div> that we copied into moreactions.svelte with a call to the moreactions component, like so: <!-- moreactions --> <moreactions on:checkall={e => checkalltodos(e.detail)} on:removecompleted={removecompletedtodos} /> ok, let's go back into the app and try it out!
... update your moreactions.svelte component like this: <script> import { createeventdispatcher } from 'svelte' const dispatch = createeventdispatcher() export let todos let completed = true const checkall = () => { dispatch('checkall', completed) completed = !completed } const removecompleted = () => dispatch('removecompleted') $: completedtodos = todos.
filter(t => t.completed).length </script> <div class="btn-group"> <button type="button" class="btn btn__primary" disabled={todos.length === 0} on:click={checkall}>{completed ?
... add the following contents to it: <script> export let todos $: totaltodos = todos.length $: completedtodos = todos.
filter(todo => todo.completed).length </script> <h2 id="list-heading">{completedtodos} out of {totaltodos} items completed</h2> import the file at the beginning of todos.svelte, adding the following import statement below the others: import todosstatus from './todosstatus.svelte' replace the <h2> status heading inside todos.svelte with a call to the todosstatus component, passing todos t...
...And 3 more matches
SVG Presentation Attributes - SVG: Scalable Vector Graphics
alignment-baseline baseline-shift clip clip-path clip-rule color color-interpolation color-interpolation-
filters color-profile color-rendering cursor direction display dominant-baseline enable-background fill fill-opacity fill-rule
filter flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering solid-color solid-opacity stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linec...
... value: auto|srgb|linearrgb|inherit; animatable: yes color-interpolation-
filters it specifies the color space for imaging operations performed via
filter effects.
... value: nonzero|evenodd|inherit; animatable: yes
filter it defines the
filter effects defined by the <
filter> element that shall be applied to its element.
...And 3 more matches
in2 - SVG: Scalable Vector Graphics
the in2 attribute identifies the second input for the given
filter primitive.
... value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <
filter-primitive-reference> default value sourcegraphic for first
filter primitive, otherwise result of previous
filter primitive animatable yes fecomposite for <fecomposite>, in2 defines the second input image to the compositing operation.
... value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <
filter-primitive-reference> default value sourcegraphic for first
filter primitive, otherwise result of previous
filter primitive animatable yes fedisplacementmap for <fedisplacementmap>, in2 defines the second input image, which is used to displace the pixels in the image defined in the in attribute.
...And 3 more matches
z - SVG: Scalable Vector Graphics
the z attribute defines the location along the z-axis for a light source in the coordinate system established by the primitiveunits attribute on the <
filter> element, assuming that, in the initial coordinate system, the positive z-axis comes out towards the person viewing the content and assuming that one unit along the z-axis equals one unit in x and y.
... two elements are using this attribute: <fepointlight> and <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="diffuselighting1" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fepointlight x="60" y="60" z="10" /> </fediffuselighting> </
filter> <
filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fepointlight x="60" y="60" z="50" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> fepointlight for ...
...<fepointlight>, z defines the location along the z-axis for the light source in the coordinate system established by the primitiveunits attribute on the <
filter> element.
...And 3 more matches
<feComponentTransfer> - SVG: Scalable Vector Graphics
th <fecomponenttransfer> svg
filter primitive performs color-component-wise remapping of data for each pixel.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<fefunca>, <fefuncr>, <fefuncb>, <fefuncg> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in dom interface this element implements the svgfecomponenttransferelement interface.
...its="userspaceonuse" x1="0" y1="0" x2="100%" y2="0"> <stop offset="0" stop-color="#ff0000"></stop> <stop offset="0.2" stop-color="#ffff00"></stop> <stop offset="0.4" stop-color="#00ff00"></stop> <stop offset="0.6" stop-color="#00ffff"></stop> <stop offset="0.8" stop-color="#0000ff"></stop> <stop offset="1" stop-color="#800080"></stop> </lineargradient> <
filter id="identity" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="identity"></fefuncr> <fefuncg type="identity"></fefuncg> <fefuncb type="identity"></fefuncb> <fefunca type="identity"></fefunca> </fecomponenttransfer> </
filter> <
filter id="table" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> ...
...And 3 more matches
<feSpecularLighting> - SVG: Scalable Vector Graphics
the <fespecularlighting> svg
filter primitive lights a source graphic using the alpha channel as a bump map.
...the
filter primitive assumes that the viewer is at infinity in the z direction.
... this
filter primitive produces an image which contains the specular reflection part of the lighting calculation.
...And 3 more matches
Working with Svelte stores - Learn web development
add the following import statement below the existing ones: import { alert } from '../stores.js' update your addtodo() function like so: function addtodo(name) { todos = [...todos, { id: newtodoid, name, completed: false }] $alert = `todo '${name}' has been added` } update removetodo() like so: function removetodo(todo) { todos = todos.
filter(t => t.id !== todo.id) todosstatus.focus() // give focus to status heading $alert = `todo '${todo.name}' has been deleted` } update the updatetodo() function to this: function updatetodo(todo) { const i = todos.findindex(t => t.id === todo.id) if (todos[i].name !== todo.name) $alert = `todo '${todos[i].name}' has been renamed to '${todo.name}'` if (todo...
...'completed' : 'active'}` todos[i] = { ...todos[i], ...todo } } add the following reactive block beneath the block that starts with let
filter = 'all': $: { if (
filter === 'all') $alert = 'browsing all todos' else if (
filter === 'active') $alert = 'browsing active todos' else if (
filter === 'completed') $alert = 'browsing completed todos' } and finally for now, update the const checkalltodos and const removecompletedtodos blocks as follows: const checkalltodos = (completed) => { todos = todos.map(t => ({...t, completed})) $alert = `${completed ?
... 'checked' : 'unchecked'} ${todos.length} todos` } const removecompletedtodos = () => { $alert = `removed ${todos.
filter(t => t.completed).length} todos` todos = todos.
filter(t => !t.completed) } so basically, we've imported the store and updated it on every event, which causes a new alert to show each time.
...And 2 more matches
nsIThreadInternal
last changed in gecko 1.9 (firefox 3) inherits from: nsithread method overview void popeventqueue(); void pusheventqueue(in nsithreadevent
filter filter); attributes attribute type description observer nsithreadobserver get/set the current thread observer; set to null to disable observing.
...in addition, any new events dispatched to the thread are only processed if they are accepted by the specified
filter.
... if the
filter is null, all new events are accepted.
...And 2 more matches
Migrating from Firebug - Firefox Developer Tools
filter log messages firebug offers two ways to
filter log messages, via the options menu and via the
filter buttons within the toolbar.
... the developer tools console offers similar functionality via the
filter buttons inside its toolbar — centralized at one place.
...the difference is that in the devtools the properties are always listed alphabetically and not grouped (see bug 977128) and there is no option to hide the mozilla specific styles, therefore there is an input field allowing to
filter the properties.
...And 2 more matches
Inspecting web sockets - Firefox Developer Tools
you can use the ws button to
filter the list for just web socket connections.
...
filtering web socket frames to focus on specific messages, frames can be
filtered using the
filter at the top of the messages panel.
... there are also predefined
filters, available in the tool bar of the response pane, grouped into a selection list.
...And 2 more matches
Bluetooth.requestDevice() - Web APIs
the available options are:
filters[]: an array of bluetoothscan
filters.
... this
filter consists of an array of bluetoothserviceuuids, a name parameter, and a nameprefix parameter.
...for example, options.
filters is present and options.acceptalldevices is true, or if options.
filters is not present and options.acceptalldevices is false.
...And 2 more matches
Using textures in WebGL - Web APIs
turn off mips and set // wrapping to clamp to edge gl.texparameteri(gl.texture_2d, gl.texture_wrap_s, gl.clamp_to_edge); gl.texparameteri(gl.texture_2d, gl.texture_wrap_t, gl.clamp_to_edge); gl.texparameteri(gl.texture_2d, gl.texture_min_
filter, gl.linear); } }; image.src = url; return texture; } function ispowerof2(value) { return (value & (value - 1)) == 0; } the loadtexture() routine starts by creating a webgl texture object texture by calling the webgl createtexture() function.
...after that we setup
filtering and wrapping for the texture based on whether or not the image we download was a power of 2 in both dimensions or not.
... webgl1 can only use non power of 2 textures with
filtering set to nearest or linear and it can not generate a mipmap for them.
...And 2 more matches
Web APIs
ioparammap audioprocessingevent audioscheduledsourcenode audiotrack audiotracklist audioworklet audioworkletglobalscope audioworkletnode audioworkletnodeoptions audioworkletprocessor authenticatorassertionresponse authenticatorattestationresponse authenticatorresponse b baseaudiocontext basiccardrequest basiccardresponse batterymanager beforeinstallpromptevent beforeunloadevent biquad
filternode blob blobbuilder blobevent bluetooth bluetoothadvertisingdata bluetoothcharacteristicproperties bluetoothdevice bluetoothremotegattcharacteristic bluetoothremotegattdescriptor bluetoothremotegattserver bluetoothremotegattservice body broadcastchannel budgetservice budgetstate buffersource bytelengthqueuingstrategy bytestring c cdatasection css cssconditionrule cssco...
...nc displaymediastreamconstraints document documentfragment documentorshadowroot documenttimeline documenttouch documenttype doublerange dragevent dynamicscompressornode e ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_
filter_anisotropic eckeygenparams eckeyimportparams ecdhkeyderiveparams ecdsaparams effecttiming element elementcssinlinestyle elementtraversal errorevent event eventlistener eventsource eventtarget extendableevent extendablemessageevent f featurepolicy federatedcredential fetchevent file fileentrysync fileerror fileexception filelist filereader filereadersync filerequest filesystem ...
...cursor idbcursorsync idbcursorwithvalue idbdatabase idbdatabaseexception idbdatabasesync idbenvironment idbenvironmentsync idbfactory idbfactorysync idbindex idbindexsync idbkeyrange idblocaleawarekeyrange idbmutablefile idbobjectstore idbobjectstoresync idbopendbrequest idbrequest idbtransaction idbtransactionsync idbversionchangeevent idbversionchangerequest iir
filternode idledeadline imagebitmap imagebitmaprenderingcontext imagecapture imagedata index inputdevicecapabilities inputevent installevent installtrigger intersectionobserver intersectionobserverentry interventionreportbody k keyboard keyboardevent keyboardlayoutmap keyframeeffect keyframeeffectoptions l largestcontentfulpaint layoutshift layoutshiftattribution linearacceleration...
...And 2 more matches
X-XSS-Protection - HTTP
chrome has removed their xss auditor firefox have not, and will not implement x-xss-protection edge have retired their xss
filter this means that if you do not need to support legacy browsers, it is recommended that you use content-security-policy without allowing unsafe-inline scripts instead.
... header type response header forbidden header name no syntax x-xss-protection: 0 x-xss-protection: 1 x-xss-protection: 1; mode=block x-xss-protection: 1; report=<reporting-uri> 0 disables xss
filtering.
... 1 enables xss
filtering (usually default in browsers).
...And 2 more matches
dx - SVG: Scalable Vector Graphics
the unit used to resolve the value of the attribute is set by the primitiveunits attribute of the <
filter> element.
... value <number> default value 2 animatable yes feoffset for <feoffset>, dx defines the x offset of the
filter input graphic.
... the unit used to resolve the value of the attribute is set by the primitiveunits attribute of the <
filter> element.
...And 2 more matches
dy - SVG: Scalable Vector Graphics
the unit used to resolve the value of the attribute is set by the primitiveunits attribute of the <
filter> element.
... value <number> default value 2 animatable yes feoffset for <feoffset>, dy defines the y offset of the
filter input graphic.
... the unit used to resolve the value of the attribute is set by the primitiveunits attribute of the <
filter> element.
...And 2 more matches
requiredFeatures - SVG: Scalable Vector Graphics
.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 correspond to the language features for http://www.w3.org/tr/svg11/feature#svg-static.
... 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.w3.org/tr/svg11/feature#
filter the browser supports the <
filter>, <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femergenode>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <fedistantlight>, <fepointlight>, <fespotlight>, <fefuncr>, <fefuncg>, <fefuncb> and <fefunca> elements ...
...http://www.w3.org/tr/svg11/feature#basic
filter the browser supports the <
filter>, <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femergenode>, <feoffset>, <fetile>, <fefuncr>, <fefuncg>, <fefuncb> and <fefunca> elements http://www.w3.org/tr/svg11/feature#documenteventsattribute the browser supports the onunload, onabort, onerror, onresize, onscroll and onzoom attributes http://www.w3.org/tr/svg11/feature#graphicaleventsattribute the browser supports the onfocusin, onfocusout, onactivate, onclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout and onload attributes http://www.w3.org/tr/svg11/feature#animationeventsattribute the browser supports the onbegin, onend, onrepeat and onload attribut...
...And 2 more matches
scale - SVG: Scalable Vector Graphics
the scale attribute defines the displacement scale factor to be used on a <fedisplacementmap>
filter primitive.
... the amount is expressed in the coordinate system established by the primitiveunits attribute on the <
filter> element.
... only one element is using this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 480 220" xmlns="http://www.w3.org/2000/svg"> <
filter id="displacement
filter" x="-20%" y="-20%" width="140%" height="140%"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="5"/> </
filter> <
filter id="displacement
filter2" x="-20%" y="-20%" width="140%" height="140%"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50"/> </
filter> <circle cx="100" cy="100" r="80" style="
filter: url(#displacement
filter);""/> <circle cx="100" cy="100" r="80" style=...
...And 2 more matches
<feColorMatrix> - SVG: Scalable Vector Graphics
the <fecolormatrix> svg
filter element changes colors based on a transformation matrix.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in type values dom interface this element implements the svgfecolormatrixelement interface.
...//www.w3.org/1999/xlink"> <!-- ref --> <defs> <g id="circles"> <circle cx="30" cy="30" r="20" fill="blue" fill-opacity="0.5" /> <circle cx="20" cy="50" r="20" fill="green" fill-opacity="0.5" /> <circle cx="40" cy="50" r="20" fill="red" fill-opacity="0.5" /> </g> </defs> <use href="#circles" /> <text x="70" y="50">reference</text> <!-- identity matrix --> <
filter id="colormethesame"> <fecolormatrix in="sourcegraphic" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /> </
filter> <use href="#circles" transform="translate(0 70)"
filter="url(#colormethesame)" /> <text x="70" y="120">identity matrix</text> <!-- combine rgb into green matrix --> <
filter id="colormegree...
...And 2 more matches
<feDropShadow> - SVG: Scalable Vector Graphics
the svg <fedropshadow>
filter primitive creates a drop shadow of the input image.
... it can only be used inside a <
filter> element.
... html,body,svg { height:100% } <svg viewbox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <defs> <
filter id="shadow"> <fedropshadow dx="0.2" dy="0.4" stddeviation="0.2"/> </
filter> <
filter id="shadow2"> <fedropshadow dx="0" dy="0" stddeviation="0.5" flood-color="cyan"/> </
filter> <
filter id="shadow3"> <fedropshadow dx="-0.8" dy="-0.8" stddeviation="0" flood-color="pink" flood-opacity="0.5"/> </
filter> </defs> <circle cx="5" cy="50%" r="4" style="fill:pink;
filter:url(#shadow);"/> <circle cx="15" cy="50%" r="4" style="fill:pink;
filter:url(#shadow2);"/> <circle cx="25" cy="50%" r="4" ...
...And 2 more matches
Testing the Add-on SDK - Archive of obsolete content
cfx testex --
filter <addon_example_folder_name>: a suite of tests which run test code for some example add-ons.
... cfx testaddons --
filter <addon_folder_name>: a suite of tests which run add-ons, which are themseleves tests.
... cfx testpkgs --
filter <file_name>:<test_name>: a suite of tests which run sdk module unit tests.
... with gulp installed, and after installing the addon-sdk's npm dependencies, we can run the latter three test suites mentioned for cfx with jpm using the following commands: gulp test:examples --
filter <addon_example_folder_name> gulp test:addons --
filter <addon_folder_name> gulp test:modules --
filter <file_name>:<test_name> or run all of the tests with gulp test.
Listening to events in Firefox extensions - Archive of obsolete content
first it creates a browser-status-
filter and adds it as a web progress listener for the browser.
...this receives events from the browser-status-
filter.
... the
filter acts to reduce the number of status and progress events to improve performance.
... the
filters are held in the array m
filters, the internal listeners in the array mtablisteners.
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
ref: bug 690370 available functions are (see prefcalls.js file for details): function getprefbranch() function pref(prefname, value) function defaultpref(prefname, value) function lockpref(prefname, value) function unlockpref(prefname) function getpref(prefname) function getldapattributes(host, base,
filter, attribs) function getldapvalue(str, key) function displayerror(funcname, message) function getenv(name) configure autoconfig two directives ask thunderbird to use autoconfig at startup: # cat /usr/lib/thunderbird/defaults/pref/tb-autoconf.js // 20100526 - modification autoconfig jehan.
...e see //http://technet.microsoft.com/de-de/library/cc816788(ws.10).aspx // // //put everything in a try/catch try { var userinfo = new object(); // this will hold ldap results userinfo.envuser = getenv("username"); // username userinfo.envhome = getenv("home"); // user home directory var ldaphost = "example.com"; var ldapbase = "dc=company,dc=local"; if( userinfo.envuser ) { var ldap
filter = "samaccountname=" + userinfo.envuser; } else { throw("couldn't get uid from the environment"); } // ldap attributes to retrieve from the server var ldapattrs = new array( "cn", "mail", "samaccountname" ); // add more attributes here, if needed) // define how to process ldap results before we make the call function processldapvalues(queryresults) { if( queryresults ) { // build the use...
...rinfo object for later use for( var attr in ldapattrs ) { userinfo[ ldapattrs[attr] ] = getldapvalue( queryresults, ldapattrs[attr] ); } } else { throw( "no ldap results" ); } } // call upon ldap for the values in ldapattrs array, // uses the previous processldapvalues() getldapattributes( ldaphost, ldapbase, ldap
filter, ldapattrs.join(",") ); // create account // see also http://blog.deanandadie.net/2010/06/easy-thunderbird-account-management-using-mcd/ // identity defaultpref("mail.identity.id1.fullname", userinfo.cn ); defaultpref("mail.identity.id1.smtpserver", "smtp1" ); defaultpref("mail.identity.id1.useremail", userinfo.mail ); // imap server settings defaultpref("mail.server.server1.hostname", "myimap.server.com" ); defaultpref("mail.server.server1.name", userinf...
...// value = getpref(name) gets current setting // getldapattributes(host, base,
filter, attributes) // getldapvalue(values, attribute) // .mime.type, .begin_mime_def, .end_mime_def..
Index - Archive of obsolete content
892 sorting and
filtering a custom tree view this is example code for sorting and
filtering a custom tree view, that is, a tree whose values are loaded via javascript.
...using a literal as the object of a triple is a common way to
filter out specific items.
... for instance, if items were identified with a type, the data could be
filtered to include only items of a particular type.
... 928
filtering xul, xul_template_guide no summary!
Additional Navigation - Archive of obsolete content
using a literal as the object of a triple is a common way to
filter out specific items.
... for instance, if items were identified with a type, the data could be
filtered to include only items of a particular type.
...usually you won't be
filtering on a title though--you would instead
filter on a value that acts like a type.
...it wouldn't be very common to
filter for a specific child anyway.
Multiple Rules - Archive of obsolete content
as all males have been
filtered out by the first rule, we do not need any conditions for the second rule.
...this is an effective way to
filter out results that you don't want.
... in this simple example with one rule though, it would likely be simpler and faster to just
filter these out using the query xpath expression rather than generating the results then using a condition to
filter them.
...naturally, this won't work for people with more than two names (joan of arc for instance), but rule conditions allow a number of useful ways to
filter results.
Ember Interactivity: Footer functionality, conditional rendering - Learn web development
filters for all, active, and completed todos.
... in todo-data.js, add the following getter underneath the existing all() getter to define what the incomplete todos actually are: get incomplete() { return this.todos.
filter(todo => { return todo.iscompleted === false; }); } using array.
filter(), we declare that "incomplete" todos are ones that have iscompleted equal to false.
...now the only thing left to wire up the footer are the three
filtering links: "all", "active", and "completed".
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component re...
React interactivity: Events and state - Learn web development
this is a perfect opportunity to use array.prototype.
filter().
... update the deletetask() function inside your app.js file as follows: function deletetask(id) { const remainingtasks = tasks.
filter(task => id !== task.id); settasks(remainingtasks); } try your app out again.
...in the next article we'll implement functionality to edit existing tasks and
filter the list of tasks between all, completed, and incomplete tasks.
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component ...
Understanding client-side JavaScript frameworks - Learn web development
react interactivity: editing,
filtering, conditional rendering as we near the end of our react journey (for now at least), we'll add the finishing touches to the main areas of functionality in our todo list app.
... this includes allowing you to edit existing tasks and
filtering the list of tasks between all, completed, and incomplete tasks.
...routing in ember in this article we learn about routing or url-based
filtering as it is sometimes referred to.
...in this article we'll be using variables and props to make our app dynamic, allowing us to add and delete todos, mark them as complete, and
filter them by status.
DownloadList
method overview promise<array<download>> getall(); promise add(download adownload); promise remove(download adownload); promise addview(object aview); promise removeview(object aview); void removefinished([optional] function a
filterfn); methods getall() retrieves a snapshot of the downloads that are currently in the list.
...a
filter function may be specified to remove only a subset of those downloads.
...promise removefinished( function a
filterfn ); parameters a
filterfn the
filter function is called with each download as its only argument, and should return true to remove the download and false to keep it.
... this parameter may be null or omitted to have no additional
filter.
Localization technical reviews
leading comments are ok, but watch out for #
filter emptylines #define ...
...#un
filter emptylines in toolkit/defines.inc, the native name of the language is specified, which is used as description for the built language packs.
... inspect firefox-l10n.js we ensure that there are no odd preferences, or #
filter substitutions for general.useragent.locale.
... most locales should have the following: #
filter substitution pref("general.useragent.locale", "@ab_cd@") how it all works a large part of the review process takes place before you even submit your request for a technical review.
Hacking Tips
using ionmonkey spew (js shell) ionmonkey spew is extremely verbose (not as much as the infer spew), but you can
filter it to focus on the list of compiled scripts or channels, ionmonkey spew channels can be selected with the ionflags environment variable, and compilation spew can be
filtered with ion
filter.
... compilation logs and spew can be
filtered with the ion
filter environment variable which contains locations as output in other spew channels.
... $ ion
filter=pdfjs.js:16934 ionflags=logs,scripts,osi,bailouts ./js --ion-offthread-compile=off ./run.js 2>&1 | less the bailouts channel is likely to be the first thing you should focus on, because this means that something does not stay in ionmonkey and fallback to the interpreter.
...these locations should correspond to phases of the logs and a
filter can be used to remove uninteresting functions.
Avoiding leaks in JavaScript XPCOM components
consider this example from bug 285065: function _
filterradiogroup(anode) { switch (anode.localname) { case "radio": return node
filter.
filter_accept; case "template": case "radiogroup": return node
filter.
filter_reject; default: return node
filter.
filter_skip; } } var iterator = this.ownerdocument.createtreewalker(this, node
filter.show_element, _fi...
...the _
filterradiogroup object is a javascript function that is wrapped so that xpcom code can use it.
... the reason closures matter here is that the _
filterradiogroup function has access to the iterator variable.
...however, a better fix is to move the
filter function outside of the function, since the power of closures is not necessary in this case (and there's also no need to create a new function object for the
filter each time this code is executed).
nsIEditorSpellCheck
word); void initspellchecker(in nsieditor editor, in boolean enableselectionchecking); void removewordfromdictionary(in wstring word); void replaceword(in wstring misspelledword, in wstring replaceword, in boolean alloccurrences); void savedefaultdictionary(); obsolete since gecko 9.0 void setcurrentdictionary(in astring dictionary); void set
filter(in nsitextservices
filter filter); void uninitspellchecker(); void updatecurrentdictionary(); methods addwordtodictionary() adds the specified word to the current personal dictionary.
... set
filter() used to
filter the content (for example, to skip blockquotes in email from spell checking).
...void set
filter( in nsitextservices
filter filter ); parameters
filter an nsitextservices
filter describing the
filter to apply.
... this
filter lets you avoid spell checking specific parts of the document.
nsIFileView
to create an instance, use: var fileview = components.classes["@mozilla.org/filepicker/fileview;1"] .createinstance(components.interfaces.nsifileview); method overview void setdirectory(in nsifile directory); void set
filter(in astring
filterstring); void sort(in short sorttype, in boolean reversesort); attributes attribute type description reversesort boolean if true results will be sorted in ascending order.
... set
filter() set the
filter to be applied to the file list, for example "*.jpg" would only return jpg files.
... void set
filter( in astring
filterstring ); parameters
filterstring the
filter to be applied to the file list.
...open the directory var fview = components.classes["@mozilla.org/filepicker/fileview;1"] .createinstance(components.interfaces.nsifileview); //create an instance of the component tview = fview.queryinterface(components.interfaces.nsitreeview); //get the nsitreeview interface fview.setdirectory(lfile.queryinterface(components.interfaces.nsifile)); //set the directory fview.set
filter("*"); //add an appropriate file
filter fview.sort(fview.sortname, false); //set the sort type ftree.view = tview; //set the view on the tree object </script> </window> ...
nsIHTMLEditor
inherits from: nsisupports last changed in gecko 5.0 (firefox 5.0 / thunderbird 5.0 / seamonkey 2.2) method overview void adddefaultproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void addinsertionlistener(in nsicontent
filter in
filter); void align(in astring aalign); boolean breakisvisible(in nsidomnode anode); boolean candrag(in nsidomevent aevent); void checkselectionstateforanonymousbuttons(in nsiselection aselection); nsidomelement createanonymouselement(in astring atag, in nsidomnode aparentnode, in astring aanonclass, in boolean aiscreatedhidden); nsidomelement createelementwithdefaults(in astring at...
...ectiontype); void rebuilddocumentfromsource(in astring asourcestring); void removealldefaultproperties(); void removeallinlineproperties(); void removedefaultproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void removeinlineproperty(in nsiatom aproperty, in astring aattribute); void removeinsertionlistener(in nsicontent
filter in
filter); void removelist(in astring alisttype); void replaceheadcontentswithhtml(in astring asourcetoinsert); void selectelement(in nsidomelement aelement); void setbackgroundcolor(in astring acolor); void setbodyattribute(in astring aattr, in astring avalue); void setcaretafterelement(in nsidomelement aelement); void setcssinlinepr...
... void addinsertionlistener( in nsicontent
filter in
filter ); parameters in
filter function which callers want called during insertion.
... void removeinsertionlistener( in nsicontent
filter in
filter ); parameters in
filter function which callers do not want called during insertion.
XPCOM Interface Reference
gebroadcasternsimessagelistenernsimessagelistenermanagernsimessagesendernsimessagewakeupservicensimessengernsimicrosummarynsimicrosummarygeneratornsimicrosummaryobservernsimicrosummaryservicensimicrosummarysetnsimimeconverternsimimeheadersnsimodulensimsgaccountnsimsgaccountmanagerextensionnsimsgcompfieldsnsimsgcustomcolumnhandlernsimsgdbhdrnsimsgdbviewnsimsgdbviewcommandupdaternsimsgdatabasensimsg
filternsimsg
filtercustomactionnsimsg
filterlistnsimsgfoldernsimsgheaderparsernsimsgidentitynsimsgincomingservernsimsgmessageservicensimsgprotocolinfonsimsgruleactionnsimsgsearchcustomtermnsimsgsearchnotifynsimsgsearchscopetermnsimsgsearchsessionnsimsgsearchtermnsimsgsearchvaluensimsgsendlaternsimsgthreadnsimsgwindownsimsgwindowcommandsnsimutablearraynsinavbookmarkobservernsinavbookmarksservicensinavhisto...
...efbranch2nsipreflocalizedstringnsiprefservicensiprincipalnsiprinterenumeratornsiprintingpromptnsiprivatebrowsingservicensiprocessnsiprocess2nsiprocessscriptloadernsiprofilensiprofilelocknsiprofileunlockernsiprogramminglanguagensiprogresseventsinknsipromptnsipromptservicensipropertiesnsipropertynsipropertybagnsipropertybag2nsipropertyelementnsiprotocolhandlernsiprotocolproxycallbacknsiprotocolproxy
filternsiprotocolproxyservicensiproxyinfonsipushmessagensipushservicensipushsubscriptionnsiradiointerfacelayernsirandomgeneratornsirequestnsirequestobservernsiresumablechannelnsirunnablensishentrynsishistorynsishistorylistenernsisockssocketinfonsisslerrorlistenernsisslsocketcontrolnsiscreennsiscreenmanagernsiscripterrornsiscripterror2nsiscriptableionsiscriptableinputstreamnsiscriptableunescapehtmlnsiscr...
...portsprimitivensisupportsprioritynsisupportsstringnsisupportsvoidnsisupportsweakreferencensisyncjpakensisyncmessagesendernsitxttohtmlconvnsitaggingservicensitaskbarpreviewnsitaskbarpreviewbuttonnsitaskbarpreviewcontrollernsitaskbarprogressnsitaskbartabpreviewnsitaskbarwindowpreviewnsitelemetrynsitextinputprocessornsitextinputprocessorcallbacknsitextinputprocessornotificationnsithreadnsithreadevent
filternsithreadinternalnsithreadmanagernsithreadobservernsithreadpoolnsithreadpoollistenernsitimernsitimercallbacknsitoolkitnsitoolkitprofilensitoolkitprofileservicensitraceablechannelnsitransactionnsitransactionlistnsitransactionlistenernsitransactionmanagernsitransferablensitransportnsitransporteventsinknsitransportsecurityinfonsitreeboxobjectnsitreecolumnnsitreecolumnsnsitreecontentviewnsitreeselecti...
...nsixmlhttprequesteventtargetnsixmlhttprequestuploadnsixpcexceptionnsixpcscriptablensixpconnectnsixsltexceptionnsixsltprocessornsixsltprocessorobsoletensixulappinfonsixulbrowserwindownsixulbuilderlistenernsixulruntimensixulsortservicensixultemplatebuildernsixultemplatequeryprocessornsixultemplateresultnsixulwindownsixmlrpcclientnsixmlrpcfaultnsizipentrynsizipreadernsizipreadercachensizipwriternsmsg
filterfileattribvaluensmsgfolderflagtypensmsgjunkstatusnsmsgkeynsmsglabelvaluensmsgpriorityvaluensmsgruleactiontypensmsgsearchattribnsmsgsearchopnsmsgsearchscopensmsgsearchtermnsmsgsearchtypevaluensmsgsearchvaluensmsgsearchwidgetvaluenspipromptservice see also interfaces grouped by function ...
Work with animations - Firefox Developer Tools
for example, try clicking on the bar for img#icon's animation: this is telling us that two properties were modified:
filter and transform.
...
filter was given a value at 250ms and transform at 500ms.
... if you hover over a dot, you'll see the value assigned to that property at that point in the timeline: this is essentially a visual representation of the animation's keyframes: var iconkeyframeset = [ { transform: 'scale(1)',
filter: 'grayscale(100%)' }, {
filter: 'grayscale(100%)', offset: 0.333 }, { transform: 'scale(1.5)', offset: 0.666 }, { transform: 'scale(1.5)',
filter: 'grayscale(0%)' } ]; application to the example applying all this to our example, we can see that: the animation involved two elements, span#note and img#icon.
... the img#icon animation: animated the
filter and transform properties, to scale the icon and color it lasted 750ms, had an enddelay of 100ms used the compositor thread was given an easing value of ease-in: you can see this by the concave shape of the green bar.
AudioContext.createMediaStreamSource() - Web APIs
next, we feed this source audio into a low pass biquad
filternode (which effectively serves as a bass booster), then a audiodestinationnode.
... the range slider below the <video> element controls the amount of gain given to the lowpass
filter — increase the value of the slider to make the audio sound more bass heavy!
...then(function(stream) { video.srcobject = stream; video.onloadedmetadata = function(e) { video.play(); video.muted = true; }; // create a mediastreamaudiosourcenode // feed the htmlmediaelement into it var audioctx = new audiocontext(); var source = audioctx.createmediastreamsource(stream); // create a biquad
filter var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.type = "lowshelf"; biquad
filter.frequency.value = 1000; biquad
filter.gain.value = range.value; // connect the audiobuffersourcenode to the gainnode // and the gainnode to the destination, so we can play the // music and adjust the volume using the mouse cursor source.con...
...nect(biquad
filter); biquad
filter.connect(audioctx.destination); // get new mouse pointer coordinates when mouse is moved // then set new gain value range.oninput = function() { biquad
filter.gain.value = range.value; } }) .catch(function(err) { console.log('the following gum error occured: ' + err); }); } else { console.log('getusermedia not supported on your browser!'); } // dump script to pre element pre.innerhtml = myscript.innerhtml; note: as a consequence of calling createmediastreamsource(), audio playback from the media stream will be re-routed into the processing graph of the audiocontext.
MediaStreamAudioSourceNode - Web APIs
next, we feed this source audio into a low pass biquad
filternode (which effectively serves as a bass booster), then a audiodestinationnode.
... the range slider below the <video> element controls the amount of gain given to the lowpass
filter — increase the value of the slider to make the audio sound more bass heavy!
...then(function(stream) { video.srcobject = stream; video.onloadedmetadata = function(e) { video.play(); video.muted = true; }; // create a mediastreamaudiosourcenode // feed the htmlmediaelement into it var audioctx = new audiocontext(); var source = audioctx.createmediastreamsource(stream); // create a biquad
filter var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.type = "lowshelf"; biquad
filter.frequency.value = 1000; biquad
filter.gain.value = range.value; // connect the audiobuffersourcenode to the gainnode // and the gainnode to the destination, so we can play the // music and adjust the volume using the mouse cursor source.con...
...nect(biquad
filter); biquad
filter.connect(audioctx.destination); // get new mouse pointer coordinates when mouse is moved // then set new gain value range.oninput = function() { biquad
filter.gain.value = range.value; } }) .catch(function(err) { console.log('the following gum error occured: ' + err); }); } else { console.log('getusermedia not supported on your browser!'); } // dump script to pre element pre.innerhtml = myscript.innerhtml; note: as a consequence of calling createmediastreamsource(), audio playback from the media stream will be re-routed into the processing graph of the audiocontext.
MediaStreamTrackAudioSourceNode - Web APIs
next, we feed this source audio into a low pass biquad
filternode (which effectively serves as a bass booster), then a audiodestinationnode.
... the range slider below the <video> element controls the amount of gain given to the lowpass
filter — increase the value of the slider to make the audio sound more bass heavy!
...then(function(stream) { video.srcobject = stream; video.onloadedmetadata = function(e) { video.play(); video.muted = true; }; // create a mediastreamaudiosourcenode // feed the htmlmediaelement into it var audioctx = new audiocontext(); var source = audioctx.createmediastreamsource(stream); // create a biquad
filter var biquad
filter = audioctx.createbiquad
filter(); biquad
filter.type = "lowshelf"; biquad
filter.frequency.value = 1000; biquad
filter.gain.value = range.value; // connect the audiobuffersourcenode to the gainnode // and the gainnode to the destination, so we can play the // music and adjust the volume using the mouse cursor source.con...
...nect(biquad
filter); biquad
filter.connect(audioctx.destination); // get new mouse pointer coordinates when mouse is moved // then set new gain value range.oninput = function() { biquad
filter.gain.value = range.value; } }) .catch(function(err) { console.log('the following gum error occured: ' + err); }); } else { console.log('getusermedia not supported on your browser!'); } // dump script to pre element pre.innerhtml = myscript.innerhtml; note: as a consequence of calling createmediastreamsource(), audio playback from the media stream will be re-routed into the processing graph of the audiocontext.
OES_texture_float_linear - Web APIs
the oes_texture_float_linear extension is part of the webgl api and allows linear
filtering with floating-point pixel types for textures.
... linear
filtering the oes_texture_float extension alone does not allow linear
filtering with floating-point textures.
... with the help of this extension, you can now set the magnification or minification
filter in the webglrenderingcontext.texparameter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use floating-point textures.
... examples gl.getextension('oes_texture_float'); gl.getextension('oes_texture_float_linear'); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.texparameterf(gl.texture_2d, gl.texture_mag_
filter, gl.linear); gl.teximage2d(gl.texture_2d, 0, gl.rgba, gl.rgba, gl.float, image); specifications specification status comment oes_texture_float_linearthe definition of 'oes_texture_float_linear' in that specification.
OES_texture_half_float_linear - Web APIs
the oes_texture_half_float_linear extension is part of the webgl api and allows linear
filtering with half floating-point pixel types for textures.
... linear
filtering the oes_texture_half_float extension alone does not allow linear
filtering with half floating-point textures.
... with the help of this extension, you can now set the magnification or minification
filter in the webglrenderingcontext.texparameter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use half floating-point textures.
... examples var halffloat = gl.getextension('oes_texture_half_float'); gl.getextension('oes_texture_half_float_linear'); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.texparameterf(gl.texture_2d, gl.texture_mag_
filter, gl.linear); gl.teximage2d(gl.texture_2d, 0, gl.rgba, gl.rgba, halffloat.half_float_oes, image); specifications specification status comment oes_texture_half_float_linearthe definition of 'oes_texture_half_float_linear' in that specification.
PerformanceObserverEntryList.getEntries() - Web APIs
the getentries() method of the performanceobserverentrylist interface returns a list of explicitly observed performance entry objects for a given
filter.
... syntax general syntax: entries = list.getentries(); entries = list.getentries(performanceentry
filteroptions); specific usage: entries = list.getentries({name: "entry_name", entrytype: "mark"}); parameters performanceentry
filteroptionsoptional is a performanceentry
filteroptions dictionary, having the following fields: "name", the name of a performance entry.
... return value a list of explicitly observed performanceentry objects that meets the criteria of the
filter.
...if no objects that meet the
filter are found, an empty list is returned.
USB.requestDevice() - Web APIs
syntax usb.requestdevice([
filters]) parameters
filters an array of
filter objects for possible devices you would like to pair.
... each
filter object can have the following properties: vendorid productid classcode subclasscode protocolcode serialnumber return value a promise that resolves with an instance of usbdevice.
... the number of
filters does not specifiy the number of devices shown by the user agent.
... const
filters = [ {vendorid: 0x1209, productid: 0xa800}, {vendorid: 0x1209, productid: 0xa850} ]; navigator.usb.requestdevice({
filters:
filters}) .then(usbdevice => { console.log("product name: " + usbdevice.productname); }) .catch(e => { console.log("there is no device.
WebGLRenderingContext.getTexParameter() - Web APIs
possible values: pname return type description possible return values available in a webgl 1 context gl.texture_mag_
filter glenum texture magnification
filter gl.linear (default value), gl.nearest.
... gl.texture_min_
filter glenum texture minification
filter gl.linear, gl.nearest, gl.nearest_mipmap_nearest, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear (default value), gl.linear_mipmap_linear.
... additionally available when using the ext_texture_
filter_anisotropic extension ext.texture_max_anisotropy_ext glfloat maximum anisotropy for a texture any float values.
... examples gl.gettexparameter(gl.texture_2d, gl.texture_mag_
filter); specifications specification status comment webgl 1.0the definition of 'gettexparameter' in that specification.
WebGLRenderingContext.texParameter[fi]() - Web APIs
pname description param available in webgl 1 gl.texture_mag_
filter texture magnification
filter gl.linear (default value), gl.nearest.
... gl.texture_min_
filter texture minification
filter gl.linear, gl.nearest, gl.nearest_mipmap_nearest, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear (default value), gl.linear_mipmap_linear.
... additionally available when using the ext_texture_
filter_anisotropic extension ext.texture_max_anisotropy_ext maximum anisotropy for a texture a glfloat value.
... examples gl.texparameterf(gl.texture_2d, gl.texture_mag_
filter, gl.linear); gl.texparameteri(gl.texture_2d, gl.texture_min_
filter, gl.linear_mipmap_nearest); specifications specification status comment webgl 1.0the definition of 'texparameter[fi]' in that specification.
Taking still photos with WebRTC - Web APIs
fun with
filters since we're capturing images from the user's webcam by grabbing frames from a <video> element, we can very easily apply
filters and fun effects to the video.
... as it turns out, any css
filters you apply to the element using the
filter property affect the captured photo.
... these
filters can range from the simple (making the image black and white) to the extreme (gaussian blurs and hue rotation).
... you can play with this effect using, for example, the firefox developer tools' style editor; see edit css
filters for details on how to do so.
Basic concepts behind Web Audio API - Web APIs
create effects nodes, such as reverb, biquad
filter, panner, or compressor.
... secondly, signals must be low-pass
filtered before sampling, otherwise aliasing occurs.
... while an ideal low-pass
filter would perfectly pass frequencies below 20 khz (without attenuating them) and perfectly cut off frequencies above 20 khz, in practice a transition band is necessary, where frequencies are partly attenuated.
... the wider this transition band is, the easier and more economical it is to make an anti-aliasing
filter.
<input type="email"> - HTML: Hypertext Markup Language
then, as the user types, the list is
filtered to show only matching values.
...but there's also the option to add additional
filtering to ensure that your own specialized needs are met, if you have any.
... note that this is not even close to an adequate
filter for valid e-mail addresses; it would allow things such as " @beststartupever.com" (note the leading space) or "@@beststartupever.com", neither of which is valid.
... however, the browser runs both the standard e-mail address
filter and our custom pattern against the specified text.
Enumerability and ownership of properties - JavaScript
built-in methods of detection, retrieval, and iteration functionality own object own object and its prototype chain prototype chain only detection enumerable nonenumerable enumerable and nonenumerable propertyisenumerable hasownproperty hasownproperty –
filtered to exclude enumerables using propertyisenumerable hasownproperty enumerable nonenumerable enumerable and nonenumerable not available without extra code not available without extra code in not available without extra code retrieval ...
... enumerable nonenumerable enumerable and nonenumerable object.keys getownpropertynames getownpropertysymbols getownpropertynames, getownpropertysymbols –
filtered to exclude enumerables using propertyisenumerable getownpropertynames getownpropertysymbols not available without extra code not available without extra code iterable enumerable nonenumerable enumerable and nonenumerable object.keys getownpropertynames getownpropertysymbols getownpropertynames, getownpropertysymbols –
filtered to exclu...
... detection can occur by simplepropertyretriever.thegetmethodyouwant(obj).indexof(prop) > -1 iteration can occur by simplepropertyretriever.thegetmethodyouwant(obj).foreach(function (value, prop) {}); (or use
filter(), map(), etc.) var simplepropertyretriever = { getownenumerables: function(obj) { return this._getpropertynames(obj, true, false, this._enumerable); // or could use for..in
filtered with hasownproperty or just this: return object.keys(obj); }, getownnonenumerables: function(obj) { return this._getpropertynames(obj, true, false, this._notenumerable); }, ...
...) { return this._getpropertynames(obj, false, true, this._notenumerable); }, getprototypeenumerablesandnonenumerables: function(obj) { return this._getpropertynames(obj, false, true, this._enumerableandnotenumerable); }, getownandprototypeenumerables: function(obj) { return this._getpropertynames(obj, true, true, this._enumerable); // or could use un
filtered for..in }, getownandprototypenonenumerables: function(obj) { return this._getpropertynames(obj, true, true, this._notenumerable); }, getownandprototypeenumerablesandnonenumerables: function(obj) { return this._getpropertynames(obj, true, true, this._enumerableandnotenumerable); }, // private static property checker callbacks _enumerable: function(obj,...
Assertions - JavaScript
for selecting appropriate fruits we can use the
filter method with an arrow function.
... let fruitsstartswitha = fruits.
filter(fruit => /^a/.test(fruit)); console.log(fruitsstartswitha); // [ 'apple', 'avocado' ] in the second example ^ is used both for matching at the beginning of input and for creating negated or complemented character sets when used within groups.
... let fruitsstartswithnota = fruits.
filter(fruit => /^[^a]/.test(fruit)); console.log(fruitsstartswithnota); // [ 'watermelon', 'orange', 'strawberry' ] matching a word boundary let fruitswithdescription = ["red apple", "orange orange", "green avocado"]; // select descriptions that contains 'en' or 'ed' words endings: let enedselection = fruitswithdescription.
filter(descr => /(en|ed)\b/.test(descr)); console.log(enedselection); // [ ...
...an orange)[^?!]+[?!]/gi console.log(orangenotlemon.match(selectnotorangeregex)); // [ ' yes, i do not want to have a lemon!' ] lookbehind assertion let oranges = ['ripe orange a ', 'green orange b', 'ripe orange c',]; let ripe_oranges = oranges.
filter( fruit => fruit.match(/(?<=ripe )orange/)); console.log(ripe_oranges); // [ 'ripe orange a ', 'ripe orange c' ] specifications specification ecmascript (ecma-262)the definition of 'regexp: assertions' in that specification.
Digital audio concepts - Web media technologies
to provide additional room for a low-pass
filter in order to avoid distortion caused by aliasing, an additional 2.05 khz transition band is added to the pre-sampling frequency (resulting in 22,050 hz).
... the simplest thing you can do is to apply a
filter that removes hiss and quiet sounds, converting any quiet sections into silence and smoothing out the signal.
... you can apply a
filter that narrows the audio bandwidth, removing any audio frequencies that you don't care about.
... psychoacoustics if you know what kind of audio you're most likely to handle, you can potentially find special
filtering techniques applicable specifically to that kind of sound, that will optimize the encoding.
flood-opacity - SVG: Scalable Vector Graphics
the flood-opacity attribute indicates the opacity value to use across the current
filter primitive subregion.
... as a presentation attribute, it can be applied to any element but it has effect only on the following two elements: <feflood> and <fedropshadow> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="flood1"> <feflood flood-color="seagreen" flood-opacity="1" x="0" y="0" width="200" height="200"/> </
filter> <
filter id="flood2"> <feflood flood-color="seagreen" flood-opacity="0.3" x="0" y="0" width="200" height="200"/> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#flood1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#flood2); transform: translatex(220px);" /> </svg> usage notes ...
... value <alpha-value> initial value 1 animatable yes <alpha-value> a number or percentage indicating the opacity value to use across the current
filter primitive subregion.
... specifications specification status comment
filter effects module level 1the definition of 'flood-opacity' in that specification.
kernelMatrix - SVG: Scalable Vector Graphics
only one element is using this attribute: <feconvolvematrix> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="convolvematrix1" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 1 0 0 0 0 0 0 -1"/> </
filter> <
filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="-1 0 0 0 0 0 0 0 1"/> </
filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="
filter:...
...url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="
filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes value <list of numbers> default value none animatable yes <list of numbers> the list of <number>s that make up the kernel matrix for the convolution.
... if the result of orderx * ordery is not equal to the the number of entries in the value list, the
filter primitive acts as a pass through
filter.
... specifications specification status comment
filter effects module level 1the definition of 'kernelmatrix' in that specification.
mode - SVG: Scalable Vector Graphics
the mode attribute defines the blending mode on the <feblend>
filter primitive.
... only one element is using this attribute: <feblend> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="blending1" x="0" y="0" width="100%" height="100%"> <feflood result="floodfill" x="0" y="0" width="100%" height="100%" flood-color="seagreen" flood-opacity="1"/> <feblend in="sourcegraphic" in2="floodfill" mode="multiply"/> </
filter> <
filter id="blending2" x="0" y="0" width="100%" height="100%"> <feflood result="floodfill" x="0" y="0" width="100%" height="100%" flood-color="seagreen" flood-opacity="1"/> <feblend in="sourcegraphic" in2="floodfill" mode="color-dodge"/> </
filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" st...
...yle="
filter:url(#blending1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="
filter:url(#blending2); transform:translatex(220px);"/> </svg> usage notes value <blend-mode> default value normal animatable yes for a description of the values, see <blend-mode>.
... specifications specification status comment
filter effects module level 1the definition of 'mode' in that specification.
preserveAlpha - SVG: Scalable Vector Graphics
only one element is using this attribute: <feconvolvematrix> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="convolvematrix1" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 -1 2 0 0 0 0 0 -2" preservealpha="true"/> </
filter> <
filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 -1 2 0 0 0 0 0 -2" preservealpha="false"/> </
filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="
filter:url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_...
...logo_only_color.png" width="200" height="200" style="
filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes default value false value true | false animatable yes true this value indicates that the convolution will only apply to the color channels.
... in this case, the
filter will temporarily unpremultiply the color component values and apply the kernel.
... specifications specification status comment
filter effects module level 1the definition of 'preservealpha' in that specification.
primitiveUnits - SVG: Scalable Vector Graphics
the primitiveunits attribute specifies the coordinate system for the various length values within the
filter primitives and for the attributes that define the
filter primitive subregion.
... only one element is using this attribute: <
filter> usage notes value userspaceonuse | objectboundingbox default value userspaceonuse animatable yes userspaceonuse this value indicates that any length values within the
filter definitions represent values in the current user coordinate system in place at the time when the <
filter> element is referenced (i.e., the user coordinate system for the element referencing the <
filter> element via a
filter attribute).
... objectboundingbox this value indicates that any length values within the
filter definitions represent fractions or percentages of the bounding box on the referencing element.
... specifications specification status comment
filter effects module level 1the definition of 'primitiveunits' in that specification.
radius - SVG: Scalable Vector Graphics
the radius attribute represents the radius (or radii) for the operation on a given <femorphology>
filter primitive.
...the values are in the coordinate system established by the primitiveunits attribute on the <
filter> element.
... a negative or zero value disables the effect of the given
filter primitive (i.e., the result is the
filter input image).
... usage notes value <number-optional-number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'radius' in that specification.
specularExponent - SVG: Scalable Vector Graphics
two elements are using this attribute: <fespecularlighting> and <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="diffuselighting1" x="0" y="0" width="100%" height="100%"> <fespecularlighting in="sourcegraphic" specularexponent="1"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </
filter> <
filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fespecularlighting in="sourcegraphic" specularexponent="5"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#d...
...iffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> fespecularlighting for <fespecularlighting>, specularexponent defines the exponent value for the specular term.
... value <number> default value 1 animatable yes specifications specification status comment
filter effects module level 1the definition of 'specularexponent for <fespecularlighting>' in that specification.
... working draft no change
filter effects module level 1the definition of 'specularexponent for <fespotlight>' in that specification.
surfaceScale - SVG: Scalable Vector Graphics
the surfacescale attribute represents the height of the surface for a light
filter primitive.
... two elements are using this attribute: <fediffuselighting> and <fespecularlighting> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="diffuselighting1" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" surfacescale="1"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </
filter> <
filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" surfacescale="15"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting2); transform: trans...
... value <number> default value 1 animatable yes specifications specification status comment
filter effects module level 1the definition of 'surfacescale for <fediffuselighting>' in that specification.
... working draft no change
filter effects module level 1the definition of 'surfacescale for <fespecularlighting>' in that specification.
<feGaussianBlur> - SVG: Scalable Vector Graphics
the <fegaussianblur> svg
filter primitive blurs the input image by the amount specified in stddeviation, which defines the bell-curve.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in stddeviation edgemode dom interface this element implements the svgfegaussianblurelement interface.
... example simple example svg <svg width="230" height="120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <
filter id="blurme"> <fegaussianblur in="sourcegraphic" stddeviation="5" /> </
filter> <circle cx="60" cy="60" r="50" fill="green" /> <circle cx="170" cy="60" r="50" fill="green"
filter="url(#blurme)" /> </svg> result screenshotlive sample drop shadow example svg <svg width="120" height="120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <
filter id="dropshadow"> <fegaussianblur in="sourcealpha" stddeviation="3" /> <feoffset dx="2" dy="4" /> <femerge> <femergenode /> <femergenode in="sourcegraphic" /> </femerge> </
filter> <circle cx="60" cy="60" r="50"...
... fill="green"
filter="url(#dropshadow)" /> </svg> result screenshotlive sample specifications specification status comment
filter effects module level 1the definition of '<fegaussianblur>' in that specification.
<feMerge> - SVG: Scalable Vector Graphics
the <femerge> svg element allows
filter effects to be applied concurrently instead of sequentially.
... this is achieved by other
filters storing their output via the result attribute and then accessing it in a <femergenode> child.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<femergenode> example svg <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <
filter id="feoffset" x="-40" y="-20" width="100" height="200"> <feoffset in="sourcegraphic" dx="60" dy="60" /> <fegaussianblur stddeviation="5" result="blur2" /> <femerge> <femergenode in="blur2" /> <femergenode in="sourcegraphic" /> </femerge> </
filter> <rect x="40" y="40" width="100" height="100" style="stroke: #000000; fill: green;
filter: url(#feoffset);" /> </svg> result attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes none dom interface thi...
... specifications specification status comment
filter effects module level 1the definition of '<femerge>' in that specification.
<feMorphology> - SVG: Scalable Vector Graphics
the <femorphology> svg
filter primitive is used to erode or dilate the input image.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in operator radius dom interface this element implements the svgfemorphologyelement interface.
... examples
filtering svg content svg <svg xmlns="http://www.w3.org/2000/svg" width="300" height="180"> <
filter id="erode"> <femorphology operator="erode" radius="1"/> </
filter> <
filter id="dilate"> <femorphology operator="dilate" radius="2"/> </
filter> <text y="1em">normal text</text> <text id="thin" y="2em">thinned text</text> <text id="thick" y="3em">fattened text</text> </svg> css text { font-family: arial, helvetica, sans-serif; font-size: 3em; } #thin {
filter: url(#erode); } #thick {
filter: url(#dilate); }
filtering html content svg <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0"> <
filter id="erode"> <femorphology operator="erode" radius="1"/> </
filter> <
filter id="dilate"> <femorphology operator="dilate" radius="2"/> ...
... </
filter> </svg> <p>normal text</p> <p id="thin">thinned text</p> <p id="thick">fattened text</p> css p { margin: 0; font-family: arial, helvetica, sans-serif; font-size: 3em; } #thin {
filter: url(#erode); } #thick {
filter: url(#dilate); } specifications specification status comment
filter effects module level 1the definition of '<femorphology>' in that specification.
<fePointLight> - SVG: Scalable Vector Graphics
the <fepointlight>
filter primitive defines a light source which allows to create a point light effect.
... it that can be used within a lighting
filter primitive: <fediffuselighting> or <fespecularlighting>.
... example svg <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
filter id="spotlight"> <fespecularlighting result="spotlight" specularconstant="1.5" specularexponent="80" lighting-color="#fff"> <fepointlight x="50" y="50" z="220"/> </fespecularlighting> <fecomposite in="sourcegraphic" in2="spotlight" operator="arithmetic" k1="0" k2="1" k3="1" k4="0"/> </
filter> </defs> <image xlink:href="/files/6457/mdn_logo_onl...
...y_color.png" x="10%" y="10%" width="80%" height="80%" style="
filter:url(#spotlight);"/> </svg> result specifications specification status comment
filter effects module level 1the definition of '<fepointlight>' in that specification.
<feSpotLight> - SVG: Scalable Vector Graphics
the <fespotlight> svg
filter primitive defines a light source which allows to create a spotlight effect.
... it that can be used within a lighting
filter primitive: <fediffuselighting> or <fespecularlighting>.
... example html content <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
filter id="spotlight"> <fespecularlighting result="spotlight" specularconstant="1.5" specularexponent="4" lighting-color="#fff"> <fespotlight x="600" y="600" z="400" limitingconeangle="5.5" /> </fespecularlighting> <fecomposite in="sourcegraphic" in2="spotlight" operator="out" k1="0" k2="1" k3="1" k4="0"/> </
filter> </defs> <image xlink:href="/files...
.../6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%" style="
filter:url(#spotlight);"/> </svg> result specifications specification status comment
filter effects module level 1the definition of '<fespotlight>' in that specification.
<feTurbulence> - SVG: Scalable Vector Graphics
the <feturbulence> svg
filter primitive creates an image using the perlin turbulence function.
...the resulting image will fill the entire
filter primitive subregion.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes basefrequency numoctaves seed stitchtiles type dom interface this element implements the svgfeturbulenceelement interface.
... example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <
filter id="displacement
filter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </
filter> <circle cx="100" cy="100" r="100" style="
filter: url(#displacement
filter)"/> </svg> specifications specification status comment
filter effects module level 1the definition of '<feturbulence>' in that specification.
Creating Reusable Modules - Archive of obsolete content
at interface includes an example which we can adapt like this: var {cc, ci} = require("chrome"); function promptforfile() { const nsifilepicker = ci.nsifilepicker; var fp = cc["@mozilla.org/filepicker;1"] .createinstance(nsifilepicker); var window = require("sdk/window/utils").getmostrecentbrowserwindow(); fp.init(window, "select a file", nsifilepicker.modeopen); fp.append
filters(nsifilepicker.
filterall | nsifilepicker.
filtertext); var rv = fp.show(); if (rv == nsifilepicker.returnok || rv == nsifilepicker.returnreplace) { var file = fp.file; // get the path as string.
... var s = array.from(hash, (c, i) => tohexstring(hash.charcodeat(i))).join(""); return s; } function promptforfile() { var window = require("sdk/window/utils").getmostrecentbrowserwindow(); const nsifilepicker = ci.nsifilepicker; var fp = cc["@mozilla.org/filepicker;1"] .createinstance(nsifilepicker); fp.init(window, "select a file", nsifilepicker.modeopen); fp.append
filters(nsifilepicker.
filterall | nsifilepicker.
filtertext); var rv = fp.show(); if (rv == nsifilepicker.returnok || rv == nsifilepicker.returnreplace) { var file = fp.file; // get the path as string.
... so "filepicker.js" should look like this: var {cc, ci} = require("chrome"); function promptforfile() { var window = require("sdk/window/utils").getmostrecentbrowserwindow(); const nsifilepicker = ci.nsifilepicker; var fp = cc["@mozilla.org/filepicker;1"] .createinstance(nsifilepicker); fp.init(window, "select a file", nsifilepicker.modeopen); fp.append
filters(nsifilepicker.
filterall | nsifilepicker.
filtertext); var rv = fp.show(); if (rv == nsifilepicker.returnok || rv == nsifilepicker.returnreplace) { var file = fp.file; // get the path as string.
Handling Preferences - Archive of obsolete content
you can type on the "
filter" textbox to search for specific preferences.
... if you type the word "homepage", it will
filter all the preferences and display only the ones which include the word "homepage" in its name or value.
...just type "xulschool" in the
filter box to see your new preference.
Frequently Asked Questions - Archive of obsolete content
to access the pref type about:config into the url bar, then type svg.enabled into the
filter field.
...there are major features such as
filters and smil based animation that have still to be implemented in mozilla.
...tim is working on implementing <
filter> and working on items that need to be done before turning on svg by default.
Static Content - Archive of obsolete content
« previousnext » creating a menuitem in the
filter list to show all items is fairly easy.
... <menulist datasources="template-guide-photos4.rdf" ref="http://www.daml.org/2001/09/countries/country-ont#country" oncommand="apply
filter(event.target.value);"> <menupopup> <menuitem label="all"/> </menupopup> <template> <query> <content uri="?start"/> <triple subject="?country" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?start"/> <triple subject="?country" predicate="http://purl.org/dc/elements/1.1/title" object="?count...
... <radiogroup datasources="template-guide-photos4.rdf" ref="http://www.daml.org/2001/09/countries/country-ont#country" onselect="apply
filter(event.target.value);"> <radio label="all" selected="true"/> <template> <query> <content uri="?start"/> <triple subject="?country" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?start"/> <triple subject="?country" predicate="http://purl.org/dc/elements/1.1/title" object="?countrytitle"/> </q...
ant script to assemble an extension - Archive of obsolete content
<exclude name="blogmark.jar"/> </fileset> </jar> </target> <target name="templates" description="generate files from templates."> <copy file="chrome/content/blogmark/contents.rdf.tpl.xml" tofile="chrome/content/blogmark/contents.rdf" overwrite="true"> <
filterchain> <replacetokens> <token key="version" value="${version}"/> <token key="description" value="${description}"/> </replacetokens> </
filterchain> </copy> <copy file="chrome/content/blogmark/about.xul.tpl.xm...
...l" tofile="chrome/content/blogmark/about.xul" overwrite="true"> <
filterchain> <replacetokens> <token key="version" value="${version}"/> </replacetokens> </
filterchain> </copy> <copy file="install.rdf.tpl.xml" tofile="install.rdf" overwrite="true"> <
filterchain> <replacetokens> <token key="version" value="${version}"/> <token key="description" value="${description}"/> </re...
...placetokens> </
filterchain> </copy> </target> </project> ...
calIFileType - Archive of obsolete content
defined in calendar/base/public/caliimportexport.idl interface code [scriptable, uuid(efef8333-e995-4f45-bdf7-bfcabbd9793e)] interface califiletype : nsisupports { readonly attribute astring defaultextension; readonly attribute astring extension
filter; readonly attribute astring description; }; attributes defaultextension the default extension that should be associated with files of this type.
... extension
filter the extension
filter to use in the filepicker's
filter list.
...description the description to show to the user in the
filter list.
Processing XML with E4X - Archive of obsolete content
u will need to re-create it to get the most recent updates: var languages = <languages> <lang>javascript</lang> <lang>python</lang> </languages>; var lang = languages.lang; alert(lang.length()); // alerts 2 languages.lang += <lang>ruby</lang>; alert(lang.length()); // still alerts 2 lang = languages.lang; // re-create the xmllist alert(lang.length()); // alerts 3 searching and
filtering e4x provides special operators for selecting nodes within a document that match specific criteria.
... these
filter operations are specified using an expression contained in parentheses: var html = <html> <p id="p1">first paragraph</p> <p id="p2">second paragraph</p> </html>; alert(html.p.(@id == "p1")); // alerts "first paragraph" nodes matching the path before the expression (in this case the paragraph elements) are added to the scope chain before the expression is evaluated, as if they had been specified using the with statement.
... consequently,
filters can also run against the value of a single node contained within the current element: var people = <people> <person> <name>bob</name> <age>32</age> </person> <person> <name>joe</name> <age>46</age> </person> </people>; alert(people.person.(name == "joe").age); // alerts 46
filter expressions can even use javascript functions: function over40(i) { return i > 40; } alert(people.person.(over40(parseint(age))).name); // alerts joe handling namespaces e4x is fully namespace aware.
XForms Upload Element - Archive of obsolete content
a
filter can be specified to limit the types of files that the user can select from.
... visually, the upload control is shown as a file picker dialog that hides disallowed (
filtered) file types.
... the xforms author can set the
filter by using the mediatype attribute directly on the upload element or by placing a mediatype element (see the spec) as a direct child of the upload element.
Audio for Web games - Game development
you can also apply
filters or effects to music.
...maybe you have underwater scenes, during which you could apply a
filter that muffles the sound.
...the web audio api not only enables us to position a number of audio sources in three-dimensional space but it can also allow us to apply
filters that make that audio appear more realistic.
Ember app structure and componentization - Learn web development
> <label>go to movie</label> <button type="button" class="destroy" title="remove this todo" ></button> </div> <input autofocus class="edit" value="todo text"> </li> </ul> </section> <footer class="footer"> <span class="todo-count"> <strong>0</strong> todos left </span> <ul class="
filters"> <li> <a href="#">all</a> <a href="#">active</a> <a href="#">completed</a> </li> </ul> <button type="button" class="clear-completed"> clear completed </button> </footer> </section> the rendered output should now be as follows: this looks pretty complete, but remember that this is only a static prototype.
...type="checkbox" > <label>buy movie tickets</label> <button type="button" class="destroy" title="remove this todo" ></button> </div> <input autofocus class="edit" value="todo text"> </li> footer.hbs should be updated to contain the following: <footer class="footer"> <span class="todo-count"> <strong>0</strong> todos left </span> <ul class="
filters"> <li> <a href="#">all</a> <a href="#">active</a> <a href="#">completed</a> </li> </ul> <button type="button" class="clear-completed"> clear completed </button> </footer> finally, the contents of application.hbs should be updated so that they call the appropriate components, like so: <section class="todoapp"> <h1>todos</h1> <header /> <todolis...
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Accessibility in React - Learn web development
and they can
filter their task list by all, active, or completed tasks.
... press tab a few more times, and you will see this dashed focus indicator move between each of the
filter buttons.
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Using Vue computed properties - Learn web development
while it might be tempting to do something like this: <h2>{{todoitems.
filter(item => item.done).length}} out of {{todoitems.length}} items completed</h2> it would be recalculated on every render.
... computed: { listsummary() { const numberfinisheditems = this.todoitems.
filter(item =>item.done).length return `${numberfinisheditems} out of ${this.todoitems.length} items completed` } } now we can add {{listsummary}} directly to our template; we'll add this inside an <h2> element, just above our <ul>.
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
SVG Guidelines
consider an image that involves some complex gradients and
filters.
... if saved as a raster image then the work to rasterize the gradients and
filters takes place on the authors computer before the result is stored in the raster file.
...here's an example taking into account the list below: version x="0" and y="0" enable-background (unsupported by gecko and now deprecated by the
filter effects specification) id (id on root element has no effect) xmlns:xlink attribute when there are no xlink:href attributes used throughout the file other unused xml namespace definitions xml:space when there is no text used in the file other empty tags, this may be obvious, but those are sometimes found in svgs unreferenced ids (usually on gradient stops, but also on shapes or paths) c...
Localizing with Koala
type "search" in koala file view sidebar
filter field and click "search".
... this will
filter the list of files down to the files with "search" in the name.
...
filter the files list in the sidebar to only display files containing "search" in their name.
Gecko Profiler FAQ
to stop the profiler from gathering more samples after the “startup end” marker that you’re interested in, you can call services.profiler.pause(); or you can insert a marker with a special string and then write a script that
filters out all samples that were gathered after your marker.
... this mode is usually recommended when you want to find a thread you want to do more focused profiling on, so that you can find its name and then construct a more useful thread
filter string based on the found thread name.
... is there a way to isolate or
filter a profile (at least of mainthread and maybe one or two other ones that make sense) to a specific tab/document/eventqueue?
Refcount tracing and balancing
warning: you should never use this without xpcom_mem_log_classes and/or xpcom_mem_log_objects, because without some
filtering the logging will be completely useless due to how slow the browser will run and how large the logs it produces will be.
... post-processing step 2:
filtering the log once you've picked an object that leaked, you can use tools/rb/
filter-log.pl to
filter the log file to drop the call stack for other objects; this process reduces the size of the log file and also improves the performance.
... perl -w tools/rb/
filter-log.pl --object 0x00253ab0 < ./refcounts.log > my-leak.log linux users the log file generated on linux system often lack function names, file names and line numbers.
TimerFirings logging
-991946880[7f46c365ba00]: [6775] fn timer (slack 100 ms): layeractivitytracker -991946880[7f46c365ba00]: [6775] fn timer (one_shot 250 ms): presshell::spaintsuppressioncallback -991946880[7f46c365ba00]: [6775] fn timer (one_shot 160 ms): nsbrowserstatus
filter::timeouthandler -991946880[7f46c365ba00]: [6775] iface timer (one_shot 200 ms): 7f46964d7f80 -1340643584[7f46c365ec00]: [6775] obs timer (slack 1000 ms): 7f46a95a0200 each line has the following information.
...=http://pixel.mathtag.com/click/img?mt_aid=2744535504761193354&mt_id=1895890&mt_adid=148611&mt_sid=973379&mt_exid=9&mt_inapp=0&mt_uuid=353d5460-19f6-4400-9bbd-d0fcc3bcf595&mt_3pck=http%3a//beacon-apac-hkg1.rubiconproject.com/beacon/t/d1f9921d-4e47-448f-b6ba-36cae1c31b65/&redirect=;ord=2744535504761193354?:83:0 94 801266240[7f7c1f248000]: [7163] fn timer (one_shot 160 ms): nsbrowserstatus
filter::timeouthandler 92 -495057024[7f74e105ba00]: [7108] fn timer (one_shot 160 ms): nsbrowserstatus
filter::timeouthandler the first column shows how many times the particular line appeared.
... 204 fn timer (one_shot): [content] http://widgets.outbrain.com/outbrain.js:20:330 186 fn timer (one_shot): nsbrowserstatus
filter::timeouthandler 138 fn timer (one_shot): [content] https://self-repair.mozilla.org/repair/:7:13669 118 fn timer (one_shot): [content] http://a.visualrevenue.com/vrs.js:6:9423 108 fn timer (slack): layeractivitytracker 104 fn timer (slack): nsidocument::selectorcache 104 fn timer (slack): cctimerfired ...
Renaming With Pork
filterdiff from patchutils renaming a class 1.
...thus it is helpful to postprocess the patch with sed and
filterdiff.
...--dry-run is helpful for debugging
filterdiff -x \*/smbase/\* /tmp/string.diff |sed 's/.home.tglek.tmp.//' | patch -p1 --dry-run ...
imgIContainer
void decodingcomplete(); obsolete since gecko 2.0 void draw(in gfxcontext acontext, in gfxgraphics
filter a
filter, [const] in gfxmatrix auserspacetoimagespace, [const] in gfxrect afill, [const] in nsintrect asubimage, [const] in nsintsize aviewportsize, in pruint32 aflags); native code only!
...void draw( in gfxcontext acontext, in gfxgraphics
filter a
filter, [const] in gfxmatrix auserspacetoimagespace, [const] in gfxrect afill, [const] in nsintrect asubimage, [const] in nsintsize aviewportsize, in pruint32 aflags ); parameters acontext the thebes context to draw the image to.
... a
filter the
filter to be used if we're scaling the image.
XPCOM Interface Reference by grouping
mands nsiclipboarddragdrophooklist nsiclipboarddragdrophooks nsiclipboardhelper nsiclipboardowner core action nsitransactionmanager process nsiprocess nsiprocess2 thread nsithread nsithreadevent
filter nsithreadinternal nsithreadmanager nsithreadobserver nsithreadpool nsithreadpoollistener nsitoolkit util nsiversioncomparator nsiweakreference nsifactory nsiinterfacerequestor nsijscid nsijsid nsijsiid n...
...nnel nsichanneleventsink nsirequest nsirequestobserver nsiresumablechannel nsidnsservice nsiftpchannel nsiftpeventsink nsihttpchannel nsihttpchannelinternal nsihttpheadervisitor nsiidnservice nsiprotocolhandler nsiprotocolproxycallback nsiprotocolproxy
filter nsiprotocolproxyservice nsiproxyinfo preferences nsiiniparser nsiiniparserfactory nsiprefbranch nsiprefbranch2 nsipreflocalizedstring nsiprefservice nsistringbundle nsistringbundleservice security cookies nsicookie nsicookie2...
... nsicookieacceptdialog nsicookieconsent nsicookiemanager nsicookiemanager2 nsicookiepermission nsicookiepromptservice nsicookieservice nsicookiestorage nsisessionstore crypto nsicryptohash
filter nsiparentalcontrolsservice nsipermission nsipermissionmanager nsisecuritycheckedcomponent ssl nsisslerrorlistener stream stream nsipipe nsitraceablechannel nsitransport nsitransporteventsink nsitransp...
AudioContext.createMediaStreamTrackSource() - Web APIs
then a biquad
filternode is created using createbiquad
filter(), and it's configured as desired to perform a lowshelf
filter on the audio coming from the source.
... the output from the microphone is then routed into the new biquad
filter, and the
filter's output is in turn routed to the audio context's destination.
... navigator.mediadevices.getusermedia ({audio: true, video: false}) .then(function(stream) { audio.srcobject = stream; audio.onloadedmetadata = function(e) { audio.play(); audio.muted = true; }; let audioctx = new audiocontext(); let source = audioctx.createmediastreamsource(stream); let biquad
filter = audioctx.createbiquad
filter(); biquad
filter.type = "lowshelf"; biquad
filter.frequency.value = 3000; biquad
filter.gain.value = 20; source.connect(biquad
filter); biquad
filter.connect(audioctx.destination); }) .catch(function(err) { // handle getusermedia() error }); specifications specification status comment web audio apithe definition of 'createmediastreamtracksource()' in that specification.
OES_texture_float - Web APIs
limitation: linear
filtering linear
filtering on floating-point textures is not allowed with this extension.
... if you set the magnification or minification
filter in the webglrenderingcontext.texparameter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use floating-point textures, the texture will be marked as incomplete.
... to use linear
filtering on floating-point textures, enable the oes_texture_float_linear extension in addition to this extension.
OES_texture_half_float - Web APIs
limitation: linear
filtering linear
filtering on half floating-point textures is not allowed with this extension.
... if you set the magnification or minification
filter in the webglrenderingcontext.texparameter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use half floating-point textures, the texture will be marked as incomplete.
... to use linear
filtering on half floating-point textures, enable the oes_texture_half_float_linear extension in addition to this extension.
Response.redirected - Web APIs
relying on redirected to
filter out redirects makes it easy for a forged redirect to prevent your content from working as expected.
... instead, you should actually instead do the
filtering when you call fetch().
...document.getelementbyid("warning-message-box"); if (response.redirected) { elem.innerhtml = "unexpected redirect"; } else { elem.innerhtml = ""; } return response.blob(); }).then(function(imageblob) { let imgobjecturl = url.createobjecturl(imageblob); document.getelementbyid("img-element-id").src = imgobjecturl; }); disallowing redirects because using redirected to manually
filter out redirects can allow forgery of redirects, you should instead set the redirect mode to "error" in the init parameter when calling fetch(), like this: fetch("awesome-picture.jpg", { redirect: "error" }).then(function(response) { return response.blob(); }).then(function(imageblob) { let imgobjecturl = url.createobjecturl(imageblob); document.getelementbyid("img-element-id").src = imgobjec...
SVGFEBlendElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement, and implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfeblendelement' in that specification.
SVGFEColorMatrixElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement , and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement , and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfecolormatrixelement' in that specification.
SVGFEComponentTransferElement - Web APIs
2px" /><text x="336" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfecomponenttransferelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfecomponenttransferelement' in that specification.
SVGFECompositeElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfecompositeelement' in that specification.
SVGFEConvolveMatrixElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfeconvolvematrixelement' in that specification.
SVGFEDiffuseLightingElement - Web APIs
" /><text x="346" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfediffuselightingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfediffuselightingelement' in that specification.
SVGFEDisplacementMapElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfedisplacementmapelement' in that specification.
SVGFEDropShadowElement - Web APIs
="2px" /><text x="371" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfedropshadowelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface also inherits methods of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfedropshadowelement' in that specification.
SVGFEFloodElement - Web APIs
t-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefloodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement, and implements properties from svg
filterprimitivestandardattributes.
... methods this interface doesn't implement any specific methods, but inherits methods from its parent interface, svgelement, and implements methods from svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfefloodelement' in that specification.
SVGFEGaussianBlurElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface also inherits methods of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfegaussianblurelement' in that specification.
SVGFEImageElement - Web APIs
roke-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">svgfeimageelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and implements properties of svg
filterprimitivestandardattributes and svgurireference.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and implements methods of svg
filterprimitivestandardattributesand svgurireference.
... specifications specification status comment
filter effects module level 1the definition of 'svgfeimageelement' in that specification.
SVGFEMergeElement - Web APIs
font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfemergeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfemergeelement' in that specification.
SVGFEMorphologyElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfemorphologyelement' in that specification.
SVGFEOffsetElement - Web APIs
idth="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfeoffsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfeoffsetelement' in that specification.
SVGFESpecularLightingElement - Web APIs
/><text x="341" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfespecularlightingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfespecularlightingelement' in that specification.
SVGFETileElement - Web APIs
-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfetileelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfetileelement' in that specification.
SVGFETurbulenceElement - Web APIs
properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svg
filterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its parent, svgelement, and also implements methods of svg
filterprimitivestandardattributes.
... specifications specification status comment
filter effects module level 1the definition of 'svgfeturbulenceelement' in that specification.
WebGL2RenderingContext.samplerParameter[if]() - Web APIs
gl.texture_mag_
filter: a glenum specifying the texture magnification
filter.
... gl.texture_min_
filter: a glenum specifying the texture minification
filter gl.texture_min_lod: a glfloat specifying the minimum level-of-detail value.
... examples var sampler = gl.createsampler(); gl.samplerparameteri(sampler, gl.texture_mag_
filter, gl.nearest); specifications the compatibility table in this page is generated from structured data.
WebGL constants - Web APIs
generate_mipmap_hint 0x8192 hint for the quality of
filtering when generating mipmap images with webglrenderingcontext.generatemipmap().
... constant name value description nearest 0x2600 linear 0x2601 nearest_mipmap_nearest 0x2700 linear_mipmap_nearest 0x2701 nearest_mipmap_linear 0x2702 linear_mipmap_linear 0x2703 texture_mag_
filter 0x2800 texture_min_
filter 0x2801 texture_wrap_s 0x2802 texture_wrap_t 0x2803 texture_2d 0x0de1 texture 0x1702 texture_cube_map 0x8513 texture_binding_cube_map 0x8514 texture_cube_map_positive_x 0x8515 texture_cube_map_negative_x 0x8516 ...
... ext_texture_
filter_anisotropic constant name value description max_texture_max_anisotropy_ext 0x84ff returns the maximum available anisotropy.
Migrating from webkitAudioContext - Web APIs
var iscustom = (osc.type == "custom"); // iscustom will be true biquad
filternode.type biquad
filternode's type property has been changed to use web idl enums.
... old code using webkitaudiocontext can be ported to standards based audiocontext like below: // old webkitaudiocontext code: var
filter = context.createbiquad
filter();
filter.type =
filter.lowpass; // lowpass
filter filter.type =
filter.highpass; // highpass
filter filter.type =
filter.bandpass; // bandpass
filter filter.type =
filter.lowshelf; // lowshelf
filter filter.type =
filter.highshelf; // highshelf
filter filter.type =
filter.peaking; // peaking
filter filter.type =
filter.notch; // notch
filter filter.type =
filter.allpass; // allpass
filter // new standard audiocontext code: var
filter = context.createbiquad
filter();
filter.type = "lowpass"; // lowpass
filter filter.type = "highpass"; // highpass
filter filter.type = "bandpass"; // bandpass
filter fi...
...lter.type = "lowshelf"; // lowshelf
filter filter.type = "highshelf"; // highshelf
filter filter.type = "peaking"; // peaking
filter filter.type = "notch"; // notch
filter filter.type = "allpass"; // allpass
filter pannernode.panningmodel pannernode's panningmodel property has been changed to use web idl enums.
Using XMLHttpRequest - Web APIs
2 : 1 : 0; this.receiver = otarget.action; this.status = 0; this.segments = []; var f
filter = this.technique === 2 ?
...*/ for (nfile = 0; nfile < ofield.files.length; this.segments.push(f
filter(ofield.name) + "=" + f
filter(ofield.files[nfile++].name))); } } else if ((sfieldtype !== "radio" && sfieldtype !== "checkbox") || ofield.checked) { /* note: this will submit _all_ submit buttons.
.../* enctype is multipart/form-data */ "content-disposition: form-data; name=\"" + ofield.name + "\"\r\n\r\n" + ofield.value + "\r\n" : /* enctype is application/x-www-form-urlencoded or text/plain or method is get */ f
filter(ofield.name) + "=" + f
filter(ofield.value) ); } } processstatus(this); } return function (oformelement) { if (!oformelement.action) { return; } new submitrequest(oformelement); }; })(); </script> </head> <body> <h1>sending forms with pure ajax</h1> <h2>using the get method</h2> <form action="register.php" method="get" onsubmit="ajaxsubmit(this); return fa...
WebKit CSS extensions - CSS: Cascading Style Sheets
a -webkit-animation-trigger -webkit-app-region -webkit-appearance* -webkit-aspect-ratio b -webkit-backdrop-
filter -webkit-background-composite -webkit-border-after** -webkit-border-after-color** -webkit-border-after-style** -webkit-border-after-width** -webkit-border-before** -webkit-border-before-color** -webkit-border-before-style** -webkit-border-before-width** -webkit-border-end** -webkit-border-end-color** -webkit-border-end-style** -webkit-border-end-width** -webkit-border-fit -webkit-bo...
... -webkit-border-top-left-radius -webkit-border-top-right-radius -webkit-box-decoration-break -webkit-box-shadow -webkit-box-sizing c -webkit-clip-path -webkit-column-count -webkit-column-fill -webkit-column-gap -webkit-column-rule -webkit-column-rule-color -webkit-column-rule-style -webkit-column-rule-width -webkit-column-span -webkit-column-width -webkit-columns f -webkit-
filter -webkit-flex -webkit-flex-basis -webkit-flex-direction -webkit-flex-flow -webkit-flex-grow -webkit-flex-shrink -webkit-flex-wrap -webkit-font-feature-settings -webkit-font-kerning -webkit-font-variant-ligatures g-j -webkit-grid -webkit-grid-area -webkit-grid-auto-columns -webkit-grid-auto-flow -webkit-grid-auto-rows -webkit-grid-column -webkit-grid-column-end -webkit-grid-co...
...rigin -webkit-background-size -webkit-border-bottom-left-radius -webkit-border-bottom-right-radius -webkit-border-image -webkit-border-radius -webkit-box-align**, *** -webkit-box-direction**, *** -webkit-box-flex**, *** -webkit-box-orient**, *** -webkit-box-pack**, *** -webkit-box-shadow -webkit-box-sizing -webkit-border-top-left-radius -webkit-border-top-right-radius f -webkit-
filter -webkit-flex -webkit-flex-basis -webkit-flex-direction -webkit-flex-flow -webkit-flex-grow -webkit-flex-shrink -webkit-flex-wrap j -webkit-justify-content m -webkit-mask -webkit-mask-clip -webkit-mask-composite* -webkit-mask-image -webkit-mask-origin -webkit-mask-position -webkit-mask-position-x** -webkit-mask-position-y** -webkit-mask-repeat -webkit-mask-size o-p -...
drop-shadow() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
...the box-shadow property creates a rectangular shadow behind an element's entire box, while the drop-shadow()
filter function creates a shadow that conforms to the shape (alpha channel) of the image itself.
... examples setting a drop shadow using pixel offsets and blur radius /* black shadow with 10px blur */ drop-shadow(16px 16px 10px black) setting a drop shadow using rem offsets and blur radius /* reddish shadow with 1rem blur */ drop-shadow(.5rem .5rem 1rem #e23) specifications specification status
filter effects module level 1the definition of 'drop-shadow()' in that specification.
opacity() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
...the difference is that with
filters, some browsers provide hardware acceleration for better performance.
... examples opacity(0%) /* completely transparent */ opacity(50%) /* 50% transparent */ opacity(1) /* no effect */ specifications specification status
filter effects module level 1the definition of 'opacity()' in that specification.
position - CSS: Cascading Style Sheets
it is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or
filter property set to something other than none (see the css transforms spec), in which case that ancestor behaves as the containing block.
... (note that there are browser inconsistencies with perspective and
filter contributing to containing block formation.) its final position is determined by the values of top, right, bottom, and left.
...x; } span { background: red; border: 1px solid black; } .positioned { position: absolute; background: yellow; top: 30px; left: 30px; } result fixed positioning fixed positioning is similar to absolute positioning, with the exception that the element's containing block is the initial containing block established by the viewport, unless any ancestor has transform, perspective, or
filter property set to something other than none (see css transforms spec), which then causes that ancestor to take the place of the elements containing block.
TypeError: Reduce of empty array with no initial value - JavaScript
examples invalid cases this problem appears frequently when combined with a
filter (array.prototype.
filter(), typedarray.prototype.
filter()) which will remove all elements of the list.
... var ints = [0, -1, -2, -3, -4, -5]; ints.
filter(x => x > 0) // removes all elements .reduce((x, y) => x + y) // no more elements to use for the initial value.
... var ints = [0, -1, -2, -3, -4, -5]; ints.
filter(x => x > 0) // removes all elements .reduce((x, y) => x + y, 0) // the initial value is the neutral element of the addition another way would be two to handle the empty case, either before calling reduce, or in the callback after adding an unexpected dummy initial value.
Object.getOwnPropertyNames() - JavaScript
}, { getfoo: { value: function() { return this.foo; }, enumerable: false } }); my_obj.foo = 1; console.log(object.getownpropertynames(my_obj).sort()); // logs ["foo", "getfoo"] if you want only the enumerable properties, see object.keys() or use a for...in loop (note that this will also return enumerable properties found along the prototype chain for the object unless the latter is
filtered with hasownproperty()).
...entclass() {} parentclass.prototype.inheritedmethod = function() {}; function childclass() { this.prop = 5; this.method = function() {}; } childclass.prototype = new parentclass; childclass.prototype.prototypemethod = function() {}; console.log( object.getownpropertynames( new childclass() // ["prop", "method"] ) ); get non-enumerable properties only this uses the array.prototype.
filter() function to remove the enumerable keys (obtained with object.keys()) from a list of all keys (obtained with object.getownpropertynames()) thus giving only the non-enumerable keys as output.
... var target = myobject; var enum_and_nonenum = object.getownpropertynames(target); var enum_only = object.keys(target); var nonenum_only = enum_and_nonenum.
filter(function(key) { var indexinenum = enum_only.indexof(key); if (indexinenum == -1) { // not found in enum_only keys, // meaning that the key is non-enumerable, // so return true so we keep this in the
filter return true; } else { return false; } }); console.log(nonenum_only); specifications specification ecmascript (ecma-262)the definition of 'object.getownpropertynames' in that specification.
baseFrequency - SVG: Scalable Vector Graphics
the basefrequency attribute represents the base frequency parameter for the noise function of the <feturbulence>
filter primitive.
... only one element is using this attribute: <feturbulence> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" /> </
filter> <
filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.05" /> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <number-optional-number> default value 0 animatable yes <number-optional-number> if two numbers are provided, the first one represents the base fr...
... example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <
filter id="displacement
filter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </
filter> <circle cx="100" cy="100" r="100" style="
filter: url(#displacement
filter)"/> </svg> specifications specification status comment
filter effects module level 1the definition of 'basefrequency...
bias - SVG: Scalable Vector Graphics
the bias attribute shifts the range of the
filter.
... usage notes value <number> default value 0 animatable yes one application of bias is when it is desirable to have 0.5 gray value be the zero response of the
filter.
... specifications specification status comment
filter effects module level 1the definition of 'bias' in that specification.
color-rendering - SVG: Scalable Vector Graphics
color-rendering takes precedence over color-interpolation-
filters.
... for example, assume color-rendering: optimizespeed and color-interpolation-
filters: linearrgb.
... in this case, the svg user agent should perform color operations in a way that optimizes performance, which might mean sacrificing the color interpolation precision as specified by through the linearrgb value for color-interpolation-
filters.
divisor - SVG: Scalable Vector Graphics
only one element is using this attribute: <feconvolvematrix> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="convolvematrix1" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 2 0 0 0 0 0 0 -1" divisor="1"/> </
filter> <
filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 2 0 0 0 0 0 0 -1" divisor="8"/> </
filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="2...
...00" style="
filter:url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="
filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes value <number> default value sum of all values in kernelmatrix or 1 if sum is 0 animatable yes <number> this value defines the divisor.
... specifications specification status comment
filter effects module level 1the definition of 'divisor' in that specification.
flood-color - SVG: Scalable Vector Graphics
the flood-color attribute indicates what color to use to flood the current
filter primitive subregion.
... as a presentation attribute, it can be applied to any element but it has effect only on the following two elements: <feflood> and <fedropshadow> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="flood1"> <feflood flood-color="skyblue" x="0" y="0" width="200" height="200"/> </
filter> <
filter id="flood2"> <feflood flood-color="seagreen" x="0" y="0" width="200" height="200"/> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#flood1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#flood2); transform: translatex(220px);" /> </svg> usage notes value color initial value...
... black animatable yes specifications specification status comment
filter effects module level 1the definition of 'flood-color' in that specification.
k1 - SVG: Scalable Vector Graphics
the k1 attribute defines one of the values to be used within the the arithmetic operation of the <fecomposite>
filter primitive.
... the pixel composition is computed using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 only one element is using this attribute: <fecomposite> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="composite1" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="0" k4="0" /> </
filter> <
filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="10" k2="0" k3="0" k4="0" /> </
filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668/m...
...dn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'k1' in that specification.
k2 - SVG: Scalable Vector Graphics
the k2 attribute defines one of the values to be used within the the arithmetic operation of the <fecomposite>
filter primitive.
... the pixel composition is computed using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 only one element is using this attribute: <fecomposite> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="composite1" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="1" k3="0" k4="0" /> </
filter> <
filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="10" k3="0" k4="0" /> </
filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668/m...
...dn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'k2' in that specification.
k3 - SVG: Scalable Vector Graphics
the k3 attribute defines one of the values to be used within the the arithmetic operation of the <fecomposite>
filter primitive.
... the pixel composition is computed using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 only one element is using this attribute: <fecomposite> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="composite1" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="1" k4="0" /> </
filter> <
filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="10" k4="0" /> </
filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668/m...
...dn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'k3' in that specification.
k4 - SVG: Scalable Vector Graphics
the k4 attribute defines one of the values to be used within the the arithmetic operation of the <fecomposite>
filter primitive.
... the pixel composition is computed using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 only one element is using this attribute: <fecomposite> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="composite1" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="0" k4="0" /> </
filter> <
filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="10" k2="0" k3="0" k4="0.3" /> </
filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668...
.../mdn.svg" x="0" y="0" width="200" height="200" style="
filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'k4' in that specification.
lighting-color - SVG: Scalable Vector Graphics
the lighting-color attribute defines the color of the light source for lighting
filter primitives.
... two elements are using this attribute: <fediffuselighting> and <fespecularlighting> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="diffuselighting1" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" lighting-color="white"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </
filter> <
filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" lighting-color="blue"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting2); transf...
...orm: translatex(220px);" /> </svg> usage notes value color default value white animatable yes specifications specification status comment
filter effects module level 1the definition of 'lighting-color' in that specification.
operator - SVG: Scalable Vector Graphics
two elements are using this attribute: <fecomposite> and <femorphology> html, body, svg { height: 100%; font: 20px arial, helvetica, sans-serif; } <svg viewbox="0 0 120 70" xmlns="http://www.w3.org/2000/svg"> <
filter id="erode"> <femorphology operator="erode" radius="0.4"/> </
filter> <
filter id="dilate"> <femorphology operator="dilate" radius="0.8"/> </
filter> <text x="0" y="15">normal text</text> <text x="0" y="40"
filter="url(#erode)">thin text</text> <text x="0" y="65"
filter="url(#dilate)">fat text</text> </svg> fecomposite for <fecomposite>, operator defines the compositing operation that is to be performe...
... specifications specification status comment
filter effects module level 1the definition of 'operator for <femorphology>' in that specification.
... working draft no change
filter effects module level 1the definition of 'operator for <fecomposite>' in that specification.
pointsAtX - SVG: Scalable Vector Graphics
the pointsatx attribute represents the x location in the coordinate system established by attribute primitiveunits on the <
filter> element of the point at which the light source is pointing.
... only one element is using this attribute: <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="lighting1" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsatx="0" /> </fediffuselighting> </
filter> <
filter id="lighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsatx="400" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes default val...
...ue 0 value <number> animatable yes specifications specification status comment
filter effects module level 1the definition of 'pointsatx' in that specification.
pointsAtY - SVG: Scalable Vector Graphics
the pointsaty attribute represents the y location in the coordinate system established by attribute primitiveunits on the <
filter> element of the point at which the light source is pointing.
... only one element is using this attribute: <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="lighting1" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsaty="0" /> </fediffuselighting> </
filter> <
filter id="lighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsaty="400" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes default val...
...ue 0 value <number> animatable yes specifications specification status comment
filter effects module level 1the definition of 'pointsaty' in that specification.
pointsAtZ - SVG: Scalable Vector Graphics
the pointsatz attribute represents the y location in the coordinate system established by attribute primitiveunits on the <
filter> element of the point at which the light source is pointing, assuming that, in the initial local coordinate system, the positive z-axis comes out towards the person viewing the content and assuming that one unit along the z-axis equals one unit in x and y.
... only one element is using this attribute: <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="lighting1" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="100" y="100" z="50" pointsatz="0" /> </fediffuselighting> </
filter> <
filter id="lighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="100" y="100" z="50" pointsatz="80" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes default ...
...value 0 value <number> animatable yes specifications specification status comment
filter effects module level 1the definition of 'pointsatz' in that specification.
seed - SVG: Scalable Vector Graphics
the seed attribute represents the starting number for the pseudo random number generator of the <feturbulence>
filter primitive.
... only one element is using this attribute: <feturbulence> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="0" /> </
filter> <
filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="100" /> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter:url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="
filter:url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/...
...2000/svg"> <
filter id="displacement
filter"> <feturbulence basefrequency="0.05" seed="1000" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </
filter> <circle cx="100" cy="100" r="100" style="
filter: url(#displacement
filter)"/> </svg> specifications specification status comment
filter effects module level 1the definition of 'seed' in that specification.
stdDeviation - SVG: Scalable Vector Graphics
only one element is using this attribute: <fegaussianblur> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="gaussianblur1"> <fegaussianblur stddeviation="1" /> </
filter> <
filter id="gaussianblur2"> <fegaussianblur stddeviation="5" /> </
filter> <
filter id="gaussianblur3" x="-30%" y="-30%" width="160%" height="160%"> <fegaussianblur stddeviation="10" /> </
filter> <circle cx="100" cy="100" r="50" style="
filter: url(#gaussianblur1);" /> <circle cx="100" cy="100" r="50" style="
filter: url(#gaussianblur2); transform: translatex(140px);" /> <circle cx="100" cy="100" r="50" style="
filter: url(#gaussianblur3); transform: tran...
...a value of zero disables the effect of the given
filter primitive (i.e., the result is the
filter input image).
... specifications specification status comment
filter effects module level 1the definition of 'stddeviation' in that specification.
stitchTiles - SVG: Scalable Vector Graphics
only one element is using this attribute: <feturbulence> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" stitchtiles="nostitch" /> </
filter> <
filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" stitchtiles="stitch" /> </
filter> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise1);" /> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise1); transform: translate(100px, 0);" /> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise1); transform: translat...
...e(0, 100px);" /> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise1); transform: translate(100px, 100px);" /> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise2); transform: translate(220px, 0);" /> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise2); transform: translate(320px, 0);" /> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise2); transform: translate(220px, 100px);" /> <rect x="0" y="0" width="100" height="100" style="
filter: url(#noise2); transform: translate(320px, 100px);" /> </svg> usage notes value nostitch | stitch default value nostitch animatable yes nostitch this value indicates that no attempt is made to achieve smooth transitions at the bor...
... specifications specification status comment
filter effects module level 1the definition of 'stitchtiles' in that specification.
tableValues - SVG: Scalable Vector Graphics
cr> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <lineargradient id="gradient" gradientunits="userspaceonuse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </lineargradient> </defs> <
filter id="componenttransfer1" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="table" tablevalues="0 1"/> <fefuncg type="table" tablevalues="0 1"/> <fefuncb type="table" tablevalues="0 1"/> </fecomponenttransfer> </
filter> <
filter id="componenttransfer2" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="table...
..." tablevalues="1 0"/> <fefuncg type="table" tablevalues="1 0"/> <fefuncb type="table" tablevalues="1 0"/> </fecomponenttransfer> </
filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="
filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="
filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <list-of-numbers> default value empty list resulting in identity transfer animatable yes <list-of-numbers> this value holds a comma- and/or space-separated list of <number>s, which define a lookup table for the color component transfer function.
... specifications specification status comment
filter effects module level 1the definition of 'tablevalues' in that specification.
xChannelSelector - SVG: Scalable Vector Graphics
only one element is using this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 440 160" xmlns="http://www.w3.org/2000/svg"> <
filter id="displacement
filter"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" xchannelselector="r"/> </
filter> <
filter id="displacement
filter2"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" sca...
...le="30" xchannelselector="b"/> </
filter> <text x="10" y="60" font-size="50"
filter="url(#displacement
filter)">some displaced text</text> <text x="10" y="120" font-size="50"
filter="url(#displacement
filter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the x-axis.
... specifications specification status comment
filter effects module level 1the definition of 'xchannelselector' in that specification.
yChannelSelector - SVG: Scalable Vector Graphics
only one element is using this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 440 160" xmlns="http://www.w3.org/2000/svg"> <
filter id="displacement
filter"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" ychannelselector="r"/> </
filter> <
filter id="displacement
filter2"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" sca...
...le="30" ychannelselector="b"/> </
filter> <text x="10" y="60" font-size="50"
filter="url(#displacement
filter)">some displaced text</text> <text x="10" y="120" font-size="50"
filter="url(#displacement
filter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the y-axis.
... specifications specification status comment
filter effects module level 1the definition of 'ychannelselector' in that specification.
SVG Attribute reference - SVG: Scalable Vector Graphics
svg attributes a to z a accent-height accumulate additive alignment-baseline allowreorder alphabetic amplitude arabic-form ascent attributename attributetype autoreverse azimuth b basefrequency baseline-shift baseprofile bbox begin bias by c calcmode cap-height class clip clippathunits clip-path clip-rule color color-interpolation color-interpolation-
filters color-profile color-rendering contentscripttype contentstyletype cursor cx cy d d decelerate descent diffuseconstant direction display divisor dominant-baseline dur dx dy e edgemode elevation enable-background end exponent externalresourcesrequired f fill fill-opacity fill-rule
filter filterres
filterunits flood-color flood-opacity font-family font-s...
... alignment-baseline, baseline-shift, clip, clip-path, clip-rule, color, color-interpolation, color-interpolation-
filters, color-profile, color-rendering, cursor, direction, display, dominant-baseline, enable-background, fill, fill-opacity, fill-rule,
filter, flood-color, flood-opacity, font-family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight, glyph-orientation-horizontal, glyph-orientation-vertical, image-rendering, kerning, letter-spacing, lighting-color, marker-end, marker-mi...
...d, marker-start, mask, opacity, overflow, pointer-events, shape-rendering, stop-color, stop-opacity, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, text-decoration, text-rendering, transform, transform-origin, unicode-bidi, vector-effect, visibility, word-spacing, writing-mode
filters attributes
filter primitive attributes height, result, width, x, y transfer function attributes type, tablevalues, slope, intercept, amplitude, exponent, offset animation attributes animation attribute target attributes attributetype, attributename animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keysplines, from, ...
<feBlend> - SVG: Scalable Vector Graphics
the <feblend> svg
filter primitive composes two objects together ruled by a certain blending mode.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in in2 mode dom interface this element implements the svgfeblendelement interface.
... example svg <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
filter id="spotlight"> <feflood result="floodfill" x="0" y="0" width="100%" height="100%" flood-color="green" flood-opacity="1"/> <feblend in="sourcegraphic" in2="floodfill" mode="multiply"/> </
filter> </defs> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%" style="
filter:url(#spotlight);"/> </svg> result specifications specification status comment
filter effects module level 1the definition of '<feblend>' in that specification.
<feConvolveMatrix> - SVG: Scalable Vector Graphics
the <feconvolvematrix> svg
filter primitive applies a matrix convolution
filter effect.
...assuming the simplest case (where the input image's pixel grid aligns perfectly with the kernel's pixel grid) and assuming default values for attributes ‘divisor’, ‘targetx’ and ‘targety’, then resulting color value will be: (9* 0 + 8* 20 + 7* 40 + 6*100 + 5*120 + 4*140 + 3*200 + 2*220 + 1*240) / (9+8+7+6+5+4+3+2+1) usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in order kernelmatrix divisor bias targetx targety edgemode kernelunitlength preservealpha dom interface this element implements the svgfeconv...
... example svg <svg width="200" height="200" viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
filter id="emboss"> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -3"/> </
filter> </defs> <image xlink:href="/files/12668/mdn.svg" x="0" y="0" height="200" width="200" style="
filter:url(#emboss);" /> </svg> result specifications specification status comment
filter effects module level 1the definition of '<feconvolvematrix>' in that specification.
<feDisplacementMap> - SVG: Scalable Vector Graphics
the <fedisplacementmap> svg
filter primitive uses the pixel values from the image from in2 to spatially displace the image from in.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in in2 scale xchannelselector ychannelselector dom interface this element implements the svgfedisplacementmapelement interface.
... example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <
filter id="displacement
filter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </
filter> <circle cx="100" cy="100" r="100" style="
filter: url(#displacement
filter)"/> </svg> specifications specification status comment
filter effects module level 1the definition of '<fedisplacementmap>' in that specification.
<feFlood> - SVG: Scalable Vector Graphics
the <feflood> svg
filter primitive fills the
filter subregion with the color and opacity defined by flood-color and flood-opacity.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <animatecolor>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes flood-color flood-opacity dom interface this element implements the svgfefloodelement interface.
... example html content <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"> <defs> <
filter id="flood
filter"
filterunits="userspaceonuse"> <feflood x="50" y="50" width="100" height="100" flood-color="green" flood-opacity="0.5"/> </
filter> </defs> <use style="
filter: url(#flood
filter);"/> </svg> result specifications specification status comment
filter effects module level 1the definition of '<feflood>' in that specification.
<feMergeNode> - SVG: Scalable Vector Graphics
the femergenode takes the result of another
filter to be processed by its parent <femerge>.
... usage context categoriesnonepermitted contentany number of the following elements, in any order:<animate>, <set> example <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <
filter id="feoffset" x="-40" y="-20" width="100" height="200"> <feoffset in="sourcegraphic" dx="60" dy="60" /> <fegaussianblur in="sourcegraphic" stddeviation="5" result="blur2" /> <femerge> <femergenode in="blur2" /> <femergenode in="sourcegraphic" /> </femerge> </
filter> <rect x="40" y="40" width="100" height="100" style="stroke: #000000; fill: green;
filter: url(#feoffset);" /> <rect x="40" y="40" width="100" height="100" style="stroke: #000000; fill: green;" /> </svg> ...
... specifications specification status comment
filter effects module level 1the definition of '<femergenode>' in that specification.
<feOffset> - SVG: Scalable Vector Graphics
the <feoffset> svg
filter primitive allows to offset the input image.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in dx dy dom interface this element implements the svgfeoffsetelement interface.
... example svg <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <
filter id="offset" width="180" height="180"> <feoffset in="sourcegraphic" dx="60" dy="60" /> </
filter> </defs> <rect x="0" y="0" width="100" height="100" stroke="black" fill="green"/> <rect x="0" y="0" width="100" height="100" stroke="black" fill="green"
filter="url(#offset)"/> </svg> result specifications specification status comment
filter effects module level 1the definition of '<feoffset>' in that specification.
<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.
... usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes class style specific attributes in dom interface this element implements the svgfetileelement interface.
... example svg <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
filter id="tile" x="0" y="0" width="100%" height="100%"> <fetile in="sourcegraphic" x="50" y="50" width="100" height="100" /> <fetile/> </
filter> </defs> <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%" style="
filter:url(#tile);"/> </svg> result specifications specification status comment
filter effects module level 1the definition of '<fetile>' in that specification.
SVG element reference - SVG: Scalable Vector Graphics
<ellipse> f <feblend> <fecolormatrix> <fecomponenttransfer> <fecomposite> <feconvolvematrix> <fediffuselighting> <fedisplacementmap> <fedistantlight> <fedropshadow> <feflood> <fefunca> <fefuncb> <fefuncg> <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> <tspa...
... 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>, <fespecularlighting>, <fetile>, <feturbulence> font elements <font>, <font-face>, <font-face-form...
...ements <circle>, <ellipse>, <line>, <mesh>, <path>, <polygon>, <polyline>, <rect> structural elements <defs>, <g>, <svg>, <symbol>, <use> text content elements <altglyph>, <altglyphdef>, <altglyphitem>, <glyph>, <glyphref>, <textpath>, <text>, <tref>, <tspan> text content child elements <altglyph>, <textpath>, <tref>, <tspan> uncategorized elements <clippath>, <color-profile>, <cursor>, <
filter>, <foreignobject>, <hatchpath>, <meshpatch>, <meshrow>, <script>, <style>, <view> obsolete and deprecated elements warning: these are old svg elements which are deprecated and should not be used.
cfx - Archive of obsolete content
you can also control which tests are run: you can test dependent packages,
filter the tests by name and run tests multiple times.
... -f filename[:testname], --
filter=filename[:testname] only run tests whose filenames match filename and optionally match testname, both regexps (test, testall, testex, testpkgs) for example: if you specify --
filter data, then cfx will only run tests in those modules whose name contain the string "data".
jpm - Archive of obsolete content
-f --
filter file[:test] only run tests whose filenames match file and optionally match test, both regexps.
... jpm test --
filter base64:btoa the above command only runs tests in files whose names contain "base64", and in those files only runs tests whose names contain "btoa".
Developing for Firefox Mobile - Archive of obsolete content
the command adb logcat prints adb's log, so you can
filter the debug output after running the add-on.
... for example, on mac os x or linux you can use a command like the one below to
filter only the lines of console output: adb logcat | grep console you can experiment with different
filter strings on adb logcat to focus in on the lines relevant to you.
Appendix A: Add-on Performance - Archive of obsolete content
this is what you should do first to make sure that you
filter out all cases that don't interest you so that your add-on doesn't slow down other requests.
... a very common
filter is the url of the page, since most add-ons are limited to one or a few domains.
How to implement a custom XUL query processor component - Archive of obsolete content
// eventually we should read the <query> to create
filters return this._data; }, generateresults: function(adatasource, aref, aquery) { // preform any query and pass the data to the result set return new templateresultset(this._data); }, addbinding: function(arulenode, avar, aref, aexpr) { // add a variable binding for a particular rule, which we aren't using yet }, translateref: function(adatasource, arefstring) { // ...
...these could be used to support
filtering the datasource.
Multiple Queries - Archive of obsolete content
so the builder only performs this step once and
filters the data for each query.
... <hbox id="photoslist" datasources="template-guide-photos3.rdf" ref="http://www.xulplanet.com/rdf/myphotos" xmlns:dc="http://purl.org/dc/elements/1.1/"> <template dc:title="canal"> <button uri="rdf:*" image="rdf:*" label="view" orient="vertical"/> </template> </hbox> this example shows only a single photo since a condition is used to
filter out the other two photos.
2006-10-20 - Archive of obsolete content
summary: mozilla.dev.apps.firefox - october 13, 2006 - october 20, 2006 announcements content
filtering, manipulation, and control in firefox 3 an open invitation from myk melez to contribute to the brainstorming of new features for firefox 3 and future firefox releases.
... myk will be paying close attention to features dealing with content
filtering, manipulation and control in ff3.
Common Firefox theme issues and solutions - Archive of obsolete content
to accomplish this copy the file chrome://mozapps/skin/extensions/extensions.svg from the default theme into the mozapps/extensions/ folder of your theme and add the following style rule to the css file extensions.css: .addon[active="false"] .icon {
filter: url("chrome://mozapps/skin/extensions/extensions.svg#greyscale"); opacity:0.3; } about:memory about:memory nodes do not collapse the styling of about:memory is a little messed up in that nodes do not collapse as they should when clicked on.
...if you are using the extension console² you can easily
filter out content related messages to see just chrome issues.
Old Proxy API - Archive of obsolete content
for(prop in proxy){...} enumerate: function() -> string array function() { return this.getpropertynames().
filter( function (name) { return this.getpropertydescriptor(name).enumerable } ); } from the proxy user point of view, properties appear in the for..in loop in the same order as they are in the returned array.
... object.keys(proxy) keys: function() -> string array function() { return this.getownpropertynames().
filter( function (name) { return this.getownpropertydescriptor(name).enumerable } ); } invariants even though proxies provide a lot of power to users, some operations are not trapped in order to keep the language consistent: the triple equal (===) operator is not trapped.
Explaining basic 3D theory - Game development
applying textures onto objects during the fragment processing stage of the rendering pipeline allows us to adjust it by wrapping and
filtering it if necessary.
...texture
filtering is applied when the original resolution or the texture image is different from the displayed fragment — it will be minified or magnified accordingly.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
49 cors-safelisted request header cors, fetch a cors-safelisted request header is one of the following http headers: 50 cors-safelisted response header cors, fetch, glossary, http a cors-safelisted response header is an http header which has been safelisted so that it will not be
filtered when responses are processed by cors, since they're considered safe (as the headers listed in access-control-expose-headers).
... 519 firewall ddos, firewall, glossary, security, computer network a firewall is a system that
filters network traffic.
Creating fancy letterheaded paper - Learn web development
add a
filter to the logo to give it a subtle drop shadow.
... now comment out the
filter and implement the drop shadow in a different (slightly more cross-browser compatible) way, which still follows the shape of the round image.
Web fonts - Learn web development
note: under the "find fonts" section in the right-hand column, you can click on the different tags and classifications to
filter the displayed choices.
... use the
filters on the left-hand side to display the kinds of fonts you want to choose and choose a couple of fonts you like.
Fetching data from the server - Learn web development
by default, the site displays all the products, but you can use the form controls in the left hand column to
filter them by category, or search term, or both.
... there is quite a lot of complex code that deals with
filtering the products by category and search terms, manipulating strings so the data displays correctly in the ui, etc.
Useful string methods - Learn web development
such code could be used to
filter strings.
...
filtering greeting messages in the first exercise we'll start you off simple — we have an array of greeting card messages, but we want to sort them to list just the christmas messages.
Server-side web frameworks - Learn web development
in this case we specify that we want to
filter for all records where the team_level field has exactly the text 'u09' (note below how this criteria is passed to the
filter() function as an argument with field name and match type separated by double underscores: team_level__exact).
... #best/views.py from django.shortcuts import render from .models import team def youngest(request): list_teams = team.objects.
filter(team_level__exact="u09") context = {'youngest_teams': list_teams} return render(request, 'best/index.html', context) rendering data web frameworks often provide templating systems.
React resources - Learn web development
notice, too, that the form,
filterbutton, and todo components are indented to the right – this indicates that app is their parent.
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Getting started with Vue - Learn web development
with a basic introduction out of the way, we'll now go further and build up our sample app, a basic todo list application that allows us to store a list of items, check them off when done, and
filter the list by all, complete, and incomplete todos.
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Styling Vue components with CSS - Learn web development
update your app.vue file’s <style> element so it looks like so: <style> /* global styles */ .btn { padding: 0.8rem 1rem 0.7rem; border: 0.2rem solid #4d4d4d; cursor: pointer; text-transform: capitalize; } .btn__danger { color: #fff; background-color: #ca3c3c; border-color: #bd2130; } .btn__
filter { border-color: lightgrey; } .btn__danger:focus { outline-color: #c82333; } .btn__primary { color: #fff; background-color: #000; } .btn-group { display: flex; justify-content: space-between; } .btn-group > * { flex: 1 1 auto; } .btn-group > * + * { margin-left: 0.8rem; } .label-wrapper { margin: 0; flex: 0 0 100%; text-align: center; } [class*="__lg"] { display: inline-blo...
... previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Eclipse CDT
to show a
filterable list of open documents (similar to the way emacs gives you a list of open buffers), use cmd-e/ctrl-e.
...when the object directory is inside the source directory (and not
filtered out by a resource
filter), then eclipse's "allow heuristic resolution of includes" option (enabled by default) will generally allow the included headers to be found when eclipse processes source files, that don't have any build output parser data.
Displaying Places information using views
apply
filter() loads a new empty query with particular search terms and folders.
... void apply
filter( string
filterstring, array folderrestrict ); parameters
filterstring the new query's searchterms property will be set to this string.
Experimental features in Firefox
nightly 70 no developer edition 70 no beta 70 no release 70 no preference name layout.css.aspect-ratio-number.enabled property: backdrop-
filter the backdrop-
filter property applies
filter effects to the area behind an element.
... nightly 70 no developer edition 70 no beta 70 no release 70 no preference name layout.css.backdrop-
filter.enabled grid: masonry layout adds support for a masonry style layout based on grid layout where one axis has a masonry layout while having normal grid layout on the other.
NSS functions
ubjectkeyid mxr 3.12 and later cert_encodeusernotice mxr 3.12 and later cert_extractpublickey mxr 3.2 and later cert_findcertbyname mxr 3.2 and later cert_findcrlentryreasonexten mxr 3.12 and later cert_findcrlnumberexten mxr 3.12 and later cert_findnameconstraintsexten mxr 3.12 and later cert_
filtercertlistbycanames mxr 3.4 and later cert_
filtercertlistbyusage mxr 3.4 and later cert_
filtercertlistforusercerts mxr 3.6 and later cert_findcertbydercert mxr 3.2 and later cert_findcertbyissuerandsn mxr 3.2 and later cert_findcertbynickname mxr 3.2 and later cert_findcertbynicknameoremailaddr mxr 3.2 an...
...port_zfree mxr 3.2 and later rsa_formatblock mxr 3.2 and later sec_asn1decode mxr 3.4 and later sec_asn1decodeinteger mxr 3.2 and later sec_asn1decodeitem mxr 3.2 and later sec_asn1decoderabort mxr 3.9 and later sec_asn1decoderclear
filterproc mxr 3.2 and later sec_asn1decoderclearnotifyproc mxr 3.2 and later sec_asn1decoderfinish mxr 3.2 and later sec_asn1decoderset
filterproc mxr 3.2 and later sec_asn1decodersetnotifyproc mxr 3.2 and later sec_asn1decoderstart mxr 3.2 and later ...
64-bit Compatibility
if you make a mistake, there's an extremely good chance the sanity
filter in nanojit will catch it while generating code.
...for example, this code tries to load an index from an integer array, but it is not portable: lir->insload(lir_ldp, lir->ins2(lir_piadd, arrayins, lir->ins2i(lir_mul, indexins, sizeof(int)) ), 0); the sanity
filter will assert on a 64-bit platform because lir_piadd (which will be lir_qiadd) needs both operands to be 64-bit.
Animated PNG graphics
when decompressed, the datastream is the complete pixel data of a png image, including the
filter byte at the beginning of each scanline, similar to the uncompressed data of all the 'idat' chunks.
... it utilizes the same bit depth, color type, compression method,
filter method, interlace method, and palette (if any) as the default image.
XPCOM array guide
void processvisibleitems() { // temporary stack-based nscomarray nscomarray<nsifoo> fooitems; getcompletelist(fooitems); // now
filter out non visible objects // doing this backwards pruint32 i = fooitems.count(); while (i > 0) { --i; prbool isvisible; fooitems[i]->getisvisible(&isvisible); if (!isvisible) { fooitems.removeobjectat(i); } } // now deal with the processed list processlist(fooitems); // fooitems will release all its members // when it goes out of scope } access to eleme...
... void processvisibleitems() { // temporary stack-based nstarray nstarray<foostruct> fooitems; getcompletelist(fooitems); // now
filter out non visible objects // doing this backwards pruint32 i = fooitems.length(); while (i > 0) { --i; prbool isvisible; fooitems[i]->getisvisible(&isvisible); if (!isvisible) { fooitems.removeelementat(i); } } // now deal with the processed list processlist(fooitems); // fooitems will call the destructors of all the foostruct objects // when it goes out ...
Components.utils.exportFunction
xray
filtering and waiving xrays provide a
filtered view of the original object.
...if you need un
filtered access to the original, you can waive xrays: // privileged scope: for example, a content script function loguser(user) { // console.log(user.getuser()); // error console.log(user.wrappedjsobject.getuser()); // "bill" } exportfunction(loguser, contentwindow, { defineas: "loguser" }); // less-privileged scope: for example, a page script var user = {getuser: function() {return "bill";}} var test = document.getelementbyid("test"); test.addeventlistener("click", function() { window.loguser(user); }, false); passing functions as arguments if functions are given as arguments, these are also passed as...
Components.utils
unwaivexrays() undoes waivexrays(): reapplies the xray
filtering protection.
... waivexrays() removes the
filtering provided by an xray.
nsIGlobalHistory2
note: docshell will not
filter out uri schemes like chrome:, data:, about: and view-source:.
... embedders should consider
filtering out these schemes and others, for example mailbox:, for the main nsiuri and the referrer.
nsIMsgMessageService
it will also tack aadditionalheader onto the url (e.g., header=
filter).
...e.g., header=
filter return the nsiuri that gets run example for example, the next piece of code shows the selected message code on a dialog: (taken from mozillazine) var content = ""; var messageuri = getfirstselectedmessage(); var msgservice = messenger.messageservicefromuri(messageuri); var msgstream = components.classes["@mozilla.org/network/sync-stream-listener;1"].createinstance(); var consumer...
nsIMsgRuleAction
defined in comm-central/ mailnews/ base/ search/ public/ nsimsg
filter.idl [scriptable, uuid(190a2a18-d245-473a-a402-9f0814598c7f)] interface nsimsgruleaction : nsisupports { attribute nsmsgruleactiontype type; // target priority..
...xception if the action is not label attribute nsmsglabelvalue label; // junkscore throws an exception if the action type is not junkscore attribute long junkscore; attribute autf8string strvalue; // action id if type is custom attribute acstring customid; // custom action associated with customid // (which must be set prior to reading this attribute) readonly attribute nsimsg
filtercustomaction customaction; }; ...
nsIMsgSearchSession
void getnthsearchscope(in long which,out nsmsgsearchscopevalue scopeid, out nsimsgfolder folder); void addscopeterm(in nsmsgsearchscopevalue scope, in nsimsgfolder folder); void adddirectoryscopeterm(in nsmsgsearchscopevalue scope); void clearscopes(); [noscript] boolean scopeusescustomheaders(in nsmsgsearchscopevalue scope, in voidptr selection, in boolean for
filters); boolean isstringattribute(in nsmsgsearchattribvalue attrib); void addallscopes(in nsmsgsearchscopevalue attrib); void search(in nsimsgwindow awindow); void interruptsearch(); void pausesearch(); void resumesearch(); [noscript] nsmsgsearchtype setsearchparam(in nsmsgsearchtype type, in voidptr param); [noscript] void addres...
... [noscript] boolean scopeusescustomheaders(in nsmsgsearchscopevalue scope, in voidptr selection, in boolean for
filters); parameters scope selection could be a folder or server based on scope for
filters isstringattribute() use this to determine if your attribute is a string attribute.
nsINavHistoryQuery
tags nsivariant a list of tags to use for
filtering query results.
...this array may be empty, in which case no
filtering by tags is performed.
nsIParentalControlsService
requesturioverride() requests that a blocked uri be allowed through parental control
filters.
... requesturioverrides() requests that a set of uris be allowed through the parental control
filters.
nsISmsDatabaseService
sender, in domstring abody, in unsigned long long adate); long savesentmessage(in domstring areceiver, in domstring abody, in unsigned long long adate); void getmessage(in long messageid, in long requestid, [optional] in unsigned long long processid); void deletemessage(in long messageid, in long requestid, [optional] in unsigned long long processid); void createmessagelist(in nsidommozsms
filter filter, in boolean reverse, in long requestid, [optional] in unsigned long long processid); void getnextmessageinlist(in long listid, in long requestid, [optional] in unsigned long long processid); void clearmessagelist(in long listid); void markmessageread(in long messageid, in boolean value, in long requestid, [optional] in unsigned long long processid) methods savereceivedmessage() v...
... createmessagelist() void createmessagelist( in nsidommozsms
filter filter, in boolean reverse, in long requestid, [optional] in unsigned long long processid ); parameters
filter a sms
filter to
filter out sms messages from a list.
Xray vision
instead of
filtering out modifications made by content, the xray short-circuits the content completely.
...for example, if content code creates a new date object, it will usually be created as a property of a dom object, and then it will be
filtered out by the dom xray: // content code // redefine date.getfullyear() date.prototype.getfullyear = function() {return 1000}; var date = new date(); // chrome code // contentwindow is an xray, and date is an expando on contentwindow // so date is
filtered out gbrowser.contentwindow.date.getfullyear() // -> typeerror: gbrowser.contentwindow.date is undefined the chrome code will only even see ...
Activity Manager examples
// assuming that gjunkprocessor is the entity initiating the junk processing // activity, and it has cancelfolderop method that cancels the operations on folders process.init("processing folder: " + folder.prettiestname, gjunkprocessor); // folder is being
filtered/processed process.addsubject(folder); process.cancelhandler = new canceljunkprocess(); ...
...let process = new nsactprocess("processing folder: " + folder.prettiestname, gjunkprocessor); process.cancelhandler = new canceljunkprocess(); // folder is being
filtered/processed process.addsubject(folder); process.contexttype = "sender"; // assuming msg is an instance of nsimsghdr process.contextobj = msg.author; ...
Browser Console - Firefox Developer Tools
at the top, a toolbar enables you to
filter the messages that appear.
...you'll see output like this in the browser console: for add-on sdk-based add-ons only, the message is prefixed with the name of the add-on ("log-error"), making it easy to find all messages from this add-on using the "
filter output" search box.
Set event listener breakpoints - Firefox Developer Tools
now the logs will show where in your app jquery was called, rather than where in jquery the event was fired:
filter by event type also added to firefox 71 is a new
filter by event type...
...when you click in this input and type a search term, the list of event listener types will
filter by that term allowing you to find the events you want to break on more easily.
Aggregate view - Firefox Developer Tools
there are three main ways to group the data: type call stack inverted call stack you can switch between them using the dropdown menu labeled "group by:" located at the top of the panel: there's also a box labeled "
filter" at the top-right of the pane.
... you can use this to
filter the contents of the snapshot that are displayed, so you can quickly see, for example, how many objects of a specific class were allocated.
Network monitor toolbar - Firefox Developer Tools
a box enabling you to
filter requests by url and by properties.
... a set of tool icons: pause (or resume) recording network log search the log request blocking an array of buttons to
filter the network request list by type: by the content type of the response xhr requests websocket upgrades and messages (labeled ws) other requests a checkbox that allows you to disable caching.
Network request details - Firefox Developer Tools
headers toolbar using the headers toolbar, you can:
filter the headers in the response headers and request headers sections.
... cookies tab this tab lists full details of any cookies sent with the request or response: as with headers, you can
filter the list of cookies displayed.
Animation inspector example: Web Animations API - Firefox Developer Tools
html content <div class="channel"> <img src="https://udn.realityripple.com/samples/e6/a96484b5c3.png" id="icon"/> <span id="note">firefox developer edition</span> </div> css content .channel { padding: 2em; margin: 0.5em; box-shadow: 1px 1px 5px #808080; margin: 1.5em; } .channel > * { vertical-align: middle; line-height: normal; } #icon { width: 50px; height: 50px;
filter: grayscale(100%); } #note { margin-left: 1em; font: 1.5em "open sans",arial,sans-serif; overflow: hidden; white-space: nowrap; display: inline-block; opacity: 0; width: 0; } javascript content var iconkeyframeset = [ { transform: 'scale(1)',
filter: 'grayscale(100%)'}, {
filter: 'grayscale(100%)', offset: 0.333}, { transform: 'scale(1.5)', offset: 0.666 }, { transform: ...
...'scale(1.5)',
filter: 'grayscale(0%)'} ]; var notekeyframeset = [ { opacity: '0', width: '0'}, { opacity: '1', width: '300px'} ]; var iconkeyframeoptions = { duration: 750, fill: 'forwards', easing: 'ease-in', enddelay: 100 } var notekeyframeoptions = { duration: 500, fill: 'forwards', easing: 'ease-out', delay: 150 } var icon = document.getelementbyid("icon"); var note = document.getelementbyid("note"); var iconanimation = icon.animate(iconkeyframeset, iconkeyframeoptions); var noteanimation = note.animate(notekeyframeset, notekeyframeoptions); iconanimation.pause(); noteanimation.pause(); var firsttime = true; function animatechannel(e) { if (e.button != 0) { return; } if (e.target.id != "icon") { return; } if (firsttime) { iconanimation.play()...
Storage Inspector - Firefox Developer Tools
you can hide and show columns by context-clicking on the table header and selecting the columns you want to see: search there's a search box at the top of the table widget: this
filters the table to show only items which match the search term.
... the shown values can also be
filtered using the search box at the top of the sidebar.
Web Console UI Tour - Firefox Developer Tools
funnel: click this icon to
filter the messages that are displayed in the console.
...
filter categories: you can click a
filter category (such as errors, warnings, css, or xhr) to display just those types of messages.
BaseAudioContext - Web APIs
baseaudiocontext.createbiquad
filter() creates a biquad
filternode, which represents a second order
filter configurable as several different common
filter types: high-pass, low-pass, band-pass, etc baseaudiocontext.createbuffer() creates a new, empty audiobuffer object, which can then be populated by data and played via an audiobuffersourcenode.
... baseaudiocontext.createiir
filter() creates an iir
filternode, which represents a second order
filter configurable as several different common
filter types.
Document Object Model (DOM) - Web APIs
dom interfaces attr cdatasection characterdata childnode comment customevent document documentfragment documenttype domerror domexception domimplementation domstring domtimestamp domstringlist domtokenlist element event eventtarget htmlcollection mutationobserver mutationrecord namednodemap node node
filter nodeiterator nodelist nondocumenttypechildnode parentnode processinginstruction selection range text textdecoder textencoder timeranges treewalker url window worker xmldocument obsolete dom interfaces the document object model has been highly simplified.
... svgfedistantlightelement svgfedropshadowelement svgfefloodelement svgfefuncaelement svgfefuncbelement svgfefuncgelement svgfefuncrelement svgfegaussianblurelement svgfeimageelement svgfemergeelement svgfemergenodeelement svgfemorphologyelement svgfeoffsetelement svgfepointlightelement svgfespecularlightingelement svgfespotlightelement svgfetileelement svgfeturbulenceelement svg
filterelement svg
filterprimitivestandardattributes svgfontelement svgfontfaceelement svgfontfaceformatelement svgfontfacenameelement svgfontfacesrcelement svgfontfaceurielement svgforeignobjectelement svggelement svggeometryelement svgglyphelement svgglyphrefelement svggradientelement svggraphicselement svghatchelement svghatchpathelement svghkernelement svgimagee...
Element.getElementsByClassName() - Web APIs
filtering the results using array methods we can also use methods of array.prototype on any htmlcollection by passing the htmlcollection as the method's this value.
... here we'll find all <div> elements that have a class of test: var testelements = document.getelementsbyclassname('test'); var testdivs = array.prototype.
filter.call(testelements, function(testelement) { return testelement.nodename === 'div'; }); specifications specification status comment domthe definition of 'element.getelementsbyclassname()' in that specification.
HTMLMediaElement.seekToNextFrame() - Web APIs
this non-standard method is part of an experimentation process around support for non-real-time access to media for tasks including
filtering, editing, and so forth.
...possible uses for this method include
filtering and editing of video content.
Drag Operations - Web APIs
function dodrop(event) { const lines = event.datatransfer.getdata("text/uri-list").split("\n"); lines.
filter(line => !line.startswith("#")) .foreach(line => { const link = document.createelement("a"); link.href = line; link.textcontent = line; event.target.appendchild(link); }) event.preventdefault(); } this example inserts a link from the dragged data.
... the following example returns the data associated with the best-supported format: function dodrop(event) { const supportedtypes = ["application/x-moz-file", "text/uri-list", "text/plain"]; const types = event.datatransfer.types.
filter(type => supportedtypes.includes(type)); if (types.length) { const data = event.datatransfer.getdata(types[0]); } event.preventdefault(); } finishing a drag once the drag is complete, a dragend event is fired at the source of the drag (the same element that received the dragstart event).
Ajax navigation example - Web APIs
t("client error #" + vmsg); break; case 5: /* server error 5xx */ alert("server error #" + vmsg); break; default: /* unknown status */ ajaxerror(); } } closereq(); } function
filterurl (surl, sviewmode) { return surl.replace(rsearch, "") + ("?" + surl.replace(rhost, "&").replace(rview, sviewmode ?
... "&" + sviewkey + "=" + sviewmode : "").slice(1)).replace(rendqstmark, ""); } function getpage (spage) { if (bisloading) { return; } oreq = new xmlhttprequest(); bisloading = true; oreq.onload = ajaxload; oreq.onerror = ajaxerror; if (spage) { opageinfo.url =
filterurl(spage, null); } oreq.open("get",
filterurl(opageinfo.url, "json"), true); oreq.send(); oloadingbox.parentnode || document.body.appendchild(oloadingbox); } function requestpage (surl) { if (history.pushstate) { bupdateurl = true; getpage(surl); } else { /* ajax navigation is not supported */ location.assign(surl); } } function processlink () { if (this.cla...
MediaStream Recording API - Web APIs
you can force a dataavailable event to occur, thereby delivering the latest sound to you so you can
filter it, save it, or whatever.
...you can then examine that list and identify the potential input sources, and even
filter the list based on desired criteria.
MutationObserverInit.attributes - Web APIs
you can expand the capabilities of attribute mutation monitoring using other options: attribute
filter lets you specify specific attribute names to monitor instead of monitoring all attributes.
... if you set either attribute
filter or attributeoldvalue to true, attributes is automatically assumed to be true, even if you don't expressly set it as such.
MutationObserverInit - Web APIs
the default value is true if either of attribute
filter or attributeoldvalue is specified, otherwise the default value is false.
... attribute
filter optional an array of specific attribute names to be monitored.
NodeIterator.expandEntityReferences - Web APIs
this takes precedence over the value of the nodeiterator.whattoshow method and the associated
filter.
... syntax expand = nodeiterator.expandentityreferences; example var nodeiterator = document.createnodeiterator( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); expand = nodeiterator.expandentityreferences; specifications specification status comment document object model (dom) level 2 traversal and range specificationthe definition of 'nodeiterator.expandentityreferences' in that specification.
NodeIterator.pointerBeforeReferenceNode - Web APIs
the nodeiterator.pointerbeforereferencenode read-only property returns a boolean flag that indicates whether the node
filter is anchored before (if this value is true) or after (if this value is false) the anchor node indicated by the nodeiterator.referencenode property.
... syntax flag = nodeiterator.pointerbeforereferencenode; example var nodeiterator = document.createnodeiterator( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); flag = nodeiterator.pointerbeforereferencenode; specifications specification status comment domthe definition of 'nodeiterator.pointerbeforereferencenode' in that specification.
Performance Timeline - Web APIs
the extensions provide interfaces to retrieve performance entry metrics based on specific
filter criteria.
... performance extensions the performance timeline api extends the performance interface with three methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified
filter criteria.
PublicKeyCredentialCreationOptions - Web APIs
publickeycredentialcreationoptions.authenticatorselection optional an object whose properties are criteria used to
filter out the potential authenticators for the creation operation.
... }, // requested format of new keypair pubkeycredparams: [{ type: "public-key", alg: cose_alg_ecdsa_w_sha256, }], // timeout after 1 minute timeout: 60000, // do not send the authenticator's origin attestation attestation: "none", extensions: { uvm: true, exts: true }, //
filter out authenticators which are bound to the device authenticatorselection:{ authenticatorattachment: "cross-platform", requireresidentkey: true, userverification: "preferred" }, // exclude already existing credentials for the user excludecredentials: [ { type: "public-key", // the id for john.doe@example...
RTCIceCandidate.usernameFragment - Web APIs
example although the webrtc infrastructure will
filter out obsolete candidates for you after an ice restart, you can do it yourself if you're trying to absolutely minimize the number of messages going back and forth.
...there's not typically a need to manually worry about
filtering the candidates.
Using the Screen Capture API - Web APIs
note: unlike most uses of constraints in media apis, here it's solely used to define the stream configuration, and not to
filter the available choices.
... using the captured stream the promise returned by getdisplaymedia() resolves to a mediastream that contains at least one video stream that contains the screen or screen area, and which is adjusted or
filtered based upon the constraints specifed when getdisplaymedia() was called.
SourceBuffer.appendWindowEnd - Web APIs
the appendwindowend property of the sourcebuffer interface controls the timestamp for the end of the append window, a timestamp range that can be used to
filter what media data is appended to the sourcebuffer.
... coded media frames with timestamps wthin this range will be appended, whereas those outside the range will be
filtered out.
SourceBuffer.appendWindowStart - Web APIs
the appendwindowstart property of the sourcebuffer interface controls the timestamp for the start of the append window, a timestamp range that can be used to
filter what media data is appended to the sourcebuffer.
... coded media frames with timestamps wthin this range will be appended, whereas those outside the range will be
filtered out.
SourceBuffer - Web APIs
this is a timestamp range that can be used to
filter what media data is appended to the sourcebuffer.
... coded media frames with timestamps within this range will be appended, whereas those outside the range will be
filtered out.
TreeWalker.expandEntityReferences - Web APIs
this takes precedence over the value of the treewalker.whattoshow method and the associated
filter.
... syntax expand = treewalker.expandentityreferences; example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); expand = treewalker.expandentityreferences; specifications document object model (dom) level 2 traversal and range specificationthe definition of 'treewalker.expandentityreferences' in that specification.
WebGL2RenderingContext.blitFramebuffer() - Web APIs
syntax void gl.blitframebuffer(srcx0, srcy0, srcx1, srcy1, dstx0, dsty0, dstx1, dsty1, mask,
filter); parameters srcx0, srcy0, srcx1, srcy1 a glint specifying the bounds of the source rectangle.
...possible values: gl.color_buffer_bit gl.depth_buffer_bit gl.stencil_buffer_bit
filter a glenum specifying the interpolation to be applied if the image is stretched.
WebGL2RenderingContext.getSamplerParameter() - Web APIs
gl.texture_mag_
filter: returns a glenum indicating the texture magnification
filter.
... gl.texture_min_
filter: returns a glenum indicating the texture minification
filter gl.texture_min_lod: returns a glfloat indicating the minimum level-of-detail value.
WebGLRenderingContext.hint() - Web APIs
possible values: gl.generate_mipmap_hint: quality of
filtering when generating mipmap images with webglrenderingcontext.generatemipmap().
... examples the following example hints that the quality of
filtering when generating mipmap images should be most efficient instead of best quality.
Animating textures in WebGL - Web APIs
instead, all it does is create an empty texture object, put a single pixel in it, and set its
filtering for later use: function inittexture(gl) { const texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); // because video has to be download over the internet // they might take a moment until it's ready so // put a single pixel in the texture so we can // use it immediately.
... gl.texparameteri(gl.texture_2d, gl.texture_wrap_s, gl.clamp_to_edge); gl.texparameteri(gl.texture_2d, gl.texture_wrap_t, gl.clamp_to_edge); gl.texparameteri(gl.texture_2d, gl.texture_min_
filter, gl.linear); return texture; } here's what the updatetexture() function looks like; this is where the real work is done: function updatetexture(gl, texture, video) { const level = 0; const internalformat = gl.rgba; const srcformat = gl.rgba; const srctype = gl.unsigned_byte; gl.bindtexture(gl.texture_2d, texture); gl.teximage2d(gl.texture_2d, level, internalformat, ...
Lighting a WebXR setting - Web APIs
temporal and spatial
filtering consider an attack that uses a building's automated lighting system to flash the lights on and off quickly in a known pattern.
... the lighting estimation api specification mandates that all user agents perform temporal and spatial
filtering to fuzz the data in a manner that reduces its usefulness for the purpose of locating the user or performing side-channel attacks.
Accessibility: What users can do to browse more safely - Accessibility
in the screenshot below, you can see an example of windows 10 accessibility settings allowing for color
filters to be selected.
... grayscale is enabled when the color
filters button is toggled "on" see also accessibilty accessibility learning path web accessibility for seizures and physical reactions color blindness discussion: "what is the “grayscale” setting for in accessibility options?" contributors many, many thanks to eric eggert from knowbility; for his discussions and huge help on this topic.
Animatable CSS properties - CSS: Cascading Style Sheets
the animatable properties are: -moz-outline-radius -moz-outline-radius-bottomleft -moz-outline-radius-bottomright -moz-outline-radius-topleft -moz-outline-radius-topright -webkit-line-clamp -webkit-text-fill-color -webkit-text-stroke -webkit-text-stroke-color all backdrop-
filter background background-color background-position background-size block-size border border-block-end border-block-end-color border-block-end-width border-block-start border-block-start-color border-block-start-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom...
...er-start-end-radius border-start-start-radius border-top border-top-color border-top-left-radius border-top-right-radius border-top-width border-width bottom box-shadow caret-color clip clip-path color column-count column-gap column-rule column-rule-color column-rule-width column-width columns
filter flex flex-basis flex-grow flex-shrink font font-size font-size-adjust font-stretch font-variation-settings font-weight gap grid-column-gap grid-gap grid-row-gap grid-template-columns grid-template-rows height inline-size inset inset-block inset-block-end inset-block-start inset-inlin...
CSS reference - CSS: Cascading Style Sheets
--webkit-line-clampa:activeadditive-symbols (@counter-style)::after (:after)align-contentalign-itemsalign-selfall<an-plus-b><angle><angle-percentage>animationanimation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-stateanimation-timing-function@annotationannotation()attr()b::backdropbackdrop-
filterbackface-visibilitybackgroundbackground-attachmentbackground-blend-modebackground-clipbackground-colorbackground-imagebackground-originbackground-positionbackground-repeatbackground-size<basic-shape>::before (:before)bleed (@page)<blend-mode>block-sizeblur()borderborder-blockborder-block-colorborder-block-endborder-block-end-colorborder-block-end-styleborder-block-end-widthborder-block-startborder...
...contrast()<counter>counter-incrementcounter-resetcounter-set@counter-stylecounters()cross-fade()cubic-bezier()::cue::cue-regioncursor<custom-ident>d:defaultdeg<dimension>:dirdirection:disableddisplay<display-box><display-inside><display-internal><display-legacy><display-listitem><display-outside>dpcmdpidppxdrop-shadow()eelement()ellipse()em:emptyempty-cells:enabledenv()exffallback (@counter-style)
filter<
filter-function>:first:first-child::first-letter (:first-letter)::first-line (:first-line):first-of-typefit-content()<flex>flexflex-basisflex-directionflex-flowflex-growflex-shrinkflex-wrapfloat:focusfont@font-facefont-familyfont-family (@font-face)font-feature-settingsfont-feature-settings (@font-face)@font-feature-valuesfont-kerningfont-language-overridefont-optical-sizingfont-sizefont-size-adj...
blur() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples setting a blur with pixels and with rem blur(0) /* no effect */ blur(8px) /* blur with 8px radius */ blur(1.17rem) /* blur with 1.17rem radius */ specifications specification status
filter effects module level 1the definition of 'blur()' in that specification.
brightness() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples setting brightness using numbers and percentages brightness(0%) /* completely black */ brightness(0.4) /* 40% brightness */ brightness(1) /* no effect */ brightness(200%) /* double brightness */ specifications specification status
filter effects module level 1the definition of 'brightness()' in that specification.
contrast() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples setting contrast using numbers and percentages contrast(0) /* completely gray */ contrast(65%) /* 65% contrast */ contrast(1) /* no effect */ contrast(200%) /* double contrast */ specifications specification status
filter effects module level 1the definition of 'contrast()' in that specification.
grayscale() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples grayscale(0) /* no effect */ grayscale(.7) /* 70% grayscale */ grayscale(100%) /* completely grayscale */ specifications specification status
filter effects module level 1the definition of 'grayscale()' in that specification.
hue-rotate() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples hue-rotate(-90deg) /* same as 270deg rotation */ hue-rotate(0deg) /* no effect */ hue-rotate(90deg) /* 90deg rotation */ hue-rotate(.5turn) /* 180deg rotation */ hue-rotate(405deg) /* same as 45deg rotation */ specifications specification status
filter effects module level 1the definition of 'hue-rotate()' in that specification.
invert() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples invert(0) /* no effect */ invert(.6) /* 60% inversion */ invert(100%) /* completely inverted */ specifications specification status
filter effects module level 1the definition of 'invert()' in that specification.
saturate() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples saturate(0) /* completely unsaturated */ saturate(.4) /* 40% saturated */ saturate(100%) /* no effect */ saturate(200%) /* double saturation */ specifications specification status
filter effects module level 1the definition of 'saturate()' in that specification.
sepia() - CSS: Cascading Style Sheets
its result is a <
filter-function>.
... examples sepia(0) /* no effect */ sepia(.65) /* 65% sepia */ sepia(100%) /* completely sepia */ specifications specification status
filter effects module level 1the definition of 'sepia()' in that specification.
<input type="url"> - HTML: Hypertext Markup Language
but there's also the option to add additional
filtering to ensure that your own specialized needs are met, if you have any.
...and because the browser runs both the standard url
filter and our custom pattern against the specified text, we wind up with a validation which says "make sure this is a valid url, and also in a myco domain." this isn't perfect, but it is good enough for this simple demo's requirements.
Indexed collections - JavaScript
let a1 = ['a', 'b', 'c'] let a2 = a1.map(function(item) { return item.touppercase() }) console.log(a2) // logs ['a', 'b', 'c']
filter(callback[, thisobject]) returns a new array containing the items for which callback returned true.
... let a1 = ['a', 10, 'b', 20, 'c', 30] let a2 = a1.
filter(function(item) { return typeof item === 'number'; }) console.log(a2) // logs [10, 20, 30] every(callback[, thisobject]) returns true if callback returns true for every item in the array.
Arrow function expressions - JavaScript
a : b; // easy array
filtering, mapping, ...
... var arr = [5, 6, 13, 0, 1, 18, 23]; var sum = arr.reduce((a, b) => a + b); // 66 var even = arr.
filter(v => v % 2 == 0); // [6, 0, 18] var double = arr.map(v => v * 2); // [10, 12, 26, 0, 2, 36, 46] // more concise promise chains promise.then(a => { // ...
Array.prototype.reduce() - JavaScript
let myarray = ['a', 'b', 'a', 'b', 'c', 'e', 'e', 'c', 'd', 'd', 'd', 'd'] let myorderedarray = myarray.reduce(function (accumulator, currentvalue) { if (accumulator.indexof(currentvalue) === -1) { accumulator.push(currentvalue) } return accumulator }, []) console.log(myorderedarray) replace .
filter().map() with .reduce() using array.
filter() then array.map() traverses the array twice, but you can achieve the same effect while traversing only once with array.reduce(), thereby being more efficient.
... (if you like for loops, you can
filter and map while traversing once with array.foreach()).
Array.prototype.map() - JavaScript
mapped array contains undefined when undefined or nothing is returned: let numbers = [1, 2, 3, 4] let
filterednumbers = numbers.map(function(num, index) { if (index < 3) { return num } }) // index goes from 0, so the
filternumbers are 1,2,3 and undefined.
... //
filterednumbers is [1, 2, 3, undefined] // numbers is still [1, 2, 3, 4] specifications specification ecmascript (ecma-262)the definition of 'array.prototype.map' in that specification.
BigInt64Array - JavaScript
bigint64array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
BigUint64Array - JavaScript
biguint64array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Float32Array - JavaScript
float32array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Float64Array - JavaScript
float64array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Int16Array - JavaScript
int16array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Int32Array - JavaScript
int32array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Int8Array - JavaScript
int8array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
JSON.stringify() - JavaScript
replacer optional a function that alters the behavior of the stringification process, or an array of string and number that serve as an allowlist for selecting/
filtering the properties of the value object to be included in the json string.
... example replacer, as a function function replacer(key, value) { //
filtering out properties if (typeof value === 'string') { return undefined; } return value; } var foo = {foundation: 'mozilla', model: 'box', week: 45, transport: 'car', month: 7}; json.stringify(foo, replacer); // '{"week":45,"month":7}' example replacer, as an array if replacer is an array, the array's values indicate the names of the properties in the object that should be included in t...
TypedArray - JavaScript
typedarray.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Uint16Array - JavaScript
uint16array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Uint32Array - JavaScript
uint32array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Uint8Array - JavaScript
uint8array.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
Uint8ClampedArray - JavaScript
uint8clampedarray.prototype.
filter() creates a new array with all of the elements of this array for which the provided
filtering function returns true.
... see also array.prototype.
filter().
parseInt() - JavaScript
regular expressions can help: function
filterint(value) { if (/^[-+]?(\d+|infinity)$/.test(value)) { return number(value) } else { return nan } } console.log(
filterint('421')) // 421 console.log(
filterint('-421')) // -421 console.log(
filterint('+421')) // 421 console.log(
filterint('infinity')) // infinity console.log(
filterint('421e+0')) // nan console.log(
filter...
...int('421hop')) // nan console.log(
filterint('hop1.61803398875')) // nan console.log(
filterint('1.61803398875')) // nan examples using parseint the following examples all return 15: parseint('0xf', 16) parseint('f', 16) parseint('17', 8) parseint(021, 8) parseint('015', 10) // but `parseint(015, 10)` will return 13 parseint(15.99, 10) parseint('15,123', 10) parseint('fxx123', 16) parseint('1111', 2) parseint('15 * 3', 10) parseint('15e2', 10) parseint('15px', 10) parseint('12', 13) the following examples all return nan: parseint('hello', 8) // not a number at all parseint('546', 2) // digits other than 0 or 1 are invalid for binary radix the following examples all return -15: parseint('-f', 16) parseint('-0f', 16) parseint('-0xf', 16) parseint(-15.1, 10) parse...
Authoring MathML - MathML
however, the stream
filter behavior is not implemented yet.
...it's a small stream
filter written in c/c++ and generated with flex and bison ; in particular it is very fast.
Web media technologies
mediastream recording api the mediastream recording api lets you capture media streams to process or
filter the data or record it to disk.
... web audio api the web audio api lets you generate,
filter, and manipulate sound data both in real-time and on pre-recorded material, then send that audio to a destination such as an <audio> element, a media stream, or to disk.
azimuth - SVG: Scalable Vector Graphics
only one element is using this attribute: <fedistantlight> html, body, svg { height: 100%; } <svg viewbox="0 0 440 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="distantlight1"> <fediffuselighting> <fedistantlight azimuth="0" /> </fediffuselighting> </
filter> <
filter id="distantlight2"> <fediffuselighting> <fedistantlight azimuth="240" /> </fediffuselighting> </
filter> <circle cx="100" cy="100" r="80" style="
filter: url(#distantlight1);" /> <circle cx="100" cy="100" r="80" style="
filter: url(#distantlight2); transform: translatex(240px);" /> </svg> usage notes value <number> default valu...
...e 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'azimuth' in that specification.
diffuseConstant - SVG: Scalable Vector Graphics
only one element is using this attribute: <fediffuselighting> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="diffuselighting1" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" diffuseconstant="1"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </
filter> <
filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" diffuseconstant="2"> <fepointlight x="60" y="60" z="20" /> </fediffus...
...elighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 1 animatable yes specifications specification status comment
filter effects module level 1the definition of 'diffuseconstant' in that specification.
edgeMode - SVG: Scalable Vector Graphics
specifications specification status comment
filter effects module level 1the definition of 'edgemode for <fegaussianblur>' in that specification.
... working draft initial definition for <fegaussianblur>
filter effects module level 1the definition of 'edgemode for <feconvolvematrix>' in that specification.
elevation - SVG: Scalable Vector Graphics
only one element is using this attribute: <fedistantlight> html, body, svg { height: 100%; } <svg viewbox="0 0 440 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="distantlight1"> <fediffuselighting> <fedistantlight elevation="0" /> </fediffuselighting> </
filter> <
filter id="distantlight2"> <fediffuselighting> <fedistantlight elevation="45" /> </fediffuselighting> </
filter> <circle cx="100" cy="100" r="80" style="
filter: url(#distantlight1);" /> <circle cx="100" cy="100" r="80" style="
filter: url(#distantlight2); transform: translatex(240px);" /> </...
...svg> usage notes value <number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'elevation' in that specification.
exponent - SVG: Scalable Vector Graphics
cr> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <lineargradient id="gradient" gradientunits="userspaceonuse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </lineargradient> </defs> <
filter id="componenttransfer1" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="gamma" exponent="1"/> <fefuncg type="gamma" exponent="1"/> <fefuncb type="gamma" exponent="1"/> </fecomponenttransfer> </
filter> <
filter id="componenttransfer2" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="gamma" exponent="5"/...
...> <fefuncg type="gamma" exponent="5"/> <fefuncb type="gamma" exponent="5"/> </fecomponenttransfer> </
filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="
filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="
filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 1 animatable yes <number> if the type attribute of the component element is set to gamma, this value specifies the exponent of the gamma function specifications specification status comment
filter effects module level 1the definition of 'exponent' in that specification.
intercept - SVG: Scalable Vector Graphics
cr> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <lineargradient id="gradient" gradientunits="userspaceonuse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </lineargradient> </defs> <
filter id="componenttransfer1" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="linear" intercept="0"/> <fefuncg type="linear" intercept="0"/> <fefuncb type="linear" intercept="0"/> </fecomponenttransfer> </
filter> <
filter id="componenttransfer2" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="linear" interc...
...ept="0.3"/> <fefuncg type="linear" intercept="0.1"/> <fefuncb type="linear" intercept="0.8"/> </fecomponenttransfer> </
filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="
filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="
filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'intercept' in that specification.
limitingConeAngle - SVG: Scalable Vector Graphics
only one element is using this attribute: <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="spotlight1" x="0" y="0" width="100%" height="100%"> <fediffuselighting diffuseconstant="2"> <fespotlight x="10" y="10" z="50" pointsatx="100" pointsaty="100" limitingconeangle="10" /> </fediffuselighting> </
filter> <
filter id="spotlight2" x="0" y="0" width="100%" height="100%"> <fediffuselighting diffuseconstant="2"> <fespotlight x="10" y="10" z="50" pointsatx="100...
..." pointsaty="100" limitingconeangle="40" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#spotlight1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#spotlight2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment
filter effects module level 1the definition of 'limitingconeangle' in that specification.
numOctaves - SVG: Scalable Vector Graphics
only one element is using this attribute: <feturbulence> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" numoctaves="1" /> </
filter> <
filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" numoctaves="3" /> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#n...
... example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <
filter id="displacement
filter"> <feturbulence basefrequency="0.05" numoctaves="3" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </
filter> <circle cx="100" cy="100" r="100" style="
filter: url(#displacement
filter)"/> </svg> specifications specification status comment
filter effects module level 1the definition of 'n...
order - SVG: Scalable Vector Graphics
only one element is using this attribute: <feconvolvematrix> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="emboss1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="0" /> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -4" order="3"/> </
filter> <
filter id="emboss2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="0" /> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -4" order="1 1 1"/> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter:url(#emboss1);" /> <rect x="0" y="0" width="200" height="200" style="
filter:url(#embos...
... specifications specification status comment
filter effects module level 1the definition of 'order' in that specification.
specularConstant - SVG: Scalable Vector Graphics
only one element is using this attribute: <fespecularlighting> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <
filter id="specularlighting1" x="0" y="0" width="100%" height="100%"> <fespecularlighting in="sourcegraphic" specularconstant="1.2"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </
filter> <
filter id="specularlighting2" x="0" y="0" width="100%" height="100%"> <fespecularlighting in="sourcegraphic" specularconstant="0.8"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </filte...
...r> <rect x="0" y="0" width="200" height="200" style="
filter: url(#specularlighting1);" /> <rect x="0" y="0" width="200" height="200" style="
filter: url(#specularlighting2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 1 animatable yes specifications specification status comment
filter effects module level 1the definition of 'specularconstant' in that specification.
<a> - SVG: Scalable Vector Graphics
id, lang, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes most notably: xlink:title aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan,...
...count, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, 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
rl('#mygradient')" /> </svg> attributes global attributes core attributes most notably: id lang styling attributes class, style event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstru...
...ctural 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.
<feDistantLight> - SVG: Scalable Vector Graphics
the <fedistantlight>
filter primitive defines a distant light source that can be used within a lighting
filter primitive: <fediffuselighting> or <fespecularlighting>.
... specifications specification status comment
filter effects module level 1the definition of '<fedistantlight>' in that specification.
<feFuncA> - SVG: Scalable Vector Graphics
the <fefunca> svg
filter primitive defines the transfer function for the alpha component of the input graphic of its parent <fecomponenttransfer> element.
... specifications specification status comment
filter effects module level 1the definition of '<fefunca>' in that specification.
<feFuncB> - SVG: Scalable Vector Graphics
the <fefuncb> svg
filter primitive defines the transfer function for the blue component of the input graphic of its parent <fecomponenttransfer> element.
... specifications specification status comment
filter effects module level 1the definition of '<fefuncb>' in that specification.
<feFuncG> - SVG: Scalable Vector Graphics
the <fefuncg> svg
filter primitive defines the transfer function for the green component of the input graphic of its parent <fecomponenttransfer> element.
... specifications specification status comment
filter effects module level 1the definition of '<fefuncg>' in that specification.
<feFuncR> - SVG: Scalable Vector Graphics
the <fefuncr> svg
filter primitive defines the transfer function for the red component of the input graphic of its parent <fecomponenttransfer> element.
... specifications specification status comment
filter effects module level 1the definition of '<fefuncr>' in that specification.
<feImage> - SVG: Scalable Vector Graphics
the <feimage> svg
filter primitive fetches image data from an external source and provides the pixel data as output (meaning if the external source is an svg image, it is rasterized.) usage context categories
filter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <animatetransform>, <set> attributes global attributes core attributes presentation attributes
filter primitive attributes xlink attributes class style externalresourcesrequired specific attributes preserveaspectratio xlink:href dom interface this element implements the svgfeimageelement interface.
... example svg <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
filter id="image"> <feimage xlink:href="/files/6457/mdn_logo_only_color.png"/> </
filter> </defs> <rect x="10%" y="10%" width="80%" height="80%" style="
filter:url(#image);"/> </svg> result specifications specification status comment
filter effects module level 1the definition of '<feimage>' in that specification.
<g> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
..., aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-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
: <list-of-numbers> ; default value: none; animatable: yes global attributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
...count, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, 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
value type: <length> ; default value: 120%; animatable: yes global attributes core attributes most notably: id styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, 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.
<pattern> - SVG: Scalable Vector Graphics
<length>|<percentage> ; default value: 0; animatable: yes global attributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes most notably: xlink:title usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive e...
...lementsshape 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 '<pattern>' in that specification.
<svg> - SVG: Scalable Vector Graphics
g attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes, document event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
..., aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-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
percentage> ; default value: 0; animatable: yes global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
..., aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-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.
<text> - SVG: Scalable Vector Graphics
it's possible to apply a gradient, pattern, clipping path, mask, or
filter to <text>, like any other svg graphics element.
...font-size-adjust, font-stretch, font-style, font-variant, font-weight conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, dominant-baseline, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, ar...
Introduction - SVG: Scalable Vector Graphics
the image and its components can also be transformed, composited together, or
filtered to change their appearance completely.
...svg supports gradients, rotations,
filter effects, animations, interactivity with javascript, and so on.
SVG Tutorial - SVG: Scalable Vector Graphics
introducing svg from scratch introduction getting started positions basic shapes paths fills and strokes gradients patterns texts basic transformations clipping and masking other content in svg
filter effects svg fonts svg image tag tools for svg svg and css the following topics are more advanced and hence should get their own tutorials.
... scripting svg with javascript tbd svg
filters tutorial tbd animations with smil in svg tbd creating fonts in svg tbd ...
Getting started (cfx) - Archive of obsolete content
another example using grunt and grunt-shell: module.exports = function(grunt) { 'use strict'; require('matchdep').
filterdev('grunt-!(cli)').foreach(grunt.loadnpmtasks); grunt.initconfig({ shell: { xpi: { command: [ 'cd pluginpath', 'cfx xpi', 'wget --post-file=pluginname.xpi http://localhost:8888/ || echo>/dev/null' ].join('&&') } }, watch: { xpi: { files: ['pluginpath/**'], tasks: ['shell:xpi'] } } }); grun...
Tutorials - Archive of obsolete content
modify web pages modify web pages based on url create
filters for web pages based on their url: whenever a web page whose url matches the
filter is loaded, execute a specified script in it.
Getting started with Ember - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Ember interactivity: Events, classes and state - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Ember resources and troubleshooting - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Introduction to client-side frameworks - Learn web development
overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Framework main features - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Getting started with React - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Deployment and next steps - Learn web development
previous overview: client-side javascript frameworks in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Getting started with Svelte - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Vue conditional rendering: editing existing todos - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Creating our first Vue component - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Adding a new todo form: Vue events, methods, and models - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Focus management with Vue refs - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Rendering a list of Vue components - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Vue resources - Learn web development
previous overview: client-side javascript frameworks next in this module introduction to client-side frameworks framework main features react getting started with react beginning our react todo list componentizing our react app react interactivity: events and state react interactivity: editing,
filtering, conditional rendering accessibility in react react resources ember getting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first...
Mozilla's Section 508 Compliance
all input technologies that go through the keyboard driver work with mozilla -- including sticky keys,
filter keys, on screen keyboards, etc.
Utility functions
port_zfree mxr 3.2 and later rsa_formatblock mxr 3.2 and later sec_asn1decode mxr 3.4 and later sec_asn1decodeinteger mxr 3.2 and later sec_asn1decodeitem mxr 3.2 and later sec_asn1decoderabort mxr 3.9 and later sec_asn1decoderclear
filterproc mxr 3.2 and later sec_asn1decoderclearnotifyproc mxr 3.2 and later sec_asn1decoderfinish mxr 3.2 and later sec_asn1decoderset
filterproc mxr 3.2 and later sec_asn1decodersetnotifyproc mxr 3.2 and later sec_asn1decoderstart mxr 3.2 and later ...
Scripting Java
if we just view the method object by itself we can see the various overloaded forms of the method: js> f.listfiles function listfiles() {/* java.io.file[] listfiles() java.io.file[] listfiles(java.io.filename
filter) java.io.file[] listfiles(java.io.file
filter) */} this output shows that the file class defines three overloaded methods listfiles: one that takes no arguments, another with a filename
filter argument, and a third with a file
filter argument.
Self-hosted builtins in SpiderMonkey
debugging self-hosted code self-hosted code by default is hidden from client javascript code; in particular, self-hosted frames will be
filtered out of the stack traces of exceptions.
SpiderMonkey 1.8.5
gnu-make based build system, the following workaround can be integrated into your build system to generate the correct ldflags, with a strong likelihood that it will work with future versions when js-config is fixed: js_config ?= /path/to/js-config uname_system = $(shell uname -s) jsapi_ldflags = $(shell $(js_config) --libs) ifeq ($(uname_system),darwin) jsapi_ldflags := $(
filter -l%,$(jsapi_ldflags)) $(
filter -l%,$(jsapi_ldflags))\ $(
filter -%_namespace,$(jsapi_ldflags))\ $(
filter -wl%,$(jsapi_ldflags)) jsapi_ldflags := $(
filter-out $(mozjs_install_name_opt),$(jsapi_ldflags)) endif jsapi_ldflags := $(
filter-out %libffi.a,$(jsapi_ldflags)) ldflags += $(jsapi_ldflags) future direction the spidermonkey 1.8.5 source release includes an ex...
SpiderMonkey 1.8.7
gnu-make based build system, the following workaround can be integrated into your build system to generate the correct ldflags, with a strong likelihood that it will work with future versions when js-config is fixed: js_config ?= /path/to/js-config uname_system = $(shell uname -s) jsapi_ldflags = $(shell $(js_config) --libs) ifeq ($(uname_system),darwin) jsapi_ldflags := $(
filter -l%,$(jsapi_ldflags)) $(
filter -l%,$(jsapi_ldflags))\ $(
filter -%_namespace,$(jsapi_ldflags))\ $(
filter -wl%,$(jsapi_ldflags)) jsapi_ldflags := $(
filter-out $(mozjs_install_name_opt),$(jsapi_ldflags)) endif jsapi_ldflags := $(
filter-out %libffi.a,$(jsapi_ldflags)) ldflags += $(jsapi_ldflags) future direction the spidermonkey 1.8.5 source release includes an ex...
Running Automated JavaScript Tests
running 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) ...
Querying Places
the current behavior does the normal query and then selects keywords from the first query and
filters all the results.
Components.utils.importGlobalProperties
the following strings are supported: string/object xpcom component atob blob btoa crypto css fetch file nsidomfile indexeddb node
filter firefox 60 nsidomnode
filter obsolete since gecko 60 rtcidentityprovider textdecoder textencoder url urlsearchparams xmlhttprequest nsixmlhttprequest obsolete since gecko 60 for string/object in table without a minimum firefox version, it is not exactly known since when it was available, however it is gu...
Components.utils.isXrayWrapper
when privileged javascript in gecko accesses objects belonging to less-privileged code (such as untrusted web content), it does so, by default, with "xray vision": a mechanism that
filters out certain changes to the objects that could cause them to behave in unexpected ways.
Components.utils.waiveXrays
when privileged javascript in gecko accesses objects belonging to less-privileged code (such as untrusted web content), it does so, by default, with "xray vision": a mechanism that
filters out certain changes to the objects that could cause them to behave in unexpected ways.
Language bindings
pcomutils.jsm to avoid copy/pasting long xpcom component registration boilerplate in your component files.components.utils.importglobalpropertiesimports various objects into a system scope.components.utils.isxraywrapperwhen privileged javascript in gecko accesses objects belonging to less-privileged code (such as untrusted web content), it does so, by default, with "xray vision": a mechanism that
filters out certain changes to the objects that could cause them to behave in unexpected ways.
nsIJumpListBuilder
nsijumplistbuilder does not
filter entries added that have been removed since the last commit.
nsIMemoryMultiReporter
this is important; multi-reporters can special-case this operation so it's much faster than gathering all the reports,
filtering out the unneeded ones, and adding up the rest.
nsIMimeConverter
notaphishmessage indicates whether phisihing
filters have been run on a message yet.
nsIMsgDBHdr
notaphishmessage indicates whether phisihing
filters have been run on a message yet.
nsIMsgSearchTerm
possible values: * plugin
filter imapflag user whitelist * @return true if matches */ boolean matchjunkscoreorigin(in string ajunkscoreorigin); matchbody /** * test if the body of the passed in message matches "this" search term.
nsIMsgSearchValue
value priority; attribute prtime date; // see nsmsgmessageflags.idl and nsmsgfolderflags.idl attribute unsigned long status; attribute unsigned long size; attribute nsmsgkey msgkey; attribute long age; // in days attribute nsimsgfolder folder; attribute nsmsglabelvalue label; attribute nsmsgjunkstatus junkstatus; /* * junkpercent is set by the message
filter plugin, and is approximately * proportional to the probability that a message is junk.
nsINavHistoryQueryOptions
it only affects cases where the actual folder result node would appear in its parent folder and
filters it out.
nsIObserver
if you expect multiple topics/subjects, the implementor is responsible for
filtering.
nsIProxyInfo
see also nsiprotocolproxyservice nsiprotocolproxy
filter ...
nsIThread
see also the thread manager nsithreadmanager nsithreadpool nsithreadinternal nsithreadobserver nsithreadevent
filter ...
nsIThreadManager
see also the thread manager nsithread nsithreadpool nsithreadinternal nsithreadobserver nsithreadevent
filter prthread ...
nsIThreadObserver
ivequeue.signal(); } onprocessnextevent(thread, maywait, recursiondepth) { if (nativequeue.hasnextevent()) { nativequeue.processnextevent(); } while (maywait && !thread.haspendingevent()) { nativequeue.wait(); nativequeue.processnextevent(); } } }; see also the thread manager nsithreadmanager nsithread nsithreadpool nsithreadinternal nsithreadevent
filter ...
nsIThreadPool
see also the thread manager nsithreadmanager nsithread nsithreadinternal nsithreadobserver nsithreadevent
filter nsithreadpoollistener ...
nsITreeBoxObject
void clearstyleandimagecaches(); other references tree widget changes (applies to gecko 1.8.0 and later) xul tutorial:tree box sorting and
filtering a custom tree view xul tutorial:tree view details nsitreeview ...
nsITreeView
see also tree widget changes (applies to gecko 1.8 and later) xul tutorial:tree view details sorting and
filtering a custom tree view when working with tree views, the tree box object may also be useful xul tutorial:tree box objects ...
nsIWebProgressListener
charset: auri.charset, flag: aflag, }); }, // for definitions of the remaining functions see related documentation onprogresschange: function(awebprogress, arequest, curself, maxself, curtot, maxtot) {}, onstatuschange: function(awebprogress, arequest, astatus, amessage) {}, onsecuritychange: function(awebprogress, arequest, astate) {} } let
filter = cc["@mozilla.org/appshell/component/browser-status-
filter;1"] .createinstance(ci.nsiwebprogress);
filter.addprogresslistener(mylistener, ci.nsiwebprogress.notify_all); let webprogress = docshell.queryinterface(ci.nsiinterfacerequestor) .getinterface(ci.nsiwebprogress); webprogress.addprogresslistener(
filter, ci.nsiwebprogress.notify_all); xulbrowserw...
nsIZipReader
this may be used to perform
filtering upon the results of one pattern to remove all matches which also match another pattern.
nsIZipWriter
x02, pr_rdwr: 0x04, pr_create_file: 0x08, pr_append: 0x10, pr_truncate: 0x20, pr_sync: 0x40, pr_excl: 0x80}; //https://developer.mozilla.org/docs/pr_open#parameters var fu = cu.import('resource://gre/modules/fileutils.jsm').fileutils; var fp = cc['@mozilla.org/filepicker;1'].createinstance(ci.nsifilepicker); fp.init(window, 'select directory to compile', ci.nsifilepicker.modegetfolder); fp.append
filters(ci.nsifilepicker.
filterall | ci.nsifilepicker.
filtertext); var rv = fp.show(); if (rv == ci.nsifilepicker.returnok) { var dir = fp.file; //dir must exist, as the user selected it.
nsMsgRuleActionType
defined in comm-central/ mailnews/ base/ search/ public/ nsmsg
filtercore.idl typedef long nsmsgruleactiontype; [scriptable, uuid(59af7696-1e28-4642-a400-fa327ae0b8d8)] interface nsmsg
filteraction { /* if you change these, you need to update
filter.properties, look for
filteractionx */ /* these longs are all actually of type nsmsg
filteractiontype */ const long custom=-1; /* see nsmsg
filteraction */ const long none=0; /* uninitialized state */ const long movetofolder=1; const long changepriority=2; const long delete=3; const long markread=4; const long killthread=5; const long watchthread=6; const long markflagged=7; const long label=8; const long reply=9; const long forward=10; const long stopexecution=11; ...
Animation inspector example: CSS transitions - Firefox Developer Tools
ml content <div class="channel"> <img src="https://udn.realityripple.com/samples/e6/a96484b5c3.png" class="icon"/> <span class="note">firefox developer edition</span> </div> css content .channel { padding: 2em; margin: 0.5em; box-shadow: 1px 1px 5px #808080; margin: 1.5em; } .channel > * { vertical-align: middle; line-height: normal; } .icon { width: 50px; height: 50px;
filter: grayscale(100%); transition: transform 750ms ease-in,
filter 750ms ease-in-out; } .note { margin-left: 1em; font: 1.5em "open sans",arial,sans-serif; overflow: hidden; white-space: nowrap; display: inline-block; opacity: 0; width: 0; transition: opacity 500ms 150ms, width 500ms 150ms; } .icon#selected {
filter: grayscale(0%); transform: scale(1.5); } .icon#selected+span...
How to - Firefox Developer Tools
css flexbox inspector: examine flexbox layoutscss grid inspector: examine grid layoutsedit css
filtersedit shape paths in cssedit fontsexamine event listenersexamine and edit cssexamine and edit htmlexamine and edit the box modelinspect and select colorsopen the inspectorreposition elements in the pageselect an elementselect and highlight elementsuse the inspector apiuse the inspector from the web consoleview background imagesvisualize transformswork with animations ...
Page Inspector - Firefox Developer Tools
how to to find out what you can do with the inspector, see the following how to guides: open the inspector examine and edit html examine and edit the box model inspect and select colors reposition elements in the page edit fonts visualize transforms use the inspector api select an element examine and edit css examine event listeners work with animations edit css
filters edit css shapes view background images use the inspector from the web console examine css grid layouts examine css flexbox layouts reference keyboard shortcuts settings ...
Waterfall - Firefox Developer Tools
filtering markers you can control which markers 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.
AudioNode.channelCountMode - Web APIs
gainnode, delaynode, scriptprocessornode, channelmergernode, biquad
filternode, waveshapernode clamped-max the number of channels is equal to the maximum number of channels of all connections, clamped to the value of channelcount.
AudioNode.connect() - Web APIs
for example, you might send the audio from a mediaelementaudiosourcenode—that is, the audio from an html5 media element such as <audio>—through a band pass
filter implemented using a biquad
filternode to reduce noise before then sending the audio along to the speakers.
AudioNode - Web APIs
a
filter like biquad
filternode or convolvernode), or volume control (like gainnode) <div id="interfacediagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><tex...
BluetoothCharacteristicProperties - Web APIs
let device = await navigator.bluetooth.requestdevice({
filters: [{services: ['heart_rate']}] }); let gatt = await device.gatt.connect(); let service = await gatt.getprimaryservice('heart_rate'); let characteristic = await service.getcharacteristic('heart_rate_measurement'); if (characteristic.properties.notify) { characteristics.addeventlistener('characteristicvaluechanged', function(event) { console.log(`received heart rate measurement: ${event...
Cache - Web APIs
// note that for opaque
filtered responses (https://fetch.spec.whatwg.org/#concept-
filtered-response-opaque) // we can't access to the response headers, so this check will always fail and the font won't be cached.
MutationObserver.observe() - Web APIs
(for example, if mutationobserverinit.childlist, mutationobserverinit.attributes, and mutationobserverinit.characterdata are all false.) the value of options.attributes is false (indicating that attribute changes are not to be monitored), but attributeoldvalue is true and/or attribute
filter is present.
NodeIterator.detach() - Web APIs
syntax nodeiterator.detach(); example var nodeiterator = document.createnodeiterator( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); nodeiterator.detach(); // detaches the iterator nodeiterator.nextnode(); // throws an invalid_state_err exception specifications specification status comment domthe definition of 'nodeiterator.detach' in that specification.
NodeIterator.nextNode() - Web APIs
syntax node = nodeiterator.nextnode(); example var nodeiterator = document.createnodeiterator( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false // this optional argument is not used any more ); currentnode = nodeiterator.nextnode(); // returns the next node specifications specification status comment domthe definition of 'nodeiterator.nextnode' in that specification.
NodeIterator.previousNode() - Web APIs
syntax node = nodeiterator.previousnode(); example var nodeiterator = document.createnodeiterator( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false // this optional argument is not used any more ); currentnode = nodeiterator.nextnode(); // returns the next node previousnode = nodeiterator.previousnode(); // same result, since we backtracked to the previous node specifications specification status comment domthe definiti...
NodeIterator.referenceNode - Web APIs
syntax node = nodeiterator.referencenode; example var nodeiterator = document.createnodeiterator( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); node = nodeiterator.referencenode; specifications specification status comment domthe definition of 'nodeiterator.referencenode' in that specification.
NodeIterator.root - Web APIs
syntax root = nodeiterator.root; example var nodeiterator = document.createnodeiterator( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); root = nodeiterator.root; // document.body in this case specifications specification status comment domthe definition of 'nodeiterator.root' in that specification.
Performance - Web APIs
performance.getentries() returns a list of performanceentry objects based on the given
filter.
Using Performance Timeline - Web APIs
performance extensions performance timeline extends the performance object with three methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified
filter criteria.
RTCConfiguration.iceTransportPolicy - Web APIs
the agent—or the browser itself—may still perform some form of ip
filtering on the incoming candidates for reasons including privacy and security, as well as to simply limit the number of candidates.
SVGFEDistantLightElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfedistantlightelement' in that specification.
SVGFEFuncAElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfefuncaelement' in that specification.
SVGFEFuncBElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfefuncbelement' in that specification.
SVGFEFuncGElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfefuncgelement' in that specification.
SVGFEFuncRElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfefuncrelement' in that specification.
SVGFEMergeNodeElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfemergenodeelement' in that specification.
SVGFEPointLightElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfepointlightelement' in that specification.
SVGFESpotLightElement - Web APIs
specifications specification status comment
filter effects module level 1the definition of 'svgfespotlightelement' in that specification.
StyleSheetList - Web APIs
ignoring...', stylesheet.href); } }) .
filter(boolean) .join('\n'); specifications specification status comment css object model (cssom)the definition of 'cssstylesheetlist' in that specification.
TreeWalker.currentNode - Web APIs
syntax node = treewalker.currentnode; treewalker.currentnode = node; example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); root = treewalker.currentnode; // the root element as it is the first element!
TreeWalker.firstChild() - Web APIs
syntax node = treewalker.firstchild; example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); var node = treewalker.firstchild(); // returns the first child of the root element, or null if none specifications specification status comment domthe definition of 'treewalker.firstchild' in that specification.
TreeWalker.lastChild() - Web APIs
syntax node = treewalker.lastchild(); example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); var node = treewalker.lastchild(); // returns the last visible child of the root element specifications specification status comment domthe definition of 'treewalker.lastchild' in that specification.
TreeWalker.nextNode() - Web APIs
syntax node = treewalker.nextnode(); example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); var node = treewalker.nextnode(); // returns the first child of root, as it is the next node in document order specifications specification status comment domthe definition of 'treewalker.nextnode' in that specification.
TreeWalker.nextSibling() - Web APIs
syntax node = treewalker.nextsibling(); example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); treewalker.firstchild(); var node = treewalker.nextsibling(); // returns null if the first child of the root element has no sibling specifications specification status comment domthe definition of 'treewalker.nextsibling' in that specification.
TreeWalker.parentNode() - Web APIs
syntax node = treewalker.parentnode(); example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); var node = treewalker.parentnode(); // returns null as there is no parent specifications specification status comment domthe definition of 'treewalker.parentnode' in that specification.
TreeWalker.previousNode() - Web APIs
syntax node = treewalker.previousnode(); example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); var node = treewalker.previousnode(); // returns null as there is no parent specifications specification status comment domthe definition of 'treewalker.previousnode' in that specification.
TreeWalker.previousSibling() - Web APIs
syntax node = treewalker.previoussibling(); example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); var node = treewalker.previoussibling(); // returns null as there is no previous sibiling specifications specification status comment domthe definition of 'treewalker.previoussibling' in that specification.
TreeWalker.root - Web APIs
syntax root = treewalker.root; example var treewalker = document.createtreewalker( document.body, node
filter.show_element, { acceptnode: function(node) { return node
filter.
filter_accept; } }, false ); root = treewalker.root; // document.body in this case specifications specification status comment domthe definition of 'treewalker.root' in that specification.
WEBGL_compressed_texture_s3tc - Web APIs
gl.getextension('webgl_compressed_texture_s3tc') || gl.getextension('moz_webgl_compressed_texture_s3tc') || gl.getextension('webkit_webgl_compressed_texture_s3tc') ); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.compressedteximage2d(gl.texture_2d, 0, ext.compressed_rgba_s3tc_dxt5_ext, 512, 512, 0, texturedata); gl.texparameteri(gl.texture_2d, gl.texture_mag_
filter, gl.linear); gl.texparameteri(gl.texture_2d, gl.texture_min_
filter, gl.linear); specifications specification status comment webgl_compressed_texture_s3tcthe definition of 'webgl_compressed_texture_s3tc' in that specification.
WEBGL_compressed_texture_s3tc_srgb - Web APIs
examples var ext = gl.getextension('webgl_compressed_texture_s3tc_srgb'); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.compressedteximage2d(gl.texture_2d, 0, ext.compressed_srgb_s3tc_dxt1_ext, 512, 512, 0, texturedata); gl.texparameteri(gl.texture_2d, gl.texture_mag_
filter, gl.linear); gl.texparameteri(gl.texture_2d, gl.texture_min_
filter, gl.linear); specifications specification status comment webgl_compressed_texture_s3tc_srgbthe definition of 'webgl_compressed_texture_s3tc_srgb' in that specification.
WebGLRenderingContext.compressedTexImage[23]D() - Web APIs
gl.getextension('webgl_compressed_texture_s3tc') || gl.getextension('moz_webgl_compressed_texture_s3tc') || gl.getextension('webkit_webgl_compressed_texture_s3tc') ); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.compressedteximage2d(gl.texture_2d, 0, ext.compressed_rgba_s3tc_dxt5_ext, 512, 512, 0, texturedata); gl.texparameteri(gl.texture_2d, gl.texture_mag_
filter, gl.linear); gl.texparameteri(gl.texture_2d, gl.texture_min_
filter, gl.linear); specifications specification status comment webgl 1.0the definition of 'compressedteximage2d' in that specification.
WebGLRenderingContext.getExtension() - Web APIs
the current extensions are: angle_instanced_arrays ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_
filter_anisotropic khr_parallel_shader_compile oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 webgl_color_buffer_float webgl_compressed_texture_astc webgl_compressed_texture_atc webgl_compressed_texture_etc webgl_compressed_texture_e...
WebGLRenderingContext.getParameter() - Web APIs
webgl extensions you can query the following pname parameters when using webgl extensions: constant returned type extension description ext.max_texture_max_anisotropy_ext glfloat ext_texture_
filter_anisotropic maximum available anisotropy.
WebGLRenderingContext.getSupportedExtensions() - Web APIs
the current extensions are: angle_instanced_arrays ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_
filter_anisotropic khr_parallel_shader_compile oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 webgl_color_buffer_float webgl_compressed_texture_astc webgl_compressed_texture_atc webgl_compressed_texture_etc webgl_compressed_texture_e...
WebGLRenderingContext.texImage2D() - Web APIs
2 2 luminance unsigned_byte 1 1 alpha unsigned_byte 1 1 other possible values in webgl2 for the versions of teximage2d that take an arraybufferview or a glintptr offset sized format base format r bits g bits b bits a bits shared bits color renderable texture
filterable r8 red 8 ● ● r8_snorm red s8 ● rg8 rg 8 8 ● ● rg8_snorm rg s8 s8 ● rgb8 rgb 8 8 8 ● ● rgb8_snorm rgb s8 s8 s8 ● rgb565 rgb 5 6 5 ...
Color masking - Web APIs
you can think of the color masking operation as if looking at the colored canvas through some tinted glass or color
filter.
Using WebGL extensions - Web APIs
extension list the current extensions are: angle_instanced_arrays ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_
filter_anisotropic khr_parallel_shader_compile oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 webgl_color_buffer_float webgl_compressed_texture_astc webgl_compressed_texture_atc webgl_compressed_texture_etc webgl_compressed_texture_e...
WebGL best practices - Web APIs
however, for 2d resources that are never "zoomed out", don't pay the 30% memory surcharge for mipmaps: const tex = gl.createtexture(); gl.bindtexture(gl.texture_2d, tex); gl.texparameterf(gl.texture_2d, gl.texture_min_
filter, gl.linear); // defaults to nearest_mipmap_linear, for mipmapping!
WebGL: 2D and 3D graphics for the web - Web APIs
bglshaderprecisionformat webglsync webgltexture webgltransformfeedback webgluniformlocation webglvertexarrayobject extensions angle_instanced_arrays ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_
filter_anisotropic khr_parallel_shader_compile oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 webgl_color_buffer_float webgl_compressed_texture_astc webgl_compressed_texture_atc webgl_compressed_texture_etc webgl_compressed_texture_e...
Signaling and video calling - Web APIs
note: we could restrict the set of permitted media inputs to a specific device or set of devices by calling navigator.mediadevices.enumeratedevices() to get a list of devices,
filtering the resulting list based on our desired criteria, then using the selected devices' deviceid values in the deviceid field of the the mediaconstraints object passed into getusermedia().
Worklet.addModule() - Web APIs
examples audioworklet example const audioctx = new audiocontext(); const audioworklet = audioctx.audioworklet; await audioworklet.addmodule('modules/bypass
filter.js', { credentials: 'omit', }); paintworklet example css.paintworklet.addmodule('https://mdn.github.io/houdini-examples/csspaint/intro/worklets/hilite.js'); once a paintworklet is included, the css paint() function can be used to include the image created by the worklet: @supports (background-image: paint(id)) { h1 { background-image: paint(hollowhighlights, filled, 3px); } } sp...
CSS Properties Reference - CSS: Cascading Style Sheets
t-width borderrightwidth border-style borderstyle border-top bordertop border-top-color bordertopcolor border-top-style bordertopstyle border-top-width bordertopwidth border-width borderwidth clear clear clip clip color color cursor cursor display display
filter filter float cssfloat font font font-family fontfamily font-size fontsize font-variant fontvariant font-weight fontweight height height left left letter-spacing letterspacing line-height lineheight list-style liststyle list-style-image liststyleimage ...
CSS data types - CSS: Cascading Style Sheets
index the data types defined by the set of css specifications include the following: <angle> <angle-percentage> <angular-color-hint> <angular-color-stop> <attr-fallback> <attr-name> <basic-shape> <blend-mode> <calc-product> <calc-sum> <calc-value> <color> <color-stop> <color-stop-angle> <counter-style> <custom-ident> <dimension> <
filter-function> <flex> <frequency> <frequency-percentage> <gradient> <ident> <image> <integer> <length> <length-percentage> <number> <number-percentage> <percentage> <position> <quote> <ratio> <resolution> <shape-box> <shape-radius> <string> <time> <time-percentage> <timing-function> <toggle-value> <transform-function> <type-or-unit> <url> <url-modifier> <zero> specificat...
Layout and the containing block - CSS: Cascading Style Sheets
if the position property is absolute or fixed, the containing block may also be formed by the edge of the padding box of the nearest ancestor element that has the following: a transform or perspective value other than none a will-change value of transform or perspective a
filter value other than none or a will-change value of
filter (only works on firefox).
Microsoft CSS extensions - CSS: Cascading Style Sheets
-ms-accelerator -ms-block-progression -ms-content-zoom-chaining -ms-content-zooming -ms-content-zoom-limit -ms-content-zoom-limit-max -ms-content-zoom-limit-min -ms-content-zoom-snap -ms-content-zoom-snap-points -ms-content-zoom-snap-type -ms-
filter -ms-flow-from -ms-flow-into -ms-high-contrast-adjust -ms-hyphenate-limit-chars -ms-hyphenate-limit-lines -ms-hyphenate-limit-zone -ms-ime-align -ms-overflow-style -ms-scrollbar-3dlight-color -ms-scrollbar-arrow-color -ms-scrollbar-base-color -ms-scrollbar-darkshadow-color -ms-scrollbar-face-color -ms-scrollbar-highlight-color -ms-scrollbar-shadow-color -ms-scrollba...
Mozilla CSS extensions - CSS: Cascading Style Sheets
n still accepted] -moz-column-gap [prefixed version still accepted] -moz-column-width [prefixed version still accepted] -moz-column-rule [prefixed version still accepted] -moz-column-rule-width [prefixed version still accepted] -moz-column-rule-style [prefixed version still accepted] -moz-column-rule-color [prefixed version still accepted] -moz-context-properties f–m
filter [applying to more than svg] -moz-font-feature-settings [prefixed version still accepted] -moz-font-language-override [prefixed version still accepted] -moz-hyphens [prefixed version still accepted] -moz-margin-end [superseded by the standard version margin-inline-end] -moz-margin-start [superseded by the standard version margin-inline-start] mask [applying to more than svg] ...
opacity - CSS: Cascading Style Sheets
the text over the background */ } .medium { opacity: 0.5; /* see the text more clearly over the background */ } .heavy { opacity: 0.9; /* see the text very clearly over the background */ } result setting opacity on hover html <img src="//developer.mozilla.org/static/img/opengraph-logo.png" alt="mdn logo" width="128" height="146" class="opacity"> css img.opacity { opacity: 1;
filter: alpha(opacity=100); /* ie8 and lower */ zoom: 1; /* triggers "haslayout" in ie 7 and lower */ } img.opacity:hover { opacity: 0.5;
filter: alpha(opacity=50); zoom: 1; } result specifications specification status comment css color module level 4the definition of 'opacity' in that specification.
Demos of open web technologies
nt vial css-based single page application (source code) transformations impress.js (source code) games ioquake3 (source code) kai 'opua (source code) web apis notifications api html5 notifications (source code) web audio api web audio fireworks oscope.js - javascript oscilloscope html5 web audio showcase (source code) html5 audio visualizer (source code) graphical
filter editor and visualizer (source code) file api slide my text - presentation from plain text files web workers web worker fractals photo editor coral generator raytracer hotcold touch typing ...
HTML5 - Developer guides
new background styling features it is now possible to put shadows on elements using box-shadow, multiple backgrounds, and css
filters.
Developer guides
having native audio and video in the browser means we can use these data streams with technologies such as <canvas>, webgl or web audio api to modify audio and video directly, for example adding reverb/compression effects to audio, or grayscale/sepia
filters to video.
Set-Cookie - HTTP
browsers block frontend javascript code from accessing the set cookie header, as required by the fetch spec, which defines set-cookie as a forbidden response-header name that must be
filtered out from any response exposed to frontend code.
An overview of HTTP - HTTP
proxies may perform numerous functions: caching (the cache can be public or private, like the browser cache)
filtering (like an antivirus scan or parental controls) load balancing (to allow multiple servers to serve the different requests) authentication (to control access to different resources) logging (allowing the storage of historical information) basic aspects of http http is simple http is generally designed to be simple and human readable, even with the added complexity introduced in http/2 by e...
Working with objects - JavaScript
to illustrate how this works, the following function displays the properties of the object when you pass the object and the object's name as arguments to the function: function showprops(obj, objname) { var result = ``; for (var i in obj) { // obj.hasownproperty() is used to
filter out properties from the object's prototype chain if (obj.hasownproperty(i)) { result += `${objname}.${i} = ${obj[i]}\n`; } } return result; } so, the function call showprops(mycar, "mycar") would return the following: mycar.make = ford mycar.model = mustang mycar.year = 1969 enumerate the properties of an object starting with ecmascript 5, there are three native ways to lis...
TypeError: cyclic object value - JavaScript
the snippet below illustrates how to find and
filter (thus causing data loss) a cyclic reference by using the replacer parameter of json.stringify(): const getcircularreplacer = () => { const seen = new weakset(); return (key, value) => { if (typeof value === "object" && value !== null) { if (seen.has(value)) { return; } seen.add(value); } return value; }; }; json.stringify(circularreference, getcircula...
Warning: String.x is deprecated; use String.prototype.x instead - JavaScript
shim to provide support to non-supporting browsers: /*globals define*/ // assumes all supplied string instance methods already present // (one may use shims for these if not available) (function() { 'use strict'; var i, // we could also build the array of methods with the following, but the // getownpropertynames() method is non-shimable: // object.getownpropertynames(string).
filter(function(methodname) { // return typeof string[methodname] === 'function'; // }); methods = [ 'contains', 'substring', 'tolowercase', 'touppercase', 'charat', 'charcodeat', 'indexof', 'lastindexof', 'startswith', 'endswith', 'trim', 'trimleft', 'trimright', 'tolocalelowercase', 'normalize', 'tolocaleuppercase', 'localecompare', 'match', 'search', 'slice', ...
TypeError: "x" is not a function - JavaScript
you will have to provide a function in order to have these methods working properly: when working with array or typedarray objects: array.prototype.every(), array.prototype.some(), array.prototype.foreach(), array.prototype.map(), array.prototype.
filter(), array.prototype.reduce(), array.prototype.reduceright(), array.prototype.find() when working with map and set objects: map.prototype.foreach() and set.prototype.foreach() examples a typo in the function name in this case, which happens way too often, there is a typo in the method name: let x = document.getelementbyid('foo'); // typeerror: document.getelementbyid is not a...
Array - JavaScript
array.prototype.
filter() returns a new array containing all elements of the calling array for which the provided
filtering function returns true.
Intl.Collator.prototype.compare() - JavaScript
or('de-u-co-phonebk'); a.sort(collator.compare); console.log(a.join(', ')); // → "odenwald, Österreich, offenbach" using compare for array search use the compare getter function for finding matching strings in arrays: var a = ['congrès', 'congres', 'assemblée', 'poisson']; var collator = new intl.collator('fr', { usage: 'search', sensitivity: 'base' }); var s = 'congres'; var matches = a.
filter(v => collator.compare(v, s) === 0); console.log(matches.join(', ')); // → "congrès, congres" specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.collator.prototype.compare' in that specification.
Set - JavaScript
ext", {"a": 1, "b": 2}, {"a": 1, "b": 2}] // the following will also work if run in an html document myset.add(document.body) myset.has(document.queryselector('body')) // true // converting between set and array myset2 = new set([1, 2, 3, 4]) myset2.size // 4 [...myset2] // [1, 2, 3, 4] // intersect can be simulated via let intersection = new set([...set1].
filter(x => set2.has(x))) // difference can be simulated via let difference = new set([...set1].
filter(x => !set2.has(x))) // iterate set entries with foreach() myset.foreach(function(value) { console.log(value) }) // 1 // 2 // 3 // 4 implementing basic set operations function issuperset(set, subset) { for (let elem of subset) { if (!set.has(elem)) { return false }...
xlink:arcrole - SVG: Scalable Vector Graphics
for example, a resource might generically represent a "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.
xlink:title - SVG: Scalable Vector Graphics
these 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>, and <use> usage context value <anything> default value none animatable no <anything> this value specifies the title used to describe the meaning of the link or resource.
xlink:type - SVG: Scalable Vector Graphics
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>, and <use> usage notes value simple default value simple animatable no simple this value specifies that the referred resource is a simple link.
zoomAndPan - SVG: Scalable Vector Graphics
two elements are using this attribute: <svg> and <view> html, body, svg { height: 100%; } <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" zoomandpan="disable"> <
filter id="diffuselighting" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" zoomandpan="1"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </
filter> <rect x="0" y="0" width="200" height="200" style="
filter: url(#diffuselighting);" /> </svg> usage notes value disable | magnify default value magnify animatab...
<altGlyph> - SVG: Scalable Vector Graphics
styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, dominant-baseline, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, vector-effect, visibility xlink attributes xlink:href, xlink:type, xlink:role, xlink:arcrole, xlink:title, xlink:show, xlink:actuate dom interface this element implements the svgaltglyphelement ...
<circle> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<clipPath> - SVG: Scalable Vector Graphics
value type: userspaceonuse|objectboundingbox ; default value: userspaceonuse; animatable: yes global attributes core attributes most notably: id styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility usage notes categoriesnonepermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elements<text>, <use> specifications specification...
<ellipse> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<foreignObject> - SVG: Scalable Vector Graphics
g attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes, document event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<glyph> - SVG: Scalable Vector Graphics
usage context categoriestext content 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> attributes global attributes core attributes presentation attributes class style specific attributes d horiz-adv-x vert-origin-x vert-origin-y vert-adv-y unicode glyph-name orientation arabic-form lang dom interface this element implements the svgglyphelement interface.
<line> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<linearGradient> - SVG: Scalable Vector Graphics
value type: <length> ; default value: 0%; animatable: yes global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes xlink:href, xlink:title usage notes categoriesgradient elementpermitted contentany number of the following elements, in any order:descriptive elements<animate>, <an...
<missing-glyph> - SVG: Scalable Vector Graphics
usage context categoriesnonepermitted 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> attributes global attributes core attributes presentation attributes class style specific attributes d horiz-adv-x vert-origin-x vert-origin-y vert-adv-y dom interface this element implements the svgmissingglyphelement interface.
<path> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<polygon> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<polyline> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<radialGradient> - SVG: Scalable Vector Graphics
value type: <iri> ; default value: none; animatable: yes global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes xlink:href, xlink:title usage notes categoriesgradient elementpermitted contentany number of the following elements, in any order:descriptive elements<animate>, <an...
<rect> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<textPath> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
<tspan> - SVG: Scalable Vector Graphics
ributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, dominant-baseline, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, ar...
<use> - SVG: Scalable Vector Graphics
ributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule,
filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedb...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
n 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) implementation st...
Other content in SVG - SVG: Scalable Vector Graphics
this means, that you can use clips, masks,
filters, rotations and all other tools of svg on the content: <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"> <image x="90" y="-65" width="128" height="146" transform="rotate(45)" xlink:href="https://developer.mozilla.org/static/img/favicon144.png"/> </svg> screenshotlive sample embedding arbitrary xml since...
Types of attacks - Web security
in this situation, someone includes an image that isn’t really an image (for example in an un
filtered chat or forum), instead it really is a request to your bank’s server to withdraw money: <img src="https://bank.example.com/withdraw?account=bob&amount=1000000&for=mallory"> now, if you are logged into your bank account and your cookies are still valid (and there is no other validation), you will transfer money as soon as you load the html that contains this image.