Search completed in 1.29 seconds.
CanvasRenderingContext2D.quadraticCurveTo() - Web APIs
the canvasrenderingcontext2d.qu
adraticcurveto() method of the canvas 2d api adds a qu
adratic bézier curve to the current sub-path.
...the starting point is the latest point in the current path, which can be changed using moveto() before creating the qu
adratic bézier curve.
... syntax void ctx.qu
adraticcurveto(cpx, cpy, x, y); parameters cpx the x-axis coordinate of the control point.
...And 4 more matches
loadResources - Archive of obsolete content
lo
adresources loads a properties file.
... method of install object syntax object lo
adresources( string xpipath ); parameters the sole input parameter for lo
adresources is a string representing the path to the properties file in the xpi in which the key/value pairs are defined.
...description the format of the properties file expected by lo
adresources is the same as that of the chrome locale .properties files.
... the following lines retrieve the properties as a javascript object and make the values accessible with the familiar "dot property" syntax: reseg2obj = lo
adresources("bin/res_eg_2.properties"); dump( reseg2obj.title ) ...
FetchEvent.preloadResponse - Web APIs
the prelo
adresponse read-only property of the fetchevent interface returns a promise that resolves to the navigation preload response if navigation preload was triggered or undefined otherwise.
... syntax var expectedresponse = fetchevent.prelo
adresponse; value a promise that resolves to a response or otherwise to undefined.
... addeventlistener('fetch', event => { event.respondwith(async function() { // respond from the cache if we can const cachedresponse = await caches.match(event.request); if (cachedresponse) return cachedresponse; // else, use the preloaded response, if it's there const response = await event.prelo
adresponse; if (response) return response; // else try the network.
... return fetch(event.request); }()); }); specifications specification status comment service workersthe definition of 'prelo
adresponse' in that specification.
MathML: Deriving the Quadratic Formula - MathML
this page outlines the derivation of the qu
adratic formula.
... we take a qu
adratic equation in its general form, and solve for x: a x 2 + b x + c = 0 a x 2 + b x = - c x 2 + b a x = -c a divide out leading coefficient.
d - SVG: Scalable Vector Graphics
svg defines 6 types of path commands, for a total of 20 commands: moveto: m, m lineto: l, l, h, h, v, v cubic bézier curve: c, c, s, s qu
adratic bézier curve: q, q, t, t elliptical arc curve: a, a closepath: z, z note: commands are case-sensitive.
...ey" stroke-dasharray="2" /> <circle cx="75" cy="10" r="1.5" fill="lightgrey"/> <line x1="90" y1="90" x2="70" y2="90" stroke="lightgrey" /> <circle cx="70" cy="90" r="1.5" /> <!-- curve vertex points --> <circle cx="10" cy="90" r="1.5"/> <circle cx="50" cy="10" r="1.5"/> <circle cx="90" cy="90" r="1.5"/> </g> <use xlink:href="#controlpoints" x="100" /> </svg> qu
adratic bézier curve qu
adratic bézier curves are smooth curve definitions using three points: starting point (current point) po = {xo, yo} end point pn = {xn, yn} control point pc = {xc, yc} (controls curvature) after drawing, the end point (pn) becomes the current point for the next command (po′).
... command parameters notes q (x1,y1, x,y)+ draw a qu
adratic bézier curve from the current point to the end point specified by x,y.
...And 11 more matches
SVG and CSS - SVG: Scalable Vector Graphics
de-stop-1" offset="33%"/> <stop id="fade-stop-2" offset="95%"/> </radialgradient> </defs> <text id="heading" x="-280" y="-270">svg demonstration</text> <text id="caption" x="-280" y="-250">move your mouse pointer over the flower.</text> <g id="flower"> <circle id="overlay" cx="0" cy="0" r="200" stroke="none" fill="url(#fade)"/> <g id="outer-petals"> <g class="qu
adrant"> <g class="segment"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> <g class="segment" transform="rotate(18)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> ...
... <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> <g class="segment" transform="rotate(72)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> </g> <g class="qu
adrant"> <g class="segment" transform="rotate(90)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> <g class="segment" transform="rotate(108)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 ...
... <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> <g class="segment" transform="rotate(162)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> </g> <g class="qu
adrant"> <g class="segment" transform="rotate(180)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> <g class="segment" transform="rotate(198)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40...
...And 7 more matches
nsIDragService
void invokedragsession( in nsidomnode adomnode, in nsisupportsarray atransferables, in nsiscriptableregion aregion, in unsigned long aactiontype ); void invokedragsessionwithimage(in nsidomnode adomnode, in nsisupportsarray atransferablearray, in nsiscriptableregion aregion, in unsigned long aactiontype, in nsidomnode aimage, in long aimagex, in long aimagey, in nsidomdragevent
adragevent, in nsidomdatatransfer adatatransfer); void invokedragsessionwithselection(in nsiselection aselection, in nsisupportsarray atransferablearray, in unsigned long aactiontype, in nsidomdragevent
adragevent, in nsidomdatatransfer adatatransfer); void startdragsession( ) ; void suppress(); void unsuppress(); constants constant value ...
...the
adragevent must be supplied as the current screen coordinates of the event are needed to calculate the image location.
... void invokedragsessionwithimage( in nsidomnode adomnode, in nsisupportsarray atransferablearray, in nsiscriptableregion aregion, in unsigned long aactiontype, in nsidomnode aimage, in long aimagex, in long aimagey, in nsidomdragevent
adragevent, in nsidomdatatransfer adatatransfer ); parameters adomnode the source node on which the drag gesture was started.
...And 4 more matches
Drawing shapes with canvas - Web APIs
0; // starting point on circle var endangle = math.pi + (math.pi * j) / 2; // end point on circle var anticlockwise = i % 2 !== 0; // clockwise or anticlockwise ctx.arc(x, y, radius, startangle, endangle, anticlockwise); if (i > 1) { ctx.fill(); } else { ctx.stroke(); } } } } } screenshotlive sample bezier and qu
adratic curves the next type of paths available are bézier curves, available in both cubic and qu
adratic varieties.
... qu
adraticcurveto(cp1x, cp1y, x, y) draws a qu
adratic bézier curve from the current pen position to the end point specified by x and y, using the control point specified by cp1x and cp1y.
...a qu
adratic bézier curve has a start and an end point (blue dots) and just one control point (indicated by the red dot) while a cubic bézier curve uses two control points.
...And 4 more matches
Timing element visibility with the Intersection Observer API - Web APIs
aliquam sed magna aliquam, vestibulum nisi at," + " cursus nunc.</p>"; function buildcontents() { for (let i=0; i<5; i++) { contentbox.appendchild(createarticle(loremipsum)); if (!(i % 2)) { lo
adrandomad(); } } } the variable loremipsum contains the text we'll use for the body of all of our articles.
... the ads are created using a function called lo
adrandomad(), which both creates the ad and inserts it into the page.
... creating an ad the lo
adrandomad() function simulates loading an ad and adding it to the page.
...And 4 more matches
SVGPathSeg - Web APIs
constants pathseg_unknown = 0 pathseg_closepath = 1 pathseg_moveto_abs = 2 pathseg_moveto_rel = 3 pathseg_lineto_abs = 4 pathseg_lineto_rel = 5 pathseg_curveto_cubic_abs = 6 pathseg_curveto_cubic_rel = 7 pathseg_curveto_qu
adratic_abs = 8 pathseg_curveto_qu
adratic_rel = 9 pathseg_arc_abs = 10 pathseg_arc_rel = 11 pathseg_lineto_horizontal_abs = 12 pathseg_lineto_horizontal_rel = 13 pathseg_lineto_vertical_abs = 14 pathseg_lineto_vertical_rel = 15 pathseg_curveto_cubic_smooth_abs = 16 pathseg_curveto_cubic_smooth_...
...rel = 17 pathseg_curveto_qu
adratic_smooth_abs = 18 pathseg_curveto_qu
adratic_smooth_rel = 19 normative document svg 1.1 (2nd edition) constants name value description pathseg_unknown 0 the unit type is not one of predefined types.
... pathseg_curveto_qu
adratic_abs 8 corresponds to an "absolute qu
adratic bézier curveto" (q) path data command.
...And 3 more matches
Investigating leaks using DMD heap scan mode
s in one debugging session where i was investigating the leak from bug 1451985, i eventually reduced the list of entries until this was the most suspicious looking entry: 0x7f0892f29630 size = 392 bytes at byte offset 56 mozilla::dom::scriptloader::processexternalscript[...] [...] i went to that line of scriptloader::processexternalscript(), and it contained a call to scriptloader::createlo
adrequest().
... fortunately, this method mostly just contains two calls to new, one for scriptlo
adrequest and one for modulelo
adrequest.
...unfortunately, in this particular case, the unoptimized build was so slow i wasn’t getting any logs.) i then looked through the list of leaked objects generated by xpcom_mem_bloat_log and saw that we were leaking a scriptlo
adrequest, so i went and looked at its class definition, where i noticed that scriptlo
adrequest had a strong reference to an element that it wasn’t telling the cycle collector about, which seemed suspicious.
...And 2 more matches
Accessing the Windows Registry Using XPCOM
function re
adregistryvalue(wrk, value) { switch (wrk.getvaluetype(value)) { case wrk.type_string: return wrk.readstringvalue(value); case wrk.type_binary: return wrk.readbinaryvalue(value); case wrk.type_int: return wrk.readintvalue(value); case wrk.type_int64: return wrk.readint64value(value); } // unknown type return null; } writing registry values writing re...
... var wrk = components.classes["@mozilla.org/windows-registry-key;1"] .createinstance(components.interfaces.nsiwindowsregkey); wrk.open(wrk.root_key_local_machine, "software\\microsoft\\windows\\currentversion\\run", wrk.access_read); for (var i=0; i<wrk.valuecount; i++) { var name = wrk.getvaluename(i); var value = re
adregistryvalue(wrk, name); // do something interesting here...
... } wrk.close(); for simplicity, this example assumes the existence of the re
adregistryvalue() function defined above.
...And 2 more matches
Index - Web APIs
588 canvasrenderingcontext2d.qu
adraticcurveto() api, canvas, canvasrenderingcontext2d, method, reference the canvasrenderingcontext2d.qu
adraticcurveto() method of the canvas 2d api adds a qu
adratic bézier curve to the current sub-path.
...the starting point is the latest point in the current path, which can be changed using moveto() before creating the qu
adratic bézier curve.
... 748 domquad api, dom, dom reference, domquad, experimental, geometry a domquad is a collection of four dompoints defining the corners of an arbitrary qu
adrilateral.
...And 2 more matches
SVGPathElement - Web APIs
svgpathelement.createsvgpathsegcurvetoqu
adraticabs() returns a stand-alone, parentless svgpathsegcurvetoqu
adraticabs object.
... svgpathelement.createsvgpathsegcurvetoqu
adraticrel() returns a stand-alone, parentless svgpathsegcurvetoqu
adraticrel object.
... svgpathelement.createsvgpathsegcurvetoqu
adraticsmoothabs() returns a stand-alone, parentless svgpathsegcurvetoqu
adraticsmoothabs object.
... svgpathelement.createsvgpathsegcurvetoqu
adraticsmoothrel() returns a stand-alone, parentless svgpathsegcurvetoqu
adraticsmoothrel object.
Border-image generator - CSS: Cascading Style Sheets
ader = (function imagereader() { var freader = new filereader(); var browse = document.createelement('input'); var loadimage = function loadimage(e) { if (browse.files.length === 0) return; var file = browse.files[0]; if (file.type.slice(0, 5) !== 'image') return; freader.readasdataurl(file); return false; }; freader.onload = function(e) { imagecontrol.lo
adremoteimage(e.target.result); }; var load = function load() { browse.click(); }; browse.setattribute('type', 'file'); browse.style.display = 'none'; browse.onchange = loadimage; return { load: load }; })(); var imagecontrol = (function imagecontrol() { var scale = 0.5; var imgsource = new image(); var imgstate = null; var selected = null; var topics = ['sli...
... [42, 42, 42, 42], width_values : [42, 42, 42, 42], outset_values : [0, 0, 0, 0], slice_units : [0, 0, 0, 0], width_units : [0, 0, 0, 0], outset_units : [0, 0, 0, 0], repeat : [2, 2], size : [350, 350], preview_area : 500, }; var loadlocalimage = function loadlocalimage(source) { var location = "images/" + source; imgsource.src = location; }; var lo
adremoteimage = function lo
adremoteimage(source) { imgsource.src = source; if (selected) selected.removeattribute('selected'); tool.setoutputcss('source', 'url("' + source + '")'); }; var pickimage = function pickimage(e) { if (e.target.classname === 'image') { selected = e.target; selected.setattribute('selected', 'true'); lo
adremoteimage(e.target.src); imgstate ...
... } else { gallery.removeattribute('data-collapsed'); button.setattribute('data-action', 'hide'); } }); }; var init = function init() { var gallery = getelembyid('image-gallery'); var browse = getelembyid('load-image'); var remote = getelembyid('remote-url'); var load_remote = getelembyid('load-remote'); remote.addeventlistener('change', function(){ lo
adremoteimage(this.value); }); load_remote.addeventlistener('click', function(){ lo
adremoteimage(remote.value); }); browse.addeventlistener('click', imagereader.load); gallery.addeventlistener('click', pickimage); imgsource.addeventlistener('load', update); inputslidermanager.subscribe('scale', setscale); inputslidermanager.setvalue('scale', scale); imgstate = 'borde...
...r1'; lo
adremoteimage('https://udn.realityripple.com/samples/2c/fa0192d18e.png'); togglegallery(); }; return { init: init, getscale : getscale, lo
adremoteimage: lo
adremoteimage }; })(); var guideline = function guideline(node) { var topic = node.getattribute('data-topic'); var axis = node.getattribute('data-axis'); this.node = node; this.topic = topic; this.axis = axis; this.info = topic.split('-')[1]; this.position = 0; this.value = 0; this.unit = 0; this.max = 0; this.pos = positions.indexof(this.info); guidelines[topic] = this; var relative_container = document.createelement('div'); var tooltip = document.createelement('div'); var tooltip2 = document.createelement('div'); tooltip.classname = 'tooltip'; tooltip.setattribute('da...
Describing microformats in JavaScript - Archive of obsolete content
custom custom data a simple example the hcard microformat for defining contact information makes use of the
adr microformat to define an address.
... the
adr microformat is defined as follows: var
adr_definition = { mfversion: 0.8, mfobject:
adr, classname: "
adr", properties: { "type" : { plural: true, types: ["work", "home", "pref", "postal", "dom", "intl", "parcel"] }, "post-office-box" : { }, "street-address" : { plural: true }, "extended-address" : { }, "locality" : { }, "region" : { }, "postal-code" : { }, "country-name" : { } } }; the properties are quite simple here.
... the microformat is registered with the microformat api by calling microformats.add(), like this: microformats.add("
adr",
adr_definition); note: to be clear: since the
adr microformat is included by default in firefox 3 and later, you don't need to add it yourself if you wish to make use of it.
Paths - SVG: Scalable Vector Graphics
there are an infinite number of bézier curves, but only two simple ones are available in <path> elements: a cubic one, called with c, and a qu
adratic one, called with q.
... <svg width="190" height="160" xmlns="http://www.w3.org/2000/svg"> <path d="m 10 80 c 40 10, 65 10, 95 80 s 150 150, 180 80" stroke="black" fill="transparent"/> </svg> the other type of bézier curve, the qu
adratic curve called with q, is actually a simpler curve than the cubic one.
... q x1 y1, x y (or) q dx1 dy1, dx dy <svg width="190" height="160" xmlns="http://www.w3.org/2000/svg"> <path d="m 10 80 q 95 10 180 80" stroke="black" fill="transparent"/> </svg> as with the cubic bézier curve, there is a shortcut for stringing together multiple qu
adratic béziers, called with t.
NSS 3.12.5 release_notes
pk11_re
adrawattribute allocates the buffer for returning the attribute value.
... the caller of pk11_re
adrawattribute should free the data buffer pointed to by item using a secitem_freeitem(item, pr_false) or port_free(item->data) call.
nsILoadGroup
defaultlo
adrequest nsirequest accesses the default load request for the group.
... each time a number of requests are added to a group, the defaultlo
adrequest may be set to indicate that all of the requests are related to a base request.
nsIMsgDatabase
void markread(in nsmsgkey key, in boolean bread, in nsidbchangelistener instigator); void markreplied(in nsmsgkey key, in boolean breplied, in nsidbchangelistener instigator); void markforwarded(in nsmsgkey key, in boolean bforwarded, in nsidbchangelistener instigator); void markhasattachments(in nsmsgkey key, in boolean bhasattachments, in nsidbchangelistener instigator); void markthre
adread(in nsimsgthread thread, in nsidbchangelistener instigator, in nsmsgkeyarrayptr thosemarked); native code only!
...lied, in nsidbchangelistener instigator); markforwarded() void markforwarded(in nsmsgkey key, in boolean bforwarded, in nsidbchangelistener instigator); markhasattachments() void markhasattachments(in nsmsgkey key, in boolean bhasattachments, in nsidbchangelistener instigator); markthre
adread() [noscript] void markthre
adread(in nsimsgthread thread, in nsidbchangelistener instigator, in nsmsgkeyarrayptr thosemarked); markthreadignored() void markthreadignored(in nsimsgthread thread, in nsmsgkey threadkey, in boolean bignored, in nsidbchangelisten...
nsIMsgFolder
; acstring generatemessageuri(in nsmsgkey msgkey); void addmessagedispositionstate(in nsimsgdbhdr amessage,in nsmsgdispositionstate adispositionflag); void markmessagesread(in nsisupportsarray messages, in boolean markread); void markallmessagesread(); void markmessagesflagged(in nsisupportsarray messages, in boolean markflagged); void markthre
adread(in nsimsgthread thread); void setlabelformessages(in nsisupportsarray messages, in nsmsglabelvalue label); nsimsgdatabase getmsgdatabase(in nsimsgwindow msgwindow); void setmsgdatabase(in nsimsgdatabase msgdatabase); nsimsgdatabase getdbfolderinfoanddb(out nsidbfolderinfo folderinfo); nsimsgdbhdr getmessageheader(in nsmsgkey msgkey); boolea...
...ssage, in nsmsgdispositionstate adispositionflag); markmessagesread() void markmessagesread(in nsisupportsarray messages, in boolean markread); markallmessagesread() void markallmessagesread(); markmessagesflagged() void markmessagesflagged(in nsisupportsarray messages, in boolean markflagged); markthre
adread() void markthre
adread(in nsimsgthread thread); setlabelformessages() void setlabelformessages(in nsisupportsarray messages, in nsmsglabelvalue label); getmsgdatabase() nsimsgdatabase getmsgdatabase(in nsimsgwindow msgwindow); setmsgdatabase() void setmsgdatabase(in nsimsgdatabase msgdatabase); getdbfolderinfoanddb() nsimsgdatabase getdbfolderinfoandd...
LayoutShift - Web APIs
layoutshift.h
adrecentinput returns true if there was a user input in the past 500 milliseconds.
... if (!entry.h
adrecentinput) { cumulativelayoutshiftscore += entry.value; } } }); observer.observe({type: 'layout-shift', buffered: true}); document.addeventlistener('visibilitychange', () => { if (document.visibilitystate === 'hidden') { // force any pending records to be dispatched.
conic-gradient() - CSS: Cascading Style Sheets
syntax /* a conic gradient rotated 45 degrees, starting blue and finishing red */ conic-gradient(from 45deg, blue, red); /* a a bluish purple box: the gradient goes from blue to red, but as only the bottom right qu
adrant is visible, as the center of the conic gradient is in at the top left corner */ conic-gradient(from 90deg at 0 0, blue, red); /* colorwheel */ background: conic-gradient( hsl(360, 100%, 50%), hsl(315, 100%, 50%), hsl(270, 100%, 50%), hsl(225, 100%, 50%), hsl(180, 100%, 50%), hsl(135, 100%, 50%), hsl(90, 100%, 50%), hsl(45, 100%, 50%), hsl(0, 100%, 50%) )...
...by creating qu
adrants with an upper left and lower right white qu
adrant and lower left and upper right black qu
adrants, then repeating the gradient 16 times (four times across and four times down) you can make a checkerboard.
self - Archive of obsolete content
lo
adreason this property contains of the following strings describing the reason your add-on was loaded: install enable startup upgrade downgrade isprivatebrowsingsupported this property indicates whether or not the add-on supports private browsing.
Listening for Load and Unload - Archive of obsolete content
options.lo
adreason options.lo
adreason is one of the following strings describing the reason your add-on was loaded: install enable startup upgrade downgrade exports.onunload() if your add-on exports a function called onunload(), that function will be called when the add-on is unloaded.
Canvas code snippets - Archive of obsolete content
return new canvas2dcontext(canvas); } this.context = this.ctx = canvas.getcontext('2d'); if (!canvas2dcontext.prototype.arc) { canvas2dcontext.setup.call(this, this.ctx); } } canvas2dcontext.setup = function() { var methods = ['arc', 'arcto', 'beginpath', 'beziercurveto', 'clearrect', 'clip', 'closepath', 'drawimage', 'fill', 'fillrect', 'filltext', 'lineto', 'moveto', 'qu
adraticcurveto', 'rect', 'restore', 'rotate', 'save', 'scale', 'settransform', 'stroke', 'strokerect', 'stroketext', 'transform', 'translate']; var gettermethods = ['createpattern', 'drawfocusring', 'ispointinpath', 'measuretext', // drawfocusring not currently supported // the following might instead be wrapped to be able to chain their child objects 'createimagedata', 'createlineargr...
StringView - Archive of obsolete content
aaaaaaa4ayaaaaaaaaiaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaamwaaaapaaaaawaaaaaaaadobmaaaaaaaoggaaaaaaaacaaaaaaaaaaaaaaaaaaaaagaaaaaaaaaaaaaaaaaaadyaaaaaqaaaamaaaaaaaaa8azgaaaaaadwbgaaaaaaaagaaaaaaaaaaaaaaaaaaaaiaaaaaaaaaaaaaaaaaaaa3qaaaayaaaadaaaaaaaaapggyaaaaaaa+ayaaaaaaadqaqaaaaaaaayaaaaaaaaacaaaaaaaaaaqaaaaaaaaaoyaaaabaaaaawaaaaaaaadicgaaaaaaamgiaaaaaaaacaaaaaaaaaaaaaaaaaaaaagaaaaaaaaacaaaaaaaa
adraaaaaqaaaamaaaaaaaaa0ahgaaaaaadqcaaaaaaaadaaaaaaaaaaaaaaaaaaaaaiaaaaaaaaaagaaaaaaaaa9aaaaaeaaaadaaaaaaaaaaajyaaaaaaaaakaaaaaaaaqaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaapoaaaaiaaaaawaaaaaaaaaqcwaaaaaaabajaaaaaaaacaaaaaaaaaaaaaaaaaaaaaqaaaaaaaaaaaaaaaaaaad/aaaaaqaaadaaaaaaaaaaaaaaaaaaaaaqcqaaaaaaadgaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaeaaaaaaaaaeqaaaamaaaaaaaaaaaaaaaaaaaaaaaaasakaaaaaaaaiaqaaaaaaaaaaaaaa...
List of Mozilla-Based Applications - Archive of obsolete content
font management tool firecast digital signage and interactive kiosk tools also used in firecast easystart mozilla firefox web browser web browser usage stats from global stats fossamail email client for windows platform, based on mozilla thunderbird developed by moonchild productions, creator of the pale moon web browser flickr uplo
adr image upload tool see flickr uplo
adr: open source and powered by xulrunner foxkeh clock clock frizione javascript development, testing and deployment environment uses mozilla rhino geckofx embeddable gecko gjs javascript bindings for gnome globalmojo browser that raises money for your favorite causes glu...
XPInstall API reference - Archive of obsolete content
objects install properties methods adddirectory addfile alert cancelinstall confirm deleteregisteredfile execute gestalt getcomponentfolder getfolder getlasterror getwinprofile getwinregistry initinstall lo
adresources logcomment patch performinstall refreshplugins registerchrome reseterror setpackagefolder installtrigger no properties methods compareversion enabled getversion install installchrome startsoftwareupdate installversion properties methods ...
CSS and JavaScript accessibility best practices - Learn web development
accept that users can override styles accept that users can override your styles it is possible for users to override your styles with their own custom styles, for example: see sarah maddox's how to use a custom style sheet (css) with firefox for a useful guide covering how to do this manually in firefox, and how to use a custom style sheet (css) with internet explorer by
adrian gordon for the equivalent ie instructions.
Experimental features in Firefox
developer edition 66 no beta 66 no release 66 no preference name dom.media.autoplay.autoplay-policy-api geometryutils methods: convertpointfromnode(), convertrectfromnode(), and convertquadfromnode() the geometryutils methods convertpointfromnode(), convertrectfromnode(), and convertquadfromnode() map the given point, rectangle, or qu
adruple from the node on which they're called to another node.
DownloadList
ondownlo
adremoved: optional this function is called with a single download argument, after the download is removed from the list.
Downloads.jsm
ource://gre/modules/downloads.jsm"); components.utils.import("resource://gre/modules/osfile.jsm") components.utils.import("resource://gre/modules/task.jsm"); task.spawn(function () { let list = yield downloads.getlist(downloads.all); let view = { ondownloadadded: download => console.log("added", download), ondownloadchanged: download => console.log("changed", download), ondownlo
adremoved: download => console.log("removed", download) }; yield list.addview(view); try { let download = yield downloads.createdownload({ source: "http://www.mozilla.org/", target: os.path.join(os.constants.path.tmpdir, "example-download.html"), }); list.add(download); try { download.start(); alert("now monitoring all downloads.
MathML Torture Test
>𞸝</mi></msup></mrow><mo>=</mo><mn>1</mn></math></td> <td><math dir="rtl" display="block" xmlns="http://www.w3.org/1998/math/mathml"><mrow><munder><mo lspace="0em" rspace="0em" mathcolor="red">lim</mo><mrow><mi>𞸝</mi><mo stretchy="false">←</mo><mo>+</mo><mn>∞</mn></mrow></munder><mfrac><msqrt><mrow><mn>٢</mn><mi>π</mi><mi>𞸝</mi></mrow></msqrt><menclose notation="m
adruwb"><mi>𞸝</mi></menclose></mfrac><msup><mrow><mo>(</mo><mfrac><mi>𞸝</mi><mi>e</mi></mfrac><mo>)</mo></mrow><mi>𞸝</mi></msup></mrow><mo>=</mo><mn>1</mn></math></td> <td><math display="block" xmlns="http://www.w3.org/1998/math/mathml"><mrow><munder><mo lspace="0em" rspace="0em">𞻱</mo><mrow><mi>n</mi><mo stretchy="false">→</mo><mo>+</mo><mn>∞</mn></mrow></mund...
MathML Accessibility in Mozilla
x plus y enclosed by: an arabic factorial symbol x + y up m
adruwb enclosed abcd e __________ open a comma b comma c comma d comma e close __________ not supported.
TimerFirings logging
01266240[7f7c1f248000]: [7163] fn timer (one_shot 100 ms): [content] http://a.visualrevenue.com/vrs.js:6:9423 103 801266240[7f7c1f248000]: [7163] fn timer (one_shot 50 ms): [content] http://static.dynamicyield.com/scripts/12086/dy-min.js?v=12086:3:3389 94 801266240[7f7c1f248000]: [7163] fn timer (one_shot 50 ms): [content] https://ad.doubleclick.net/ddm/adi/n7921.1283839c
adreon.com.au/b9038144.122190976;sz=300x600;click=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] ...
Cryptography functions
mxr 3.2 and later pk11_pubunwrapsymkey mxr 3.2 and later pk11_pubunwrapsymkeywithflags mxr 3.6 and later pk11_pubunwrapsymkeywithflagsperm mxr 3.9 and later pk11_pubwrapsymkey mxr 3.2 and later pk11_randomupdate mxr 3.2 and later pk11_re
adrawattribute mxr 3.9.2 and later pk11_referencesymkey mxr 3.2 and later pk11_resettoken mxr 3.4 and later pk11_restorecontext mxr 3.2 and later pk11_savecontext mxr 3.2 and later pk11_savecontextalloc mxr 3.6 and later pk11_setfortez...
Encrypt Decrypt MAC Keys As Session Objects
stderr, "%-7s .enc and .header as intermediate output files.\n\n", ""); fprintf(stderr, "%-7s for decrypt, it takes .enc and .header\n", ""); fprintf(stderr, "%-7s as input files and produces as a final output file.\n\n", ""); exit(-1); } /* * gather a cka_id */ secstatus gathercka_id(pk11symkey* key, secitem* buf) { secstatus rv = pk11_re
adrawattribute(pk11_typesymkey, key, cka_id, buf); if (rv != secsuccess) { pr_fprintf(pr_stderr, "pk11_re
adrawattribute returned (%d)\n", rv); pr_fprintf(pr_stderr, "could not read symkey cka_id attribute\n"); return rv; } return rv; } /* * generate a symmetric key */ pk11symkey * generatesymkey(pk11slotinfo *slot, ck_mechanism_type mechanism, in...
Encrypt and decrypt MAC using token
stderr, "%-7s .enc and .header as intermediate output files.\n\n", ""); fprintf(stderr, "%-7s for decrypt, it takes .enc and .header\n", ""); fprintf(stderr, "%-7s as input files and produces as a final output file.\n\n", ""); exit(-1); } /* * gather a cka_id */ secstatus gathercka_id(pk11symkey* key, secitem* buf) { secstatus rv = pk11_re
adrawattribute(pk11_typesymkey, key, cka_id, buf); if (rv != secsuccess) { pr_fprintf(pr_stderr, "pk11_re
adrawattribute returned (%d)\n", rv); pr_fprintf(pr_stderr, "could not read symkey cka_id attribute\n"); return rv; } return rv; } /* * generate a symmetric key */ pk11symkey * generatesymkey(pk11slotinfo *slot, ck_mechanism_type mechanism, in...
Encrypt Decrypt_MAC_Using Token
*/ secstatus gathercka_id(pk11symkey* key, secitem* buf) { secstatus rv = pk11_re
adrawattribute(pk11_typesymkey, key, cka_id, buf); if (rv != secsuccess) { pr_fprintf(pr_stderr, "pk11_re
adrawattribute returned (%d)\n", rv); pr_fprintf(pr_stderr, "could not read symkey cka_id attribute\n"); return rv; } return rv; } /* * generate a symmetric key.
NSS Sample Code Sample_3_Basic Encryption and MACing
*/ /* nspr headers */ #include <prthread.h> #include <plgetopt.h> #include <prerror.h> #include <prinit.h> #include <prlog.h> #include <prtypes.h> #include <plstr.h> /* * gather a cka_id */ secstatus gathercka_id(pk11symkey* key, secitem* buf) { secstatus rv = pk11_re
adrawattribute(pk11_typesymkey, key, cka_id, buf); if (rv != secsuccess) { pr_fprintf(pr_stderr, "pk11_re
adrawattribute returned (%d)\n", rv); pr_fprintf(pr_stderr, "could not read symkey cka_id attribute\n"); return rv; } return rv; } /* * generate a symmetric key */ pk11symkey * generatesymkey(pk11slotinfo *slot, ck_mechanism_type mechanism, in...
EncDecMAC using token object - sample 3
takes as an input file and produces\n", "note :"); fprintf(stderr, "%-7s .enc and .header as intermediate output files.\n\n", ""); fprintf(stderr, "%-7s for decrypt, it takes .enc and .header\n", ""); fprintf(stderr, "%-7s as input files and produces as a final output file.\n\n", ""); exit(-1); } /* * gather a cka_id */ secstatus gathercka_id(pk11symkey* key, secitem* buf) { secstatus rv = pk11_re
adrawattribute(pk11_typesymkey, key, cka_id, buf); if (rv != secsuccess) { pr_fprintf(pr_stderr, "pk11_re
adrawattribute returned (%d)\n", rv); pr_fprintf(pr_stderr, "could not read symkey cka_id attribute\n"); return rv; } return rv; } /* * generate a symmetric key */ pk11symkey * generatesymkey(pk11slotinfo *slot, ck_mechanism_type mechanism, int keysize, secitem *keyid, secupwdata *pwdata) { secsta...
NSS functions
mxr 3.2 and later pk11_pubunwrapsymkey mxr 3.2 and later pk11_pubunwrapsymkeywithflags mxr 3.6 and later pk11_pubunwrapsymkeywithflagsperm mxr 3.9 and later pk11_pubwrapsymkey mxr 3.2 and later pk11_randomupdate mxr 3.2 and later pk11_re
adrawattribute mxr 3.9.2 and later pk11_referencesymkey mxr 3.2 and later pk11_resettoken mxr 3.4 and later pk11_restorecontext mxr 3.2 and later pk11_savecontext mxr 3.2 and later pk11_savecontextalloc mxr 3.6 and later pk11_setfortez...
Necko walkthrough
nshttpconnection::activate this connection is passed the transaction nshttpconnection::onoutputstreamready nshttpconnection::onsocketwritable tries to write the request data from the current transaction (mtransaction) tells the transaction to now wait (`resumerecv) nshttpconnection::resumerecv nshttptransaction::readsegments re
adrequestsegment is passed to mrequeststream->readsegments - this function pointer is called and used to read the request bytes, which in turn calls ...
Reference Manual
nscomptr<t> = /* call queryinterface but don't addref */ you'll notice this qu
adrant of the table is marked "n/a".
Source map errors - Firefox Developer Tools
ressourcen-
adresse: moz-extension://c7f0f003-4fcf-49fd-8ec0-c49361266581/background.js source-map-
adresse: background.js.map the only workaround is to manually change the map url to a public one (http://localhost:1234/file.map.js) and start a local webserver at this port.
DOMQuad - Web APIs
a domquad is a collection of four dompoints defining the corners of an arbitrary qu
adrilateral.
Document Object Model (DOM) - Web APIs
static type svgangle svgcolor svgicccolor svgelementinstance svgelementinstancelist svglength svglengthlist svgmatrix svgnamelist svgnumber svgnumberlist svgpaint svgpathseg svgpathsegclosepath svgpathsegmovetoabs svgpathsegmovetorel svgpathseglinetoabs svgpathseglinetorel svgpathsegcurvetocubicabs svgpathsegcurvetocubicrel svgpathsegcurvetoqu
adraticabs svgpathsegcurvetoqu
adraticrel svgpathsegarcabs svgpathsegarcrel svgpathseglinetohorizontalabs svgpathseglinetohorizontalrel svgpathseglinetoverticalabs svgpathseglinetoverticalrel svgpathsegcurvetocubicsmoothabs svgpathsegcurvetocubicsmoothrel svgpathsegcurvetoqu
adraticsmoothabs svgpathsegcurvetoqu
adraticsmoothrel svgpathseglist svgpoint svgpointli...
FetchEvent() - Web APIs
prelo
adresponse read only a promise which returns a previously-loaded response to the client.
FetchEvent.navigationPreload - Web APIs
addeventlistener('fetch', event => { event.respondwith(async function() { // respond from the cache if we can const cachedresponse = await caches.match(event.request); if (cachedresponse) return cachedresponse; // else, use the preloaded response, if it's there const response = await event.prelo
adresponse; if (response) return response; // else try the network.
FetchEvent - Web APIs
fetchevent.prelo
adresponse read only a promise for a response, or undefined if this fetch is not a navigation, or navigation preload is not enabled.
NavigationPreloadManager - Web APIs
addeventlistener('fetch', event => { event.respondwith(async function() { // respond from the cache if we can const cachedresponse = await caches.match(event.request); if (cachedresponse) return cachedresponse; // else, use the preloaded response, if it's there const response = await event.prelo
adresponse; if (response) return response; // else try the network.
Node - Web APIs
=== "string") { if (-1 !== node.textcontent.indexof(pattern)) { matches.push(node) } } else if (pattern.test(node.textcontent)) { if (!pattern.global) { endscan = true matches = node } else { matches.push(node) } } }) return matches } for example, to find text nodes that contain typos: const typos = ["teh", "adn", "btu", "
adress", "youre", "msitakes"] const pattern = new regexp("\\b(" + typos.join("|") + ")\\b", "gi") const mistakes = grep(document.body, pattern) console.log(mistakes) specifications specification status comment domthe definition of 'node' in that specification.
Path2D - Web APIs
path2d.qu
adraticcurveto() adds a qu
adratic bézier curve to the current path.
Window - Web APIs
window.domquad read only returns a reference to a domquad object, which provides represents a qu
adrilaterial object, that is one having four corners and four sides.
CSS reference - CSS: Cascading Style Sheets
ckpadding-block-endpadding-block-startpadding-bottompadding-inlinepadding-inline-endpadding-inline-startpadding-leftpadding-rightpadding-top@pagepage-break-afterpage-break-beforepage-break-insidepaint()paint-orderpath()pc<percentage>perspectiveperspective()perspective-originplace-contentplace-itemsplace-self::placeholderpointer-eventspolygon()<position>positionprefix (@counter-style)ptpxqqquotesrr
adradial-gradient()range (@counter-style)<ratio>:read-only:read-writerect()remrepeat()repeating-linear-gradient()repeating-radial-gradient():requiredresize<resolution>revertrgb()rgba():rightright@right-bottom:rootrotaterotate()rotate3d()rotatex()rotatey()rotatez()row-gapsssaturate()scalescale()scale3d()scalex()scaley()scalez():scopescroll-behaviorscroll-marginscroll-margin-blockscroll-margin-block-en...
<display-box> - CSS: Cascading Style Sheets
more accessible markup with display: contents | hidde de vries display: contents is not a css reset |
adrian roselli examples in this first example, the paragraph with a class of secret is set to display: none; the box and any content is now not rendered.
display - CSS: Cascading Style Sheets
more accessible markup with display: contents | hidde de vries display: contents is not a css reset |
adrian roselli tables changing the display value of a <table> element to block, grid, or flex will alter its representation in the accessibility tree.
flex-direction - CSS: Cascading Style Sheets
flexbox & the keyboard navigation disconnect — tink source order matters |
adrian roselli mdn understanding wcag, guideline 1.3 explanations understanding success criterion 1.3.2 | w3c understanding wcag 2.0 formal definition initial valuerowapplies toflex containersinheritednocomputed valueas specifiedanimation typediscrete formal syntax row | row-reverse | column | column-reverse examples reversing flex container columns and rows html <h4>this is a column-rever...
order - CSS: Cascading Style Sheets
flexbox & the keyboard navigation disconnect — tink source order matters |
adrian roselli mdn understanding wcag, guideline 1.3 explanations understanding success criterion 1.3.2 | w3c understanding wcag 2.0 formal definition initial value0applies toflex items and absolutely-positioned flex container childreninheritednocomputed valueas specifiedanimation typean integer formal syntax <integer> examples ordering items in a flex container this example uses css to cre...
<button>: The Button element - HTML: Hypertext Markup Language
understanding success criterion 2.5.5: target size | w3c understanding wcag 2.1 target size and 2.5.5 |
adrian roselli quick test: large touch targets - the a11y project proximity large amounts of interactive content — including buttons — placed in close visual proximity to each other should have space separating them.
<ins> - HTML: Hypertext Markup Language
short note on making your mark (more accessible) | the paciello group tweaking text level styles |
adrian roselli specifications specification status comment html living standardthe definition of '<ins>' in that specification.
<s> - HTML: Hypertext Markup Language
short note on making your mark (more accessible) | the paciello group tweaking text level styles |
adrian roselli specifications specification status comment html living standardthe definition of 's element' in that specification.
Browser detection using the user agent - HTTP
mozilla/5.0 (linux; android 4.4.2); nexus 5 build/kot49h) applewebkit/537.36 (khtml, like gecko) chrome/33.0.1750.117 mobile safari/537.36 opr/20.0.1396.72047 presto-based (opera 12-) opera mobi/xyz token in the comment (opera 12-) opera/9.80 (android 2.3.3; linux; opera mobi/
adr-1111101157; u; es-es) presto/2.9.201 version/11.50 internet explorer iemobile/xyz token in the comment.
Array.prototype.reduce() - JavaScript
y .then() function f3(a) { return a * 3 } // promise function 4 function p4(a) { return new promise((resolve, reject) => { resolve(a * 4) }) } const promisearr = [p1, p2, f3, p4] runpromiseinsequence(promisearr, 10) .then(console.log) // 1200 function composition enabling piping // building-blocks to use for composition const double = x => x + x const triple = x => 3 * x const qu
adruple = x => 4 * x // function composition enabling pipe functionality const pipe = (...functions) => input => functions.reduce( (acc, fn) => fn(acc), input ) // composed functions for multiplication of specific values const multiply6 = pipe(double, triple) const multiply9 = pipe(triple, triple) const multiply16 = pipe(qu
adruple, qu
adruple) const multiply24 = pipe(double, triple, qu
adrupl...
Number.MAX_SAFE_INTEGER - JavaScript
property attributes of number.max_safe_integer writable no enumerable no configurable no description the max_safe_integer constant has a value of 9007199254740991 (9,007,199,254,740,991 or ~9 qu
adrillion).
Number.MIN_SAFE_INTEGER - JavaScript
property attributes of number.min_safe_integer writable no enumerable no configurable no description the min_safe_integer constant has a value of -9007199254740991 (-9,007,199,254,740,991 or about -9 qu
adrillion).
<menclose> - MathML
a2 + b2 strikeout line through contents from lower left to upper right downdiagonalstrike a2 + b2 strikeout line through contents from upper left to lower right verticalstrike a2 + b2 vertical strikeout line through contents horizontalstrike a2 + b2 horizontal strikeout line through contents m
adruwb a2 + b2 arabic factorial symbol updiagonalarrow a2 + b2 diagonal arrow phasorangle a2 + b2 phasor angle examples <math> <menclose notation="circle box"> <mi> x </mi> <mo> + </mo> <mi> y </mi> </menclose> </math> specifications specification status comment mat...
Examples - MathML
deriving the qu
adratic formula outlines the derivation of the qu
adratic formula.
MathML documentation index - MathML
4 mathml: deriving the qu
adratic formula beginner, education, example, guide, html5, mathml, needsbeginnerupdate this page outlines the derivation of the qu
adratic formula.
Web audio codec guide - Web media technologies
vorbis vorbis is an open format from the xiph.org foundation which supports a wide range of channel combinations, including monaural, stereo, polyphonic, qu
adraphonic, 5.1 surround, ambisonic, or up to 255 discrete audio channels.