Search completed in 0.89 seconds.
nsITaggingService
toolkit/components/places/public/nsi
taggingservice.idlscriptable provides methods to
tag/un
tag a uri, to retrieve uris for a given
tag, and to retrieve all
tags for a uri.
... 1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) implemented by: @mozilla.org/browser/
tagging-service;1.
... to use this service, use: var
taggingsvc = components.classes["@mozilla.org/browser/
tagging-service;1"] .getservice(components.interfaces.nsi
taggingservice); method overview void
taguri(in nsiuri auri, in nsivariant a
tags); void un
taguri(in nsiuri auri, in nsivariant a
tags); nsivariant geturisfor
tag(in astring a
tag); nsivariant get
tagsforuri(in nsiuri auri, [optional] out unsigned long length, [retval, array, size_is(length)] out wstring a
tags); attributes attribute type description all
tags nsivariant retrieves all
tags used to
tag uris in the data-base (sorted by name).
...And 19 more matches
ETag - HTTP
the e
tag http response header is an identifier for a specific version of a resource.
...additionally, e
tags help prevent simultaneous updates of a resource from overwriting each other ("mid-air collisions").
... if the resource at a given url changes, a new e
tag value must be generated.
...And 12 more matches
Document.getElementsByTagName() - Web APIs
the getelementsby
tagname method of document interface returns an htmlcollection of elements with the given
tag name.
...the returned htmlcollection is live, meaning that it updates itself automatically to stay in sync with the dom tree without having to call document.getelementsby
tagname() again.
... syntax var elements = document.getelementsby
tagname(name); elements is a live htmlcollection (but see the note below) of found elements in the order they appear in the tree.
...And 8 more matches
Element.getElementsByTagName() - Web APIs
the element.getelementsby
tagname() method returns a live htmlcollection of elements with the given
tag name.
...therefore, there is no need to call element.getelementsby
tagname() with the same element and arguments repeatedly if the dom changes in between calls.
... when called on an html element in an html document, getelementsby
tagname lower-cases the argument before searching for it.
...And 8 more matches
Element.tagName - Web APIs
the
tagname read-only property of the element interface returns the
tag name of the element on which it's called.
... for example, if the element is an <img>, its
tagname property is "img" (for html documents; it may be cased differently for xml/xhtml documents).
... syntax elementname = element.
tagname; value a string indicating the element's
tag name.
...And 7 more matches
Using the Places tagging service
the
tagging service, offered by the nsi
taggingservice interface, provides methods to
tag and un
tag a uri, to retrieve uris for a given
tag, and to retrieve all
tags for a uri.
... initiating the
tagging service before using the
tagging service, you need to obtain a reference to an instance of it: var
taggingsvc = components.classes["@mozilla.org/browser/
tagging-service;1"] .getservice(components.interfaces.nsi
taggingservice);
tagging a uri the nsi
taggingservice.
taguri() method
tags a url with the given set of
tags.
... current
tags set for the url persist, and
tags which are already set for the given url are ignored.
...And 6 more matches
Document.getElementsByTagNameNS() - Web APIs
returns a list of elements with the given
tag name belonging to the given namespace.
... syntax elements = document.getelementsby
tagnamens(namespace, name) elements is a live nodelist (but see the note below) of found elements in the order they appear in the tree.
...see the note in browser compatibility section in element.getelementsby
tagnamens for details.
...And 6 more matches
<percentage> - CSS: Cascading Style Sheets
the <percen
tage> css data type represents a percen
tage value.
...numerous properties can use percen
tages, such as width, height, margin, padding, and font-size.
...thus, even if a percen
tage value is used on the parent property, a real value (such as a width in pixels for a <length> value) will be accessible on the inherited property, not the percen
tage value.
...And 6 more matches
<frequency-percentage> - CSS: Cascading Style Sheets
the <frequency-percen
tage> css data type represents a value that can be either a <frequency> or a <percen
tage>.
... syntax the value of a <frequency-percen
tage> is either a <frequency> or a <percen
tage>; see their individual reference pages for details about their syntaxes.
... description use in calc() where a <frequency-percen
tage> is specified as an allowable type, this means that the percen
tage resolves to a frequency and therefore can be used in a calc() expression.
...And 4 more matches
<length-percentage> - CSS: Cascading Style Sheets
the <length-percen
tage> css data type represents a value that can be either a <length> or a <percen
tage>.
... syntax refer to the documentation for <length> and <percen
tage> for details of the individual syntaxes allowed by this type.
... examples length-percen
tage examples the following simple example demonstrates several properties that use <length-percen
tage> values.
...And 4 more matches
<time-percentage> - CSS: Cascading Style Sheets
the <time-percen
tage> css data type represents a value that can be either a <time> or a <percen
tage>.
... syntax refer to the documentation for <time> and <percen
tage> for details of the individual syntaxes allowed by this type.
... examples use in calc() where a <time-percen
tage> is specified as an allowable type, this means that the percen
tage resolves to a time and therefore can be used in a calc() expression.
...And 4 more matches
Creating a Release Tag - Archive of obsolete content
check out mozilla from the branch you want to
tag.
... remember to also check out extra mac and win32 files that aren't normally checked out on linux or the
tag won't build on those platforms.
...cvs
tag -b mozilla_0_9_4_1_release_mini_branch mozilla/client.mk delete the existing build scripts and repull them from the mini-branch you just created.
...And 3 more matches
Using the viewport meta tag to control layout on mobile browsers
enter viewport meta
tag however, this mechanism is not so good for pages that are optimized for narrow screens using media queries — if the virtual viewport is 980px for example, media queries that kick in at 640px or 480px or less will never be used, limiting the effectiveness of such responsive design techniques.
... to mitigate this problem, apple introduced the "viewport meta
tag" in safari ios to let web developers control the viewport's size and scale.
... many other mobile browsers now support this
tag, although it is not part of any web standard.
...And 3 more matches
Element.getElementsByTagNameNS() - Web APIs
the element.getelementsby
tagnamens() method returns a live htmlcollection of elements with the given
tag name belonging to the given namespace.
... it is similar to document.getelementsby
tagnamens, except that its search is restricted to descendants of the specified element.
... syntax elements = element.getelementsby
tagnamens(namespaceuri, localname) elements is a live htmlcollection of found elements in the order they appear in the tree.
...And 3 more matches
VRStageParameters - Web APIs
the vrs
tageparameters interface of the webvr api represents the values describing the the s
tage area for devices that support room-scale experiences.
... this interface is accessible through the vrdisplay.s
tageparameters property.
... properties vrs
tageparameters.sittingtostandingtransform read only contains a matrix that transforms the sitting-space view matrices of vrframedata to standing-space.
...And 3 more matches
<angle-percentage> - CSS: Cascading Style Sheets
the <angle-percen
tage> css data type represents a value that can be either a <angle> or a <percen
tage>.
... syntax refer to the documentation for <angle> and <percen
tage> for details of the individual syntaxes allowed by this type.
... use in calc() where an <angle-percen
tage> is specified as an allowable type, this means that the percen
tage resolves to an angle and therefore can be used in a calc() expression.
...And 3 more matches
Notification.tag - Web APIs
the
tag read-only property of the notification interface signifies an identifying
tag for the notification, as specified in the
tag option of the notification() constructor.
... the idea of notification
tags is that more than one notification can share the same
tag, linking them together.
... syntax var
tag = notification.
tag; value a domstring.
...And 2 more matches
Symbol.toStringTag - JavaScript
the symbol.tostring
tag well-known symbol is a string valued property that is used in the creation of the default string description of an object.
... property attributes of symbol.tostring
tag writable no enumerable no configurable no examples default
tags object.prototype.tostring.call('foo'); // "[object string]" object.prototype.tostring.call([1, 2]); // "[object array]" object.prototype.tostring.call(3); // "[object number]" object.prototype.tostring.call(true); // "[object boolean]" object.prototype.tostring.call(undefined); /...
...and more built-in tostring
tag symbols object.prototype.tostring.call(new map()); // "[object map]" object.prototype.tostring.call(function* () {}); // "[object generatorfunction]" object.prototype.tostring.call(promise.resolve()); // "[object promise]" // ...
...And 2 more matches
core/heritage - Archive of obsolete content
class module exports class utility function for making constructor functions with a proper prototype chain setup in declarative manner: var { class } = require('sdk/core/heri
tage'); var dog = class({ initialize: function initialize(name) { this.name = name; }, type: 'dog', bark: function bark() { return 'ruff!
... var { extend } = require('sdk/core/heri
tage'); var base = { a: 1 }; var derived = extend(base, { b: 2 }); derived.a // => 1 derived.b // => 2 base.isprototypeof(derived) // => true mix module exports mix utility function that is useful for mixing properties of multiple objects into a single one.
... var { mix } = require('sdk/core/heri
tage'); var object = mix({ a: 1, b: 1 }, { b: 2 }, { c: 3 }); json.stringify(object) // => { "a": 1, "b": 2, "c": 3 } obscure module exports obscure utility function that is useful for defining non-enumerable properties.
... function takes an object and returns a new one in return that inherits from the same object as given one and implements all own properties of given object but as non-enumerable ones: var { obscure } = require('api-utils/heri
tage'); var object = mix({ a: 1 }, obscure({ b: 2 })); object.getownpropertynames(foo); // => [ 'a' ] ...
SyncEvent.tag - Web APIs
the syncevent.
tag read-only property of the syncevent interface returns the developer-defined identifier for this syncevent.
... this is the value passed in the
tag parameter of the syncevent() constructor.
... syntax var
tag = syncevent.
tag value the developer-defined identifier for this syncevent.
... specifications specification status comment web background synchronizationthe definition of '
tag' in that specification.
tag - Archive of obsolete content
« xul reference
tag type:
tag name this may be set to a
tag name.
... if set, the conditions will only match if the template builder is parsing content for an element directly inside this
tag.
... for example, by using a value of treechildren, the condition will only match when placing elements directly inside a treechildren
tag.
UDP (User Datagram Protocol) - MDN Web Docs Glossary: Definitions of Web-related terms
udp (user da
tagram protocol) is a long standing protocol used together with ip for sending data when transmission speed and efficiency matter more than security and reliability.
...udp provides checksums for data integrity, and port numbers for addressing different functions at the source and destination of the da
tagram.
... general knowledge user da
tagram protocol on wikipedia technical reference specification ...
ATAG - MDN Web Docs Glossary: Definitions of Web-related terms
a
tag (authoring tool accessibility guidelines) is a w3c recommendation for building accessible-authoring tools that produce accessible contents.
... learn more general knowledge a
tag as part of the web accessibility initiative on wikipedia technical reference authoring tool accessibility guidelines (a
tag) overview the a
tag 2.0 recommendation ...
SyncManager.getTags() - Web APIs
the syncmanager.get
tags method of the syncmanager interface returns a list of developer-defined identifiers for syncmanager registrations.
... syntax syncmanager.get
tags().then(function(
tags[]) { ...
Map.prototype[@@toStringTag] - JavaScript
the map[@@tostring
tag] property has an initial value of "map".
... property attributes of map.prototype[@@tostring
tag] writable no enumerable no configurable yes syntax map[symbol.tostring
tag] examples using tostring
tag object.prototype.tostring.call(new map()) // "[object map]" specifications specification ecmascript (ecma-262)the definition of 'map.prototype[@@tostring
tag]' in that specification.
x - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0% animatable yes fecolormatrix for <fecolormatrix>, x defines the minimum x coordinate for the rendering area of the primitive.
... value <length> | <percen
tage> default value 0% animatable yes fecomponenttransfer for <fecomponenttransfer>, x defines the minimum x coordinate for the rendering area of the primitive.
... value <length> | <percen
tage> default value 0% animatable yes fecomposite for <fecomposite>, x defines the minimum x coordinate for the rendering area of the primitive.
...And 29 more matches
y - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0% animatable yes fecolormatrix for <fecolormatrix>, y defines the minimum y coordinate for the rendering area of the primitive.
... value <length> | <percen
tage> default value 0% animatable yes fecomponenttransfer for <fecomponenttransfer>, y defines the minimum y coordinate for the rendering area of the primitive.
... value <length> | <percen
tage> default value 0% animatable yes fecomposite for <fecomposite>, y defines the minimum y coordinate for the rendering area of the primitive.
...And 29 more matches
Index - Web APIs
found 5328 pages: # page
tags and summary 1 web apis api, dom, landing, reference, web when writing code for the web, there are a large number of web apis available.
...</canvas>
tags can be used as a fallback for browsers which don't support canvas rendering.
... 882 document.createelement() api, dom, document, method, reference, createelement in an html document, the document.createelement() method creates the html element specified by
tagname, or an htmlunknownelement if
tagname isn't recognized.
...And 25 more matches
cross-fade() - CSS: Cascading Style Sheets
specification syntax the cross-fade() function takes a list of images with a percen
tage defining how much of each image is retained in terms of opacity when it is blended with the other images.
... cross-fade percen
tages think of the percen
tage as an opacity value for each image.
...de( url(white.png) 25%, url(black.png) 75%); /* 25% white, 75% black */ cross-fade( url(white.png) 50%, url(black.png) 50%); /* 50% white, 50% black */ cross-fade( url(white.png) 75%, url(black.png) 25%); /* 75% white, 25% black */ cross-fade( url(white.png) 100%, url(black.png) 0%); /* fully white */ cross-fade( url(green.png) 75%, url(red.png) 75%); /* both green and red at 75% */ if any percen
tages are omitted, all the specified percen
tages are summed together and subtracted from 100%.
...And 25 more matches
Appendix D: Loading Scripts - Archive of obsolete content
each of these means has its own advan
tages and disadvan
tages, as well as its own quirks which may trap the unwary.
... below is an overview of the more common means of loading scripts, along with some of their primary advan
tages, disadvan
tages, quirks, and use cases.
... <script>
tags xul script
tags are traditionally the primary means of loading scripts for extension developers.
...And 22 more matches
Python binding for NSS
all prior cvs information (including release
tags) were imported into the new mercurial repositories, as such there is no need to utilize the deprecated cvs repositories, use mercurial instead.
... to check out python-nss source code from mercurial do this: hg clone https://hg.mozilla.org/projects/python-nss the scm
tags for various python-nss releases can be found in the release information.
... release information release 1.0.1 release date 2017-02-28 scm
tag pynss_release_1_0_1 source download https://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/pynss_release_1_0_1/src/ change log add tls 1.3 cipher suites ssl_cipher_info.py now attempts to enable tls 1.3 fix build issue in setup.py.
...And 22 more matches
Index - Archive of obsolete content
found 3833 pages: # page
tags and summary 1 archive of obsolete content archive, landing here at mdn, we try to avoid outright deleting content that might be useful to people targeting legacy platforms, operating systems, and browsers.
... 78 core/heri
tage helper functions for inheritance.
...these type of extensions have many advan
tages for both users and developers compared to the old xpinstall/-style extensions.
...And 21 more matches
nss tech note1
it is made of two parts : the lower byte, which can contain asn.1
tags, and the upper 3 bytes, which can contain decoder modifiers.
... if only an asn.1
tag is specified without a modifier, then the decoder will enforce the presence of a component of that type, and fail if it does not match.
... if kind is an asn.1 sequence
tag (sec_asn1_sequence), then you must specify additional templates in a null-terminated array to define the content of the of the asn.1 sequence.
...And 21 more matches
height - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 100% animatable yes fecolormatrix for <fecolormatrix>, height defines the vertical length for the rendering area of the primitive.
... value <length> | <percen
tage> default value 100% animatable yes fecomponenttransfer for <fecomponenttransfer>, height defines the vertical length for the rendering area of the primitive.
... value <length> | <percen
tage> default value 100% animatable yes fecomposite for <fecomposite>, height defines the vertical length for the rendering area of the primitive.
...And 21 more matches
width - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 100% animatable yes fecolormatrix for <fecolormatrix>, width defines the horizontal length for the rendering area of the primitive.
... value <length> | <percen
tage> default value 100% animatable yes fecomponenttransfer for <fecomponenttransfer>, width defines the horizontal length for the rendering area of the primitive.
... value <length> | <percen
tage> default value 100% animatable yes fecomposite for <fecomposite>, width defines the horizontal length for the rendering area of the primitive.
...And 21 more matches
An Interview With Douglas Bowman of Wired News - Archive of obsolete content
as i was designing the product, i began discovering a broader set of web standards, and was quickly swayed by the advan
tages i could see if we were to adopt them.
...the sheer amount [sic] of redundant <font>
tags inside every cell was probably enough to double file size.
... by eliminating tables that were strictly used for layout, we significantly cut back on the amount of markup and useless
tags in our html, and gained a structure that is much easier to maintain.
...And 17 more matches
Elements - Archive of obsolete content
a binding element may contain a resources
tag, a content
tag, a implementation
tag and a handlers
tag.
... display - this attribute specifies how the
tag is displayed.
...not all
tags have a unique display type.
...And 17 more matches
Browser Detection and Cross Browser Support - Archive of obsolete content
if you fail to take advan
tage of the coming change in browsers, your competitors will eat your lunch.
...use the noscript
tag to provide these users with alternative unscripted versions of your pages or to at least notify them of the need to use scripting in order to view your content properly.
...you can do this by providing an error message for users of older browsers as well as alternative content contained in noscript
tags.
...And 17 more matches
Index
found 353 pages: # page
tags and summary 1 network security services jss, nss, needsmigration network security services (nss) is a set of libraries designed to support cross-platform development of security-enabled client and server applications.
...over the time nss has received three different asn.1 parser implementations, each having their own specific properties, advan
tages and disadvan
tages, which is why all of them are still being used (nobody has yet dared to replace the older with the newer ones because of risks for side effects).
... /* nspr headers */ #include <prprf.h> #include <prtypes.h> #include <plgetopt.h> #include <prio.h> #include <prprf.h> /* nss headers */ #include <secoid.h> #include <secmodt.h> #include <sechash.h> typedef struct { const char *hashname; secoid
tag oid; } name
tagpair; /* the hash algorithms supported */ static const name
tagpair hash_names[] = { { "md2", sec_oid_md2 }, { "md5", sec_oid_md5 }, { "sha1", sec_oid_sha1 }, { "sha256", sec_oid_sha256 }, { "sha384", sec_oid_sha384 }, { "sha512", sec_oid_sha512 } }; /* maps a hash name to a secoid
tag.
...And 17 more matches
nsIHTMLEditor
perty, in astring aattribute, in astring avalue); void addinsertionlistener(in nsicontentfilter infilter); void align(in astring aalign); boolean breakisvisible(in nsidomnode anode); boolean candrag(in nsidomevent aevent); void checkselectionstateforanonymousbuttons(in nsiselection aselection); nsidomelement createanonymouselement(in astring a
tag, in nsidomnode aparentnode, in astring aanonclass, in boolean aiscreatedhidden); nsidomelement createelementwithdefaults(in astring a
tagname); void decreasefontsize(); void dodrag(in nsidomevent aevent); void getalignment(out boolean amixed, out short aalign); astring getbackgroundcolorstate(out boolean amixed); nsidomelement getelementorparen...
...tby
tagname(in astring a
tagname, in nsidomnode anode); astring getfontcolorstate(out boolean amixed); astring getfontfacestate(out boolean amixed); astring getheadcontentsashtml(); astring gethighlightcolorstate(out boolean amixed); void getindentstate(out boolean acanindent, out boolean acanoutdent); void getinlineproperty(in nsiatom aproperty, in astring aattribute, in astring avalue, out boolean afirst, out boolean aany, out boolean aall); astring getinlinepropertywithattrvalue(in nsiatom aproperty, in astring aattribute, in astring avalue, out boolean afirst, out boolean aany, out boolean aall); nsisupportsarray getlinkedobjects(); void getlistitemstate(out boolean amixed, out boolean ali, out boolean adt, out...
... boolean add); void getliststate(out boolean amixed, out boolean aol, out boolean aul, out boolean adl); astring getparagraphstate(out boolean amixed); nsidomelement getselectedelement(in astring a
tagname); nsidomelement getselectioncontainer(); void ignorespuriousdragevent(in boolean aignorespuriousdragevent); void increasefontsize(); void indent(in astring aindent); void insertelementatselection(in nsidomelement aelement, in boolean adeleteselection); void insertfromdrop(in nsidomevent aevent); void inserthtml(in astring ainputstring); void inserthtmlwithcontext(in astring ainputstring, in astring acontextstr, in astring ainfostr, in astring aflavor, in nsidomdocument asourcedoc, in nsidomnode...
...And 17 more matches
Web Video Text Tracks Format (WebVTT) - Web APIs
it is also recommended that you use the greater-than escape sequence (>) instead of the greater-than character (>) to avoid confusion with
tags.
... or value can be a percen
tage.
... value is a percen
tage.
...And 16 more matches
background-position - CSS: Cascading Style Sheets
syntax /* keyword values */ background-position: top; background-position: bottom; background-position: left; background-position: right; background-position: center; /* <percen
tage> values */ background-position: 25% 75%; /* <length> values */ background-position: 0 0; background-position: 1cm 2cm; background-position: 10ch 8em; /* multiple images */ background-position: 0 0, center; /* edge offsets values */ background-position: bottom 10px right 20px; background-position: right 3em bottom 10px; background-position: bottom 10px right; background-position: top right 10p...
...if three or four values are used, the length-percen
tage values are offsets for the preceding keyword value(s).
... a <length> or <percen
tage>.
...And 16 more matches
Getting started with HTML - Learn web development
the enclosing
tags can make content into a hyperlink to connect to another page, italicize words, and so on.
... for example, consider the following line of text: my cat is very grumpy if we wanted the text to stand by itself, we could specify that it is a paragraph by enclosing it in a paragraph (<p>) element: <p>my cat is very grumpy</p> note:
tags in html are case-insensitive.
...for example, a <title>
tag could be written as <title>, <title>, <title>, <title>, etc., and it will work.
...And 15 more matches
background - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednopercen
tagesas each of the properties of the shorthand:background-position: refer to the size of the background positioning area minus size of background image; size refers to the width for horizontal offsets and to the height for vertical offsetsbackground-size: relative to the background positioning areacomputed valueas each of the properties of the shorthand:background-image: as specified, but with <url>...
... values made absolutebackground-position: a list, each item consisting of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percen
tagebackground-size: as specified, but with relative lengths converted into absolute lengthsbackground-repeat: a list, each item consisting of two keywords, one per dimensionbackground-origin: as specifiedbackground-clip: as specifiedbackground-attachment: as specifiedbackground-color: computed coloranimation typeas each of the properties of the shorthand:background-color: a colorbackground-image: discretebackground-clip: discretebackground-position: repeatable list of simple list of length, percen
tage, or calcbackground-size: repeatable list of simple list of length, percen...
...
tage, or calcbackground-repeat: discretebackground-attachment: discrete formal syntax [ <bg-layer> , ]* <final-bg-layer>where <bg-layer> = <bg-image> | <bg-position> [ / <bg-size> ]?
...And 15 more matches
HTML parser threading
tree ops from the queue in the tree builder are moved to a tree op s
tage (nshtml5treeops
tage).
... the s
taging queue is protected by a mutex.
...it's more efficient to obtain a mutex only every once in a while when a whole bunch of tree ops is moved to or from the s
taging queue.
...And 14 more matches
Template literals (Template strings) - JavaScript
syntax `string text` `string text line 1 string text line 2` `string text ${expression} string text`
tag`string text ${expression} string text` description template literals are enclosed by the backtick (` `) (grave accent) character instead of double or single quotes.
...if there is an expression preceding the template literal (
tag here), this is called a
tagged template.
... in that case, the
tag expression (usually a function) gets called with the template literal, which you can then manipulate before outputting.
...And 14 more matches
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
example: creating an html table dynamically (sample1.html) html <input type="button" value="generate a table." onclick="generate_table()"> javascript function generate_table() { // get the reference for the body var body = document.getelementsby
tagname("body")[0]; // creates a <table> element and a <tbody> element var tbl = document.createelement("table"); var tblbody = document.createelement("tbody"); // creating all cells for (var i = 0; i < 2; i++) { // creates a table row var row = document.createelement("tr"); for (var j = 0; j < 2; j++) { // create a <td> element and a text node, make the text // n...
... example: setting the background color of a paragraph getelementsby
tagname(
tagnamevalue) is a method available in any dom element or the root document element.
... when called, it returns an array with all of the element's descendants matching the
tag name.
...And 13 more matches
shape-outside - CSS: Cascading Style Sheets
the list values interpolate as <length>, <percen
tage>, or calc() where possible.
...pecified for <basic-shape>, otherwise no formal syntax none | <shape-box> | <basic-shape> | <image>where <shape-box> = <box> | margin-box<basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()><image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <box> = border-box | padding-box | content-box<inset()> = inset( <length-percen
tage>{1,4} [ round <'border-radius'> ]?
..., [ <length-percen
tage> <length-percen
tage> ]# )<path()> = path( [ <fill-rule>, ]?
...And 13 more matches
jspage - Archive of obsolete content
ype=(browser.engine.webkit)?window["[[domelement.prototype]]"]:{}; }a.document.window=a;return $extend(a,window.prototype);},afterimplement:function(b,a){window[b]=window.prototype[b]=a;}});window.prototype={$family:{name:"window"}}; new window(window);var document=new native({name:"document",legacy:(browser.engine.trident)?null:window.document,initialize:function(a){$uid(a);a.head=a.getelementsby
tagname("head")[0]; a.html=a.getelementsby
tagname("html")[0];if(browser.engine.trident&&browser.engine.version<=4){$try(function(){a.execcommand("backgroundimagecache",false,true); });}if(browser.engine.trident){a.window.attachevent("onunload",function(){a.window.detachevent("onunload",arguments.callee);a.head=a.html=a.window=null; });}return $extend(a,document.prototype);},afterimplement:function(b,...
...cked"){delete b[c];}});a="<"+a+">";}return document.id(this.createelement(a)).set(b);},newtextnode:function(a){return this.createtextnode(a); },getdocument:function(){return this;},getwindow:function(){return this.window;},id:(function(){var a={string:function(d,c,b){d=b.getelementbyid(d);return(d)?a.element(d,c):null; },element:function(b,e){$uid(b);if(!e&&!b.$family&&!(/^object|embed$/i).test(b.
tagname)){var c=element.prototype;for(var d in c){b[d]=c[d];}}return b;},object:function(c,d,b){if(c.toelement){return a.element(c.toelement(b),d); }return null;}};a.textnode=a.whitespace=a.window=a.document=$arguments(0);return function(c,e,d){if(c&&c.$family&&c.uid){return c;}var b=$type(c);return(a[b])?a[b](c,e,d||document):null; };})()});if(window.$==null){window.implement({$:function(a,b){return...
...ase"string":f.extend(this.document.getelements(e,true)); }}return new elements(f);},getdocument:function(){return this.document;},getwindow:function(){return this;}});native.implement([element,document],{getelement:function(a,b){return document.id(this.getelements(a,true)[0]||null,b); },getelements:function(a,d){a=a.split(",");var c=[];var b=(a.length>1);a.each(function(e){var f=this.getelementsby
tagname(e.trim());(b)?c.extend(f):c=f; },this);return new elements(c,{ddup:b,cash:!d});}});(function(){var h={},f={};var i={input:"checked",option:"selected",textarea:(browser.engine.webkit&&browser.engine.version<420)?"innerhtml":"value"}; var c=function(l){return(f[l]||(f[l]={}));};var g=function(n,l){if(!n){return;}var m=n.uid;if(browser.engine.trident){if(n.clearattributes){var q=l&&n.clonenode(f...
...And 12 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
while document.getelementbyid lets you retrieve one element, you can also use document.layers and document.all to obtain a list of all document elements with a certain
tag name, such as all <div> elements.
... the w3c dom level 1 method gets references to all elements with the same
tag name through getelementsby
tagname().
...to get an array of all elements in the dom tree, you can use getelementsby
tagname("*").
...And 12 more matches
Adding HTML Elements - Archive of obsolete content
remember that xml is case-sensitive though, so you'll have to enter the
tags and attributes in lowercase.
...this way, mozilla can distinguish the html
tags from the xul ones.
... the attribute below should be added to the window
tag of the xul file, or to the outermost html element.
...And 12 more matches
TypeScript support in Svelte - Learn web development
finally we will go over our app and see what modifications we have to make to fully take advan
tage of typescript features.
... typescript's main advan
tages are: early spotted bugs: the compiler checks types at compile time and provides error reporting.
... type inference: enables you to take advan
tage of many typescript features even without declaring variable types.
...And 12 more matches
mask - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:mask-image: nonemask-mode: match-sourcemask-repeat: no-repeatmask-position: centermask-clip: border-boxmask-origin: border-boxmask-size: automask-composite: addapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercen
tagesas each of the properties of the shorthand:mask-position: refer to size of mask painting area minus size of mask layer image (see the text for background-position)computed valueas each of the properties of the shorthand:mask-image: as specified, but with <url> values made absolutemask-mode: as specifiedmask-repeat: consists of two keywords, one per dimensionmask-position: consists of two keyword...
...s representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percen
tage.mask-clip: as specifiedmask-origin: as specifiedmask-size: as specified, but with relative lengths converted into absolute lengthsmask-composite: as specifiedanimation typeas each of the properties of the shorthand:mask-image: discretemask-mode: discretemask-repeat: discretemask-position: repeatable list of simple list of length, percen
tage, or calcmask-clip: discretemask-origin: discretemask-size: repeatable list of simple list of length, percen
tage, or calcmask-composite: discretecreates stacking contextyes formal syntax <mask-layer>#where <mask-layer> = <mask-reference> | <position> [ / <bg-size> ]?
... | <repeat-style> | <geometry-box> | [ <geometry-box> | no-clip ] | <compositing-operator> | <masking-mode>where <mask-reference> = none | <image> | <mask-source><position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
...And 12 more matches
Custom XUL Elements with XBL - Archive of obsolete content
if you look at file bindingdialog.xul, you'll see that the css stylesheet is included, which means that the xshelloperson
tag can now be used just like any xul
tag.
...}, this is where the advan
tage of xbl is obvious: we only need to create a single node and set some attributes.
... content under the content
tag you define the xul content that will be displayed for your element.
...And 11 more matches
HTML documentation index - HTML: Hypertext Markup Language
found 237 pages: # page
tags and summary 1 html: hypertext markup language html, html5, landing, web, l10n:priority html (hypertext markup language) is the most basic building block of the web.
...the attribute contains a single “language
tag” in the format defined in
tags for identifying languages (bcp47).
... 54 html elements reference basic, element, html, reference, web, l10n:priority this page lists all the html elements, which are created using
tags.
...And 11 more matches
HTTP conditional requests - HTTP
an opaque string, uniquely identifying each version, called the entity
tag, or the e
tag.
...both last-modified and e
tag allow both types of validation, though the complexity to implement it on the server side may vary.
...often this is done using an e
tag with the md5 hash of the resource (or a derivative).
...And 11 more matches
CSS values and units - Learn web development
numbers, lengths, and percen
tages there are various numeric data types that you might find yourself using in css.
... <percen
tage> a <percen
tage> represents a fraction of some other value, for example 50%.
... percen
tage values are always relative to another quantity, for example an element's length is relative to its parent element's length.
...And 10 more matches
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
e) { pr_close(file); } return rv; } /* * generate the private key */ seckeyprivatekey * generateprivatekey(keytype keytype, pk11slotinfo *slot, int size, int publicexponent, const char *noise, seckeypublickey **pubkeyp, const char *pqgfile, secupwdata *pwdata) { ck_mechanism_type mechanism; secoid
tag alg
tag; pk11rsagenparams rsaparams; void *params; seckeyprivatekey *privkey = null; secstatus rv; unsigned char randbuf[blocksize + 1]; rv = generaterandom(randbuf, blocksize); if (rv != secsuccess) { fprintf(stderr, "error while generating the random numbers : %s\n", port_errortostring(rv)); ...
... goto cleanup; } pk11_randomupdate(randbuf, blocksize); switch (keytype) { case rsakey: rsaparams.keysizeinbits = size; rsaparams.pe = publicexponent; mechanism = ckm_rsa_pkcs_key_pair_gen; alg
tag = sec_oid_pkcs1_md5_with_rsa_encryption; params = &rsaparams; break; default: goto cleanup; } fprintf(stderr, "\n\n"); fprintf(stderr, "generating key.
... secitem_freeitem(&reqder, pr_false); } cleanup: if (rv) { pr_fprintf(pr_stderr, "bad certificate request\n"); if (arena) { port_freearena(arena, pr_false); } certreq = null; } return certreq; } /* * sign cert */ static secitem * signcert(certcertdbhandle *handle, certcertificate *cert, prbool selfsign, secoid
tag hashalg
tag, seckeyprivatekey *privkey, char *issuernickname, void *pwarg) { secitem der; secstatus rv; secoid
tag algid; void *dummy; prarenapool *arena = null; secitem *result = null; seckeyprivatekey *caprivatekey = null; if (!selfsign) { certcertificate *issuer = pk11_findcertfromnickname(issuernickname, pwar...
...And 10 more matches
-webkit-box-reflect - CSS: Cascading Style Sheets
<image>?where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
additive-symbols - CSS: Cascading Style Sheets
formal definition related at-rule@counter-styleinitial valuen/acomputed valueas specified formal syntax [ <integer> && <symbol> ]#where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
negative - CSS: Cascading Style Sheets
formal definition related at-rule@counter-styleinitial value"-" hyphen-minuscomputed valueas specified formal syntax <symbol> <symbol>?where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
pad - CSS: Cascading Style Sheets
formal definition related at-rule@counter-styleinitial value0 ""computed valueas specified formal syntax <integer> && <symbol>where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
prefix - CSS: Cascading Style Sheets
formal definition related at-rule@counter-styleinitial value"" (the empty string)computed valueas specified formal syntax <symbol>where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
suffix - CSS: Cascading Style Sheets
" (full stop followed by a space)computed valueas specified formal syntax <symbol>where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
symbols - CSS: Cascading Style Sheets
formal definition related at-rule@counter-styleinitial valuen/acomputed valueas specified formal syntax <symbol>+where <symbol> = <string> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
background-image - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax <bg-image>#where <bg-image> = none | <image>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
border-image-source - CSS: Cascading Style Sheets
it also applies to ::first-letter.inheritednocomputed valuenone or the image with its uri made absoluteanimation typediscrete formal syntax none | <image>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
border-radius - CSS: Cascading Style Sheets
top-right-and-bottom-left | bottom-right */ border-radius: 10px 5px 2em / 20px 25px 30%; /* (first radius values) / top-left | top-right | bottom-right | bottom-left */ border-radius: 10px 5% / 20px 25em 30px 35em; /* global values */ border-radius: inherit; border-radius: initial; border-radius: unset; the border-radius property is specified as: one, two, three, or four <length> or <percen
tage> values.
... followed optionally by "/" and one, two, three, or four <length> or <percen
tage> values.
... values radius is a <length> or a <percen
tage> denoting a radius to use for the border in each corner of the border.
...And 10 more matches
content - CSS: Cascading Style Sheets
image><content-list> = [ <string> | contents | <image> | <quote> | <target> | <leader()> ]+where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient><quote> = open-quote | close-quote | no-open-quote | no-close-quote<target> = <target-counter()> | <target-counters()> | <target-text()><leader()> = leader( <leader-type> )where <image()> = image( <image-
tags>?
...)<leader-type> = dotted | solid | space | <string>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )<counter-style> = <counter-style-name> | symbols()where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
mask-border-source - CSS: Cascading Style Sheets
initial valuenoneapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax none | <image>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
mask-image - CSS: Cascading Style Sheets
ents excluding the defs element and all graphics elementsinheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax <mask-reference>#where <mask-reference> = none | <image> | <mask-source>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient><mask-source> = <url>where <image()> = image( <image-
tags>?
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percen
tage>?
...[ at <position> ]?, <angular-color-stop-list> )where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 10 more matches
HTML5 Parser - Developer guides
tokenization of left angle-bracket within a
tag given the string <foo<bar>, the new parser reads it as one
tag named foo<bar.
... this behavior is consistent with ie and opera, and is different from gecko 1.x and webkit, which read it as two
tags, foo and bar.
... if you previously tested your code in ie and opera, then you probably don't have any
tags like this.
...And 10 more matches
Trees - Archive of obsolete content
the second part, the tree body, contains the data to appear in the tree and is created with a treechildren
tag.
...this contrasts with the listbox, where individual listitem and listcell
tags are used to specify the rows in the listbox.
... an advan
tage of using a tree view is that it allows the view to store the data in a manner which is more suitable for the data, or to load the data on demand as rows are displayed.
...And 9 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
found 528 pages: # page
tags and summary 1 mdn web docs glossary: definitions of web-related terms beginner, definitions, dictionary, glossary, index, landing, terminology web technologies contain long lists of jargon and abbreviations that are used in documentation and coding.
... 9 a
tag a
tag, accessibility, authoring tool accessibility guidelines, glossary a
tag (authoring tool accessibility guidelines) is a w3c recommendation for building accessible-authoring tools that produce accessible contents.
... 103 dtls (da
tagram transport layer security) dtls, intro da
tagram transport layer security (dtls) is a protocol used to secure da
tagram-based communications.
...And 9 more matches
Sizing items in CSS - Learn web development
if you place an image on a page and do not change its height and width, either using attributes on the <img>
tag or css, it will be displayed using that intrinsic size.
... due to this problem of overflow, fixing the height of elements with lengths or percen
tages is something we need to do very carefully on the web.
... using percen
tages in many ways, percen
tages act like length units, and as we discussed in the lesson on values and units, they can often be used interchangeably with lengths.
...And 9 more matches
sample2
filedata.data); rv = secfailure; goto cleanup; } } } hextobuf(body, item, ishexdata); cleanup: if (file) { pr_close(file); } return rv; } /* * generate the private key */ seckeyprivatekey * generateprivatekey(keytype keytype, pk11slotinfo *slot, int size, int publicexponent, const char *noise, seckeypublickey **pubkeyp, const char *pqgfile, secupwdata *pwdata) { ck_mechanism_type mechanism; secoid
tag alg
tag; pk11rsagenparams rsaparams; void *params; seckeyprivatekey *privkey = null; secstatus rv; unsigned char randbuf[blocksize + 1]; rv = generaterandom(randbuf, blocksize); if (rv != secsuccess) { fprintf(stderr, "error while generating the random numbers : %s\n", port_errortostring(rv)); goto cleanup; } pk11_randomupdate(randbuf, blocksize); switch (keytype) { case rsakey: rsaparams.keysizei...
...nbits = size; rsaparams.pe = publicexponent; mechanism = ckm_rsa_pkcs_key_pair_gen; alg
tag = sec_oid_pkcs1_md5_with_rsa_encryption; params = &rsaparams; break; default: goto cleanup; } fprintf(stderr, "\n\n"); fprintf(stderr, "generating key.
...eyinfo(&signeddata, &certreq->subjectpublickeyinfo, null /* wincx */); if (reqder.data) { secitem_freeitem(&reqder, pr_false); } cleanup: if (rv) { pr_fprintf(pr_stderr, "bad certificate request\n"); if (arena) { port_freearena(arena, pr_false); } certreq = null; } return certreq; } /* * sign cert */ static secitem * signcert(certcertdbhandle *handle, certcertificate *cert, prbool selfsign, secoid
tag hashalg
tag, seckeyprivatekey *privkey, char *issuernickname, void *pwarg) { secitem der; secstatus rv; secoid
tag algid; void *dummy; prarenapool *arena = null; secitem *result = null; seckeyprivatekey *caprivatekey = null; if (!selfsign) { certcertificate *issuer = pk11_findcertfromnickname(issuernickname, pwarg); if ((certcertificate *)null == issuer) { pr_fprintf(pr_stderr, "unable to find issu...
...And 9 more matches
lang - HTML: Hypertext Markup Language
the attribute contains a single “language
tag” in the format defined in
tags for identifying languages (bcp47).
... if the attribute value is the empty string (lang=""), the language is set to unknown; if the language
tag is not valid according to bcp47, it is set to invalid.
... language
tag syntax the full bcp47 syntax is in-depth enough to mark extremely specific language dialects, but most usage is much simpler.
...And 9 more matches
Introduction to progressive web apps - Progressive web apps (PWAs)
overview: progressive web apps next this article provides an introduction to progressive web apps (pwas), discussing what they are and the advan
tages they offer over regular web apps.
... pwas are web apps developed using a number of specific technologies and standard patterns to allow them to take advan
tage of both web and native app features.
... pwas give us the ability to create web apps that can enjoy these same advan
tages.
...And 9 more matches
Menus - Archive of obsolete content
menu types a menu is created using the menupopup
tag.
... xul provides a number of
tags for creating menus.
... these
tags can be used to create menus which sit on a menubar or are attached to buttons.
...And 8 more matches
Anonymous Content - Archive of obsolete content
the content
tag is used to declare anonymous content that will be added to the scroll bar.
... all of the elements inside the content
tag will be added inside the element that the binding is bound to.
...the result of using the above binding is that the line of xul below will be expanded as follows, assuming that the scrollbar is bound to the xbl above: <scrollbar/> expands to: <scrollbar> <xul:scrollbarbutton type="decrement"/> <xul:slider flex="1"> <xul:thumb/> </xul:slider> <xul:scrollbarbutton type="increment"/> </scrollbar> the elements within the content
tag are added to the scroll bar anonymously.
...And 8 more matches
Gecko Compatibility Handbook - Archive of obsolete content
since a browser is supposed to ignore html
tags it does not recognize and render the content inside the
tags, web page authors have used the technique of combining proprietary html that will work as expected in each browser.
... gecko browsers will ignore both internet explorer and netscape navigator 4 proprietary html
tags.
... since a web page is judged not by how well it is written but by how well it displays in a browser, authors have developed many techniques which take advan
tage of idiosyncracies in particular browsers to achieve the desired effect.
...And 8 more matches
Legacy layout methods - Learn web development
cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> </div> body { width: 90%; max-width: 900px; margin: 0 auto; } div:nth-of-type(1) { width: 48%; float: left; } div:nth-of-type(2) { width: 48%; float: right; } you'll notice here that we are using percen
tages for all the widths — this is quite a good strategy, as it creates a liquid layout, one that adjusts to different screen sizes and keeps the same proportions for the column widths at smaller screen sizes.
...if we instead decided to lay out our design on a grid with columns that grow and shrink according to browser width, we would need to calculate percen
tage widths for the columns and gutters between them.
...to achieve this we can turn the reference pixel widths into percen
tages.
...And 8 more matches
Index - Learn web development
found 348 pages: # page
tags and summary 1 learn web development beginner, css, html, index, intro, landing, learn, web welcome to the mdn learning area.
...the enclosing
tags can make a word or image hyperlink to somewhere else, can italicize words, can make the font bigger or smaller, and so on.
...instead, it explains the advan
tages and disadvan
tages of three approaches that are practical for beginners.
...And 8 more matches
SVG Guidelines
when choosing whether or not to use svg it is best to understand the advan
tages and disadvan
tages of both.
... scalability, with caveats one of the primary advan
tages of svg is that as it is scaled it does not pixelate.
...it's recommended to put the attributes on the same line as their
tag names, if possible.
...And 8 more matches
Localizing XLIFF files for iOS
in the <file>
tag, add the target-language attribute with your locale code as the value (e.g., target-language="xx-xx").
... be aware that there may be many <file>
tags within one xliff document.
... each <file>
tag requires the target-language attribute with your locale code as the value (e.g., target-language="xx-xx").
...And 8 more matches
Places Developer Guide
it encompasses history, bookmarks,
tags, favicons, and annotations.
... nsinavbookmarksservice.
tagsfolder - subfolders of this folder are
tags, and their children are uris that have been
tagged with that folder's name.
...however, firefox developers can take advan
tage of several helper apis that are browser-specific: fuel - a collection of wrapper apis for easing access to a number of firefox utilities and services nsiplacestransactionsservice - a firefox service for modifying bookmarks in a transactional manner, providing facilities for undo/redo places utilities for javascript - accessors and helper functions for firefox and extensions creating bookmarks, folders and other items creating a bookmark // create an nsiuri for the url to be bookmarked.
...And 8 more matches
filter - CSS: Cascading Style Sheets
the parameter is specified as a css length, but does not accept percen
tage values.
... specifiedanimation typea filter function list formal syntax none | <filter-function-list>where <filter-function-list> = [ <filter-function> | <url> ]+where <filter-function> = <blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>where <blur()> = blur( <length> )<brightness()> = brightness( <number-percen
tage> )<contrast()> = contrast( [ <number-percen
tage> ] )<drop-shadow()> = drop-shadow( <length>{2,3} <color>?
... )<grayscale()> = grayscale( <number-percen
tage> )<hue-rotate()> = hue-rotate( <angle> )<invert()> = invert( <number-percen
tage> )<opacity()> = opacity( [ <number-percen
tage> ] )<saturate()> = saturate( <number-percen
tage> )<sepia()> = sepia( <number-percen
tage> )where <number-percen
tage> = <number> | <percen
tage><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...And 8 more matches
image() - CSS: Cascading Style Sheets
syntax image( <image-
tags>?
...)where <image-
tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...And 8 more matches
Space Manager Detailed Design - Archive of obsolete content
* * the region is
tagged with a frame * * @param aframe the frame used to identify the region.
... must not be null * @param aunavailablespace the bounding rect of the unavailable space * @return ns_ok if successful * ns_error_failure if there is already a region
tagged with aframe */ nsresult addrectregion(nsiframe* aframe, const nsrect& aunavailablespace); /** * resize the rectangular region associated with aframe by the specified * deltas.
...you specify whether the width change applies to the left or right edge * * returns ns_ok if successful, ns_error_invalid_arg if there is no region *
tagged with aframe */ enum affectededge {leftedge, rightedge}; nsresult resizerectregion(nsiframe* aframe, nscoord adeltawidth, nscoord adeltaheight, affectededge aedge = rightedge); /** * offset the region associated with aframe by the specified amount.
...And 7 more matches
Debugging HTML - Learn web development
let's look at an example: <a href="https://www.mozilla.org/>link to mozilla homepage</a> </ul> let's review the problems: the paragraph and list item elements have no closing
tags.
... the first <strong> element has no closing
tag.
... in the dom inspector, you can see what the rendered markup looks like: using the dom inspector, let's explore our code in detail to see how the browser has tried to fix our html errors (we did the review in firefox; other modern browsers should give the same result): the paragraphs and list items have been given closing
tags.
...And 7 more matches
-webkit-border-before - CSS: Cascading Style Sheets
horthand:border-width: as each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: nonecolor: varies from one browser to anotherapplies toall elementsinheritedyespercen
tagesas each of the properties of the shorthand:-webkit-border-before-width: logical-width of containing blockcomputed valueas each of the properties of the shorthand:border-width: as each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-righ...
...the transparent keyword maps to rgba(0,0,0,0).animation typediscrete formal syntax <'border-width'> | <'border-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...And 7 more matches
backdrop-filter - CSS: Cascading Style Sheets
specifiedanimation typea filter function list formal syntax none | <filter-function-list>where <filter-function-list> = [ <filter-function> | <url> ]+where <filter-function> = <blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>where <blur()> = blur( <length> )<brightness()> = brightness( <number-percen
tage> )<contrast()> = contrast( [ <number-percen
tage> ] )<drop-shadow()> = drop-shadow( <length>{2,3} <color>?
... )<grayscale()> = grayscale( <number-percen
tage> )<hue-rotate()> = hue-rotate( <angle> )<invert()> = invert( <number-percen
tage> )<opacity()> = opacity( [ <number-percen
tage> ] )<saturate()> = saturate( <number-percen
tage> )<sepia()> = sepia( <number-percen
tage> )where <number-percen
tage> = <number> | <percen
tage><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...And 7 more matches
HTTP Index - HTTP
this page lists all mdn http pages along with their summary and
tags.
... found 277 pages: # page
tags and summary 1 http http, hypertext, reference, tcp/ip, web, web development, l10n:priority hypertext transfer protocol (http) is an application-layer protocol for transmitting hypermedia documents, such as html.
... 39 http index http, index this page lists all mdn http pages along with their summary and
tags.
...And 7 more matches
Enhanced Extension Installation - Archive of obsolete content
it locates the s
taged copy of the xpi file, extracts its contents (logging file additions as it goes into {guid}/uninstall/uninstall), loads the install manifest file and copies all metadata into the appropriate datasource.
... datasource structure since there is now only a single rdf/xml datasource for storage of all installed items, the s
taggered datasource structure used by firefox 1.0 and the use of an internal composite datasource is no longer required.
... tracking item type we still track the item type at this s
tage by looking at containment.
...And 6 more matches
Building accessible custom components in XUL - Archive of obsolete content
a super-simple spreadsheet download s
tage-1.zip install s
tage-1.xpi to build our xul spreadsheet, we'll use three built-in xul controls: a single grid element to contain the other elements and position them in rows and columns.
...l { border-bottom: 1px solid black; border-left: 1px solid black; margin: 0; padding: 3px; } grid.spreadsheet description { color: black; background-color: white; margin: 0px; padding: 2px; border-left: thin solid; border-bottom: thin solid; font-family: monospace; font-size: 12pt; text-align: center; font-weight: bold; } </code> you can see the results by installing s
tage-1.xpi, restarting firefox, and selecting accjax from the tools menu.
...further reading grid element reference description element reference label element reference grid tutorial label tutorial adding roles with dhtml accessibility download s
tage-2.zip install s
tage-2.xpi using the new dhtml accessibility techniques in firefox 1.5, we can declare the role of each element in our spreadsheet.
...And 6 more matches
-moz-border-bottom-colors - Archive of obsolete content
formal syntax <color>+ | nonewhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-moz-border-left-colors - Archive of obsolete content
formal syntax <color>+ | nonewhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-moz-border-right-colors - Archive of obsolete content
formal syntax <color>+ | nonewhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-moz-border-top-colors - Archive of obsolete content
formal syntax <color>+ | nonewhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-3dlight-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-arrow-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-base-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-darkshadow-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-face-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-highlight-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-shadow-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-ms-scrollbar-track-color - Archive of obsolete content
formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
it’s clear to see that with just a few lines of code, we can easily take advan
tage of sql data stores in javascript.
...however, taking advan
tage of frameworks such as aptana jaxer (spidermonkey) and helma (rhino) can reveal even greater rewards as a great deal of work has already been done for you.
... as stated earlier, aptana jaxer is built using the mozilla browser engine engine that powers mozilla firefox, which includes spidermonkey as its javascript interpreter, but lots more features beyond ssjs alone such as dom, db, file io, css, server sessions, e4x, etc...] this is a great advan
tage to the developer as it presents a consistent server-side and client-side development environment for both browser and server contexts that is centered on open source and web standards.
...And 6 more matches
Responsive design - Learn web development
flexible floated layouts were achieved by giving each element a percen
tage width, and ensuring that across the layout the totals were not more than 100%.
... in his original piece on fluid grids, marcotte detailed a formula for taking a layout designed using pixels and converting it into percen
tages.
...you can see how we no longer need to use strange percen
tage values to calculate the size of the columns: example, source code.
...And 6 more matches
Getting started with React - Learn web development
objective: to set up a local react development environment, create a start app, and understand the basics of how it works hello react as its official
tagline states, react is a library for building user interfaces.
...react can use it to render that <h1>
tag in our app.
... suppose we wanted to wrap our heading in a <header>
tag, for semantic reasons?
...And 6 more matches
-webkit-tap-highlight-color - CSS: Cascading Style Sheets
formal definition initial valueblackapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-webkit-text-fill-color - CSS: Cascading Style Sheets
formal definition initial valuecurrentcolorapplies toall elementsinheritedyescomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-webkit-text-stroke-color - CSS: Cascading Style Sheets
formal definition initial valuecurrentcolorapplies toall elementsinheritedyescomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
-webkit-text-stroke - CSS: Cascading Style Sheets
ebkit-text-stroke-width: absolute <length>-webkit-text-stroke-color: computed coloranimation typeas each of the properties of the shorthand:-webkit-text-stroke-width: discrete-webkit-text-stroke-color: a color formal syntax <length> | <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
background-color - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-block-end - CSS: Cascading Style Sheets
olor: computed coloranimation typeas each of the properties of the shorthand:border-block-end-color: a colorborder-block-end-style: discreteborder-block-end-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-block-start - CSS: Cascading Style Sheets
computed coloranimation typeas each of the properties of the shorthand:border-block-start-color: a colorborder-block-start-style: discreteborder-block-start-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-block - CSS: Cascading Style Sheets
orthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-bottom - CSS: Cascading Style Sheets
m-style: discreteborder-bottom-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-color - CSS: Cascading Style Sheets
olor: computed colorborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-bottom-color: a colorborder-left-color: a colorborder-right-color: a colorborder-top-color: a color formal syntax <color>{1,4}where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-inline-end - CSS: Cascading Style Sheets
r: computed coloranimation typeas each of the properties of the shorthand:border-inline-end-color: a colorborder-inline-end-style: discreteborder-inline-end-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-inline-start - CSS: Cascading Style Sheets
puted coloranimation typeas each of the properties of the shorthand:border-inline-start-color: a colorborder-inline-start-style: discreteborder-inline-start-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-inline - CSS: Cascading Style Sheets
orthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-left-color - CSS: Cascading Style Sheets
it also applies to ::first-letter.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-left - CSS: Cascading Style Sheets
eft-style: discreteborder-left-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-right-color - CSS: Cascading Style Sheets
it also applies to ::first-letter.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-right - CSS: Cascading Style Sheets
ht-style: discreteborder-right-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-top-color - CSS: Cascading Style Sheets
it also applies to ::first-letter.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border-top - CSS: Cascading Style Sheets
-top-style: discreteborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
border - CSS: Cascading Style Sheets
ight-width: a lengthborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
box-shadow - CSS: Cascading Style Sheets
&& <length>{2,4} && <color>?where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
caret-color - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toall elementsinheritedyescomputed valueauto is computed as specified and <color> values are computed as defined for the color property.animation typea color formal syntax auto | <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
color - CSS: Cascading Style Sheets
the transparent keyword maps to rgba(0,0,0,0).animation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
column-rule-color - CSS: Cascading Style Sheets
formal definition initial valuecurrentcolorapplies tomulticol elementsinheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
font-stretch - CSS: Cascading Style Sheets
/* keyword values */ font-stretch: ultra-condensed; font-stretch: extra-condensed; font-stretch: condensed; font-stretch: semi-condensed; font-stretch: normal; font-stretch: semi-expanded; font-stretch: expanded; font-stretch: extra-expanded; font-stretch: ultra-expanded; /* percen
tage values */ font-stretch: 50%; font-stretch: 100%; font-stretch: 200%; /* global values */ font-stretch: inherit; font-stretch: initial; font-stretch: unset; syntax this property may be specified as a single keyword value or a single <percen
tage> value.
... <percen
tage> a <percen
tage> value between 50% and 200% (inclusive).
...css fonts level 4 extends the syntax to accept a <percen
tage> value as well.
...And 6 more matches
outline-color - CSS: Cascading Style Sheets
the transparent keyword maps to rgba(0,0,0,0).animation typea color formal syntax <color> | invertwhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
scrollbar-color - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toscrolling boxesinheritedyescomputed valueas specifiedanimation typea color formal syntax auto | dark | light | <color>{2}where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
text-decoration-color - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
text-emphasis-color - CSS: Cascading Style Sheets
formal definition initial valuecurrentcolorapplies toall elementsinheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
text-shadow - CSS: Cascading Style Sheets
]where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percen
tage>{3} [ / <alpha-value> ]?
...) | rgb( <percen
tage>#{3} , <alpha-value>?
...)<rgba()> = rgba( <percen
tage>{3} [ / <alpha-value> ]?
...And 6 more matches
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
legal values for each of these parameters are: red, green, and blue each must be an <integer> value between 0 and 255 (inclusive), or a <percen
tage> from 0% to 100%.
...you can also specify a percen
tage where 0% is the same as 0.0 and 100% is the same as 1.0.
...saturation is a percen
tage of how much of the way between being a shade of gray and having the maximum possible amount of the given hue.
...And 6 more matches
dev/panel - Archive of obsolete content
you can set the constructor up manually if you like, or you can use the add-on sdk core/heri
tage module to simplify the mechanics of inheriting from panel.
... you can use the class utility function: const { panel } = require("dev/panel"); const { class } = require("sdk/core/heri
tage"); const mypanel = class({ extends: panel, label: "my panel", tooltip: "my new devtool", icon: "./my-devtool.png", url: "./my-devtool.html", setup: function(options) { // my setup goes here }, dispose: function() { // my teardown goes here }, onready: function() { // i can send messages to // the panel document here } }); alternatively, you can use the extend function: const { extend } = require("sdk/core/heri
tage"); function mypanel() {}; mypanel.prototype = extend(panel.prototype, { label: "my panel", tooltip: "...", ....
... example here's a complete main.js: // main.js // require the sdk modules const { panel } = require("dev/panel"); const { tool } = require("dev/toolbox"); const { class } = require("sdk/core/heri
tage"); // define the panel constructor const mypanel = class({ extends: panel, label: "my panel", tooltip: "my new devtool's panel", icon: "./my-icon.png", url: "./my-panel.html", // when the panel is created, // take a reference to the debuggee setup: function(options) { this.debuggee = options.debuggee; }, dispose: function() { this.debuggee = null; }, onready: fun...
...And 5 more matches
platform/xpcom - Archive of obsolete content
by subclassing unknown, either using standard javascript inheritance or using the sdk's heri
tage module, you can provide your own implementations of xpcom interfaces.
... for example, the add-on below implements the nsiobserver interface to listen for and log all topic notifications: var { class } = require('sdk/core/heri
tage'); var { unknown } = require('sdk/platform/xpcom'); var { cc, ci } = require('chrome') var observerservice = cc['@mozilla.org/observer-service;1'].
... var { class } = require('sdk/core/heri
tage'); var { unknown, factory } = require('sdk/platform/xpcom'); var { cc, ci } = require('chrome'); var contractid = '@me.org/helloworld'; // define a component var helloworld = class({ extends: unknown, get wrappedjsobject() this, hello: function() {return 'hello world';} }); // create and register the factory var factory = factory({ contract: contractid, component: helloworld }); //...
...And 5 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
often, the smartupdate download was triggered via the pluginurl attribute of the embed
tag: <embed type="application/x-randomtype" src="myfile.typ" width="50" height="50" pluginurl="http://mytypecompany.xyz/jarpacks/mytypeplugin.jar"></embed> in the example above, the pluginurl attribute points to the signed jar file, which netscape communicator 4.x would then download (subject to the security dialog boxes) if the plugin was not located on the user's machine.
...this is one of the chief advan
tages of a smooth xpinstall experience.
... triggering an xpinstall download from html in a manner analogous to how smartupdate downloads were initiated by the pluginurl attribute of the embed
tag, xpinstall downloads can also be initiated by html
tags invoking plugins, notably via the codebase attribute of the object
tag.
...And 5 more matches
Index - Archive of obsolete content
found 1218 pages: # page
tags and summary 1 xul landing, mozilla, xul xul (xml user interface language) is mozilla's xml-based language for building user interfaces of applications like firefox.
... 857
tag xul properties, xul reference no summary!
...a query is declared with the query
tag (new to ff3; ff2 only worked with rdf datasources and had no query
tag), which you would place directly inside the <template>.
...And 5 more matches
The Implementation of the Application Object Model - Archive of obsolete content
in html or xul, when you put one
tag inside another
tag, a relationship of containment can safely be assumed.
...for rdf, an extra
tag has to be inserted between two other
tags to indicate exactly what kind of relationship should exist between the two nodes.
...if we ship a browser that does not have 100% support for css2, for example, but we've extended html by adding 20-30 new
tags, people are going to put down their blinders and see only the fact that we were off adding a whole slew of new stuff to html when we could have been firming up our standards story.
...And 5 more matches
Browser Feature Detection - Archive of obsolete content
this test takes that idea to the extreme and tests a large number of properties and methods to determine the level of support a browser has for particular standards and reports a rating as the percen
tage of names the browser defines.
... browser sniffing via api name detection the following tables list the api names defined for specific w3c dom apis and lists the percen
tage of names that your browser actually defines followed by a list of each of the api names tested along with an indication of whether the name was defined for your browser.
...eatecomment() true true true document.createcdatasection() true false true document.createprocessinginstruction() true false true document.createattribute() true true true document.createentityreference()obsolete since gecko 7 (method present but only returns null: bug 9850) false false document.getelementsby
tagname() true true true dom core level 2 support for properties/methods in document name firefox 1.5 ie 6 & 7 opera 8.54 - 9.01 document.doctype true true true document.implementation true true true document.documentelement true true true document.createelement() true true true docume...
...And 5 more matches
Accessibility API cross-reference
fill out
tagged pdf column (relevant documents from pdf association) add missing aria properties fill out events cross reference table use this info to expand mozilla's accessibility api coverage to include mac, so that we can start to freeze them talk about the fact that msaa uses one interface (iaccessible), wherease gnome accessibility uses a lot of different interfaces depending on the type of object ...
... go through the atk info and make sure it's up-to-date accessible roles description & notes msaa role (role_system_*) java accessibility role gnome accessibility role (atk_role_*) mac os x accessibility role aria (role=*) html
tagged pdf relevant xul for alerts, in java/gnome for any alert, in msaa if no other role applies.
...in
tagged pdf n/a n/a expressed with aria-labelledby if visible on screen or aria-label otherwise <caption> (for tables), <figcaption> (for figures), and <label> with a for attribute (for input elements) a <toc> or <l> may contain a <caption> as its first item <caption> or <lbl> a cell in a table cell n/a table_cell cell <td> td ...
...And 5 more matches
NSS functions
sercertbyusage mxr 3.4 and later cert_findusercertsbyusage mxr 3.4 and later cert_finishcertificaterequestattributes mxr 3.10 and later cert_finishextensions mxr 3.5 and later cert_formatname mxr 3.2 and later cert_freedistnames mxr 3.2 and later cert_freenicknames mxr 3.2 and later cert_getava
tag mxr 3.2 and later cert_getcertchainfromcert mxr 3.4 and later cert_getcertemailaddress mxr 3.2 and later cert_getcertificatenames mxr 3.10 and later cert_getcertificaterequestextensions mxr 3.10 and later cert_getcertissuerandsn mxr 3.2 and later cert_getcertnicknames mxr 3.2 and later cert_ge...
... function name/documentation source code nss versions pk11_alg
tagtomechanism mxr 3.2 and later pk11_authenticate mxr 3.2 and later pk11_blockdata mxr 3.2 and later pk11_changepw mxr 3.2 and later pk11_checkuserpassword mxr 3.2 and later pk11_cipherop mxr 3.2 and later pk11_clonecontext mxr ...
... mxr 3.4 and later pk11_loadprivkey mxr 3.4 and later pk11_logoutall mxr 3.4 and later pk11_makekeapubkey mxr 3.2 and later pk11_mappbemechanismtocryptomechanism mxr 3.2 and later pk11_mapsignkeytype mxr 3.11 and later pk11_mechanismtoalg
tag mxr 3.4 and later pk11_mergetokens mxr 3.12 and later pk11_movesymkey mxr 3.9 and later pk11_needlogin mxr 3.2 and later pk11_needuserinit mxr 3.2 and later pk11_paramfromiv mxr 3.2 and later pk11_paramfromalgid mxr 3.
...And 5 more matches
nsIInstallLocation
ing nsiextensionmanager interface: var il = components.classes["@mozilla.org/extensions/manager;1"] .getservice(components.interfaces.nsiextensionmanager) .getinstalllocation("add-on id") method overview astring getidforlocation(in nsifile file); nsifile getitemfile(in astring id, in astring path); nsifile getitemlocation(in astring id); nsifile gets
tagefile(in astring id); boolean itemismanagedindependently(in astring id); void removefile(in nsifile file); nsifile s
tagefile(in nsifile file, in astring id); attributes attribute type description canaccess boolean whether or not the user can write to the install location with the current access privileges.
...gets
tagefile() returns the most recently s
taged package (for example the last xpi or jar in a directory) for an item and removes items that do not qualify.
... nsifile gets
tagefile( in astring id ); parameters id the id of the s
taged package.
...And 5 more matches
Using the Notifications API - Web APIs
to do this, it's possible to add a
tag to any new notification.
... if a notification already has the same
tag and has not been displayed yet, the new notification replaces that previous notification.
... if the notification with the same
tag has already been displayed, the previous notification is closed and the new one is displayed.
...And 5 more matches
Variable fonts guide - CSS: Cascading Style Sheets
the advan
tage in choosing the variable font is that you have access to the entire range of weights, widths, and styles available, rather than being constrained to only the few that you previously would have loaded separately.
... custom axes are in fact limitless: the typeface designer can define and scope any axis they like, and are just required to give it a four-letter
tag to identify it within the font file format itself.
... you can use these four-letter
tags in css to specify a point along that axis of variation, as will be show in the code examples below.
...And 5 more matches
line-height - CSS: Cascading Style Sheets
syntax /* keyword value */ line-height: normal; /* unitless values: use this number multiplied by the element's font size */ line-height: 3.5; /* <length> values */ line-height: 3em; /* <percen
tage> values */ line-height: 34%; /* global values */ line-height: inherit; line-height: initial; line-height: unset; the line-height property is specified as any one of the following: a <number> a <length> a <percen
tage> the keyword normal.
... <percen
tage> relative to the font size of the element itself.
... the computed value is this <percen
tage> multiplied by the element's computed font size.
...And 5 more matches
perspective-origin - CSS: Cascading Style Sheets
it can have one of the following values: <length-percen
tage> indicating the position as an absolute length value or relative to the width of the element.
... center, a keyword being a shortcut for the 50% percen
tage value.
... right, a keyword being a shortcut for the 100% percen
tage value.
...And 5 more matches
Intl.Locale.prototype.maximize() - JavaScript
syntax locale.maximize() return value a locale instance whose basename property returns the result of the add likely sub
tags algorithm executed against locale.basename.
... description sometimes, it is convenient to be able to identify the most likely locale language identifier sub
tags based on an incomplete langauage id.
... the add likely sub
tags algorithm gives us this functionality.
...And 5 more matches
The building blocks of responsive design - Progressive web apps (PWAs)
there are disadvan
tages to this approach as well.
...read more about responsive design advan
tages and disadvan
tages.
... fluid grids the best place to start is with fluid measurements for our application layout — essentially, this means using a combination of percen
tages and ems/rems to size your containers and text, not fixed widths such as pixels.
...And 5 more matches
Content type - SVG: Scalable Vector Graphics
the format of an rgb value in the functional notation is an rgb start-function, followed by a comma-separated list of three numerical values (either three integer values or three percen
tage values) followed by ")".
... note that the non-property <length> definition also allows a percen
tage unit identifier.
... the meaning of a percen
tage length value depends on the attribute for which the percen
tage length value has been specified.
...And 5 more matches
places/bookmarks - Archive of obsolete content
let { search, unsorted } = require("sdk/places/bookmarks"); // simple query with one object search( { query: "firefox" }, { sort: "title" } ).on("end", function (results) { // results matching any bookmark that has "firefox" // in its url, title or
tag, sorted by title }); // multiple queries are or'd together search( [{ query: "firefox" }, { group: unsorted,
tags: ["mozilla"] }], { sort: "title" } ).on("end", function (results) { // our first query is the same as the simple query above; // all of those results are also returned here.
...the second query's properties // are and'd together, so results that are in the platform's unsorted // bookmarks folder, and are also
tagged with 'mozilla', get returned // as well in this query }); globals constructors bookmark(options) creates an unsaved bookmark instance.
...
tags set a set of
tags to be applied to the bookmark.
...And 4 more matches
Frequently Asked Questions - Archive of obsolete content
to be valid the root <svg>
tag in svg files must have at least the following two "namespace bindings".
...this is (almost certainly) because the 'xmlns:xlink' attribute has been used in the file without including the following two namespace bindings on the root <svg>
tag.
...for example, webpages that embed svg using the <object> or <embed>
tags must have a 'type' attribute assigned with the correct svg mime type of "image/svg+xml".
...And 4 more matches
Anonymous Content - Archive of obsolete content
an element declared in a bound document using a single
tag can then be constructed out of multiple child elements, and this implementation is hidden from the bound document.
... dom methods that can be invoked on elements (e.g., getelementsby
tagname) will only see nodes that are in the same scope.
...they do so using xbl children
tags.
...And 4 more matches
NPP_New - Archive of obsolete content
values: np_embed: (1) instance was created by an embed
tag and shares the browser window with other content.
... argc number of html arguments in the embed
tag for an embedded plug-in; determines the number of attributes in the argn and argv arrays.
... argn[] array of attribute names passed to the plug-in from the embed
tag.
...And 4 more matches
The Business Benefits of Web Standards - Archive of obsolete content
strict html (as opposed to the often-used transitional html markup), forces the designer not to use presentation
tags in the html documents, naturally enforcing the separation of content from presentation.
...a lot of other sites would greatly increase their seo by simply using proper
tags for the content.
... adding h1, h2, and h3,
tags and so on gives proper structure to hypertext documents.
...And 4 more matches
HTML basics - Learn web development
the enclosing
tags can make a word or image hyperlink to somewhere else, can italicize words, can make the font bigger or smaller, and so on.
... for example, take the following line of content: my cat is very grumpy if we wanted the line to stand by itself, we could specify that it is a paragraph by enclosing it in paragraph
tags: <p>my cat is very grumpy</p> anatomy of an html element let's explore this paragraph element a bit further.
... the main parts of our element are as follows: the opening
tag: this consists of the name of the element (in this case, p), wrapped in opening and closing angle brackets.
...And 4 more matches
HTML table basics - Learn web development
the main reasons are as follows: layout tables reduce accessibility for visually impaired users: screenreaders, used by blind people, interpret the
tags that exist in an html page and read out the contents to the user.
... tables produce
tag soup: as mentioned above, table layouts generally involve more complex markup structures than proper layout techniques.
... the content of every table is enclosed by these two
tags : <table></table>.
...And 4 more matches
Introduction to events - Learn web development
this won't be an exhaustive study; just what you need to know at this s
tage.
... you don't need to understand anything about other such environments at this s
tage in your learning; we just wanted to make it clear that events can differ in different programming environments.
...note: it is perfectly appropriate to put all the code inside the addeventlistener() function, in an anonymous function, like this: btn.addeventlistener('click', function() { var rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundcolor = rndcol; }); this mechanism has some advan
tages over the older mechanisms discussed earlier.
...And 4 more matches
Getting started with Vue - Learn web development
it also allows you to take advan
tage of libraries for client-side routing and state management when you need to.
...this will let you use advanced features of vue and take advan
tage of bundlers like webpack.
...these files are processed by a js build tool (such as webpack), which means you can take advan
tage of build-time tooling in your project.
...And 4 more matches
Embedding the editor
<htmlarea> is intended as a shorthand for a rich-text multiline text widget embedded in an html document, and is not meant to infer that future versions of mozilla will support this specific
tag.
... composer embedded in a xul application developers need to embed composer widgets in their xul applications, by using the <editor>
tag as we do today.
...xbl creates an nseditorboxobject for each <editor>
tag, and allows javascript to access properties of this box object (such as the nsieditorshell).
...And 4 more matches
nsIDOMElement
inherits from: nsidomnode last changed in gecko 1.7 method overview domstring getattribute(in domstring name); nsidomattr getattributenode(in domstring name); nsidomattr getattributenodens(in domstring namespaceuri, in domstring localname); domstring getattributens(in domstring namespaceuri, in domstring localname); nsidomnodelist getelementsby
tagname(in domstring name); nsidomnodelist getelementsby
tagnamens(in domstring namespaceuri, in domstring localname); boolean hasattribute(in domstring name); boolean hasattributens(in domstring namespaceuri, in domstring localname); void removeattribute(in domstring name) nsidomattr removeattributenode(in nsidomattr oldattr) void removeattributens(in domstring namespaceuri, in domstring ...
...localname) void setattribute(in domstring name, in domstring value) nsidomattr setattributenode(in nsidomattr newattr) nsidomattr setattributenodens(in nsidomattr newattr) void setattributens(in domstring namespaceuri, in domstring qualifiedname, in domstring value) attributes attribute type description
tagname domstring the element
tag name.
...getelementsby
tagname() get all descendants of a
tag name.
...And 4 more matches
nsINavHistoryQuery
this allows place queries to be returned (which might include bookmark folders -- use the bookmark service's getfolderuri) as well as anything else that may have been
tagged with an annotation.
...
tags nsivariant a list of
tags to use for filtering query results.
...duplicate
tags may be specified, but when reading the list, only unique
tags are returned.
...And 4 more matches
nsIPluginHost
nsiplugin
tag getplugin
tagforinstance(in nsiplugininstance ainstance); native code only!
... void getplugin
tags([optional] out unsigned long aplugincount, [retval, array, size_is(aplugincount)] out nsiplugin
tag aresults); void handlebadplugin(in prlibraryptr alibrary, in nsiplugininstance instance); native code only!
... native code only!getplugin
tagforinstance get the plugin
tag associated with a given plugin instance.
...And 4 more matches
Finding the code for a feature
as an example, i received the following inquiry, and i decided to follow my usual path and document what i do: hello i would like to add colours and
tags to specific emails...by using nsimsg
tagservice, can this be done?
... here is my (edited) response: nsimsg
tagservice is used to store the list of valid
tags, so it is not the correct way to
tag messages.
...
tags are applied using the message database property "keyword".
...And 4 more matches
Using images - Web APIs
using images from the same page we can obtain a reference to images on the same page as the canvas by using one of: the document.images collection the document.getelementsby
tagname() method if you know the id of the specific image you wish to use, you can use document.getelementbyid() to retrieve that specific image using images from other domains using the crossorigin attribute of an <img> element (reflected by the htmlimageelement.crossorigin property), you can request permission to load an image from another domain for use in your call to drawimage().
... using other canvas elements just as with normal images, we access other canvas elements using either the document.getelementsby
tagname() or document.getelementbyid() method.
... var img = new image(); // create new img element img.src = 'data:image/gif;base64,r0lgodlhcwalaiaaaaaa3pn/zih5baeaaaealaaaaaalaasaaaiuha+hkcuo4lmnvindo7qyrixigbyaow=='; one advan
tage of data urls is that the resulting image is available immediately without another round trip to the server.
...And 4 more matches
Document.createElement() - Web APIs
in an html document, the document.createelement() method creates the html element specified by
tagname, or an htmlunknownelement if
tagname isn't recognized.
... syntax let element = document.createelement(
tagname[, options]); parameters
tagname a string that specifies the type of element to be created.
... the nodename of the created element is initialized with the value of
tagname.
...And 4 more matches
Document.execCommand() - Web APIs
internet explorer uses the <strong>
tag instead of <b>.
... decreasefontsize adds a <small>
tag around the selection or at the insertion point.
...requires a
tag-name string as a value argument.
...And 4 more matches
Document.registerElement() - Web APIs
syntax var constructor = document.registerelement(
tag-name, options); parameters
tag-name the name of the custom element.
... the name must contain a dash (-), for example my-
tag.
... optionsoptional an object with properties prototype to base the custom element on, and extends, an existing
tag to extend.
...And 4 more matches
Intersection Observer API - Web APIs
this is a representation of the percen
tage of the target element which is visible as a value between 0.0 and 1.0.
...the values can be percen
tages.
... threshold either a single number or an array of numbers which indicate at what percen
tage of the target's visibility the observer's callback should be executed.
...And 4 more matches
Web applications and ARIA FAQ - Accessibility
unfortunately, there isn't a more semantic
tag available to developers in html 4, so we need to include aria roles and properties.
...though on its own aria will not change any styles, as with any html attributes, css can take advan
tage of aria attributes as element selectors.
... html5 introduces a number of useful new semantic
tags to html.
...And 4 more matches
CSS values and units - CSS: Cascading Style Sheets
numeric data types <integer> <number> <dimension> <percen
tage> integers an integer is one or more decimal digits, 0 through 9, such as 1024 or -55.
... percen
tages a <percen
tage> is a type that represents a fraction of some other value.
... percen
tage values are always relative to another quantity, for example a length.
...And 4 more matches
<basic-shape> - CSS: Cascading Style Sheets
all the lengths expressed in percen
tages are resolved from the used dimensions of the reference box.
...a percen
tage value here is resolved from the used width and height of the reference box as sqrt(width^2+height^2)/sqrt(2).
...percen
tage values here are resolved against the used width (for the rx value) and the used height (for the ry value) of the reference box.
...And 4 more matches
border-bottom-left-radius - CSS: Cascading Style Sheets
syntax /* the corner is a circle */ /* border-bottom-left-radius: radius */ border-bottom-left-radius: 3px; /* percen
tage values */ /* circle if box is a square or ellipse if box is a rectangle */ border-bottom-left-radius: 20%; /* same as above: 20% of horizontal(width) and vertical(height) */ border-bottom-left-radius: 20% 20%; /* 20% of horizontal(width) and 10% of vertical(height) */ border-bottom-left-radius: 20% 10%; /* the corner is an ellipse */ /* border-bottom-left-radius: horizontal vertical */ borde...
...r-bottom-left-radius: 0.5em 1em; border-bottom-left-radius: inherit; with one value: the value is a <length> or a <percen
tage> denoting the radius of the circle to use for the border in that corner.
... with two values: the first value is a <length> or a <percen
tage> denoting the horizontal semi-major axis of the ellipse to use for the border in that corner.
...And 4 more matches
border-bottom-right-radius - CSS: Cascading Style Sheets
syntax /* the corner is a circle */ /* border-bottom-right-radius: radius */ border-bottom-right-radius: 3px; /* percen
tage values */ border-bottom-right-radius: 20%; /* corner of a circle if box is a square or else corner of a rectangle */ border-bottom-right-radius: 20% 20%; /* same as above */ /* 20% of horizontal(width) and vertical(height) */ border-bottom-right-radius: 20% 10%; /* 20% of horizontal(width) and 10% of vertical(height) */ /*the corner is an ellipse */ /* border-bottom-right-radius: horizontal ver...
...tical */ border-bottom-right-radius: 0.5em 1em; border-bottom-right-radius: inherit; with one value: the value is a <length> or a <percen
tage> denoting the radius of the circle to use for the border in that corner.
... with two values: the first value is a <length> or a <percen
tage> denoting the horizontal semi-major axis of the ellipse to use for the border in that corner.
...And 4 more matches
<color> - CSS: Cascading Style Sheets
functional notation: rgb[a](r, g, b[, a]) r (red), g (green), and b (blue) can be either <number>s or <percen
tage>s, where the number 255 corresponds to 100%.
... a (alpha) can be a <number> between 0 and 1, or a <percen
tage>, where the number 1 corresponds to 100% (full opacity).
... s (saturation) and l (lightness) are percen
tages.
...And 4 more matches
grid-template-columns - CSS: Cascading Style Sheets
<percen
tage> is a non-negative <percen
tage> value relative to the inline size of the grid container.
... if the size of the grid container depends on the size of its tracks, then the percen
tage must be treated as auto.
... the intrinsic size contributions of the track may be adjusted to the size of the grid container and increase the final size of the track by the minimum amount that would result in honoring the percen
tage.
...And 4 more matches
grid-template-rows - CSS: Cascading Style Sheets
<percen
tage> is a non-negative <percen
tage> value, relative to the block size of the grid container.
... if the size of the grid container depends on the size of its tracks, then the percen
tage must be treated as auto.
... the intrinsic size contributions of the track may be adjusted to the size of the grid container, and increase the final size of the track by the minimum amount that would result in honoring the percen
tage.
...And 4 more matches
transform-origin - CSS: Cascading Style Sheets
one-value syntax: the value must be a <length>, a <percen
tage>, or one of the keywords left, center, right, top, and bottom.
... two-value syntax: one value must be a <length>, a <percen
tage>, or one of the keywords left, center, and right.
... the other value must be a <length>, a <percen
tage>, or one of the keywords top, center, and bottom.
...And 4 more matches
width - CSS: Cascading Style Sheets
syntax /* <length> values */ width: 300px; width: 25em; /* <percen
tage> value */ width: 75%; /* keyword values */ width: max-content; width: min-content; width: fit-content(20em); width: auto; /* global values */ width: inherit; width: initial; width: unset; the width property is specified as either: one of the following keyword values: min-content, max-content, fit-content, auto.
... a <length> or a <percen
tage>.
... <percen
tage> defines the width as a percen
tage of the containing block's width.
...And 4 more matches
<video>: The Video Embed element - HTML: Hypertext Markup Language
the content inside the opening and closing <video></video>
tags is shown as a fallback in browsers that don't support the element.
... to disable video autoplay, autoplay="false" will not work; the video will autoplay if the attribute is there in the <video>
tag at all.
... height the height of the video's display area, in css pixels (absolute values only; no percen
tages.) intrinsicsize this attribute tells the browser to ignore the actual intrinsic size of the image and pretend it’s the size specified in the attribute.
...And 4 more matches
Index - HTTP
found 122 pages: # page
tags and summary 1 http headers http, http header, networking, overview, reference http headers allow the client and the server to pass additional information with the request or the response.
... 58 e
tag http, reference, response, header the e
tag http response header is an identifier for a specific version of a resource.
...on the other side, if the content has changed, e
tags are useful to help prevent simultaneous updates of a resource from overwriting each other ("mid-air collisions").
...And 4 more matches
HTTP headers - HTTP
it is less accurate than e
tag, but easier to calculate in some environments.
... e
tag a unique string identifying the version of the resource.
... if-match makes the request conditional, and applies the method only if the stored resource matches one of the given e
tags.
...And 4 more matches
Link prefetching FAQ - HTTP
an example using the link
tag follows: <link rel="prefetch" href="/images/big.jpeg"> the same prefetching hint using an http link: header: link: </images/big.jpeg>; rel=prefetch the format for the link: header is described in rfc 5988 section 5.
... some more examples follow: <link rel="prefetch alternate stylesheet" title="designed for mozilla" href="mozspecific.css"> <link rel="next" href="2.html"> are anchor (<a>)
tags prefetched?
... no, only <link>
tags with a relation type of next or prefetch are prefetched.
...And 4 more matches
Intl.Locale.prototype.minimize() - JavaScript
syntax locale.minimize() return value a locale instance whose basename property returns the result of the remove likely sub
tags algorithm executed against locale.basename.
... description this method carries out the reverse of maximize(), removing any language, script, or region sub
tags from the locale language identifier (essentially the contents of basename).
... this is useful when there are superfluous sub
tags in the language identifier; for instance, "en-latn" can be simplified to "en", since "latn" is the only script used to write english.
...And 4 more matches
Intl.RelativeTimeFormat.supportedLocalesOf() - JavaScript
syntax intl.relativetimeformat.supportedlocalesof(locales[, options]) parameters locales a string with a bcp 47 language
tag, or an array of such strings.
... return value an array of strings representing a subset of the given locale
tags that are supported in date and time formatting without having to fall back to the runtime's default locale.
... description returns an array with a subset of the language
tags provided in locales.
...And 4 more matches
Intl - JavaScript
for example: "hi": hindi (language) "de-at": german (language) as used in austria (region) "zh-hans-cn": chinese (language) written in simplified characters (script) as used in china (region) "en-emodeng": english (language) in the "early modern english" dialect (variant) the sub
tags identifying languages, scripts, regions (including countries), and (rarely used) variants in unicode bcp 47 locale identifiers are registered in the iana language sub
tag registry.
... this registry is periodically updated over time, and implementations may not always be up to date, so be careful not to rely too much on
tags being universally supported.
... bcp 47 also allows for extensions, each consisting of a single digit or letter (other than "x") and one or more two- to eight-letter or digit
tags, all separated by hyphens.
...And 4 more matches
XML introduction - XML: Extensible Markup Language
xml (extensible markup language) is a markup language similar to html, but without predefined
tags to use.
... instead, you define your own
tags designed specifically for your needs.
... whole structure xml and xml based languages built on
tags.
...And 4 more matches
RDF Query Syntax - Archive of obsolete content
</rule> </template> </vbox> this query has two statements, each specified with a different
tag.
...this is done with the content
tag.
...obviously, since you need to start somewhere, you will have to use a content
tag and it should be the first statement.
...And 3 more matches
Adding Methods to XBL-defined Elements - Archive of obsolete content
note that the less-than symbol has to be escaped because otherwise it would look like the start of a
tag.
...(the bound element.) the parameter
tag allows you to define parameters for a method.
...none of the elements declared inside the content
tag have these properties or methods.
...And 3 more matches
Creating a Window - Archive of obsolete content
if you want to force the window to become visible you can add the width and height attribute to the window
tag.
...this
tag is much like the html
tag which surrounds an entire html document, except that a user interface window is described instead of a document.
... several attributes can be placed in the window
tag -- in this case there are four.
...And 3 more matches
Your first form - Learn web development
the <input>
tag is an empty element, meaning that it doesn't need a closing
tag.
... <textarea> is not an empty element, meaning it should be closed with the proper ending
tag.
...to define the default value of an <input> element you have to use the value attribute like this: <input type="text" value="by default this element is filled with this text"> on the other hand, if you want to define a default value for a <textarea>, you put it between the opening and closing
tags of the <textarea> element, like this: <textarea> by default this element is filled with this text </textarea> the <button> element the markup for our form is almost complete; we just need to add a button to allow the user to send, or "submit", their data once they have filled out the form.
...And 3 more matches
What’s in the head? Metadata in HTML - Learn web development
there are a lot of different types of <meta> elements that can be included in your page's <head>, but we won't try to explain them all at this s
tage, as it would just get too confusing.
... view the page's source (right/ctrl + click on the page, choose view page source from the context menu.) find the description meta
tag.
... <script src="my-js-file.js" defer></script> note: the <script> element may look like an empty element, but it's not, and so needs a closing
tag.
...And 3 more matches
What is JavaScript? - Learn web development
you won't be able to build the next facebook, google maps, or ins
tagram after studying javascript for 24 hours — there are a lot of basics to cover first.
... there are advan
tages to both types of language, but we won't discuss them right now.
... next, go to your text editor and add the following in your head — just before your closing </head>
tag: <script> // javascript goes here </script> now we'll add some javascript inside our <script> element to make the page do something more interesting — add the following code just below the "// javascript goes here" line: document.addeventlistener("domcontentloaded", function() { function createparagraph() { let para = document.createelement('p'); para.textcontent = 'you cli...
...And 3 more matches
Gecko info for Windows accessibility vendors
the role string may be an html
tag name followed by comma, space and the namespace of the current element.
...the following html
tags are exposed as bstr's: abbr, acronym, blockquote, dd, dl, dt, form, frame, h1, h2, h3, h4, h5, h6, iframe, q, tbody, tfoot, thead in addition, an html list uses the bullet bstr role to expose bullets and numbers that are automatically inserted into the formatting by gecko.
... role_text normal web text uses no
tag or element, uses state_readonly for editable text, that state is cleared.
...And 3 more matches
Creating localizable web applications
take advan
tage of printf() (or equivalents) and use variables in the english strings.
...good: function num_format($num, $decimals) { $locale_info = localeconv(); return number_format($num, $decimals, $locale_info['decimal_point'], $locale_info['thousands_sep']); } printf(_("%s mb"), num_format($size, 1)); wrap as few html
tags as possible when wrapping the localizable content with the gettext function calls, put all the code that irrelevant to localization outside the function call.
...following the rule about wrapping as few html elements with the gettext function call as possible, you could try to put the <strong/> html
tag outside of the php code (cf.
...And 3 more matches
Localization formats
advan
tages to html good for small projects very simple for web developers gives localizers the exact context of translations a localizer who knows basic html can style translations to make sure translations display correctly...we can allow slight modifications (e.g.
... rtl or wider display) gives the possibility to customize content per locale simple workflow, just put the file on svn and it can appear on the s
taging server disadvan
tages to html very hard for qa if localizer changes something incorrectly (i.e.
... <h1><?php echo ___("getting started")?></h1> function ___($str) { return $array[$str]; } advan
tage to .lang simple work-flow allowing the web developer to place the file in svn and it can appear on the s
taging server .lang syntax is like simplified .po, which many localizers who are familiar with linux and other projects understand mozilla has a basic tool called main.lang checker, which can show any untranslated files to the localizer no need to compile to .mo file so a localizer can s...
...And 3 more matches
AsyncTestUtils extended framework
add
tag(a
tagkey) adds the given
tag to all the messages in the set.
... the
tag key must correspond to an existing
tag.
... the
tag key is not the label, but what is actually stored on the imap server.
...And 3 more matches
Enc Dec MAC Output Public Key as CSR
tob_convertasciitoitem(item, body); return secsuccess; } /* * generate the private key */ seckeyprivatekey * generateprivatekey(keytype keytype, pk11slotinfo *slot, int size, int publicexponent, const char *noisefilename, seckeypublickey **pubkeyp, const char *pqgfile, secupwdata *pwdata) { ck_mechanism_type mechanism; secoid
tag alg
tag; pk11rsagenparams rsaparams; void *params; seckeyprivatekey *privkey = null; secstatus rv; unsigned char randbuf[blocksize + 1]; rv = generaterandom(randbuf, blocksize); if (rv != secsuccess) { fprintf(stderr, "error while generating the random numbers : %s\n", port_errortostring(rv)); go...
...to cleanup; } pk11_randomupdate(randbuf, blocksize); switch (keytype) { case rsakey: rsaparams.keysizeinbits = size; rsaparams.pe = publicexponent; mechanism = ckm_rsa_pkcs_key_pair_gen; alg
tag = sec_oid_pkcs1_md5_with_rsa_encryption; params = &rsaparams; break; default: goto cleanup; } fprintf(stderr, "\n\n"); fprintf(stderr, "generating key.
... pk11_gettokenname(slot)); goto cleanup; } cka_id = &pubkey->u.rsa.modulus; cka_id = pk11_makeidfrompubkey(cka_id); privkey = pk11_findkeybykeyid(slot, cka_id, pwdata); cleanup: return privkey; } /* * generate the certificate request with subject */ static secstatus certreq(seckeyprivatekey *privk, seckeypublickey *pubk, keytype keytype, secoid
tag hashalg
tag, certname *subject, prbool ascii, const char *certreqfilename) { certsubjectpublickeyinfo *spki = null; certcertificaterequest *cr = null; secitem *encoding = null; secoid
tag signalg
tag; secitem result; secstatus rv = secsuccess; print32 ...
...And 3 more matches
JS_GetGCParameter
the first two parameters are in mb and the remaining two are in percen
tage of heap size.
... jsgc_high_frequency_high_limit / "highfrequencyhighlimit" jsgc_high_frequency_heap_growth_max / "highfrequencyheapgrowthmax" jsgc_high_frequency_heap_growth_min / "highfrequencyheapgrowthmin" jsgc_low_frequency_heap_growth / "lowfrequencyheapgrowth" heap growth percen
tage for low frequency gcs.
... jsgc_dynamic_heap_growth / "dynamicheapgrowth" if false, the heap growth percen
tage is fixed at 300%.
...And 3 more matches
Parser API
interface xmlstart
tag <: xml { type: "xmlstart
tag"; contents: [ xml ]; } an xml start
tag.
... interface xmlend
tag <: xml { type: "xmlend
tag"; contents: [ xml ]; } an xml end
tag.
... interface xmlpoint
tag <: xml { type: "xmlpoint
tag"; contents: [ xml ]; } an xml point
tag.
...And 3 more matches
Index
found 1275 pages: # page
tags and summary 1 xpcom add-ons, extensions, landing, mozilla, xpcom xpcom is a cross platform component object model, similar to microsoft com.
...this interface could also be applied to other kinds of objects with multiple actions such as "smart
tags" which are objects, typically strings, which have multiple actions such as "activate uri", "bookmark uri", end so on.
... an interesting use case is an image map where each area is associated with multiple actions, for example an image map of smart
tags.
...And 3 more matches
nsINavHistoryQueryOptions
sort_by_
tags_ascending 17 sort by the ascending
tags order.
... sort_by_
tags_descending 18 sort by the descending
tags order.
... results_as_
tag_query 6 returns nsinavhistoryqueryresultnode nodes for each
tag.
...And 3 more matches
nsIXULTemplateBuilder
templateresult aresult); 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 a
tag); void addrulefilter(in nsidomnode arule, in nsixultemplaterulefilter afilter); [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 read...
...if a
tag is set, the content must have a
tag name that matches a
tag.
... a
tag may be ignored for builders that don't generate real dom content.
...And 3 more matches
Edit fonts - Firefox Developer Tools
all variable font axes have a four-character axis
tag.
... the css font-variation-settings property uses the
tag as part of the key-value pair.
... here are the registered axes along with their corresponding css properties: axis
tag css property "wght" font-weight "wdth" font-stretch "slnt" (slant) font-style: oblique + angle "ital" font-style: italic "opsz" font-optical-sizing any axis that is not on the list of registered axes is considered a custom axis.
...And 3 more matches
@keyframes - CSS: Cascading Style Sheets
<percen
tage> a percen
tage of the time through the animation sequence at which the specified keyframe should occur.
...each @keyframes rule contains a style list of keyframe selectors, which specify percen
tages along the animation when the keyframe occurs, and a block containing the styles for that keyframe.
... you can list the keyframe percen
tages in any order; they will be handled in the order they should occur.
...And 3 more matches
Using CSS gradients - CSS: Cascading Style Sheets
to fine-tune their locations, you can give each one zero, one, or two percen
tage or, for radial and linear gradients, absolute length values.
... if you specify the location as a percen
tage, 0% represents the starting point, while 100% represents the ending point; however, you can use values outside that range if necessary to get the effect you want.
...by default, the center of the gradient is at the 50% 50% mark, and the gradient is elliptical matching the aspect ratio of it's box: <div class="simple-radial"></div> div { width: 240px; height: 120px; } .simple-radial { background: radial-gradient(red, blue); } positioning radial color stops again like linear gradients, you can position each radial color stop with a percen
tage or absolute length.
...And 3 more matches
Layout and the containing block - CSS: Cascading Style Sheets
percen
tage values that are applied to the width, height, padding, margin, and offset properties of an absolutely positioned element (i.e., which has its position set to absolute or fixed) are computed from the element's containing block.
... calculating percen
tage values from the containing block as noted above, when certain properties are given a percen
tage value, the computed value depends on the element's containing block.
... the properties that work this way are box model properties and offset properties: the height, top, and bottom properties compute percen
tage values from the height of the containing block.
...And 3 more matches
border-top-left-radius - CSS: Cascading Style Sheets
syntax /* the corner is a circle */ /* border-top-left-radius: radius */ border-top-left-radius: 3px; /* the corner is an ellipse */ /* border-top-left-radius: horizontal vertical */ border-top-left-radius: 0.5em 1em; border-top-left-radius: inherit; with one value: the value is a <length> or a <percen
tage> denoting the radius of the circle to use for the border in that corner.
... with two values: the first value is a <length> or a <percen
tage> denoting the horizontal semi-major axis of the ellipse to use for the border in that corner.
... the second value is a <length> or a <percen
tage> denoting the vertical semi-major axis of the ellipse to use for the border in that corner.
...And 3 more matches
border-top-right-radius - CSS: Cascading Style Sheets
syntax /* the corner is a circle */ /* border-top-right-radius: radius */ border-top-right-radius: 3px; /* the corner is an ellipse */ /* border-top-right-radius: horizontal vertical */ border-top-right-radius: 0.5em 1em; border-top-right-radius: inherit; with one value: the value is a <length> or a <percen
tage> denoting the radius of the circle to use for the border in that corner.
... with two values: the first value is a <length> or a <percen
tage> denoting the horizontal semi-major axis of the ellipse to use for the border in that corner.
... the second value is a <length> or a <percen
tage> denoting the vertical semi-major axis of the ellipse to use for the border in that corner.
...And 3 more matches
translate - CSS: Cascading Style Sheets
syntax /* keyword values */ translate: none; /* single values */ translate: 100px; translate: 50%; /* two values */ translate: 100px 200px; translate: 50% 105px; /* three values */ translate: 50% 105px 5rem; values single <length-percen
tage> value a <length> or <percen
tage> that specifies a 2d translation, with the same translation along both the x and y axes.
... two <length-percen
tage> values two <length> or <percen
tage> that specify the x and y axis translation values (respectively) of a 2d translation.
... three values two <length-percen
tage> and single <length> values that specify the x, y, and z axis translation values (respectively) of a 3d translation.
...And 3 more matches
If-None-Match - HTTP
for get and head methods, the server will send back the requested resource, with a 200 status, only if it doesn't have an e
tag matching the given ones.
... for other methods, the request will be processed only if the eventually existing resource's e
tag doesn't match any of the values listed.
...note that the server generating a 304 response must generate any of the following header fields that would have been sent in a 200 (ok) response to the same request: cache-control, content-location, date, e
tag, expires, and vary.
...And 3 more matches
Intl.Collator.supportedLocalesOf() - JavaScript
syntax intl.collator.supportedlocalesof(locales[, options]) parameters locales a string with a bcp 47 language
tag, or an array of such strings.
... return value an array of strings representing a subset of the given locale
tags that are supported in collation without having to fall back to the runtime's default locale.
... description returns an array with a subset of the language
tags provided in locales.
...And 3 more matches
Intl.DateTimeFormat.supportedLocalesOf() - JavaScript
syntax intl.datetimeformat.supportedlocalesof(locales[, options]) parameters locales a string with a bcp 47 language
tag, or an array of such strings.
... return value an array of strings representing a subset of the given locale
tags that are supported in date and time formatting without having to fall back to the runtime's default locale.
... description returns an array with a subset of the language
tags provided in locales.
...And 3 more matches
Intl.DisplayNames.supportedLocalesOf() - JavaScript
syntax intl.displaynames.supportedlocalesof(locales[, options]) parameters locales a string with a bcp 47 language
tag, or an array of such strings.
... return value an array of strings representing a subset of the given locale
tags that are supported in date and time formatting without having to fall back to the runtime's default locale.
... description returns an array with a subset of the language
tags provided in locales.
...And 3 more matches
Intl.ListFormat.supportedLocalesOf() - JavaScript
syntax intl.listformat.supportedlocalesof(locales[, options]) parameters locales a string with a bcp 47 language
tag, or an array of such strings.
... return value an array of strings representing a subset of the given locale
tags that are supported in date and time formatting without having to fall back to the runtime's default locale.
... description returns an array with a subset of the language
tags provided in locales.
...And 3 more matches
Intl.NumberFormat.supportedLocalesOf() - JavaScript
syntax intl.numberformat.supportedlocalesof(locales[, options]) parameters locales a string with a bcp 47 language
tag, or an array of such strings.
... return value an array of strings representing a subset of the given locale
tags that are supported in number formatting without having to fall back to the runtime's default locale.
... description returns an array with a subset of the language
tags provided in locales.
...And 3 more matches
Intl.PluralRules.supportedLocalesOf() - JavaScript
syntax intl.pluralrules.supportedlocalesof(locales[, options]) parameters locales a string with a bcp 47 language
tag, or an array of such strings.
... return value an array of strings representing a subset of the given locale
tags that are supported in plural formatting without having to fall back to the runtime's default locale.
... description returns an array with a subset of the language
tags provided in locales.
...And 3 more matches
JSON.parse() - JavaScript
, k)) { v = walk(value, k); if (v !== undefined) { value[k] = v; } else { delete value[k]; } } } } return reviver.call(holder, key, value); } // parsing happens in four s
tages.
... in the first s
tage, we replace certain // unicode characters with escape sequences.
... text = string(text); rx_dangerous.lastindex = 0; if (rx_dangerous.test(text)) { text = text.replace(rx_dangerous, function(a) { return ( "\\u" + ("0000" + a.charcodeat(0).tostring(16)).slice(-4) ); }); } // in the second s
tage, we run the text against regular expressions that look // for non-json patterns.
...And 3 more matches
Populating the page: how browsers work - Web Performance
html tokens include start and end
tags, as well as attribute names and values.
...the <html> element is the first
tag and root node of the document tree.
... the tree reflects the relationships and hierarchies between different
tags.
...And 3 more matches
Progressive web apps (PWAs)
pwa advan
tages pwas should be discoverable, installable, linkable, network independent, progressive, re-engageable, responsive, and safe.
... to find out more about what these mean, read progressive web app advan
tages.
...this guide explains how a2hs is used, and what you need to do as a developer to allow your users to take advan
tage of it.how to make pwas installablein this article, we learned about how we can make pwas installable with a properly-configured web manifest, and how the user can then install the pwa with the "add to home screen" feature of their browser.how to make pwas re-engageable using notifications and pushhaving the ability to cache the contents of an app to work offline is a great feature.
...And 3 more matches
SVG Presentation Attributes - SVG: Scalable Vector Graphics
value: auto|baseline|super|sub|<percen
tage>|<length>|inherit; animatable: yes clip deprecated it defines what portion of an element is visible.
... value: <number>|<percen
tage>; animatable: yes fill-rule it indicates how to determine what side of a path is inside a shape.
... value: <number>|<percen
tage>; animatable: yes font-family it indicates which font family will be used to render the text of the element.
...And 3 more matches
<rect> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage> ; default value: 0; animatable: yes y the y coordinate of the rect.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes width the width of the rect.
... value type: auto|<length>|<percen
tage> ; default value: auto; animatable: yes height the height of the rect.
...And 3 more matches
<symbol> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage> ; default value: auto; animatable: yes preserveaspectratio this attribute defines how the svg fragment must be deformed if it is embedded in a container with a different aspect ratio.
... value type: <length>|<percen
tage>|left|center|right ; default value: 0; animatable: yes refy this attribute determines the y coordinate of the reference point of the symbol.
... value type: <length>|<percen
tage>|top|center|bottom ; default value: 0; animatable: yes viewbox this attribute defines the bound of the svg viewport for the current symbol.
...And 3 more matches
WebAssembly Concepts - WebAssembly
what’s more, you don’t even have to know how to create webassembly code to take advan
tage of it.
...javascript frameworks could make use of webassembly to confer massive performance advan
tages and new features while still making functionality easily available to web developers.
... webassembly goals webassembly is being created as an open standard inside the w3c webassembly community group with the following goals: be fast, efficient, and portable — webassembly code can be executed at near-native speed across different platforms by taking advan
tage of common hardware capabilities.
...And 3 more matches
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
the main advan
tage of using an extension is that it is easy to package everything up and install it on another machine.
...module and xpi_name are both set to the name of your extension; they should be repeated in all project makefiles so that all of the files land in the same place in the xpi s
taging area (see below).
...you don't have to provide an xpi_pkgname, but if you do an xpi file, suitable for distribution, is automatically created in the root of the xpi s
taging area (/mozilla/$(moz_objdir)/dist/xpi-s
tage/).
...And 2 more matches
Extension Versioning, Update and Compatibility - Archive of obsolete content
formatting prior to firefox 4 prior to firefox 4 you could only use the following
tags, any other
tags have themselves and their contents completely stripped: h1, h2 and h3 for general headings p for paragraphs ul and ol for lists.
... within lists use the usual li
tag for each list item.
... within h1, h2, h3, p and li
tags you may use: b or strong for bolder text i or em for italicized text formatting in firefox 4 and later from firefox 4 the restrictions are relaxed somewhat.
...And 2 more matches
Appendix B: Install and Uninstall Scripts - Archive of obsolete content
uninstalling an add-on happens in 2 s
tages: first the add-on is flagged to be uninstalled, and then the add-on is actually removed.
... so, in order to detect the first s
tage, you'll need to add an event listener using the addaddonlistener method.
... if you detect your add-on is going to be uninstalled at this s
tage, it's a good time to show the uninstall feedback form.
...And 2 more matches
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
the following code snippet shows a simplified version of the logic that happens in the actual sample: // doc is the dom to the document returned articles=doc.getelementsby
tagname("article"); for(i=0;i<articles.length;i++) { // acquiring the data from the dom...
... articletitle=article.getelementsby
tagname("article").item(0).firstchild.nodevalue; // inserting the content into the container..
... * * contributor(s): marcio galli <mgalli@mgalli.com> * * ***** end license block ***** */ //// /// calldevedge represents the inner-browsing function here // function calldevedge(loaddata,ele) { var x = new xmlremoterequest(); doc=x.getremotedocument(loaddata); document.getelementbyid("container").innerhtml=""; if(doc!=null) {
tagname="article"; // ie fix if(document.all)
tagname="nde:"+
tagname; articles=doc.getelementsby
tagname(
tagname); for(i=0;i<articles.length;i++) { article=articles.item(i);
tagname="title"; // ie fix if(document.all)
tagname="nde:"+
tagname; valuee=article.getelementsby
tagname(
tagname).item(0).firstchild.nodevalue; ...
...And 2 more matches
Using XML Data Islands in Mozilla - Archive of obsolete content
internet explorer had an "xml data islands" feature that allows web authors include xml data inline in html documents using the <xml>
tag.
...when putting xml in a data block, you need to make sure that the xml content you are embedding does not have an end
tag that case-insensitively matches "</script>".
... item 1</name> <price>1.25</price> </lineitem> <lineitem> <name>line item 2</name> <price>2.48</price> </lineitem> </purchaseorder> </script> <script> function rundemo() { var ordersource = document.getelementbyid("purchase-order").textcontent; var parser = new domparser(); var doc = parser.parsefromstring(ordersource, "application/xml"); var lineitems = doc.getelementsby
tagnamens("http://example.mozilla.org/purchaseorderml", "lineitem"); var firstprice = lineitems[0].getelementsby
tagnamens("http://example.mozilla.org/purchaseorderml", "price")[0].textcontent; document.body.textcontent = "the purchase order contains " + lineitems.length + " line items.
...And 2 more matches
Binding Implementations - Archive of obsolete content
introduction bindings can define methods and properties on a bound element using the implementation
tag.
... the methods and properties of an implementation can be defined declaratively using method and property
tags in xml, or an external implementation (e.g., a binary implementation) can be specified using the src attribute.
...the name given on the
tag using the name attribute is the name that can be used to invoke the method on the element.
...And 2 more matches
Deprecated and defunct markup - Archive of obsolete content
{many elements on this page are wrongly marked as deprecated, this page needs review} the following xul
tags and attribute should be considered deprecated, if not defunct.
...even some of the information on the
tags below may be out of date, but is provided here for historical reference and to help anyone who comes across them in old code or documentation.
... elements <actions> (listed here by mistake or was it a container
tag?) typo for <action> --neil 03 march 2011 <autorepeatbutton> (action occurs repeatedly on mouse hover--used to construct other elements; used in <arrowscrollbox> and large drop-down menus) so, not deprecated?
...And 2 more matches
Introduction to XUL - Archive of obsolete content
our current code tends not to be strict about enforcing this, especially for
tags and attributes in the html namespace.
... this will change:
tags and attributes will, as a rule, always be lower case as suggested in the xhtml working draft.
...correct namespace usage dictates that the namespace be used only for the
tag, not in individual attributes.
...And 2 more matches
Special Condition Tests - Archive of obsolete content
parent
tag tests sometimes you want to simply generate one block of content at the top level and different content at the recurisive level.
...templates have a means of allowing a rule to match only if the generated content would be inserted inside an element with a particular
tag name.
...for the bookmarks toolbar, the outer content is inserted into an <hbox>, but at lower levels, the content will be inserted into a <menu> in case you aren't clear, the
tag that must match for the outer iteration is the root element, the one with the datasources attribute on it.
...And 2 more matches
Adding Buttons - Archive of obsolete content
like html, xul has a number of
tags that can be used to create user interface elements.
... the most basic of these is the button
tag.
... syntax of buttons the button
tag has the following syntax: <button id="identifier" class="dialog" label="ok" image="images/image.jpg" disabled="true" accesskey="t"/> the attributes are as follows, all of which are optional: id a unique identifier so that you can identify the button with.
...And 2 more matches
Adding Event Handlers - Archive of obsolete content
you can embed the script code directly in the xul file in between the opening and closing script
tags but it is much better to include code in a separate file as the xul window will load slightly faster.
...add the line below just after the opening window
tag and before any elements.
... you can include multiple scripts in a xul file by using multiple script
tags, each pointing to a different script.
...And 2 more matches
Adding Labels and Images - Archive of obsolete content
text elements you cannot embed text directly into a xul file without
tags around it and expect it to be displayed.
...if the text needs to wrap, you can place the text content inside opening and closing
tags as in the following example: example 2 : <label>this is some longer text that will wrap onto several lines.</label> as with html, line breaks and extra whitespace are collapsed into a single space.
...description element for descriptive text not associated with any particular control, you can use the description
tag.
...And 2 more matches
Document Object Model - Archive of obsolete content
when an xul file is loaded, the
tags are parsed and converted into a hierarchical document structure of nodes, one for each
tag and block of text.
...the script
tag does allow code to be contained directly inside of it.
... the children are the child
tags of the element and will be nested inside the element in the source.
...And 2 more matches
Focus and Selection - Archive of obsolete content
xample 3 : source view <window id="focus-example" title="focus example" onload="init();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script> function init(){ addeventlistener("focus",setfocusedelement,true); } function setfocusedelement(){ var focused = document.commanddispatcher.focusedelement; document.getelementbyid("focused").value = focused.
tagname; } </script> <hbox> <label control="username" value="user name:"/> <textbox id="username"/> </hbox> <button label="hello"/> <checkbox label="remember this decision"/> <label id="focused" value="-no focus-"/> </window> in this example, a focus event handler is attached the window.
...this method gets the focused element from the command dispatcher and sets a label to its
tag name.
... as the focused element is changed, the label will show the
tagname of the element.
...And 2 more matches
XML - Archive of obsolete content
every xul widget must use close
tags to be well-formed.
...in xul, elements must either be of the form <
tag></
tag> or <
tag/> to be valid.
...they are a toolkit whose tools are as simple as html
tags but as powerful as visual gui builder tools.
...And 2 more matches
content - Archive of obsolete content
propiedades
tag, uri ejemplos (no son necesarios) atributos inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, ...
...pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width propiedades
tag type:
tag name this may be set to a
tag name.
... if set, the conditions will only match if the template builder is parsing content for an element directly inside this
tag.
...And 2 more matches
-ms-content-zoom-snap-points - Archive of obsolete content
initial valuesnapinterval(0%, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values snapinterval( <percen
tage>, <percen
tage> ) specifies where the snap-points will be placed.
... the first percen
tage specifies where the first snap-point will be placed.
... the second percen
tage specifies the distance between subsequent snap-points, both zoomed in and zoomed out from the initial snap-point.
...And 2 more matches
Writing JavaScript for XHTML - Archive of obsolete content
/*]]>*/ </style> and if you really need compatibility with very old browsers that do not recognize the script or style
tags resulting in their contents displayed on the page, you can use this: <script type="text/javascript"><!--//--><![cdata[//><!-- ...
... problem: names in xhtml and html are represented in different cases scripts that used getelementsby
tagname() with an upper case html name no longer work, and attributes like nodename or
tagname return upper case in html and lower case in xhtml.
... solution: use or convert to lower case for methods like getelementsby
tagname(), passing the name in lower case will work in both html and xhtml.
...And 2 more matches
Practical positioning examples - Learn web development
you won't need to understand the javascript itself at this s
tage, but you should think about learning some basic javascript as soon as possible — the more complex your ui features become, the more likely it is that you'll need some javascript to implement your desired functionality.
... general setup to begin with, add the following between your opening and closing <style>
tags: html { font-family: sans-serif; } * { box-sizing: border-box; } body { margin: 0; } this is just some general setup to set a sans-serif font on our page, use the border-box box-sizing model, and get rid of the default <body> margin.
...put the following block of code, exactly as written in between your opening and closing <script>
tags (you'll find these below the html content): var tabs = document.queryselectorall('.info-box li a'); var panels = document.queryselectorall('.info-box article'); for(i = 0; i < tabs.length; i++) { var tab = tabs[i]; settabhandler(tab, i); } function settabhandler(tab, tabpos) { tab.onclick = function() { for(i = 0; i < tabs.length; i++) { tabs[i].classname = ''; } tab.
...And 2 more matches
Tips for authoring fast-loading HTML pages - Learn web development
more information: http conditional get for rss hackers http 304: not modified http e
tag on wikipedia caching in http optimally order the components of the page download page content first, along with any css or javascript that may be required for its initial display, so that the user gets the quickest apparent response during the page loading.
... using valid markup has other advan
tages.
...for example, html tidy can remove whitespace and optional ending
tags; however, it will refuse to run on a page with serious markup errors.
...And 2 more matches
Handling common HTML and CSS problems - Learn web development
validation for html, validation involves making sure all your
tags are properly closed and nested, you are using a doctype, and you are using
tags for their correct purpose.
... html fallback behaviour some problems can be solved by just taking advan
tage of the natural way in which html/css work.
...you can add fallback content in between the opening and closing
tags, and non-supporting browsers will effectively ignore the outer element and run the nested content.
...And 2 more matches
Introducing a complete toolchain - Learn web development
three s
tages of tools as we talked about in chapter 1, the toolchain will be structured into the following phases: safety net: making the software development experience stable and more efficient.
...git is currently the most popular source code revision control tool available to developers — revision control provides many advan
tages, such as a way to backup your work in a remote place, and a mechanism to work in a team on the same project without fear of overwriting each other's code.
... next, enter the following command to turn your directory into an npm package, with the advan
tages that we discussed in the previous article: npm init --force this will create a default package.json file that we can configure later on if desired.
...And 2 more matches
Storage access policy: Block cookies from trackers
that user later visits your website, which includes a conversion tracking
tag from the same social media website.
...that user lands on your website, which includes a conversion tracking
tag from the same website that displayed your ad.
...a user clicks on your advertisement and is taken to a landing page that contains a conversion tracking
tag from the third-party network.
...And 2 more matches
WebRequest.jsm
the webrequest module provides an api to add event listeners for the various s
tages of making an http request.
... usage to import webrequest, 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 s
tage 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.
...what exactly you're able to do to a network request depends on the s
tage at which you have intercepted the request: that is, the webrequest event that your listener is attached to.
...And 2 more matches
Midas
decreasefontsize this command will add a <small>
tag around selection or at insertion point.
... the given string is such as would be used in the "face" attribute of the font
tag, i.e., a comma-separated list of font names.
... the given number is such as would be used in the "size" attribute of the font
tag.
...And 2 more matches
NSS Sample Code Sample_1_Hashing
sample code 1 /* nspr headers */ #include <prprf.h> #include <prtypes.h> #include <plgetopt.h> #include <prio.h> /* nss headers */ #include <secoid.h> #include <secmodt.h> #include <sechash.h> typedef struct { const char *hashname; secoid
tag oid; } name
tagpair; /* the hash algorithms supported */ static const name
tagpair hash_names[] = { { "md2", sec_oid_md2 }, { "md5", sec_oid_md5 }, { "sha1", sec_oid_sha1 }, { "sha256", sec_oid_sha256 }, { "sha384", sec_oid_sha384 }, { "sha512", sec_oid_sha512 } }; /* * maps a hash name to a secoid
tag.
... * returns null if the name is not a supported algorithm */ static secoid
tag hashnametooid
tag(const char *hashname) { int i, nhashes = sizeof(hash_names); secoid
tag hash
tag = sec_oid_unknown; for (i = 0; i < nhashes; i++) { if (port_strcasecmp(hashname, hash_names[i].hashname) == 0) { hash
tag = hash_names[i].oid; break; } } return hash
tag; } /* * newline */ static void newline(prfiledesc* out) { pr_fprintf(out, "\n"); } /* * printashex */ void printashex(prfiledesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit = 15; unsigned int level = 1; column = level; if (!len) { pr_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i++)...
... */ static int digestfile(prfiledesc *outfile, prfiledesc *infile, secoid
tag hashoid
tag) { unsigned int nb; unsigned char ibuf[4096]; unsigned char digest[64]; unsigned int len; unsigned int digestlen; hash_hashtype hashtype; hashcontext *hashcontext = null; hashtype = hash_gethashtypebyoid
tag(hashoid
tag); hashcontext = hash_create(hashtype); if (hashcontext == null) { return secfailure; } do { has...
...And 2 more matches
Hashing - sample 1
*/ /* nspr headers */ #include <prprf.h> #include <prtypes.h> #include <plgetopt.h> #include <prio.h> /* nss headers */ #include <secoid.h> #include <secmodt.h> #include <sechash.h> #include <nss.h> typedef struct { const char *hashname; secoid
tag oid; } name
tagpair; /* the hash algorithms supported */ static const name
tagpair hash_names[] = { { "md2", sec_oid_md2 }, { "md5", sec_oid_md5 }, { "sha1", sec_oid_sha1 }, { "sha256", sec_oid_sha256 }, { "sha384", sec_oid_sha384 }, { "sha512", sec_oid_sha512 } }; /* * maps a hash name to a secoid
tag.
... * returns null if the name if not a supported algorithm */ static secoid
tag hashnametooid
tag(const char *hashname) { int i, nhashes = sizeof(hash_names); secoid
tag hash
tag = sec_oid_unknown; for (i = 0; i < nhashes; i++) { if (port_strcasecmp(hashname, hash_names[i].hashname) == 0) { hash
tag = hash_names[i].oid; break; } } return hash
tag; } /* * newline */ static void newline(prfiledesc* out) { pr_fprintf(out, "\n"); } /* * printashex */ void printashex(prfiledesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit = 15; unsigned int level = 1; column = level; if (!len) { pr_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; ...
... */ static int digestfile(prfiledesc *outfile, prfiledesc *infile, secoid
tag hashoid
tag) { unsigned int nb; unsigned char ibuf[4096]; unsigned char digest[64]; unsigned int len; hash_hashtype hashtype; hashcontext *hashcontext = null; hashtype = hash_gethashtypebyoid
tag(hashoid
tag); hashcontext = hash_create(hashtype); if (hashcontext == null) { return secfailure; } do { hash_begin(hashcontext); ...
...And 2 more matches
sample1
/* nspr headers */ #include <prprf.h> #include <prtypes.h> #include <plgetopt.h> #include <prio.h> #include <prprf.h> /* nss headers */ #include <secoid.h> #include <secmodt.h> #include <sechash.h> typedef struct { const char *hashname; secoid
tag oid; } name
tagpair; /* the hash algorithms supported */ static const name
tagpair hash_names[] = { { "md2", sec_oid_md2 }, { "md5", sec_oid_md5 }, { "sha1", sec_oid_sha1 }, { "sha256", sec_oid_sha256 }, { "sha384", sec_oid_sha384 }, { "sha512", sec_oid_sha512 } }; /* maps a hash name to a secoid
tag.
... * returns null if the name is not a supported algorithm */ static secoid
tag hashnametooid
tag(const char *hashname) { int i, nhashes = sizeof(hash_names); secoid
tag hash
tag = sec_oid_unknown; for (i = 0; i < nhashes; i++) { if (port_strcasecmp(hashname, hash_names[i].hashname) == 0) { hash
tag = hash_names[i].oid; break; } } return hash
tag; } /* newline */ static void newline(prfiledesc* out) { pr_fprintf(out, "\n"); } /* printashex */ void printashex(prfiledesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit = 15; unsigned int level = 1; column = level; if (!len) { pr_fprintf(out, "(empty)\n"); return; ...
... */ static int digestfile(prfiledesc *outfile, prfiledesc *infile, secoid
tag hashoid
tag) { unsigned int nb; unsigned char ibuf[4096]; unsigned char digest[64]; unsigned int len; unsigned int digestlen; hash_hashtype hashtype; hashcontext *hashcontext = null; hashtype = hash_gethashtypebyoid
tag(hashoid
tag); hashcontext = hash_create(hashtype); if (hashcontext == null) { return secfailure; } d...
...And 2 more matches
TPS Tests
--testfile parameter will cause it to run all tps tests listed in services/sync/tests/tps/all_tests.json an example on osx, for running just the test_sync.js testfile against a locally built firefox (where the mozconfig set the objdir to obj-ff-artifact): runtps --debug --testfile test_sync.js --binary obj-ff-artifact/dist/nightly.app/contents/macos/firefox running tps against s
tage, or dev fxa tps can be configured using the $tps_venv_path/config.json file.
...for example, a (partial) tps config for testing against s
tage might look like: { // ...
... "fx_account": { "username": "foobar@restmail.net", "password": "hunter2" }, "preferences": { // use "https://stable.dev.lcip.org" for dev instead of s
tage "identity.fxaccounts.autoconfig.uri": "https://accounts.s
tage.mozaws.net" // possibly more preferences...
...And 2 more matches
Interfacing with the XPCOM cycle collector
this is the idle s
tage of the collector's operation, in which special variants of nsautorefcnt register and unregister themselves very rapidly with the collector, as they pass through a "suspicious" refcount event (from n+1 to n, for nonzero n).
...this is the scanning s
tage of the collector's operation.
... in this s
tage the collector repeatedly asks each candidate for a singleton cycle-collection helper class, and if that helper exists, the collector asks the helper to describe the candidate's (owned) children.
...And 2 more matches
Plug-in Basics - Plugins
the next section, understanding the runtime model, describes these s
tages in more detail.
... the following s
tages outline the life of a plug-in from loading to deletion: when gecko encounters data of a mime type registered for a plug-in (either embedded in an html page or in a separate file), it dynamically loads the plug-in code into memory, if it hasn't been loaded already, and it creates a new instance of the plug-in.
...in general, if you want a plug-in to generate additional threads to handle processing at any s
tage in its lifespan, you should be careful to isolate these from plug-in api calls.
...And 2 more matches
HTMLTextAreaElement - Web APIs
t > ofield.clientheight) { ofield.style.height = ofield.scrollheight + "px"; } } css textarea.noscrollbars { overflow: hidden; width: 300px; height: 100px; } html <form> <fieldset> <legend>your comments</legend> <p><textarea class="noscrollbars" onkeyup="autogrow(this);"></textarea></p> <p><input type="submit" value="send" /></p> </fieldset> </form> insert html
tags example insert some html
tags or smiles or any custom text in a textarea.
... javascript function insertmetachars(sstart
tag, send
tag) { var bdouble = arguments.length > 1, omsginput = document.myform.mytxtarea, nselstart = omsginput.selectionstart, nselend = omsginput.selectionend, soldtext = omsginput.value; omsginput.value = soldtext.substring(0, nselstart) + (bdouble ?
... sstart
tag + soldtext.substring(nselstart, nselend) + send
tag : sstart
tag) + soldtext.substring(nselend); omsginput.setselectionrange(bdouble || nselstart === nselend ?
...And 2 more matches
ServiceWorkerRegistration.showNotification() - Web APIs
this string must be a valid bcp 47 language
tag.
... renotify: a boolean that indicates whether to suppress vibrations and audible alerts when reusing a
tag value.
... if options’s renotify is true and options’s
tag is the empty string a typeerror will be thrown.
...And 2 more matches
VTTRegion - Web APIs
vttregion.width a double representing the width of the region, as a percen
tage of the video.
... vttregion.regionanchorx a double representing the region anchor x offset, as a percen
tage of the region.
... vttregion.regionanchory a double representing the region anchor y offset, as a percen
tage of the region.
...And 2 more matches
font-stretch - CSS: Cascading Style Sheets
<percen
tage> a <percen
tage> value between 50% and 200% (inclusive).
...css fonts level 4 extends the syntax to accept a <percen
tage> value as well.
... keyword to numeric mapping the table below shows the mapping between keyword values and numeric percen
tages: keyword percen
tage ultra-condensed 50% extra-condensed 62.5% condensed 75% semi-condensed 87.5% normal 100% semi-expanded 112.5% expanded 125% extra-expanded 150% ultra-expanded 200% variable fonts most fonts have a particular width which corresponds to one of th...
...And 2 more matches
CSS reference - CSS: Cascading Style Sheets
--webkit-line-clampa:activeadditive-symbols (@counter-style)::after (:after)align-contentalign-itemsalign-selfall<an-plus-b><angle><angle-percen
tage>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-repeatbackgrou...
...-sizefont-size-adjustfont-stretchfont-stretch (@font-face)font-stylefont-style (@font-face)font-synthesisfont-variantfont-variant (@font-face)font-variant-alternatesfont-variant-capsfont-variant-east-asianfont-variant-ligaturesfont-variant-numericfont-variant-positionfont-variation-settingsfont-variation-settings (@font-face)font-weightfont-weight (@font-face)format()fr<frequency><frequency-percen
tage>:fullscreenggapgrad<gradient>grayscale()gridgrid-areagrid-auto-columnsgrid-auto-flowgrid-auto-rowsgrid-columngrid-column-endgrid-column-startgrid-rowgrid-row-endgrid-row-startgrid-templategrid-template-areasgrid-template-columnsgrid-template-rowshhzhanging-punctuationheightheight (@viewport)@historical-forms:hoverhsl()hsla()hue-rotate()hyphensi<ident><image>image()image-orientationimage-renderin...
...gimage-set()@importin:in-range:indeterminateinheritinitialinline-sizeinsetinset()inset-blockinset-block-endinset-block-startinset-inlineinset-inline-endinset-inline-start<integer>:invalidinvert()isolationjjustify-contentjustify-itemsjustify-selfkkhz@keyframesl:lang:last-child:last-of-typeleader():leftleft@left-bottom<length><length-percen
tage>letter-spacingline-breakline-heightlinear-gradient():linklist-stylelist-style-imagelist-style-positionlist-style-typelocal()mmarginmargin-blockmargin-block-endmargin-block-startmargin-bottommargin-inlinemargin-inline-endmargin-inline-startmargin-leftmargin-rightmargin-top::markermarks (@page)maskmask-bordermask-border-modemask-border-outsetmask-border-repeatmask-border-slicemask-border-sourcemask-border-widthmask-clipmask-compositemask-imagemask-modemask...
...And 2 more matches
background-position-x - CSS: Cascading Style Sheets
syntax /* keyword values */ background-position-x: left; background-position-x: center; background-position-x: right; /* <percen
tage> values */ background-position-x: 25%; /* <length> values */ background-position-x: 0px; background-position-x: 1cm; background-position-x: 8em; /* side-relative values */ background-position-x: right 3px; background-position-x: left 25%; /* multiple values */ background-position-x: 0px, center; /* global values */ background-position-x: inherit; background-position-x: initial; background-po...
... <percen
tage> the offset of the given background image's horizontal position relative to the container.
... formal definition initial valueleftapplies toall elementsinheritednopercen
tagesrefer to width of background positioning area minus height of background imagecomputed valuea list, each item consisting of: an offset given as a combination of an absolute length and a percen
tage, plus an origin keywordanimation typediscrete formal syntax [ center | [ [ left | right | x-start | x-end ]?
...And 2 more matches
background-position-y - CSS: Cascading Style Sheets
syntax /* keyword values */ background-position-y: top; background-position-y: center; background-position-y: bottom; /* <percen
tage> values */ background-position-y: 25%; /* <length> values */ background-position-y: 0px; background-position-y: 1cm; background-position-y: 8em; /* side-relative values */ background-position-y: bottom 3px; background-position-y: bottom 10%; /* multiple values */ background-position-y: 0px, center; /* global values */ background-position-y: inherit; background-position-y: initial; background...
... <percen
tage> the offset of the given background image's vertical position relative to the container.
... formal definition initial valuetopapplies toall elementsinheritednopercen
tagesrefer to height of background positioning area minus height of background imagecomputed valuea list, each item consisting of: an offset given as a combination of an absolute length and a percen
tage, plus an origin keywordanimation typediscrete formal syntax [ center | [ [ top | bottom | y-start | y-end ]?
...And 2 more matches
calc() - CSS: Cascading Style Sheets
it can be used anywhere a <length>, <frequency>, <angle>, <time>, <percen
tage>, <number>, or <integer> is allowed.
...for instance, calc(50% -8px) will be parsed as a percen
tage followed by a negative length — an invalid expression — while calc(50% - 8px) is a percen
tage followed by a subtraction operator and a length.
... likewise, calc(8px + -50%) is treated as a length followed by an addition operator and a negative percen
tage.
...And 2 more matches
clip-path - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercen
tagesrefer to reference box when specified, otherwise border-boxcomputed valueas specified, but with <url> values made absoluteanimation typeyes, as specified for <basic-shape>, otherwise no formal syntax <clip-source> | [ <basic-shape> | <geometry-box> ] | nonewhere <clip-source> = <url><basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()><geometry-box> = <shape-box> | fill...
...-box | stroke-box | view-boxwhere <inset()> = inset( <length-percen
tage>{1,4} [ round <'border-radius'> ]?
..., [ <length-percen
tage> <length-percen
tage> ]# )<path()> = path( [ <fill-rule>, ]?
...And 2 more matches
grid-auto-columns - CSS: Cascading Style Sheets
syntax /* keyword values */ grid-auto-columns: min-content; grid-auto-columns: max-content; grid-auto-columns: auto; /* <length> values */ grid-auto-columns: 100px; grid-auto-columns: 20cm; grid-auto-columns: 50vmax; /* <percen
tage> values */ grid-auto-columns: 10%; grid-auto-columns: 33.3%; /* <flex> values */ grid-auto-columns: 0.5fr; grid-auto-columns: 3fr; /* minmax() values */ grid-auto-columns: minmax(100px, auto); grid-auto-columns: minmax(max-content, 2fr); grid-auto-columns: minmax(20%, 80vmax); /* fit-content() values */ grid-auto-columns: fit-content(400px); grid-auto-columns: fit-content(5cm); grid-auto-colu...
... <percen
tage> is a non-negative <percen
tage> value relative to the block size of the grid container.
... if the block size of the grid container is indefinite, the percen
tage value is treated like auto.
...And 2 more matches
grid-auto-rows - CSS: Cascading Style Sheets
syntax /* keyword values */ grid-auto-rows: min-content; grid-auto-rows: max-content; grid-auto-rows: auto; /* <length> values */ grid-auto-rows: 100px; grid-auto-rows: 20cm; grid-auto-rows: 50vmax; /* <percen
tage> values */ grid-auto-rows: 10%; grid-auto-rows: 33.3%; /* <flex> values */ grid-auto-rows: 0.5fr; grid-auto-rows: 3fr; /* minmax() values */ grid-auto-rows: minmax(100px, auto); grid-auto-rows: minmax(max-content, 2fr); grid-auto-rows: minmax(20%, 80vmax); /* multiple track-size values */ grid-auto-rows: min-content max-content auto; grid-auto-rows: 100px 150px 390px; grid-auto-rows: 10% 33.3...
... <percen
tage> is a non-negative <percen
tage> value relative to the block size of the grid container.
... if the block size of the grid container is indefinite, the percen
tage value is treated like auto.
...And 2 more matches
height - CSS: Cascading Style Sheets
syntax /* keyword value */ height: auto; /* <length> values */ height: 120px; height: 10em; /* <percen
tage> value */ height: 75%; /* global values */ height: inherit; height: initial; height: unset; values <length> defines the height as an absolute value.
... <percen
tage> defines the height as a percen
tage of the containing block's height.
... fit-content(<length-percen
tage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...And 2 more matches
max-height - CSS: Cascading Style Sheets
syntax /* <length> value */ max-height: 3.5em; /* <percen
tage> value */ max-height: 75%; /* keyword values */ max-height: none; max-height: max-content; max-height: min-content; max-height: fit-content(20em); /* global values */ max-height: inherit; max-height: initial; max-height: unset; values <length> defines the max-height as an absolute value.
... <percen
tage> defines the max-height as a percen
tage of the containing block's height.
... fit-content(<length-percen
tage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...And 2 more matches
min-height - CSS: Cascading Style Sheets
syntax /* <length> value */ min-height: 3.5em; /* <percen
tage> value */ min-height: 10%; /* keyword values */ min-height: max-content; min-height: min-content; min-height: fit-content(20em); /* global values */ min-height: inherit; min-height: initial; min-height: unset; values <length> defines the min-height as an absolute value.
... <percen
tage> defines the min-height as a percen
tage of the containing block's height.
... fit-content(<length-percen
tage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...And 2 more matches
minmax() - CSS: Cascading Style Sheets
each parameter can be a <length>, a <percen
tage>, a <flex> value, or one of the keyword values max-content, min-content, or auto.
... <percen
tage> a non-negative percen
tage relative to the inline size of the grid container in column grid tracks, and the block size of the grid container in row grid tracks.
... if the size of the grid container depends on the size of its tracks, then the <percen
tage> must be treated as auto.
...And 2 more matches
repeating-radial-gradient() - CSS: Cascading Style Sheets
<color-stop> a color-stop's <color> value, followed by an optional stop position (either a <percen
tage> or a <length> along the gradient's axis).
... a percen
tage of 0%, or a length of 0, represents the center of the gradient; the value 100% represents the intersection of the ending shape with the virtual gradient ray.
... percen
tage values in between are linearly positioned on the virtual gradient ray.
...And 2 more matches
translate() - CSS: Cascading Style Sheets
syntax /* single <length-percen
tage> values */ transform: translate(200px); transform: translate(50%); /* double <length-percen
tage> values */ transform: translate(100px, 200px); transform: translate(100px, 50%); transform: translate(30%, 200px); transform: translate(30%, 50%); values single <length-percen
tage> values this value is a <length> or <percen
tage> representing the abscissa (horizontal, x-coordinate) of the translating vector.
...a percen
tage value refers to the width of the reference box defined by the transform-box property.
... double <length-percen
tage> values this value describes two <length> or <percen
tage> values representing both the abscissa (x-coordinate) and the ordinate (y-coordinate) of the translating vector.
...And 2 more matches
transform - CSS: Cascading Style Sheets
find out more: mdn understanding wcag, guideline 2.3 explanations understanding success criterion 2.3.3 | w3c understanding wcag 2.1 formal definition initial valuenoneapplies totransformable elementsinheritednopercen
tagesrefer to the size of bounding boxcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea transformcreates stacking contextyes formal syntax none | <transform-list>where <transform-list> = <transform-function>+where <transform-function> = <matrix()> | <translate()> | <translatex()> | <translatey()> | <scale()> | <scalex()> | <scaley()> | <rotate()> |...
... <skew()> | <skewx()> | <skewy()> | <matrix3d()> | <translate3d()> | <translatez()> | <scale3d()> | <scalez()> | <rotate3d()> | <rotatex()> | <rotatey()> | <rotatez()> | <perspective()>where <matrix()> = matrix( <number>#{6} )<translate()> = translate( <length-percen
tage> , <length-percen
tage>?
... )<translatex()> = translatex( <length-percen
tage> )<translatey()> = translatey( <length-percen
tage> )<scale()> = scale( <number> , <number>?
...And 2 more matches
word-spacing - CSS: Cascading Style Sheets
the word-spacing css property sets the length of space between words and between
tags.
... syntax /* keyword value */ word-spacing: normal; /* <length> values */ word-spacing: 3px; word-spacing: 0.3em; /* <percen
tage> values */ word-spacing: 50%; word-spacing: 200%; /* global values */ word-spacing: inherit; word-spacing: initial; word-spacing: unset; values normal the normal inter-word spacing, as defined by the current font and/or the browser.
... <percen
tage> specifies extra spacing as a percen
tage of the affected character’s advance width.
...And 2 more matches
<nextid>: The NeXT ID element (Obsolete) - HTML: Hypertext Markup Language
this element has the distinction of being the first element to become one of the "lost
tags" by being eliminated from the official public dtd's of the html versions.
... html "0.a" - from the beginning through january 10, 1991 this
tag had not been invented as yet, so no examples are found from this period.
...next would then add, within the header of the html document, a special
tag, <nextid n="z8">, to inform where to continue its naming convention.
...And 2 more matches
<p>: The Paragraph element - HTML: Hypertext Markup Language
paragraphs are block-level elements, and notably will automatically close if another block-level element is parsed before the closing </p>
tag.
... see “
tag omission” below.
...
tag omission the start
tag is required.
...And 2 more matches
HTML elements reference - HTML: Hypertext Markup Language
this page lists all the html elements, which are created using
tags.
... text content use html text content elements to organize blocks or sections of content placed between the opening <body> and closing </body>
tags.
... <listing> the html listing element (<listing>) renders text between the start and end
tags without interpreting the html in between and using a monospaced font.
...And 2 more matches
HTML: Hypertext Markup Language
an html element is set off from other text in a document by "
tags", which consist of the element name surrounded by "<" and ">".
... the name of an element inside a
tag is case insensitive.
...for example, the <title>
tag can be written as <title>, <title>, or in any other way.
...And 2 more matches
Content-Language - HTTP
multiple language
tags are also possible, as well as applying the content-language header to various media types and not only to textual documents.
... syntax content-language: de-de content-language: en-us content-language: de-de, en-ca directives language-
tag multiple language
tags are separated by comma.
... each language
tag is a sequence of one or more case-insensitive sub
tags, each separated by a hyphen character ("-", %x2d).
...And 2 more matches
If-Match - HTTP
for get and head methods, the server will send back the requested resource only if it matches one of the listed e
tags.
... the comparison with the stored e
tag uses the strong comparison algorithm, meaning two files are considered identical byte to byte only.
... if a listed e
tag has the w/ prefix indicating a weak entity
tag, it will never match under this comparison algorithm.
...And 2 more matches
Intl.Locale - JavaScript
the locale identifier consists of a language identifier and extension
tags.
... language identifiers are the core of the locale, consisting of language, script, and region sub
tags.
... additional information about the locale is stored in the optional extension
tags.
...And 2 more matches
typeof - JavaScript
the only known browser to have actually taken advan
tage of this is old internet explorer (see below).
...w boolean(true) === 'object'; typeof new number(1) === 'object'; typeof new string('abc') === 'object'; // functions typeof function() {} === 'function'; typeof class c {} === 'function'; typeof math.sin === 'function'; typeof null // this stands since the beginning of javascript typeof null === 'object'; in the first implementation of javascript, javascript values were represented as a type
tag and a value.
... the type
tag for objects was 0.
...And 2 more matches
Authoring MathML - MathML
just like html, mathml is described with
tags and attributes.
... mathematical notations are even more complex with structures like fractions, square roots or matrices that are likely to require their own
tags.
..."<" for
tags or "$" for money amounts) you may need to synchronize the javascript converter with other javascript programs on your page.
...And 2 more matches
Image file type and format guide - Web media technologies
graphic expert group image image/jpeg .jpg, .jpeg, .jfif, .pjpeg, .pjp chrome, edge, firefox, internet explorer, opera, safari png portable network graphics image/png .png chrome, edge, firefox, internet explorer, opera, safari svg scalable vector graphics image/svg+xml .svg chrome, edge, firefox, internet explorer, opera, safari tiff
tagged image file format image/tiff .tif, .tiff none built-in; add-ons required webp web picture format image/webp .webp chrome, edge, firefox, opera the abbreviation for each format links to a longer description of the format, its capabilities, and detailed browser compatibility information; including which versions introduced support and specific special feature...
... tiff (
tagged image file format) tiff is a raster graphics file format which was created to store scanned photos, although it can be any kind of image.
... every value in a tiff file is specified using its
tag (indicating what kind of information it is, such as the width of the image) and its type (indicating the format the data is stored in), followed by the length of the array of values to assign to that
tag (all properties are stored in arrays, even for single values).
...And 2 more matches
systemLanguage - SVG: Scalable Vector Graphics
the systemlanguage attribute represents a list of supported language
tags.
...>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <audio>, <canvas>, <circle>, <clippath>, <cursor>, <defs>, <discard>, <ellipse>, <foreignobject>, <g>, <iframe>, <image>, <line>, <mask>, <path>, <pattern>, <polygon>, <polyline>, <rect>, <set>, <svg>, <switch>, <text>, <textpath>, <tref>, <tspan>, <unknown>, <use>, and <video> usage notes value <language-
tags> default value none animatable no <language-
tags> the value is a set of comma-separated tokens, each of which must be a language-
tag value, as defined in bcp 47.
... the attribute evaluates to "true" if one of the language
tags indicated by user preferences is a case-insensitive match or prefix (followed by a "-") of one of the language
tags given in the value of this parameter.
...And 2 more matches
<line> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage>|<number> ; default value: 0; animatable: yes x2 defines the x-axis coordinate of the line ending point.
... value type: <length>|<percen
tage>|<number> ; default value: 0; animatable: yes y1 defines the y-axis coordinate of the line starting point.
... value type: <length>|<percen
tage>|<number> ; default value: 0; animatable: yes y2 defines the y-axis coordinate of the line ending point.
...And 2 more matches
<text> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage> ; default value: 0; animatable: yes y the y coordinate of the starting point of the text baseline.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes dx shifts the text position horizontally from a previous text element.
... value type: <length>|<percen
tage> ; default value: none; animatable: yes dy shifts the text position vertically from a previous text element.
...And 2 more matches
<tspan> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage> ; default value: none; animatable: yes y the y coordinate of the starting point of the text baseline.
... value type: <length>|<percen
tage> ; default value: none; animatable: yes dx shifts the text position horizontally from a previous text element.
... value type: <length>|<percen
tage> ; default value: none; animatable: yes dy shifts the text position vertically from a previous text element.
...And 2 more matches
Namespaces crash course - SVG: Scalable Vector Graphics
being able to mix content types like this has many advan
tages, but it also required a very real problem to be solved.
... <svg xmlns="http://www.w3.org/2000/svg"> <!-- more
tags here --> </svg> the namespace declaration is provided by the xmlns parameter.
... <html xmlns="http://www.w3.org/1999/xhtml"> <body> <!-- some xhtml
tags here --> <svg xmlns="http://www.w3.org/2000/svg" width="300px" height="200px"> <!-- some svg
tags here --> </svg> <!-- some xhtml
tags here --> </body> </html> in this example the xmlns parameter on the root <html> element declares the default namespace to be xhtml.
...And 2 more matches
page-mod - Archive of obsolete content
for example, the following add-on retrieves the html content of specific
tags from documents that match the pattern.
... the main add-on code sends the desired
tag to the content script, and the content script replies by sending the html content of all the elements with that
tag.
... /lib/main.js: var
tag = "p"; var data = require("sdk/self").data; var pagemod = require("sdk/page-mod"); pagemod.pagemod({ include: "*.mozilla.org", contentscriptfile: data.url("element-getter.js"), onattach: function(worker) { worker.port.emit("getelements",
tag); worker.port.on("gotelement", function(elementcontent) { console.log(elementcontent); }); } }); /data/element-getter.js: self.port.on("getelements", function(
tag) { var elements = document.getelementsby
tagname(
tag); for (var i = 0; i < elements.length; i++) { self.port.emit("gotelement", elements[i].innerhtml); } }); when the user loads a document hosted at "mozilla.org": the content script "element-getter.js" is attached to the document and runs.
... the following add-on creates a button which, when clicked, highlights all the div elements in the document loaded into the active tab: require("sdk/ui/button/action").actionbutton({ id: "highlight-divs", label: "highlight divs", icon: "./icon-16.png", onclick: function() { require("sdk/tabs").activetab.attach({ contentscript: 'var divs = document.getelementsby
tagname("div");' + 'for (var i = 0; i < divs.length; ++i) {' + 'divs[i].setattribute("style", "border: solid red 1px;");' + '}' }); } }); to run this example you'll also have to have an icon file named "icon-16.png" saved in your add-on's "data" directory.
HTML to DOM - Archive of obsolete content
safely parsing simple html to dom when using xmlhttprequest to get the html of a remote webpage, it is often advan
tageous to turn that html string into dom for easier manipulation.
...this will remove
tags like <script>, <style>, <head>, <body>, <title>, and <iframe>.
...the returned <body> object is of type element here is a sample that counts the number of paragraphs in a string: var dompars = htmlparser('<p>foo</p><p>bar</p>'); alert(dompars.getelementsby
tagname('p').length); if htmlparser() returns the element name html (instead of body), you have all document object with its complete functions list, therefore you can retrieve info within div
tag like this: var dompars = htmlparser("<div id='userinfo'>john was a mediocre programmer, but people liked him <strong>anyway</strong>.</div>"); alert(dompars.getelementbyid('userinfo').innerhtml); to pa...
...in the example, we dump() to the console the page's url and the text contained in the first h1
tag of the page's <body>.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
xul, on the other hand, was conceived from the ground up as a markup language for user interfaces, and makes it possible to insert ui components with sophisticated features just by writing
tags, without any particular scripting.
...in the past, a combination of html and javascript was used to produce this sort of complex ui structure, but in xul, it can be handled easily just by writing
tags.
... <menuitem label="item 2"/> <menuseparator/> <menuitem label="item 3"/> <menu label="submenu"> <menupopup> <menuitem label="item 4"/> <menuitem label="item 5"/> </menupopup> </menu> </menupopup> </menu> </menubar> listing 9: a menu definition figure 6: output from listing 9 each item in a menu is marked up with the menuitem
tag.
... by inserting an xul-overlay processing instruction between the xml declaration and the opening
tag of the root element, the xul document specified by the xul-overlay will be read in at the same time as the current xul document.
Appendix F: Monitoring DOM changes - Archive of obsolete content
their major advan
tage is in their performance and their ease of use, especially when combined with simple libraries.
... their main disadvan
tage is that, due to their recent advent, support is currently limited to firefox 14+ and chrome 18.
... css animation events this technique, which works on firefox 5+, has some particular advan
tages.
...the technique was adapted from the method used by the x-
tag library.
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
[html:]div) or an array of elements in json notation function
tag(elemnameorarray, elemattr) { // array of elements?
... if (array.isarray(elemnameorarray)) { var frag = doc.createdocumentfragment(); array.foreach(arguments, function(thiselem) { frag.appendchild(
tag.apply(null, thiselem)); }); return frag; } // single element?
...
tag.apply(null, childelem) : doc.createtextnode(childelem)); } }); return elem; } return
tag.apply(null, jsontemplate); } in the above, the namespaces object defines the namespace prefixes which can be used in the given dom tree.
...when using the jquery constructor, only empty
tags should be specified in order to avoid invoking the dom parser.
A XUL Bestiary - Archive of obsolete content
when you create styles in <style>
tags, as style attributes for individual elements, or in custom css files, you break the ability of gecko to skin the application to which your xul belongs.
...the parts of the document, such as the head, the links, the body, any
tags, are available as nodes whose attributes can be got and set.
...a loosely analogous relationship might be that xul, xptoolkit, and xpfe are to one another what html, the actual html
tags, and an html web page are to one another, respectively.
...note that the menu element includes both the opening
tag at the top and the closing
tag at the bottom of the example.
OpenClose - Archive of obsolete content
here is a complete example which uses a button to open a menu: <button label="open menu" oncommand="document.getelementbyid('editmenu').open = true;"/> <menu id="editmenu" label="edit"> <menupopup> <menuitem label="cut"/> <menuitem label="copy"/> <menuitem label="paste"/> </menupopup> </menu> this technique may be used for both menupopups that use the menu
tag, the button
tag and the toolbarbutton
tag.
... this technique may be used for both menupopups that use the menu
tag, the button
tag and the toolbarbutton
tag.
... var open = somemenu.open; opening a popup for opening menupopups that use the menu
tag, the button
tag and the toolbarbutton
tag, see opening menus above.
... for closing menupopups that use the menu
tag, the button
tag and the toolbarbutton
tag, see closing menus above.
Filtering - Archive of obsolete content
let's assume that we've given an id of 'cond' to the query
tag.
...in rdf/xml, a syntax shortcut may be used which involves replacing the description
tag with the type.
... we need to add the type to the two countries in the datasource, as well as ensure that the namespace is declared on the root rdf
tag: <nso:country about="http://www.daml.org/2001/09/countries/iso#it" dc:title="italy"/> <nso:country about="http://www.daml.org/2001/09/countries/iso#nl" dc:title="netherlands"/> the type of these two resources, when expanded with the namespace (not shown here), will be 'http://www.daml.org/2001/09/countries/country-ont#country'.
...this will work in this simple example, but has the disadvan
tage that the builder won't be able to generate the content lazily only when the popup is opened.
Adding Properties to XBL-defined Elements - Archive of obsolete content
to do this, add the default value as the content of the field
tag.
...actually, you can instead place a script inside the field
tag that evaluates to the default value.
...in these cases, you need to use a property
tag instead of a field
tag.
...readonly attribute you can make a field or property read-only by adding a readonly attribute to the field
tag or property
tag and setting it to true.
Advanced Rules - Archive of obsolete content
like the simple rules, full rules are placed within the rule
tag.
... full rules contain three child
tags, a conditions
tag, a bindings
tag and an action
tag, although the bindings
tag is not always needed.
...if the conditions match for a resource, the content placed within the actions
tag is generated.
...this resource will be placed in the 'list' variable as specified by the content
tag.
Grids - Archive of obsolete content
it has some similarities to the html table
tag.
... declaring a grid to declare a set of rows, use the rows
tag, which should be a child element of grid.
...each column is declared with the column
tag.
... flexibility of grids one advan
tage that grids have over a set of nested boxes is that you can create cells that are flexible both horizontally and vertically.
Using the Editor from XUL - Archive of obsolete content
in editor.xul, the <window>
tag has an onload handler: onload="editoronload()".
... the xul contains an <editor>
tag, e.g.: <editor type="content-primary" id="content-frame" src="about:blank" flex="1"/> the attribute type="content-primary" identifies this as the window content element, i.e.
...the <editor>
tag actually creates an nseditorboxobject behind the scenes.
... note: since we already know this when we have an <editor></editor>
tag, we should remove the need to call this.
Building XULRunner - Archive of obsolete content
a basic minimal mozconfig which will build a release configuration of xulrunner is: mk_add_options moz_co_project=xulrunner mk_add_options moz_objdir=@topsrcdir@/obj-xulrunner ac_add_options --enable-application=xulrunner #uncomment the following line if you don't want to build javaxpcom: #ac_add_options --disable-javaxpcom cvs
tags and xulrunner versions older xulrunner releases where
tagged in cvs with (for instance xulrunner_1_8_0_5_release ) up to version 1.8.0.5 the cvs repository does not have specific
tags for xulrunner anymore.
... instead a xulrunner build is a just special build made from the firefox/mozilla tree, using the same
tag as a firefox build.
... there is a convention where a certain xulrunner version maps to a certain
tag in the cvs.
... for instance xulrunner 1.8.1.3, the corresponding
tag is cvs is : firefox_2_0_0_3_release to find out how those firefox
tags and xulrunner version maps, check out the file mozilla/config/milestone.txt .
-ms-scroll-snap-points-x - Archive of obsolete content
initial valuesnapinterval(0px, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values note: a <length-percen
tage> is a value that can be either a <length> or a <percentaqe>.
... snapinterval( <length-percen
tage>, <length-percen
tage> ) specifies a starting snap-point followed by the interval between all snap-points.
... snaplist( <length-percen
tage># ) specifies the position of individual snap-points as a comma-separated list of values, each of which represents a zoom factor.
... formal syntax snapinterval( <length-percen
tage>, <length-percen
tage> ) | snaplist( <length-percen
tage># )where <length-percen
tage> = <length> | <percen
tage> examples this example demonstrates both types of values for the -ms-scroll-snap-points-x property.
-ms-scroll-snap-points-y - Archive of obsolete content
initial valuesnapinterval(0px, 100%)applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values note: a <length-percen
tage> is a value that can be either a <length> or a <percentaqe>.
... snapinterval( <length-percen
tage>, <length-percen
tage> ) specifies a starting snap-point followed by the interval between all snap-points.
... snaplist( <length-percen
tage># ) specifies the position of individual snap-points as a comma-separated list of values, each of which represents a zoom factor.
... formal syntax snapinterval( <length-percen
tage>, <length-percen
tage> ) | snaplist( <length-percen
tage># )where <length-percen
tage> = <length> | <percen
tage> examples this example demonstrates both types of values for the -ms-scroll-snap-points-y property.
Processing XML with E4X - Archive of obsolete content
compatibility issues prior to widespread browser support for the <script> element, it was common for javascript embedded in a page to be surrounded by html comment
tags to prevent <script> unaware browsers from displaying javascript code to the user.
...you can add an e4x=1 argument to your <script>
tag to disable this restriction: <script type="text/javascript;e4x=1"> ...
... var h = 'html'; var text = "here's some text"; var doc = <{h}><body>{text}</body></{h}>; alert(doc.toxmlstring()); // gives <html> <body>here's some text</body> </html> working with attributes xml literal syntax has a significant advan
tage over the xml constructor when you need to create markup dynamically.
... default default xml namespace = "http://www.w3.org/1999/xhtml"; // no need now to specify a namespace in the html
tag var xhtml = <html><head><title></title></head><body> <p>text</p></body></html>; alert(xhtml.head); // no need to specify a namespace on subelements here either non-default var xhtml = <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>embedded svg demo</title> </head> <body> <h1>embedded svg demo</h1> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 100"> ...
Explaining basic 3D theory - Game development
there are four s
tages to this processing: the first one involves arranging the objects in the world, and is called model transformation.
... those fragments — which are 3d projections of the 2d pixels — are aligned to the pixel grid, so eventually they can be printed out as pixels on a 2d screen display during the output merging s
tage.
...applying textures onto objects during the fragment processing s
tage of the rendering pipeline allows us to adjust it by wrapping and filtering it if necessary.
... output merging during the output manipulation s
tage all the fragments of the primitives from the 3d space are transformed into a 2d grid of pixels that are then printed out on the screen display.
HTML - MDN Web Docs Glossary: Definitions of Web-related terms
elements are surrounded by matching opening and closing
tags.
... each
tag begins and ends with angle brackets (<>).
... there are a few empty or void
tags that cannot enclose any text, for instance <img>.
... you can extend html
tags with attributes, which provide additional information affecting how the browser interprets the element: an html file is normally saved with an .htm or .html extension, served by a web server, and can be rendered by any web browser.
MDN Web Docs Glossary: Definitions of Web-related terms
accessibility accessibility tree (aom) adobe flash ajax algorithm alignment container alignment subject alpha (alpha channel) alpn api apple safari application context argument aria arpa arpanet array ascii asynchronous a
tag attribute b bandwidth base64 baseline beacon bézier curve bidi bigint blink block block (css) block (scripting) block cipher mode of operation boolean boot2gecko bootstrap bounding box breadcrumb brotli ...
... deserialization developer tools dhtml digest digital certificate distributed denial of service dmz dns doctype document directive document environment dom (document object model) domain domain name domain sharding dominator dos attack dtls (da
tagram transport layer security) dtmf (dual-tone multi-frequency signaling) dynamic programming language dynamic typing e ecma ecmascript effective connection type element empty element encapsulation encryption endianness engine entity entity header ev...
... stacking context state machine statement static method static typing strict mode string stun style origin stylesheet svg svn symbol symmetric-key cryptography synchronous syntax syntax error synthetic monitoring t
tag tcp tcp handshake tcp slow start telnet texel thread three js time to first byte time to interactive tld tofu transmission control protocol (tcp) transport layer security (tls) tree shaking trident truthy ttl turn type ...
...type coercion type conversion u udp (user da
tagram protocol) ui undefined unicode uri url urn usenet user agent utf-8 ux v validator value variable vendor prefix viewport visual viewport voip w w3c wai wcag web performance web server web standards webassembly webdav webextensions webgl webidl webkit webm webp webrtc websockets webvtt whatwg whitespace world wide web wrapper x ...
HTML Cheatsheet - Learn web development
while using html it can be very handy to have an easy way to remember how to use html
tags properly and how to apply them.
... remember that html
tags must be used for their semantic, not their appearance.
... it's always possible to totally change the look and feel of a given
tag using css so, when using html, take the time to focus on the meaning rather than the appearance.
...they take up only as much width as they need in a page and fit together horizontally like words in a sentence or books shelved side-by-side in a row.all inline elements can be implemented within the <body></body>
tags.
Define terms with HTML - Learn web development
to deal with these use cases, html provides
tags to mark descriptions and words described, so that your meaning gets across properly to your readers.
...note that <dfn>
tags go around the word to be defined, not the definition (the definition consists of the entire paragraph): <p><dfn>firefox</dfn> is the web browser created by the mozilla foundation.</p> another use for bold is to emphasize content.
... bold itself is a concept foreign to html, but there are
tags for indicating emphasis.
...you can use aria-describedby on any
tag enclosing a keyword to be defined (not just the <dfn> element).
Document and website structure - Learn web development
objective: learn how to structure your document using semantic
tags, and how to work out the structure of a simple website.
... basic sections of a document webpages can and will look pretty different from one another, but they all tend to share similar standard components, unless the page is displaying a fullscreen video or game, is part of some kind of art project, or is just badly structured: header: usually a big strip across the top with a big heading, logo, and perhaps a
tagline.
... to implement such semantic mark up, html provides dedicated
tags that you can use to represent such sections, for example: header: <header>.
...for example: <p>the king walked drunkenly back to his room at 01:00, the beer doing nothing to aid him as he s
taggered through the door <span class="editor-note">[editor's note: at this point in the play, the lights should be down low]</span>.</p> in this case, the editor's note is supposed to merely provide extra direction for the director of the play; it is not supposed to have extra semantic meaning.
Manipulating documents - Learn web development
add a <script></script> element just above the closing </body>
tag.
... document.getelementsby
tagname(), which returns an array-like object containing all the elements on the page of a given type, for example <p>s, <a>s, etc.
...const elementrefarray = document.getelementsby
tagname('p').
... which method you choose is up to you; both have their advan
tages and disadvan
tages.
Introduction to client-side frameworks - Learn web development
other things frameworks give us let's look at some of the other advan
tages conferred upon us by frameworks.
... as we've alluded to before, the advan
tages of frameworks are achievable in vanilla javascript, but using a framework takes away all of the cognitive load of having to solve these problems yourself.
...writing your whole application in javascript can make you lose sight of html and the purpose of its various
tags, and lead you to produce an html document that is un-semantic and inaccessible.
...there are a number of advan
tages of this approach, mostly around performance (your user's device isn’t building the page with javascript; it's already complete) and security (static pages have fewer attack vectors).
Getting started with Svelte - Learn web development
it's main current disadvan
tages are that it is a young framework — its ecosystem is therefore more limited in terms of tooling, support, plugins, clear usage patterns, etc.
...but it's advan
tages should be enough to make you interested to explore it.
... first steps with svelte being a compiler, you can't just add a <script src="svelte.js">
tag to your page and import it into your app.
... <main> <h1>hello {name}!</h1> <p>visit the <a href="https://svelte.dev/tutorial">svelte tutorial</a> to learn how to build svelte apps.</p> </main> svelte also supports
tags like {#if...}, {#each...}, and {#await...} — these examples allow you to conditionally render a portion of the markup, iterate through a list of elements, and work with async values, respectively.
Vue conditional rendering: editing existing todos - Learn web development
to do this, we will take advan
tage of vue's conditional rendering capabilities — namely v-if and v-else — to allow us to toggle between the existing todo item view, and an edit view where you can update todo item labels.
...you can also attach v-if to a <template>
tag if you need to conditionally render an entire template.
... first of all add v-if="!isediting" to the root <div> in your todoitem component, <div class="stack-small" v-if="!isediting"> next, below that <div>'s closing
tag add the following line: <to-do-item-edit-form v-else :id="id" :label="label"></to-do-item-edit-form> we also need to import and register the todoitemeditform component, so we can use it inside this template.
... fixing this is fortunately quite easy — we can do this by converting our isdone data item into a computed property — another advan
tage of computed properties is that they preserve reactivity, meaning (among other things) that their state is saved when the template changes like ours is now doing.
Deploying our app - Learn web development
actually deploying the updated code to a live url: or potentially a s
taging url so it can be reviewed first.
...a quick way to verify this is to run the following command: git status you should get a status report of what files are being tracked, what files are s
taged, and so on — all terms that are part of the git grammar.
... now we have three tasks ahead of us: add any changes we’ve made to the s
tage (a special name for the place that git will commit files from).
... now all the code is s
taged, we can commit; run the following command: git commit -m ’committing initial code’ note: although you're free to write whatever you wish in the commit message, there's some useful tips around the web on good commit messages.
Package management basics - Learn web development
it makes more sense to use a package manager such as npm, as this will guarantee that the code is added and removed cleanly, as well as a host of other advan
tages.
... one disadvan
tage is that parcel is only available inside our parcel-experiment app; you won't be able to run it in a different directory.
... but the advan
tages outweigh the disadvan
tages.
...though far from exhaustive, these are some of the common web development features that are very helpful at the development s
tage, but are not very useful in production.
Mozilla Web Developer FAQ
when xhtml output has been retrofitted to a content management system that was not designed for xml from the ground up, the system usually ends up discriminating gecko users by serving
tag soup labeled as xml to gecko (leading to a parse error) and serving the same soup labeled as text/html to ie (not leading to a parse error).
... an xml parser (expat) is used instead of the
tag soup parser.
... meta
tags are not examined for character encoding information.
... tbody, head, body, and html are not inferred if the
tags are not explicitly present.
Mozilla Quirks Mode Behavior
residual style
tags' size info does not take precedence over heading
tags' size (bug 77352).
...to match other elements, the selector must include a
tag name, id, class or attribute.
... there are a bunch of quirks to get percen
tage heights on images, tables, objects, and applets (etc.?) to "work" (the way they did in netscape navigator 4), even though css says that percen
tage heights should behave like 'auto' heights when the parent element doesn't have a fixed height.
... in quirks mode, percen
tage values are supported on the cellspacing attribute, but treated as pixels (bug 106336).
Gecko Profiler FAQ
a better idea would be picking up a real browser workload where through previous profiling we know that malloc overhead contributes a measurable percen
tage of overhead to the overall time and then study the change to that workload after replacing the allocator.
... in the off-chance where we have been able to do this, it typically happens as one of the last s
tages of the work, since you’d typically have finished fully analyzing the issue and through that have managed to figure out how to write a micro-benchmark that reproduces the exact issue.
... what actually means the percen
tage of the running time?
... the percen
tage of samples with stacks under this stack.
NSS API Guidelines
the advan
tage of using an array is that you can use strings(1) to pull the id
tags out of a (debug) compiled library.
...name is the
tag (if any) from which this file was pulled.
... if you're good with
tagging your releases, and then checking out (or exporting!) from the
tag for your build, this saves you from messing around with specific files revision numbers.
... this has the advan
tage of not surfacing the reference countedness of a data object.
Utility functions
nd later hash_begin mxr 3.4 and later hash_clone mxr 3.10 and later hash_create mxr 3.4 and later hash_destroy mxr 3.4 and later hash_end mxr 3.4 and later hash_gethashobject mxr 3.2 and later hash_gethashobjectbyoid
tag mxr 3.8 and later hash_gethashtypebyoid
tag mxr 3.8 and later hash_gettype mxr 3.12 and later hash_hashbuf mxr 3.10 and later hash_resultlen mxr 3.4 and later hash_resultlenbyoid
tag mxr 3.10 and later hash_resultlencontext mxr...
... 3.2 and later sec_asn1encoderstart mxr 3.2 and later sec_asn1encoderupdate mxr 3.2 and later sec_asn1encodeunsignedinteger mxr 3.11.1 and later sec_asn1lengthlength mxr 3.2 and later sec_dupcrl mxr 3.9 and later sec_getsignaturealgorithmoid
tag mxr 3.10 and later sec_getregisteredhttpclient mxr 3.12 and later sec_pkcs5getcryptoalgorithm mxr 3.2 and later sec_pkcs5getkeylength mxr 3.2 and later sec_pkcs5getpbealgorithm mxr 3.2 and later sec_pkcs5isalgorithmpbealg mxr 3.2 and later ...
... sec_pkcs5isalgorithmpbealg
tag mxr 3.12 and later sec_registerdefaulthttpclient mxr 3.11.1 and later sec_signdata mxr 3.2 and later sec_stringtooid mxr 3.12 and later secitem_allocitem mxr 3.2 and later secitem_arenadupitem mxr 3.9 and later secitem_compareitem mxr 3.2 and later secitem_copyitem mxr 3.2 and later secitem_dupitem mxr 3.2 and later secitem_freeitem mxr 3.2 and later secitem_itemsareequal mxr 3.8 and later secitem_zfreeitem mxr 3.2 and later ...
... mxr 3.9.3 and later secoid_addentry mxr 3.10 and later secoid_comparealgorithmid mxr 3.2 and later secoid_copyalgorithmid mxr 3.2 and later secoid_destroyalgorithmid mxr 3.2 and later secoid_findoid mxr 3.2 and later secoid_findoidby
tag mxr 3.2 and later secoid_findoid
tag mxr 3.2 and later secoid_findoid
tagdescription mxr 3.2 and later secoid_getalgorithm
tag mxr 3.2 and later secoid_setalgorithmid mxr 3.2 and later sgn_begin mxr 3.2 and later sgn_comparedigestinfo...
NSS tools : signtool
this option causes the specified directory to be signed and
tags its entries as inline javascript.
... -j signs a directory of html files containing javascript and creates as many archive files as are specified in the html
tags.
...note that versions 1.1 and later of netscape signing tool correctly recognizes the codebase attribute, allows paths to be expressed for the class and src attributes instead of filenames only, processes link
tags and parses html correctly, and offers clearer error messages.
... mailing lists: https://lists.mozilla.org/listinfo/dev-tech-crypto irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape, red hat, and sun.
SpiderMonkey Internals
design walk-through at heart, spidermonkey is a fast interpreter that runs an untyped bytecode and operates on values of type js::value—type-
tagged values that represent the full range of javascript values.
...other values are encoded as a value and a type
tag: on x86, arm, and similar 32-bit platforms, we use what we call "nunboxing", in which non-double values are a 32-bit type
tag and a 32-bit payload, which is normally either a pointer or a signed 32-bit integer.
...instead, we use "punboxing", which has 17 bits of
tag and 47 bits of payload.
...each property has an id, either a nonnegative integer or an atom (unique string), with the same
tagged-pointer encoding as a jsval.
TPS Bookmark Lists
all bookmark paths must begin with one of the following: "menu": the normal bookmarks menu "toolbar": the bookmarks toolbar "
tags": the
tags folder "unfiled": the unfiled bookmarks folder "places": the places root folder ("menu", "toolbar", and "unfiled" are all children of this) sub-folders are preceded with forward slashes, so "menu/folder1" denotes that "folder1" is a sub-folder of "menu".
...
tags: an array of
tags for the bookmark.
...the properties for this object include the uri, title, loadinsidebar, description,
tags, keyword properties above, plus two additional properties: location: the full path of the folder that the bookmark should be moved to position: the title of the existing bookmark item, in the current folder, where this bookmark should be moved to (i.e., this bookmark would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below the ...
...current one) example: { uri: "http://www.google.com", title: "google", loadinsidebar: false,
tags: [ "google", "computers", "misc" ] } livemark objects valid properties are: livemark: the livemark name.
Places utilities for JavaScript
utils.js is accessible at the following url: http://mxr.mozilla.org/mozilla-centr...ntent/utils.js this file includes utility functions used by a lot of the bookmarking,
tagging, and annotation services that are built into firefox.
... bookmarks nsinavbookmarksservice history nsinavhistoryservice globalhistory nsibrowserhistory livemarks nsilivemarkservice annotations nsiannotationservice favicons nsifaviconservice microsummaries nsimicrosummaryservice
tagging nsi
taggingservice rdf nsirdfservice ptm nsiplacestransactionsservice clipboard nsiclipboard urifixup nsiurifixup special places these are essentially references to the id's of special folders within places.
...
tagsfolderid the folder that
tags are stored in.
... getmostrecentbookmarkforuri() get the most recently added/modified bookmark for a url, excluding items under
tag or livemark containers.
nsIEditor
); boolean getattributevalue(in nsidomelement aelement, in astring attributestr, out astring resultvalue); void removeattribute(in nsidomelement aelement, in astring aattribute); void cloneattribute(in astring aattribute, in nsidomnode asourcenode); void cloneattributes(in nsidomnode destnode, in nsidomnode sourcenode); nsidomnode createnode(in astring
tag, in nsidomnode parent, in long position); void insertnode(in nsidomnode node, in nsidomnode parent, in long aposition); void splitnode(in nsidomnode existingrightnode, in long offset, out nsidomnode newleftnode); void joinnodes(in nsidomnode leftnode, in nsidomnode rightnode, in nsidomnode parent); void deletenode(in nsidomnode child); void marknodedir...
..., outputcrlinebreak = 512, // outputlflinebreak = 1024, outputnoscriptcontent = 2048, // outputnoframescontent = 4096, outputnoformattinginpre = 8192, // outputencodebasicentities=16384, outputencodelatin1entities=32768, // outputencodehtmlentities=65536, outputpersistnbsp=131072 editorapi.outputtostring('text/html', 2); editorapi.outputtostring('text/plain', 4); // output the body
tag, body children and the html end
tag (</html>).
... //
tag name are in lower case with <br>.
... editorapi.outputtostring('text/html', 8); // xml: all in xml with _moz_dirty="" in new
tags, html
tags are in upper case // application/xhtml+xml format do the same editorapi.outputtostring('text/xml', 2); // the body is not recognized, everything is printed void outputtostream(in nsioutputstream astream, in astring formattype, in acstring charsetoverride, in unsigned long flags); listener methods void addeditorobserver(in nsieditorobserver observer);obsolete since gecko 18 void seteditorobserver(in editactionlistener observer); void removeeditorobserver(in nsieditorobserver observer obsolete since gecko 18); void addeditactionlistener(in nsieditactionlistener listener); void removeeditactionlistener(in nsieditactionlistene...
nsIMemoryReporter
units_percen
tage 3 the amount contains a fraction that should be expressed as a percen
tage.
... note: the amount field should be given a value 100 times the actual percen
tage; this number will be divided by 100 when shown.
... this allows a fractional percen
tage to be shown even though amount is an integer.
... for example if the actual percen
tage is 12.34%, amount should be 1234.
WebIDL bindings
for example, given this idl: interface interfacewithrenamedthings { [binaryname="renamedmethod"] void somemethod(); [binaryname="renamedattribute"] attribute long someattribute; }; the corresponding c++ would be: class interfacewithrenamedthings { public: void renamedmethod(); int32_t renamedattribute(); void setrenamedattribute(int32_t); }; [deprecated="
tag"] when deprecating an interface or method, the [deprecated] annotation causes the webidl compiler to insert code that generates deprecation warnings.
... the complete list of valid deprecation
tags is maintained in nsdeprecatedoperationlist.h.
... each new
tag requires that a localized string be defined, containing the deprecation message to display.
...this has the advan
tage that if the check fails, the constructor or object will not show up at all.
Migrating from Firebug - Firefox Developer Tools
edit html within the page inspector the
tag attributes and the contents can be edited inline just like in firebug.
... beyond that it allows to edit the
tag names inline.
...like in firebug it lists the total execution time of each function call under total time as well as the number of calls under samples, the time spent within the function under self time and the related percen
tages in reference to the total execution time.
... note: the times and percen
tages listed in the devtools' call tree view is not equivalent to the ones shown in firebug, because it uses different apis sampling the execution of the javascript code.
Document - Web APIs
document.createelement() creates a new element with the given
tag name.
... document.createelementns() creates a new element with the given
tag name and namespace uri.
... document.getelementsby
tagname() returns a list of elements with the given
tag name.
... document.getelementsby
tagnamens() returns a list of elements with the given
tag name and namespace.
Introduction to the DOM - Web APIs
for example, the standard dom specifies that the getelementsby
tagname method in the code below must return a list of all the <p> elements in the document: const paragraphs = document.getelementsby
tagname("p"); // paragraphs[0] is the first <p> element // paragraphs[1] is the second <p> element, etc.
...though we focus exclusively on javascript in this reference documentation, implementations of the dom can be built for any language, as this python example demonstrates: # python dom example import xml.dom.minidom as m doc = m.parse(r"c:\projects\py\chap1.xml") doc.nodename # dom property of document object p_list = doc.getelementsby
tagname("para") for more information on what technologies are involved in writing javascript on the web, see javascript technologies overview.
... nodelist a nodelist is an array of elements, like the kind that is returned by the method document.getelementsby
tagname().
... document.getelementbyid(id) document.getelementsby
tagname(name) document.createelement(name) parentnode.appendchild(node) element.innerhtml element.style.left element.setattribute() element.getattribute() element.addeventlistener() window.content window.onload window.scrollto() testing the dom api this document provides samples for every interface that you can use in your own web development.
Element - Web APIs
element.
tagname read only returns a string with the name of the
tag for the given element.
... element.getelementsby
tagname() returns a live htmlcollection containing all descendant elements, of a particular
tag name, from the current element.
... element.getelementsby
tagnamens() returns a live htmlcollection containing all descendant elements, of a particular
tag name and namespace, from the current element.
... modified the return value of getelementsby
tagname() and getelementsby
tagnamens().
Node.nodeName - Web APIs
values for the different types of nodes are: interface nodename value attr the value of attr.name cdatasection "#cdata-section" comment "#comment" document "#document" documentfragment "#document-fragment" documenttype the value of documenttype.name element the value of element.
tagname entity the entity name entityreference the name of entity reference notation the notation name processinginstruction the value of processinginstruction.target text "#text" example given the following markup: <div id="d1">hello world</div> <input type="text" id="t"> and the following script: var div1 = document.getelementb...
...however, in html, text_field's value would read "div", because nodename and
tagname return in upper case on html elements in doms flagged as html documents.
... note that the element.
tagname property could have been used instead, since nodename has the same value as
tagname for an element.
... bear in mind, however, that nodename will return "#text" for text nodes while
tagname will return undefined.
Using Pointer Events - Web APIs
function startup() { var el = document.getelementsby
tagname("canvas")[0]; el.addeventlistener("pointerdown", handlestart, false); el.addeventlistener("pointerup", handleend, false); el.addeventlistener("pointercancel", handlecancel, false); el.addeventlistener("pointermove", handlemove, false); log("initialized."); } this simply sets up all the event listeners for our <canvas> element so we can handle the touch events as they occur.
... function handlestart(evt) { log("pointerdown."); var el = document.getelementsby
tagname("canvas")[0]; var ctx = el.getcontext("2d"); log("pointerdown: id = " + evt.pointerid); ongoingtouches.push(copytouch(evt)); var color = colorfortouch(evt); ctx.beginpath(); ctx.arc(touches[i].pagex, touches[i].pagey, 4, 0, 2 * math.pi, false); // a circle at the start ctx.arc(evt.clientx, evt.clienty, 4, 0, 2 * math.pi, false); // a circle at the start ctx.fillstyle = color; ctx.fill(); } after storing some of the event's processing in the on...
... function handlemove(evt) { var el = document.getelementsby
tagname("canvas")[0]; var ctx = el.getcontext("2d"); var color = colorfortouch(evt); var idx = ongoingtouchindexbyid(evt.pointerid); log("continuing touch: idx = " + idx); if (idx >= 0) { ctx.beginpath(); log("ctx.moveto(" + ongoingtouches[idx].pagex + ", " + ongoingtouches[idx].pagey + ");"); ctx.moveto(ongoingtouches[idx].pagex, ongoingtouches[idx].pagey); log("ctx.linet...
... function handleend(evt) { log("pointerup"); var el = document.getelementsby
tagname("canvas")[0]; var ctx = el.getcontext("2d"); var color = colorfortouch(evt); var idx = ongoingtouchindexbyid(evt.pointerid); if (idx >= 0) { ctx.linewidth = 4; ctx.fillstyle = color; ctx.beginpath(); ctx.moveto(ongoingtouches[idx].pagex, ongoingtouches[idx].pagey); ctx.lineto(evt.clientx, evt.clienty); ctx.fillrect(evt.clientx - 4, evt.clienty - 4, 8, 8); // ...
Web NFC API - Web APIs
note: devices and
tags have to be formatted and recorded specifically to support ndef record format to be used with web nfc.
... interfaces ndefmessage interface that represents ndef messages that can be received from or sent to a compatible device or
tag via ndefreader and ndefwriter objects respectively.
... ndefreader interface that enables reading messages from compatible nfc devices or
tags.
... ndefwriter interface used to write ndefmessages to compatible
tags or devices.
Accessibility documentation index - Accessibility
found 105 pages: # page
tags and summary 1 accessibility accessibility, landing accessibility (often abbreviated to a11y—as in "a" then 11 characters then "y") in web development means enabling as many people as possible to use web sites, even when those people's abilities are limited in some way.
... 85 accessibility: what users can do to browse more safely color, epilepsy, photosensitivity, prefers-reduced-motion, reflex epilepsy, saturation, seizure disorders, seizures, user settings, web animation this article discusses making web content accessible for those with vestibular disorders, and those who support them, by taking advan
tage of personalization and accessibility settings built into the operating systems.
... taking advan
tage of personalization settings can help prevent exposure to content leading to seizures and / or other physical reactions.
...since the html4 specification doesn't provide built-in
tags that semantically describe these kinds of widgets, developers typically resort to using generic elements such as and .
Web Accessibility: Understanding Colors and Luminance - Accessibility
looking at how the rgb color space is used to describe a color "red", you can see that the same color may be expressed in a shorthand, three-digit hex number that converts to a rgb value, as a full six-digit hex number that also converts to the same rgb value, or as a rgba value, expressed in percen
tages.
...there is software that actually takes advan
tage of that fact.
... the implication is that web developers who seek to improve legibility of text against a background can take advan
tage of the principles of local adaptation.
... the implication is that web developers who seek to improve legibility of text in which the ambient conditions of a room have changed can take advan
tage of css media queries 5 environment media features, when these features become available.
-moz-image-rect - CSS: Cascading Style Sheets
top the top edge, specified as an <integer> or <percen
tage>, of the sub-image within the specified image.
... right the right edge, specified as an <integer> or <percen
tage>, of the sub-image within the specified image.
... bottom the bottom edge, specified as an <integer> or <percen
tage>, of the sub-image within the specified image.
... left the left edge, specified as an <integer> or <percen
tage>, of the sub-image within the specified image.
-moz-outline-radius - CSS: Cascading Style Sheets
-radius: 25px 1em 12% 4mm; /* global values */ -moz-outline-radius: inherit; -moz-outline-radius: initial; -moz-outline-radius: unset; constituent properties this property is a shorthand for the following css properties: -moz-outline-radius-bottomleft -moz-outline-radius-bottomright -moz-outline-radius-topleft -moz-outline-radius-topright syntax values elliptical outlines and <percen
tage> values follow the syntax described in border-radius.
... <percen
tage> a <percen
tage>; see border-radius for details.
... formal definition initial valueas each of the properties of the shorthand:-moz-outline-radius-topleft: 0-moz-outline-radius-topright: 0-moz-outline-radius-bottomright: 0-moz-outline-radius-bottomleft: 0applies toall elementsinheritednopercen
tagesas each of the properties of the shorthand:-moz-outline-radius-topleft: refer to the corresponding dimension of the border box-moz-outline-radius-topright: refer to the corresponding dimension of the border box-moz-outline-radius-bottomright: refer to the corresponding dimension of the border box-moz-outline-radius-bottomleft: refer to the corresponding dimension of the border boxcomputed valuea...
...s each of the properties of the shorthand:-moz-outline-radius-topleft: as specified-moz-outline-radius-topright: as specified-moz-outline-radius-bottomright: as specified-moz-outline-radius-bottomleft: as specifiedanimation typeas each of the properties of the shorthand:-moz-outline-radius-topleft: a length, percen
tage or calc();-moz-outline-radius-topright: a length, percen
tage or calc();-moz-outline-radius-bottomright: a length, percen
tage or calc();-moz-outline-radius-bottomleft: a length, percen
tage or calc(); formal syntax <outline-radius>{1,4} [ / <outline-radius>{1,4} ]?where <outline-radius> = <length> | <percen
tage> examples rounding an outline note: this example will not display the desired effect if you are viewing this in a browser other than firefox.
-webkit-mask-position-x - CSS: Cascading Style Sheets
/* keyword values */ -webkit-mask-position-x: left; -webkit-mask-position-x: center; -webkit-mask-position-x: right; /* <percen
tage> values */ -webkit-mask-position-x: 100%; -webkit-mask-position-x: -50%; /* <length> values */ -webkit-mask-position-x: 50px; -webkit-mask-position-x: -1cm; /* multiple values values */ -webkit-mask-position-x: 50px, 25%, -3em; /* global values */ -webkit-mask-position-x: inherit; -webkit-mask-position-x: initial; -webkit-mask-position-x: unset; initial value0%applies toall elementsinheritednopercen
tagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percen
tageanimation typediscrete syntax values <leng...
...th-percen
tage> a length indicating the position of the left edge of the image relative to the box's left padding edge.
... percen
tages are calculated against the horizontal dimension of the box padding area.
... formal definition initial value0%applies toall elementsinheritednopercen
tagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percen
tageanimation typediscrete formal syntax [ <length-percen
tage> | left | center | right ]#where <length-percen
tage> = <length> | <percen
tage> examples horizontally positioning a mask image .exampleone { -webkit-mask-image: url(mask.png); -webkit-mask-position-x: right; } .exampletwo { -webkit-mask-image: url(mask.png); -web...
-webkit-mask-position-y - CSS: Cascading Style Sheets
/* keyword values */ -webkit-mask-position-y: top; -webkit-mask-position-y: center; -webkit-mask-position-y: bottom; /* <percen
tage> values */ -webkit-mask-position-y: 100%; -webkit-mask-position-y: -50%; /* <length> values */ -webkit-mask-position-y: 50px; -webkit-mask-position-y: -1cm; /* multiple values values */ -webkit-mask-position-y: 50px, 25%, -3em; /* global values */ -webkit-mask-position-y: inherit; -webkit-mask-position-y: initial; -webkit-mask-position-y: unset; initial value0%applies toall elementsinheritednopercen
tagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percen
tageanimation typediscrete syntax values <length...
...-percen
tage> a length indicating the position of the top side of the image relative to the box's top padding edge.
... percen
tages are calculated against the vertical dimension of the box padding area.
... formal definition initial value0%applies toall elementsinheritednopercen
tagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percen
tageanimation typediscrete formal syntax [ <length-percen
tage> | top | center | bottom ]#where <length-percen
tage> = <length> | <percen
tage> examples vertically positioning a mask image .exampleone { -webkit-mask-image: url(mask.png); -webkit-mask-position-y: bottom; } .exampletwo { -webkit-mask-image: url(mask.png); -webkit-mask-posi...
height - CSS: Cascading Style Sheets
<percen
tage> a percen
tage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively.
... formal definition related at-rule@viewportinitial valueas each of the properties of the shorthand:min-height: automax-height: nonepercen
tagesas each of the properties of the shorthand:min-height: the percen
tage is calculated with respect to the height of the generated box's containing block.
... if the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percen
tage value is treated as 0.max-height: the percen
tage is calculated with respect to the height of the generated box's containing block.
... if the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percen
tage value is treated as none.computed valueas each of the properties of the shorthand:min-height: the percen
tage as specified or the absolute lengthmax-height: the percen
tage as specified or the absolute length or none formal syntax <viewport-length>{1,2}where <viewport-length> = auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples setting minimum and maximum height @viewport { height: 500px; } specifications specification status comment css device adaptationthe definition of '"height" descriptor' in that specification.
border-image-slice - CSS: Cascading Style Sheets
ice: 10% 30%; /* top | horizontal | bottom */ border-image-slice: 30 30% 45; /* top | right | bottom | left */ border-image-slice: 7 12 14 5; /* using the `fill` keyword */ border-image-slice: 10% fill 7 12; /* global values */ border-image-slice: inherit; border-image-slice: initial; border-image-slice: unset; the border-image-slice property may be specified using one to four <number-percen
tage> values to represent the position of each image slice.
...for vector images, the number is relative to the element's size, not the size of the source image, so percen
tages are generally preferable in these cases.
... <percen
tage> represents an edge offset as a percen
tage of the source image's size: the width of the image for horizontal offsets, the height for vertical offsets.
...it also applies to ::first-letter.inheritednopercen
tagesrefer to the size of the border imagecomputed valueone to four percen
tage(s) (as specified) or absolute length(s), plus the keyword fill if specifiedanimation typeby computed value type formal syntax <number-percen
tage>{1,4} && fill?where <number-percen
tage> = <number> | <percen
tage> examples adjustable border width and slice the folowing example shows a simple <div> with a border image set on it.
border-image-width - CSS: Cascading Style Sheets
syntax /* keyword value */ border-image-width: auto; /* <length> value */ border-image-width: 1rem; /* <percen
tage> value */ border-image-width: 25%; /* <number> value */ border-image-width: 3; /* vertical | horizontal */ border-image-width: 2em 3em; /* top | horizontal | bottom */ border-image-width: 5% 15% 10%; /* top | right | bottom | left */ border-image-width: 5% 2em 10% auto; /* global values */ border-image-width: inherit; border-image-width: initial; border-image-width: unset; the border-imag...
... values <length-percen
tage> the width of the border, specified as a <length> or a <percen
tage>.
... percen
tages are relative to the width of the border image area for horizontal offsets and the height of the border image area for vertical offsets.
...it also applies to ::first-letter.inheritednopercen
tagesrefer to the width or height of the border image areacomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typeby computed value type formal syntax [ <length-percen
tage> | <number> | auto ]{1,4}where <length-percen
tage> = <length> | <percen
tage> examples tiling a border image this example creates a border image using the following ".png" file, which ...
bottom - CSS: Cascading Style Sheets
syntax /* <length> values */ bottom: 3px; bottom: 2.4em; /* <percen
tage>s of the height of the containing block */ bottom: 10%; /* keyword value */ bottom: auto; /* global values */ bottom: inherit; bottom: initial; bottom: unset; values <length> a negative, null, or positive <length> that represents: for absolutely positioned elements, the distance to the bottom edge of the containing block.
... <percen
tage> a <percen
tage> of the containing block's height.
...this computed value is then handled as if it were a <length>, <percen
tage>, or the auto keyword.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tagesrefer to the height of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, autoanimation typea length, percen
tage or calc(); formal syntax <length> | <percen
tage> | auto examples absolute and fixed positioning this example demonstrates the difference in behavior of the bottom property, when position is absolute versus fixed.
column-gap (grid-column-gap) - CSS: Cascading Style Sheets
syntax /* keyword value */ column-gap: normal; /* <length> values */ column-gap: 3px; column-gap: 2.5em; /* <percen
tage> value */ column-gap: 3%; /* global values */ column-gap: inherit; column-gap: initial; column-gap: unset; the column-gap property is specified as one of the values listed below.
... <percen
tage> the size of the gap between columns, defined as a <percen
tage>.
... the <percen
tage> property's value must be non-negative.
... formal definition initial valuenormalapplies tomulti-column elements, flex containers, grid containersinheritednopercen
tagesrefer to corresponding dimension of the content areacomputed valueas specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typea length, percen
tage or calc(); formal syntax normal | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples flex layout html <div id="flexbox"> <div></div> <div></div> <div></div> </div> css #flexbox { display: flex; height: 100px; column-gap: 20px; } #flexbox > div { border: 1px solid green; background-color: lime; flex: auto; } result grid layout html <div id="grid"> <div></div> <div></div> <div></div> </div> css #g...
font-feature-settings - CSS: Cascading Style Sheets
syntax /* use the default settings */ font-feature-settings: normal; /* set values for opentype feature
tags */ font-feature-settings: "smcp"; font-feature-settings: "smcp" on; font-feature-settings: "swsh" 2; font-feature-settings: "smcp", "swsh" 2; /* global values */ font-feature-settings: inherit; font-feature-settings: initial; font-feature-settings: unset; whenever possible, web authors should instead use the font-variant shorthand property or an associated longhand property such as font-varian...
... <feature-
tag-value> when rendering text, the list of opentype feature
tag value is passed to the text layout engine to enable or disable font features.
... the
tag is always a <string> of 4 ascii characters.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | <feature-
tag-value>#where <feature-
tag-value> = <string> [ <integer> | on | off ]?
font-size - CSS: Cascading Style Sheets
syntax /* <absolute-size> values */ font-size: xx-small; font-size: x-small; font-size: small; font-size: medium; font-size: large; font-size: x-large; font-size: xx-large; font-size: xxx-large; /* <relative-size> values */ font-size: smaller; font-size: larger; /* <length> values */ font-size: 12px; font-size: 0.8em; /* <percen
tage> values */ font-size: 80%; /* global values */ font-size: inherit; font-size: initial; font-size: unset; the font-size property is specified in one of the following ways: as one of the absolute-size or relative-size keywords as a <length> or a <percen
tage>, relative to the parent element's font size values xx-small, x-small, small, medium, large, x-large, xx-large, xxx-large absolut...
... <percen
tage> a positive <percen
tage> value, relative to the parent element's font size.
...this means em units and percen
tages do the same thing for font-size.
...it also applies to ::first-letter and ::first-line.inheritedyespercen
tagesrefer to the parent element's font sizecomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea length formal syntax <absolute-size> | <relative-size> | <length-percen
tage>where <absolute-size> = xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large<relative-size> = larger | smaller<length-percen
tage> = <length> | <percen
tage> ...
gap (grid-gap) - CSS: Cascading Style Sheets
syntax /* one <length> value */ gap: 20px; gap: 1em; gap: 3vmin; gap: 0.5cm; /* one <percen
tage> value */ gap: 16%; gap: 100%; /* two <length> values */ gap: 20px 10px; gap: 1em 0.5em; gap: 3vmin 2vmax; gap: 0.5cm 2mm; /* one or two <percen
tage> values */ gap: 16% 100%; gap: 21px 82%; /* calc() values */ gap: calc(10% + 20px); gap: calc(20px + 10%) calc(10% - 5px); /* global values */ gap: inherit; gap: initial; gap: unset; this property is specified as a value for <'row-gap'> follow...
... <'row-gap'> and <'column-gap'> are each specified as a <length> or a <percen
tage>.
... <percen
tage> is the width of the gutter separating the grid lines, relative to the dimension of the element.
...ners, grid containersinheritednocomputed valueas each of the properties of the shorthand:row-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementscolumn-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typeas each of the properties of the shorthand:row-gap: a length, percen
tage or calc();column-gap: a length, percen
tage or calc(); formal syntax <'row-gap'> <'column-gap'>?
left - CSS: Cascading Style Sheets
syntax /* <length> values */ left: 3px; left: 2.4em; /* <percen
tage>s of the width of the containing block */ left: 10%; /* keyword value */ left: auto; /* global values */ left: inherit; left: initial; left: unset; values <length> a negative, null, or positive <length> that represents: for absolutely positioned elements, the distance to the left edge of the containing block.
... <percen
tage> a <percen
tage> of the containing block's width.
...this computed value is then handled as if it were a <length>, <percen
tage>, or the auto keyword.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tagesrefer to the width of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, autoanimation typea length, percen
tage or calc(); formal syntax <length> | <percen
tage> | auto examples positioning elements html <div id="wrap"> <div id="example_1"> <pre> position: absolute; le...
margin - CSS: Cascading Style Sheets
each value is a <length>, a <percen
tage>, or the keyword auto.
... <percen
tage> the size of the margin as a percen
tage, relative to the width of the containing block.
... formal syntax [ <length> | <percen
tage> | auto ]{1,4} examples simple example html <div class="center">this element is centered.</div> <div class="outside">this element is positioned outside of its container.</div> css .center { margin: auto; background: lime; width: 66%; } .outside { margin: 3rem 0 0 -3rem; background: cyan; width: 66%; } more examples margin: 5%; /* all sides: 5% margin */ margin: 10px; /* all sides: 10px margin */ margin: 1.6em 20px; /* top and bottom: 1.6em margin */ /* left and right: 20px margin */ margin: 10px 3% -1em; /* top: 10p...
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valueas each of the properties of the shorthand:margin-bottom: the percen
tage as specified or the absolute lengthmargin-left: the percen
tage as specified or the absolute lengthmargin-right: the percen
tage as specified or the absolute lengthmargin-top: the percen
tage as specified or the absolute lengthanimation typea length ...
mask-border-slice - CSS: Cascading Style Sheets
rder-slice: 10% 30%; /* top | horizontal | bottom */ mask-border-slice: 30 30% 45; /* top | right | bottom | left */ mask-border-slice: 7 12 14 5; /* using the `fill` keyword */ mask-border-slice: 10% fill 7 12; /* global values */ mask-border-slice: inherit; mask-border-slice: initial; mask-border-slice: unset; the mask-border-slice property may be specified using one to four <number-percen
tage> values to represent the position of each image slice.
...for vector images, the number is relative to the element's size, not the size of the source image, so percen
tages are generally preferable in these cases.
... <percen
tage> represents an edge offset as a percen
tage of the source image's size: the width of the image for horizontal offsets, the height for vertical offsets.
... formal definition initial value0applies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercen
tagesrefer to size of the mask border imagecomputed valueas specifiedanimation typediscrete formal syntax <number-percen
tage>{1,4} fill?where <number-percen
tage> = <number> | <percen
tage> examples basic usage this property doesn't appear to be supported anywhere yet.
mask-border-width - CSS: Cascading Style Sheets
syntax /* keyword value */ mask-border-width: auto; /* <length> value */ mask-border-width: 1rem; /* <percen
tage> value */ mask-border-width: 25%; /* <number> value */ mask-border-width: 3; /* vertical | horizontal */ mask-border-width: 2em 3em; /* top | horizontal | bottom */ mask-border-width: 5% 15% 10%; /* top | right | bottom | left */ mask-border-width: 5% 2em 10% auto; /* global values */ mask-border-width: inherit; mask-border-width: initial; mask-border-width: unset; the mask-border-width property may be specified using one, two, three, or four values chosen from the list of values below.
... values <length-percen
tage> the width of the mask border, specified as a <length> or a <percen
tage>.
... percen
tages are relative to the width of the border area for horizontal offsets and the height of the border area for vertical offsets.
... formal definition initial valueautoapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercen
tagesrelative to width/height of the mask border image areacomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typediscrete formal syntax [ <length-percen
tage> | <number> | auto ]{1,4}where <length-percen
tage> = <length> | <percen
tage> examples basic usage this property doesn't appear to be supported anywhere yet.
mask-size - CSS: Cascading Style Sheets
each value can be a <length>, a <percen
tage>, or auto.
... <percen
tage> a <percen
tage> value scales the mask image in the corresponding dimension to the specified percen
tage of the mask positioning area, which is determined by the value of mask-origin.
...negative percen
tages are not allowed.
... formal definition initial valueautoapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typerepeatable list of simple list of length, percen
tage, or calc formal syntax <bg-size>#where <bg-size> = [ <length-percen
tage> | auto ]{1,2} | cover | containwhere <length-percen
tage> = <length> | <percen
tage> examples setting mask size as a percen
tage css #masked { width: 200px; height: 200px; background: blue linear-gradient(red, blue); -webkit-mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg); mask-image: url(https...
max-block-size - CSS: Cascading Style Sheets
syntax /* <length> values */ max-block-size: 300px; max-block-size: 25em; /* <percen
tage> values */ max-block-size: 75%; /* keyword values */ max-block-size: auto; max-block-size: max-content; max-block-size: min-content; max-block-size: fit-content(20em); /* global values */ max-block-size: inherit; max-block-size: initial; max-block-size: unset; values the max-block-size property's value can be any value that's legal for the max-width and max-height properties: <length> d...
... <percen
tage> defines the max-width as a percen
tage of the containing block's width.
... fit-content(<length-percen
tage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
... formal definition initial value0applies tosame as width and heightinheritednopercen
tagesblock-size of containing blockcomputed valuesame as max-width and max-heightanimation typea length, percen
tage or calc(); formal syntax <'max-width'> examples setting max-block-size with horizontal and vertical text in this example, the same text (the opening sentences from herman melville's novel moby-dick) is presented in both the horizontal-tb and vertical-rl writing modes.
max-width - CSS: Cascading Style Sheets
syntax /* <length> value */ max-width: 3.5em; /* <percen
tage> value */ max-width: 75%; /* keyword values */ max-width: none; max-width: max-content; max-width: min-content; max-width: fit-content(20em); /* global values */ max-width: inherit; max-width: initial; max-width: unset; values <length> defines the max-width as an absolute value.
... <percen
tage> defines the max-width as a percen
tage of the containing block's width.
... fit-content(<length-percen
tage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
... mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.4 | w3c understanding wcag 2.0 formal definition initial valuenoneapplies toall elements but non-replaced inline elements, table rows, and row groupsinheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute length or noneanimation typea length, percen
tage or calc(); formal syntax auto | <length> | <percen
tage> | min-content | max-content | fit-content(<length-percen
tage>)where <length-percen
tage> = <length> | <percen
tage> examples setting max width in pixels in this example, the "child" will be ...
min-width - CSS: Cascading Style Sheets
syntax /* <length> value */ min-width: 3.5em; /* <percen
tage> value */ min-width: 10%; /* keyword values */ min-width: max-content; min-width: min-content; min-width: fit-content(20em); /* global values */ min-width: inherit; min-width: initial; min-width: unset; values <length> defines the min-width as an absolute value.
... <percen
tage> defines the min-width as a percen
tage of the containing block's width.
... fit-content(<length-percen
tage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
... formal definition initial valueautoapplies toall elements but non-replaced inline elements, table rows, and row groupsinheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length, percen
tage or calc(); formal syntax auto | <length> | <percen
tage> | min-content | max-content | fit-content(<length-percen
tage>)where <length-percen
tage> = <length> | <percen
tage> examples setting minimum element width table { min-width: 75%; } form { min-width: 0; } specifications specification status comment css box sizing module level 4the definition of 'min-width' in that specification.
offset-path - CSS: Cascading Style Sheets
] ) | <path()> | <url> | [ <basic-shape> | <geometry-box> ]where <size> = closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percen
tage>{2}<path()> = path( [ <fill-rule>, ]?
... <string> )<basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()><geometry-box> = <shape-box> | fill-box | stroke-box | view-boxwhere <length-percen
tage> = <length> | <percen
tage><fill-rule> = nonzero | evenodd<inset()> = inset( <length-percen
tage>{1,4} [ round <'border-radius'> ]?
..., [ <length-percen
tage> <length-percen
tage> ]# )<shape-box> = <box> | margin-boxwhere <shape-radius> = <length-percen
tage> | closest-side | farthest-side<position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
... | [ [ left | right ] <length-percen
tage> ] && [ [ top | bottom ] <length-percen
tage> ] ]<box> = border-box | padding-box | content-box examples animating an element with offset-path the offset-path properties in the css code sample defines a motion path that is identical to the <path> element in the svg.
offset-position - CSS: Cascading Style Sheets
syntax /* keyword values */ offset-position: auto; offset-position: top; offset-position: bottom; offset-position: left; offset-position: right; offset-position: center; /* <percen
tage> values */ offset-position: 25% 75%; /* <length> values */ offset-position: 0 0; offset-position: 1cm 2cm; offset-position: 10ch 8em; /* edge offsets values */ offset-position: bottom 10px right 20px; offset-position: right 3em bottom 10px; offset-position: bottom 10px right; offset-position: top right 10px; /* global values */ offset-position: inherit; offset-position: initial; offset-position: unset; values auto the initial position is the position of the box specified by the position property.
...if three or four values are used, the length-percen
tage values are offsets for the preceding keyword value(s).
... formal definition initial valueautoapplies totransformable elementsinheritednopercen
tagesrefertosizeofcontainingblockcomputed valuefor <length> the absolute value, otherwise a percen
tageanimation typea position formal syntax auto | <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
... | [ [ left | right ] <length-percen
tage> ] && [ [ top | bottom ] <length-percen
tage> ] ]where <length-percen
tage> = <length> | <percen
tage> examples setting initial offset position <div id="motion-demo"></div> #motion-demo { offset-path: path('m20,20 c20,100 200,0 200,100'); offset-position: left top; animation: move 3000ms infinite alternate ease-in-out; width: 40px; height: 40px; background: cyan; } @keyframes move { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } } specifications specification status comment motion path module level 1the definition of 'offset-position' in that specification.
padding - CSS: Cascading Style Sheets
each value is a <length> or a <percen
tage>.
... <percen
tage> the size of the padding as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valueas each of the properties of the shorthand:padding-bottom: the percen
tage as specified or the absolute lengthpadding-left: the percen
tage as specified or the absolute lengthpadding-right: the percen
tage as specified or the absolute lengthpadding-top: the percen
tage as specified or the absolute lengthanimation typea length formal syntax [ <length> | <percen
tage> ]{1,4} examples setting paddin...
...g with pixels html <h4>this element has moderate padding.</h4> <h3>the padding is huge in this element!</h3> css h4 { background-color: lime; padding: 20px 50px; } h3 { background-color: cyan; padding: 110px 50px 50px 110px; } result setting padding with pixels and percen
tages padding: 5%; /* all sides: 5% padding */ padding: 10px; /* all sides: 10px padding */ padding: 10px 20px; /* top and bottom: 10px padding */ /* left and right: 20px padding */ padding: 10px 3% 20px; /* top: 10px padding */ /* left and right: 3% padding */ /* bottom: 20px padding */ padding: 1em 3px 30px 5px; /* top: 1em padding */ ...
<position> - CSS: Cascading Style Sheets
if specified, an offset can be either a relative <percen
tage> value or an absolute <length> value.
... /* a value for horizontal position, keyword for vertical position */ value value /* a value for each direction (horizontal then vertical) */ /* 4-value syntax */ keyword value keyword value /* each value is an offset from the keyword that preceeds it */ formal syntax [ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length> | <percen
tage> ] [ top | center | bottom | <length> | <percen
tage> ]?
... | [ [ left | right ] [ <length> | <percen
tage> ] ] && [ [ top | bottom ] [ <length> | <percen
tage> ] ] ] note: the background-position property also accepts a three-value syntax.
... recommendation allows combination of a keyword with a <length> or <percen
tage> value.
radial-gradient() - CSS: Cascading Style Sheets
<linear-color-stop> a color-stop's <color> value, followed by an one or two optional stop positions (either a <percen
tage> or a <length> along the gradient's axis).
... a percen
tage of 0%, or a length of 0, represents the center of the gradient; the value 100% represents the intersection of the ending shape with the virtual gradient ray.
... percen
tage values in between are linearly positioned on the gradient ray.
...percen
tage-based color-stop positions are relative to the intersection between the ending shape and this gradient ray, which represents 100%.
right - CSS: Cascading Style Sheets
syntax /* <length> values */ right: 3px; right: 2.4em; /* <percen
tage>s of the width of the containing block */ right: 10%; /* keyword value */ right: auto; /* global values */ right: inherit; right: initial; right: unset; values <length> a negative, null, or positive <length> that represents: for absolutely positioned elements, the distance to the right edge of the containing block.
... <percen
tage> a <percen
tage> of the containing block's width.
...this computed value is then handled as if it were a <length>, <percen
tage>, or the auto keyword.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tagesrefer to the width of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, autoanimation typea length, percen
tage or calc(); formal syntax <length> | <percen
tage> | auto examples absolute and relative positioning using right html <div id="relative">relatively positioned</div> <div id="ab...
text-decoration-thickness - CSS: Cascading Style Sheets
syntax /* single keyword */ text-decoration-thickness: auto; text-decoration-thickness: from-font; /* length */ text-decoration-thickness: 0.1em; text-decoration-thickness: 3px; /* percen
tage */ text-decoration-thickness: 10%; /* global values */ text-decoration-thickness: inherit; text-decoration-thickness: initial; text-decoration-thickness: unset; values auto the browser chooses an appropriate width for the text decoration line.
... <percen
tage> specifies the thickness of the text decoration line as a <percen
tage> of 1em in the current font.
... a percen
tage inherits as a relative value, and so therefore scales with changes in the font.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the font size of the element itselfcomputed valueas specifiedanimation typeby computed value type formal syntax auto | from-font | <length> | <percen
tage> examples varying thickness html <p class="thin">here's some text with a 1px red underline.</p> <p class="thick">this one has a 5px red underline.</p> <p class="shorthand">this uses the equivalent shorthand.</p> css .thin { text-decoration-line: underline; text-decoration-s...
text-indent - CSS: Cascading Style Sheets
syntax /* <length> values */ text-indent: 3mm; text-indent: 40px; /* <percen
tage> value relative to the containing block width */ text-indent: 15%; /* keyword values */ text-indent: 5em each-line; text-indent: 5em hanging; text-indent: 5em hanging each-line; /* global values */ text-indent: inherit; text-indent: initial; text-indent: unset; values <length> indentation is specified as an absolute <length>.
... <percen
tage> indentation is a <percen
tage> of the containing block's width.
... formal definition initial value0applies toblock containersinheritedyespercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute length, plus any keywords as specifiedanimation typea length, percen
tage or calc(); formal syntax <length-percen
tage> && hanging?
... && each-line?where <length-percen
tage> = <length> | <percen
tage> examples simple indent html <p>lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p> <p>lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p> css p { text-indent: 5em; background: powderblue; } result percen
tage indent html <p>lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p> <p>lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat ...
text-size-adjust - CSS: Cascading Style Sheets
/* keyword values */ text-size-adjust: none; text-size-adjust: auto; /* <percen
tage> value */ text-size-adjust: 80%; /* global values */ text-size-adjust: inherit; text-size-adjust: initial; text-size-adjust: unset; because many websites have not been developed with small devices in mind, mobile browsers differ from desktop browsers in the way they render web pages.
... syntax the text-size-adjust property is specified as none, auto, or a <percen
tage>.
... <percen
tage> enables the browser's inflation algorithm, specifying a percen
tage value with which to increase the font size.
... formal definition initial valueauto for smartphone browsers supporting inflation, none in other cases (and then not modifiable).applies toall elementsinheritedyespercen
tagesyes, refer to the corresponding size of the text fontcomputed valueas specifiedanimation typediscrete formal syntax none | auto | <percen
tage> examples basic disabling usage as hinted at above, on a properly designed responsive site the text-size-adjust behavior is not needed, so developers can elect to turn it off by specifying a vlaue of none: p { -webkit-text-size-adjust: none; text-size-adjust: none; } specifications specification status comment css mobile text size adjustment module level 1the definition of 'text-size-adjust' in that specification.
text-underline-offset - CSS: Cascading Style Sheets
syntax /* single keyword */ text-underline-offset: auto; /* length */ text-underline-offset: 0.1em; text-underline-offset: 3px; /* percen
tage */ text-underline-offset: 20%; /* global values */ text-underline-offset: inherit; text-underline-offset: initial; text-underline-offset: unset; the text-underline-offset property is specified as a single value from the list below.
... <percen
tage> specifies the offset of underlines as a <percen
tage> of 1 em in the element's font.
... a percen
tage inherits as a relative value, and so therefore scales with changes in the font.
...it also applies to ::first-letter and ::first-line.inheritedyespercen
tagesrefer to the font size of the element itselfcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length> | <percen
tage> examples <p class="oneline">here's some text with an offset wavy red underline!</p> <br> <p class="twolines">this text has lines both above and below it.
top - CSS: Cascading Style Sheets
syntax /* <length> values */ top: 3px; top: 2.4em; /* <percen
tage>s of the height of the containing block */ top: 10%; /* keyword value */ top: auto; /* global values */ top: inherit; top: initial; top: unset; values <length> a negative, null, or positive <length> that represents: for absolutely positioned elements, the distance to the top edge of the containing block.
... <percen
tage> a <percen
tage> of the containing block's height.
...this computed value is then handled as if it were a <length>, <percen
tage>, or the auto keyword.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tagesrefer to the height of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, autoanimation typea length, percen
tage or calc(); formal syntax <length> | <percen
tage> | auto examples body { background: beige; } div { position: absolute; top: 10%; right: 40%; bottom: 20%; left: 15%; background: gold; border: 1px solid blue; } <div>the size of this content is determined by the position of its edges.</div> specifications specification status comment css positioned layout module level 3the definition of 'top' in that specification.
vertical-align - CSS: Cascading Style Sheets
syntax /* keyword values */ vertical-align: baseline; vertical-align: sub; vertical-align: super; vertical-align: text-top; vertical-align: text-bottom; vertical-align: middle; vertical-align: top; vertical-align: bottom; /* <length> values */ vertical-align: 10em; vertical-align: 4px; /* <percen
tage> values */ vertical-align: 20%; /* global values */ vertical-align: inherit; vertical-align: initial; vertical-align: unset; the vertical-align property is specified as one of the values listed below.
... <percen
tage> aligns the baseline of the element to the given percen
tage above the baseline of its parent, with the value being a percen
tage of the line-height property.
... values for table cells baseline (and sub, super, text-top, text-bottom, <length>, and <percen
tage>) aligns the baseline of the cell with the baseline of all other cells in the row that are baseline-aligned.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the line-height of the element itselfcomputed valuefor percen
tage and length values, the absolute length, otherwise the keyword as specifiedanimation typea length formal syntax baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percen
tage> | <length> examples basic example html <div>an <img src="https://udn.realityripple.com/samples/b4/e1f0faff5b.svg" alt="...
zoom - CSS: Cascading Style Sheets
/* keyword values */ zoom: normal; zoom: reset; /* <percen
tage> values */ zoom: 50%; zoom: 200%; /* <number> values */ zoom: 1.1; zoom: 0.7; /* global values */ zoom: inherit; zoom: initial; zoom: unset; syntax values normal render this element at its normal size.
... <percen
tage> zoom factor.
...equivalent to the corresponding percen
tage (1.0 = 100% = normal).
... formal definition initial valuenormalapplies toall elementsinheritednocomputed valueas specifiedanimation typean integer formal syntax normal | reset | <number> | <percen
tage> examples first example html <p class="small">small</p> <p class="normal">normal</p> <p class="big">big</p> css p.small { zoom: 75%; } p.normal { zoom: normal; } p.big { zoom: 2.5; } p { display: inline-block; } p:hover { zoom: reset; } result second example html <div id="a" class="circle"></div> <div id="b" class="circle"></div> <div id="c" class="circle"></div> css div.circle { width: 25px; height: 25px; border-radius: 100%; text-align: center; vertical-align: middle; display: inline-block; zoom: 1.5; } div#a ...
Cross-browser audio basics - Developer guides
so the ideal place to create a fallback or inform of incompatibility is before the closing </audio>
tag.
... audio html attributes we can specify a number of attributes with the audio
tag to further determine the way audio is initialized.
... play.addeventlistener('click', function() { myaudio.play(); play.style.display = "none"; pause.style.display = "block"; }); pause.addeventlistener('click', function() { myaudio.pause(); pause.style.display = "none"; play.style.display = "block"; }); // display progress myaudio.addeventlistener('timeupdate', function() { //sets the percen
tage bar.style.width = parseint(((myaudio.currenttime / myaudio.duration) * 100), 10) + "%"; }); } you should end up with something like this: seeking using the seek bar this is a good start, but it would be nice to be able to navigate the audio using the progress bar.
... ✓ ✓ firefox mobile ✓ ✓ ✓ ✓ ✓ safari ios3+ ✓ ✓ ✓ *4.2+ chrome mobile ✓ ✓ ✓ ✓ opera mobile ✓ ✓ ✓ ✓ internet explorer mobile ✓ ✓ ✓ ✓ android 2.3+ ✓ ✓ ✓ ✓ note: we are at the s
tage where nearly all browsers support mp3 — for more details visit this page on media format browser compatibility.
Using HTML sections and outlines - Developer guides
they are intended to enhance the limited semantics of earlier versions of html, which included only the <div>
tag as a generic mechanism for grouping related content.
...it contains all the content and html
tags.
...if a significant percen
tage of your particular target audience is using internet explorer 8 or older, then you can follow the below instructions to make them behave as expected.
...they bring a big advan
tage for people having html5 browsers and needing the structure to help them understand the page, for instance people needing the help of some assistive technology.
HTML attribute: rel - HTML: Hypertext Markup Language
external resource not allowed not allowed
tag gives a
tag (identified by the given address) that applies to the current document.
...
tag valid for the <a>, and <area> elements, it gives a
tag (identified by the given address) that applies to the current document.
... the
tag value denotes that the link refers to a document describing a
tag applying to the document on which it is locatated.
... this link type is not meant for
tags within a
tag cloud, as those
tags apply to a group of pages, whereas the
tag value of the rel attribute is for a single document.
<html>: The HTML Document / Root element - HTML: Hypertext Markup Language
tag omission the start
tag may be omitted if the first thing inside the <html> element is not a comment.
... the end
tag may be omitted if the <html> element is not immediately followed by a comment.
... example <!doctype html> <html lang="en"> <head>...</head> <body>...</body> </html> accessibility concerns providing a lang attribute with a valid ietf identifying language
tag on the <html> element will help screen reading technology determine the proper language to announce.
... the identifying language
tag should describe the language used by the majority of the content of the page.
<ol>: The Ordered List element - HTML: Hypertext Markup Language
tag omission none, both the starting and ending
tag are mandatory.
...>list of greivances</li> <li>conclusion</li> </ol> the above html will output: using the start attribute <p>finishing places of contestants not in the winners’ circle:</p> <ol start="4"> <li>speedwalk stu</li> <li>saunterin’ sam</li> <li>slowpoke rodriguez</li> </ol> the above html will output: nesting lists <ol> <li>first item</li> <li>second item <!-- closing </li>
tag not here!
... --> <ol> <li>second item first subitem</li> <li>second item second subitem</li> <li>second item third subitem</li> </ol> </li> <!-- here's the closing </li>
tag --> <li>third item</li> </ol> the above html will output: unordered list inside ordered list <ol> <li>first item</li> <li>second item <!-- closing </li>
tag not here!
... --> <ul> <li>second item first subitem</li> <li>second item second subitem</li> <li>second item third subitem</li> </ul> </li> <!-- here's the closing </li>
tag --> <li>third item</li> </ol> the above html will output: specifications specification status comment html living standardthe definition of '<ol>' in that specification.
<ul>: The Unordered List element - HTML: Hypertext Markup Language
tag omission none, both the starting and ending
tag are mandatory.
... examples simple example <ul> <li>first item</li> <li>second item</li> <li>third item</li> </ul> the above html will output: nesting a list <ul> <li>first item</li> <li>second item <!-- look, the closing </li>
tag is not placed here!
...--> <ul> <li>second item second subitem first sub-subitem</li> <li>second item second subitem second sub-subitem</li> <li>second item second subitem third sub-subitem</li> </ul> </li> <!-- closing </li>
tag for the li that contains the third unordered list --> <li>second item third subitem</li> </ul> <!-- here is the closing </li>
tag --> </li> <li>third item</li> </ul> the above html will output: ordered list inside unordered list <ul> <li>first item</li> <li>second item <!-- look, the closing </li>
tag is not placed here!
... --> <ol> <li>second item first subitem</li> <li>second item second subitem</li> <li>second item third subitem</li> </ol> <!-- here is the closing </li>
tag --> </li> <li>third item</li> </ul> the above html will output: specifications specification status comment html living standardthe definition of '<ul>' in that specification.
Warning: Date.prototype.toLocaleFormat is deprecated - JavaScript
%b %y'); console.log(date); // in german locale // "frei
tag, 10.
... var today = new date(); var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var date = today.tolocaledatestring('de-de', options); console.log(date); // "frei
tag, 10.
... var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var dateformatter = new intl.datetimeformat('de-de', options) var dates = [date.utc(2012, 11, 20, 3, 0, 0), date.utc(2014, 04, 12, 8, 0, 0)]; dates.foreach(date => console.log(dateformatter.format(date))); // "donners
tag, 20.
... dezember 2012" // "mon
tag, 12.
Intl.Locale.prototype.language - JavaScript
the language property of a locale returns strictly the locale's language sub
tag.
... examples setting the language in the locale identifer string argument in order to be a valid unicode locale identifier, a string must start with the language sub
tag.
... the main argument to the locale constructor must be a valid unicode locale identifier, so whenever the constructor is used, it must be passed an identifier with a language sub
tag.
... let langstr = new intl.locale("en-latn-us"); console.log(langstr.language); // prints "en" overriding language via the configuration object while the language sub
tag must be specified, the locale constructor takes a configuration object, which can override the language sub
tag.
Digital audio concepts - Web media technologies
sound enters the computer through a microphone or other input in the form of a stream of electrons whose vol
tage varies to represent the amplitude of the sound wave.
...at regular intervals, the a/d converter circuitry reads the vol
tage of the signal as a value between (in this case) -1.0 and +1.0.
...these facts can be taken advan
tage of when compressing audio.
... intensity stereo coding intensity stereo coding reduces the encoded audio bit rate by taking advan
tage of the way humans determine the location of sounds in space; this is called sound localization.
Critical rendering path - Web Performance
a single dom node starts with a start
tag token and ends with an end
tag token.
...if another set of start
tag and end
tag tokens come between a set of start
tag and end
tags, you have a node inside a node, which is how we define the hierarchy of the dom tree.
...the more specific
tag requires more work from the browser, but this penalty is not likely worth optimizing.
... the viewport meta
tag defines the width of the layout viewport, impacting the layout.
refX - SVG: Scalable Vector Graphics
value <length-percen
tage> | <number> | left | center | right default value 0 animatable yes <length-percen
tage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
... percen
tage values are interpreted as being a percen
tage of the viewbox width.
... value <length> | left | center | right default value none animatable yes <length-percen
tage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
... percen
tage values are interpreted as being a percen
tage of the viewbox width.
refY - SVG: Scalable Vector Graphics
value <length-percen
tage> | <number> | top | center | bottom default value 0 animatable yes <length-percen
tage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
... percen
tage values are interpreted as being a percen
tage of the viewbox height.
... value <length> | top | center | bottom default value none animatable yes <length-percen
tage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
... percen
tage values are interpreted as being a percen
tage of the viewbox height.
transform-origin - SVG: Scalable Vector Graphics
usage notes values [ <length-percen
tage> | left | center | right | top | bottom ] | [ [ <length-percen
tage> | left | center | right ] && [ <length-percen
tage> | top | center | bottom ] ] <length>?where <length-percen
tage> = <length> | <percen
tage> default value 50%, 50% animatable yes the transform-origin property may be specified using one, two, or three values, where each value represents an offset.
... one-value syntax: the value must be a <length>, a <percen
tage>, or one of the keywords left, center, right, top, and bottom.
... two-value syntax: one value must be a <length>, a <percen
tage>, or one of the keywords left, center, and right.
... the other value must be a <length>, a <percen
tage>, or one of the keywords top, center, and bottom.
<ellipse> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage> ; default value: 0; animatable: yes cy the y position of the ellipse.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes rx the radius of the ellipse on the x axis.
... value type: auto|<length>|<percen
tage> ; default value: auto; animatable: yes ry the radius of the ellipse on the y axis.
... value type: auto|<length>|<percen
tage> ; default value: auto; animatable: yes pathlength this attribute lets specify the total length for the path, in user units.
<foreignObject> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage> ; default value: auto; animatable: yes width the width of the foreignobject.
... value type: <length>|<percen
tage> ; default value: auto; animatable: yes x the x coordinate of the foreignobject.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes y the y coordinate of the foreignobject.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes note: starting with svg2, x, y, width, and height are geometry properties, meaning those attributes can also be used as css properties for that element.
<pattern> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage>; default value: 0; animatable: yes href this attribute reference a template pattern that provides default values for the <pattern> attributes.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes x this attribute determines the x coordinate shift of the pattern tile.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes xlink:href deprecated since svg 2 this attribute reference a template pattern that provides default values for the <pattern> attributes.
... value type: <length>|<percen
tage> ; 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-li...
<svg> - SVG: Scalable Vector Graphics
(not the height of its coordinate system.) value type: <length>|<percen
tage> ; default value: auto; animatable: yes preserveaspectratio how the svg fragment must be deformed if it is displayed with a different aspect ratio.
...(not the width of its coordinate system.) value type: <length>|<percen
tage> ; default value: auto; animatable: yes x the displayed x coordinate of the svg container.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes y the displayed y coordinate of the svg container.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes note: starting with svg2, x, y, width, and height are geometry properties, meaning these attributes can also be used as css properties.
SVG documentation index - SVG: Scalable Vector Graphics
found 383 pages: # page
tags and summary 1 svg: scalable vector graphics 2d graphics, graphics, icons, images, reference, responsive design, svg, scalable graphics, scalable images, vector graphics, web, l10n:priority scalable vector graphics (svg) are an xml-based markup language for describing two-dimensional based vector graphics.xml 2 applying svg effects to html content css, guide, html, svg modern browsers support using svg within css styles to apply graphical effects to html content.
...when svg documents are embedded within a parent html document using the
tag: 6 namespaces crash course svg, xml as an xml dialect, svg is namespaced.
... 212 systemlanguage svg, svg attribute the systemlanguage attribute represents a list of supported language
tags.
...most svg you'll find around the web use inline css, but there are advan
tages and disadvan
tages associated with each type.
page-worker - Archive of obsolete content
in this example we fetch the first paragraph of a page from wikipedia, then the first paragraph of a different page: var getfirstparagraph = "var paras = document.getelementsby
tagname('p');" + "console.log(paras[0].textcontent);" + "self.port.emit('loaded');" pageworker = require("sdk/page-worker").page({ contentscript: getfirstparagraph, contenturl: "http://en.wikipedia.org/wiki/chalk" }); pageworker.port.on("loaded", function() { pageworker.contenturl = "http://en.wikipedia.org/wiki/cheese" }); scripting page conte...
...to interact with trusted content you don't need to use content scripts: you can just include a script from the html file in the normal way, using <script>
tags.
... in the html page itself: add a <script>
tag to load the script.
widget - Archive of obsolete content
there are a few advan
tages to using widgets over an ad hoc user interface.
...to interact with trusted content you don't need to use content scripts: you can just include a script from the html file in the normal way, using script
tags.
...= document.getelementbyid("play-button"); play_button.onclick = function() { addon.port.emit("play"); } var pause_button = document.getelementbyid("pause-button"); pause_button.onclick = function() { addon.port.emit("pause"); } var stop_button = document.getelementbyid("stop-button"); stop_button.onclick = function() { addon.port.emit("stop"); } } next, add a script
tag to reference "button-script.js", and call its init() function on load: <html> <head> <script src="button-script.js"></script> </head> <body onload="init()"> <img src="play.png" id="play-button"> <img src="pause.png" id="pause-button"> <img src="stop.png" id="stop-button"> </body> </html> finally, remove the line attaching the content script from "main.js": const widget...
Bookmarks - Archive of obsolete content
note: all annotations,
tags, and so forth are kept when the bookmark's uri is changed.
... var parentfolderid = bmsvc.getfolderidforitem(newbkmkid); observing changes to bookmarks and
tags to set up an observer to listen for changes related to bookmarks, you will need to create an nsinavbookmarkobserver object and use the nsinavbookmarksservice.addobserver() and nsinavbookmarksservice.removeobserver() methods.
... note that this example takes advan
tage of xpcomutils to generate the nsisupports.queryinterface() method.
Inline options - Archive of obsolete content
options file the xul allowed for the inline options is limited to a few new
tags.
... here is an example of an options.xul file: <?xml version="1.0"?> <!doctype mydialog system "chrome://myaddon/locale/mydialog.dtd"> <vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <setting type="bool" pref="extensions.myaddon.bool" title="boolean" desc="stored as a boolean preference" /> </vbox> note that it's limited to <setting>
tags.
...to set a description, either use the desc attribute, or a text node as a child of the <setting>
tag.
Install Manifests - Archive of obsolete content
<em:requires> has a similar syntax to the <em:targetapplication>
tag (i.e.
...if the add-on specified by the <em:id>
tag is not installed or has an incompatible version, the extension manager will disable your extension and show the message "requires additional items".
... you can add as many <em:requires>
tags as you like.
User Notifications and Alerts - Archive of obsolete content
another advan
tage is that you use an xpcom service to do this (nsialertsservice), so you can easily trigger alerts from chrome and non-chrome code.
... the main disadvan
tage of using alerts is that support for the alerts service is not guaranteed for all platforms and firefox versions.
... custom alerts creating custom solutions for alerting the user is not complicated, given the advan
tages of xul overlays and css positioning.
XML data - Archive of obsolete content
you see the actual
tags that define the data's structure.
...to do this, your stylesheet uses rules that map
tags in the xml document to the display types used by html.
... example data in an xml document uses <info>
tags.
CSS3 - Archive of obsolete content
the next iteration of the selectors specification is already in progress, though it still hasn't reached the first public working draft s
tage.
...these can be used without prefix and are pretty stable, though a few features can still be dropped at the candidate recommendation s
tage.
... the css4 iteration of the backgrounds and borders specification is already in progress, though it still hasn't reached the first public working draft s
tage, it plans to add the ability to clip a border (with the css border-clip, border-clip-top, border-clip-right, border-clip-bottom, and border-clip-left properties) or to control the shape of the border in a corner (using the css border-corner-shape property).
JXON - Archive of obsolete content
the following algorithms are somewhat based on the parker convention, version 0.4, which prescribes the transformation of
tags names into object properties names and the recognition of the typeof of all the collected text content of each
tag (plain text parsing); but with some differences (so, one can say that we follow a our convention).
... the parker convention the functions listed above for the conversion of an xml document to json (often called "jxon algorithms") are more or less freely based on the parker convention (especially regarding the transformation of
tags names into object properties names, the recognition of the typeof of all the collected text content of each
tag and the absorption of solitary text and/or cdatasection nodes into primitive values).
...you can include them removing the string && !onode.prefix from our algorithms (by doing so the whole
tag will become the property name: { "ding:dong": "binnen" }).
List of Mozilla-Based Applications - Archive of obsolete content
dog
tag certificate system uses nss dojo javascript toolkit uses mozilla rhino in shrinksafe eclipse platform open development platform the ajax toolkit framework, standard widget toolkit and eclipsemozilla projects make use of mozilla elixon wcms/xul web content management system fully remote xul wcms (no need to install extensions).
...javalikescript javascript extensible tooling framework uses nspr and spidermonkey jaxer ajax server jslibs javascript development runtime environment uses spidermonkey (note: this is separate from the javascript library jslib) joybidder ebay auction tool standalone version uses xulrunner just (fr) audio a tool for setting temporal
tags in audio documents jsdoc toolkit documentation tool uses mozilla rhino k-meleon gecko-based web browser for windows embeds gecko in mfc kairo.at mandelbrot creates images of mandelbrot sets xulrunner application kazehakase gecko-based web browser for unix kirix strata data browser kiwix offline version of wi...
...xul/applications/ http://blog.mozbox.org/post/2007/06/14/xul-activity-in-france http://www.mozilla.org/projects/security/pki/nss/overview.html http://en.wikipedia.org/wiki/spidermonkey_(javascript_engine) http://www.mozilla.org/rhino/users.html http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/4eb9162c9c3054b0/1d4115b40373ca3b?lnk=raot http://www.ohloh.net/
tags/xulrunner ...
MMgc - Archive of obsolete content
they can also take advan
tage of the 4k boundary to eliminate the 4 byte per allocation penalty.
...memory profiler mmgc's memory profiler can display the state of your application's heap, showing the different classes of object in memory, along with object counts, byte counts, and percen
tage of total memory.
...now that we know when we start marking there are two conflicting goals to achieve in selecting the marking time slice: maintain the frame rate make sure the collector gets to the sweep s
tage soon enough to avoid too much heap expansion if we don't maintain the frame rate the movie will appear to pause and if we don't mark fast enough the mutator could get ahread of the collector and allocate memory so fast that the collection never finishes and memory grows unbounded.
Creating a Microsummary - Archive of obsolete content
to begin building the generator, create a new empty text file and add an xml declaration and empty <generator>
tag to it: <?xml version="1.0" encoding="utf-8"?> <generator xmlns="http://www.mozilla.org/microsummaries/0.1"> </generator> giving it a name generators should have name attributes which are arbitrary descriptions of the microsummaries the generator creates.
...illa.org/microsummaries/0.1" name="firefox download count"> <template> <transform xmlns="http://www.w3.org/1999/xsl/transform" version="1.0"> <output method="text"/> <template match="/"> <value-of select="id('download-count')"/> <text> fx downloads</text> </template> </transform> </template> </generator> note that white space between xslt
tags is not included in the xslt output, unlike in html where that white space is collapsed to a single space, so make sure to prepend a space to the phrase in order to separate it from the download count.
...if we were the spread firefox webmasters, we might simply reference the generator within the page itself by adding a <link rel="microsummary">
tag to its <head> element: <head> <link rel="microsummary" href="path/to/our/generator.xml"> </head> since we're not that site's webmasters, however, we can specify the page to which the generator applies within the generator itself and then make the generator available for download and installation.
Drag and Drop JavaScript Wrapper - Archive of obsolete content
you can include this file in your xul file with the script
tag in the same way you would include your own scripts.
...the functions are implemented by the nsdraganddrop object, which is declared in the file nsdraganddrop.js, which was included in one of the script
tags.
...the observer is declared in a script which you would include in the xul file using the script
tag.
Editor Embedding Guide - Archive of obsolete content
ditingsession)); if (editingsession) editingsession->makewindoweditable(domwindow, "html", pr_true); the valid editor types are: "text" (similar to notepad or a textarea; does not allow for html) "textmail" (similar to "text" but html can be inserted; intended for plaintext mail usage and handling of citations) "html" (this is the default type if no type is specified; it allows for all html
tags to be inserted) "htmlmail" (this is much like "html" except there are a few editing rules/behaviors that differ such as splitting of mail quotes) editor commands you need to call commands and receive updates in order to make any changes to the content on the browser.
... docommand no parameters cmd_increasefont increases font size (uses <big>
tag).
... getcommandstate "state_enabled"(boolean) docommand no parameters cmd_decreasefont decreases font size (uses <small>
tag).
Style System Overview - Archive of obsolete content
cssruleprocessor one cssruleprocessor per origin (ua, user, author) css rule processor sorts all the rules in cascade order, and then puts them in rulehash, which remembers order and then hashes by first of id, class,
tag, namespace, or unhashed.
...this happens when properties are inherited or when percen
tage units are used in a way that is handled by the style code (rather than reflow).
... style data cached in rule tree if the data struct doesn't depend on the parent style context in any ways (inheritance, perhaps by omission; percen
tages and ems when computed), we can cache it in the rule tree.
Microsummary XML grammar reference - Archive of obsolete content
ges> </generator> namespace the namespace uri for microsummary generator xml documents is: http://www.mozilla.org/microsummaries/0.1 all elements in a microsummary generator document should be in this namespace except the descendants of the <template> element, which should be in the xslt namespace: http://www.w3.org/1999/xsl/transform the <generator> element the <generator> element is the root
tag for all microsummary generators, and should contain the remainder of the xml code describing the generator.
... per xslt, you may specify the stylesheet child element using either the <stylesheet> or the <transform>
tag, which are interchangeable.
...white space between the child element
tags and the regular expressions they contain is also not significant; it is not considered part of the regular expression, and it does not affect evaluation of the expressions.
Mozilla Application Framework in Detail - Archive of obsolete content
what this means to you as the developer is this: you can take advan
tage of skills you already have with xml or web technologies to design and implement anything from a simple text editor to a comprehensive ide - complete with all of the interface widgets that you would find in virtually any major application framework.
...our platform also can take advan
tage of other internet standards such as xslt and rdf.
...all services are available from javascript code, which allows even simple xul+js applications to take advan
tage of them.
Venkman Internals - Archive of obsolete content
filecontainerrecord - list of script
tags found in the parent record's window.document property.
... to obtain the antecedent files: doc.getelementsby
tagname("script"); then extract the urls from the src attributes.
...scriptinstance.functions is a hash of all of the functions in the script instance, keyed by the
tag property of the jsdscript.
Additional Navigation - Archive of obsolete content
the member
tag must have variables for both the container and child attributes.
...usually, however you will want to iterate only over the children of a node using a member
tag and instead use a triple or binding for each predicate of each child that you wish to display.
... retrieving parents a very uncommon form of navigation you can also do is to navigate upwards using a member
tag, that is to get all the parents of a node, as in this example: <query> <content uri="?start"/> <member container="?parent" child="?start"/> </query> this might be used, for instance, to start at a particular photo and find all of the containers that it is inside.
Simple Query Syntax - Archive of obsolete content
simple rdf graph navigation such as this is common, so the simpler syntax is usually used in this situation since it avoids extra
tags, although the simple syntax is not more or less efficient, at least when a single query is involved.
... a simple query is equivalent to a query with only the content
tag and a member
tag, as well as optionally a set of triples from the child node.
...for example: <label value="rdf:http://purl.org/dc/elements/1.1/title http://www.xulplanet.com/rdf/country"/> the 'rdf:' form is really equivalent to the <binding>
tag in the full syntax.
textbox (Toolkit autocomplete) - Archive of obsolete content
places-
tag-autocomplete requires seamonkey 2.1 the user's places
tags are searched.
...using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
Textbox (XPFE autocomplete) - Archive of obsolete content
places-
tag-autocomplete requires seamonkey 2.1 the user's places
tags are searched.
...using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
Commands - Archive of obsolete content
however, a command has the advan
tage that it can be disabled when needed and can be invoked without needing to know about the details of its implementation.
... there are two advan
tages to using this approach.
... the other advan
tage is that several buttons or other ui elements can be hooked up to the same command.
Content Panels - Archive of obsolete content
it has the advan
tage that it can be placed anywhere and the contents can be loaded from a different file.
... browsers there is a second type of content panel, using the browser
tag.
...essentially, the browser
tag should be used when you want to create a browser-like interface, but the iframe may be used when you just need a simple panel.
More Event Handlers - Archive of obsolete content
example 1 : source view <vbox oncommand="alert(event.currenttarget.
tagname);"> <button label="ok"/> <checkbox label="show images"/> </vbox> stop event propagation once you handle an event, regardless of where in the propagation the event is, you will likely want to stop the event from being sent to further elements, essentially stopping the capturing or bubbling phases from continuing.
...load events the load event is sent to the document (the window
tag) once the xul file has finished loading and just before the content is displayed.
...to use a load event, place an onload attribute on the window
tag.
Skinning XUL Files by Hand - Archive of obsolete content
when you declare a button in your xul to be of a particular class, you take advan
tage of all of the styles defined for the various states of that button.
...this independence of function and form is a great advan
tage of xul, and it should not be overlooked.
...but the advan
tages of using xul so far outweigh those of using the standard c++ toolkits that xul authoring should rightfully be considered in a separate category of development.
Stacks and Decks - Archive of obsolete content
the box
tag creates the simplest box with no special properties.
... this method has advan
tages over using text-shadow because you could completely style the shadow apart from the main text.
...a disadvan
tage is that the area taken up by the shadow makes the size of the stack larger.
Templates - Archive of obsolete content
note that it isn't the template
tag that determines whether content is built, it is the datasources attribute.
... all of the attributes placed on the rule
tag are used as match criteria.
... you should also have noticed that because we wanted to get an attribute from the rdf namespace (rdf:type), we needed to add the namespace declaration to the window
tag.
command - Archive of obsolete content
using this function has the advan
tage that the command will be sent to the part of the ui which will respond to it.
...using it with an anchor
tag (an <a> link) will have no effect.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
description - Archive of obsolete content
the text can be set either with the value attribute or by placing text inside the open and close description
tags.
...using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
label - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
...<label control="email">email address</label> <textbox id="email"/> if the text node contains no
tags, it can easily be accessed and manipulated from javascript using node.textcontent.
prefpane - Archive of obsolete content
in this latter case, the separate file should use an overlay
tag as its root
tag since it will be loaded as an overlay to the main preferences window.
... inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
...place the <script>
tags as in the following example for preference dialogs to work correctly: <prefwindow> <prefpane id="panegeneral" label="general"> ...
prefwindow - Archive of obsolete content
this element should be used in place of the window
tag and should contain one or more prefpane elements.
...you can also set the lastselected attribute on the prefwindow
tag to the id of the pane to start with.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
rule - Archive of obsolete content
parent type: element
tag name if set, the rule will only match the corresponding
tag.
... this may be used to have separate rules for leaf and container nodes with different
tags.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
tree - Archive of obsolete content
unlike other elements, the data to display inside the tree is not specified using
tags, but is determined from a view object.
...using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
window - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
...if this code is placed between window
tags it messes up all other controls on the window.
... if it is placed between box
tags, window controls are rendered fine, but still there is this error message.
2006-11-17 - Archive of obsolete content
paul reed announced that: there was a power ou
tage at his office and the machines, which are responsible for running autoconf (configure.in -> configure), located in his office failed to boot up after power was restored.
... configure regeneration back up, but another ou
tage tonight...
...he also warns that there will be another ou
tage which will cause the servers in his office as well as all tinderboxes to go down.
2006-11-17 - Archive of obsolete content
configure regeneration back up, but another ou
tage tonight...
...but there is another ou
tage scheduled so the tinderboxen will be down early.
...a full list can be found here mozilla/configure regeneration down preed says that the machine that does autoconf went down during a power ou
tage.
2006-09-29 - Archive of obsolete content
* @param amargin the sum of the left and right margins of the * frame, including actual values resulting from * percen
tages, but not including actual values * resulting from 'auto'.
... * @param apadding the sum of the left and right margins of the * frame, including actual values resulting from * percen
tages.
...details can be located at frame reflow issues related to the ongoing implementation of mathml-in-html into mozilla, which include: exposing the mathml implementation to
tag soup.
The First Install Problem - Archive of obsolete content
future directions: using object
tag with classid: incidental benefit embedders such as compuserve (who now embed gecko in lieu of ie as the default browser) can determine on their own the mechanisms to parse the win32 registry for plids.
...if every major plugin vendor complies with the writing of plugin directory information into the registry along with a plid, we can then use the object
tag to invoke plugins based on their "classid" (their respective plid, which is a uri, which works well with the w3c spec).
...the recommended <object> attribute to set is still either "type" or "data".) advan
tage: we now no longer have ambiguity in determining which plugin handles what mimetype, because now the plugin has been invoked using the classid attribute of the object
tag, which is in compliance with the html 4.01 specification for use of the object
tag.
Introduction to Public-Key Cryptography - Archive of obsolete content
as shown in the next section, one of the advan
tages of certificate-based authentication is that it can be used to replace the first three steps in figure 4 with a mechanism that allows the user to supply just one password (which is not sent across the network) and allows the administrator to control user authentication centrally.
...:46:a8: d:c4 here is the same certificate displayed in the 64-byte-encoded form interpreted by software: -----begin certificate----- miickzccazsgawibagibazanbgkqhkig9w0baqqfada3mqswcqydvqqgewjvuzer ma8ga1uechmitmv0c2nhcguxftatbgnvbastdfn1chjpewencybdqtaefw05nzew mtgwmtm2mjvafw05otewmtgwmtm2mjvamegxczajbgnvbaytalvtmrewdwydvqqk ewhozxrzy2fwztenmasga1uecxmeuhviczexmbuga1ueaxmou3vwcml5ysb
tagv0 dhkwgz8wdqyjkozihvcnaqefbqadgy0amigjaogbamr6ezipgfjx3urjgejmkiqg 7sdatyazbcabu1avyd7chrkiq31fbxfogd3wnktbf6hro6eamm5/r1askzz8aw7l iqzbcrxpc0k4du+2q6xju2mpm/8wkumontuvzpo+sgxelmhvcheqoocwfdizywyz nmmrjgaoma2ms6pukfqvagmbaagjnja0mbegcwcgsagg+eibaqqeawiagdafbgnv hsmegdawgbty8gzzkbhhufwjm1oxeuzc+zymytanbgkqhkig9w0baqqfaaobgqbt i6/z07z635dfzx4xbafpjlrl/aywqztsyx8gfcnaqcqcwasdkvsuj/vwbf91o3j3 ...
...there are two major s
tages in the lifecycle of a certificate: the point when it is issued (issuance and enrollment) and the period when the certificates are no longer valid (renewal or revocation).
TCP/IP Security - Archive of obsolete content
transmission control protocol (tcp) and user da
tagram protocol (udp) are commonly used transport layer protocols.
... another advan
tage of network layer controls is that since ip information (e.g., ip addresses) is added at this layer, the controls can protect both the data within the packets and the ip information for each packet.
... controls at each layer offer advan
tages and features that controls at other layers do not.
-ms-content-zoom-limit-max - Archive of obsolete content
initial value400%applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednopercen
tagesthe largest allowed zoom factor.
...smaller values zoom out.computed valueas specifiedanimation typediscrete syntax values <percen
tage> the maximum zoom factor.
... formal syntax <percen
tage> specifications not part of any specification.
-ms-content-zoom-limit-min - Archive of obsolete content
initial value100%applies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednopercen
tagesthe smallest allowed zoom factor.
...smaller values zoom out.computed valueas specifiedanimation typediscrete syntax values <percen
tage> the minimum zoom factor.
... formal syntax <percen
tage> specifications not part of any specification.
azimuth - Archive of obsolete content
this is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound s
tage.
... stereo output produce a lateral sound s
tage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional s
tage.
...the value 0deg means directly ahead in the center of the sound s
tage (this is the default value).
Object.prototype.__noSuchMethod__ - Archive of obsolete content
// example base class 1 function namedthing(name) { this.name = name; } namedthing.prototype = { getname: function() { return this.name; }, setname: function(newname) { this.name = newname; } } // example base class 2 function agedthing(age) { this.age = age; } agedthing.prototype = { ge
tage: function() { return this.age; }, se
tage: function(age) { this.age = age; } } // child class.
... address function person(name, age, address){ addparent(this, namedthing.prototype); namedthing.call(this, name); addparent(this, agedthing.prototype); agedthing.call(this, age); this.address = address; } person.prototype = { getaddr: function() { return this.address; }, setaddr: function(addr) { this.address = addr; } } var bob = new person('bob', 25, 'new york'); console.log('ge
tage is ' + (('ge
tage' in bob) ?
... 'in' : 'not in') + ' bob'); // ge
tage is not in bob console.log("bob's age is: " + bob.ge
tage()); // bob's age is: 25 console.log('getname is ' + (('getname' in bob) ?
XUL Parser in Python - Archive of obsolete content
at the middle of it is a subclass of the xmllib parser that overrides that parser's unknown_start
tag method and asks it to do all the work.
... the unknown_start
tag handler is fed the
tag name, the attributes of that
tag, and the attributes' values, so all you have to do as you hit each xul element is build up a nested dictionary of elements and their associated attributes.
...the parser provides the
tag name itself as a string and the attributes and their values in a dictionary, "a".
Index - Game development
found 74 pages: # page
tags and summary 1 game development apps, game development, gamedev, games, html5 games, javascript games, web gaming is one of the most popular computer activities.
... 30 implementing game control mechanisms controls, desktop, gamepad, games, javascript, laptop, mobile, keyboard, mouse, touch one of html5's main advan
tages as a game development platform is the ability to run on various platforms and devices.
...we can make the game scale to fit on any screen size automatically during the preload s
tage, so we don't have to worry about it later.
2D collision detection - Game development
} rect code <div id="cr-s
tage"></div> <p>move the rectangle with arrow keys.
... playable code <div id="cr-s
tage"></div> <p>move the circle with arrow keys.
... green means collision, blue means no collision.</p> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crafty/0.5.4/crafty-min.js"></script> #cr-s
tage { position: static !important; height: 200px !important; } crafty.init(200, 200); var dim1 = {x: 5, y: 5} var dim2 = {x: 20, y: 20} crafty.c("circle", { circle: function(radius, color) { this.radius = radius; this.w = this.h = radius * 2; this.color = color || "#000000"; this.bind("move", crafty.drawmanager.drawall) return this; }, draw: function() { var ctx = crafty.canvas.context; ctx.save(); ctx.fillstyle = this.color; ctx.beginpath(); ctx.arc( this.x + this.radius, this.y + this.radius, ...
GLSL Shaders - Game development
the <script> element in the <head> includes the three.js library in the page; we will write our code into three script
tags in the <body>
tag: the first one will contain the vertex shader.
... the vertex shader code let's continue by writing a simple vertex shader — add the code below inside the body's first <script>
tag: void main() { gl_position = projectionmatrix * modelviewmatrix * vec4(position.x+10.0, position.y, position.z+5.0, 1.0); } the resulting gl_position is calculated by multiplying the model-view and the projection matrices by each vector to get the final vertex position, in each case.
... the texture shader code now we'll add the texture shader to the code — add the code below to the body's second <script>
tag: void main() { gl_fragcolor = vec4(0.0, 0.58, 0.86, 1.0); } this will set an rgba color to recreate the current light blue one — the first three float values (ranging from 0.0 to 1.0) represent the red, green, and blue channels while the fourth one is the alpha transparency (ranging from 0.0 — fully transparent — to 1.0 — fully opaque).
Audio for Web games - Game development
if you s
tagger playback you may have some degree of success.
... the advan
tage is that we can prime one piece of audio and have our sprites ready to go.
... let's add some javascript to make this work: var myaudio = document.getelementbyid('myaudio'); var buttons = document.getelementsby
tagname('button'); var stoptime = 0; for (var i = 0; i < buttons.length; i++) { buttons[i].addeventlistener('click', function() { myaudio.currenttime = this.getattribute("data-start"); stoptime = this.getattribute("data-stop"); myaudio.play(); }, false); } myaudio.addeventlistener('timeupdate', function() { if (this.currenttime > stoptime) { this.pause(); } }, false); note...
Mobile touch controls - Game development
pure javascript approach we could implement touch events on our own — setting up event listeners and assigning relevant functions to them would be quite straightforward: var el = document.getelementsby
tagname("canvas")[0]; el.addeventlistener("touchstart", handlestart); el.addeventlistener("touchmove", handlemove); el.addeventlistener("touchend", handleend); el.addeventlistener("touchcancel", handlecancel); this way, touching the game's <canvas> on the mobile screen would emit events, and thus we could manipulate the game in any way we want (for example, moving the space ship around).
... an additional advan
tage of using phaser is that the buttons you create will take any type of input, whether it's a touch on mobile or a click on desktop — the framework sorts this out in the background for you.
... moving the player could be managed by creating the four directional buttons, but we can take the advan
tage of touch screens and drag the player's ship around: var player = this.game.add.sprite(30, 30, 'ship'); player.inputenabled = true; player.input.enabledrag(); player.events.ondragstart.add(ondragstart, this); player.events.ondragstop.add(ondragstop, this); function ondragstart(sprite, pointer) { // do something when dragging } we can pull the ship around and do something in the meantime, a...
Scaling - Game development
we can make the game scale to fit on any screen size automatically during the preload s
tage, so we don't have to worry about it later.
...the s
tage object has a backgroundcolor property for this purpose, which we can set using css color definition syntax.
... add the following line below the other three you added earlier: game.s
tage.backgroundcolor = '#eee'; compare your code you can check the finished code for this lesson in the live demo below, and play with it to understand better how it works: next steps now we've set up the scaling for our game, let's continue to the third lesson and work out how to load the assets and print them on screen.
Element - MDN Web Docs Glossary: Definitions of Web-related terms
a typical element includes an opening
tag with some attributes, enclosed text content, and a closing
tag.
... elements and
tags are not the same things.
...
tags begin or end an element in source code, whereas elements are part of the dom, the document model for displaying the page in the browser.
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
code sample the following code aims to let <xi:include> and <xi:fallback>
tags (the two elements in the language) with all of the attributes of <xi:include> be included in an xml document so as to be resolvable into a single xml document.
...should become: var href = getxmlbaselink (/* xlink sans xml:base */ xinclude.getattribute('href'), /* element to query from */ xinclude); function resolvexincludes(docu) { // http://www.w3.org/tr/xinclude/#xml-included-items var xincludes = docu.getelementsby
tagnamens('http://www.w3.org/2001/xinclude', 'include'); if (xincludes) { for (i=0; i < xincludes.length; i++) { var xinclude = xincludes[i]; var href = xinclude.getattribute('href'); var parse = xinclude.getattribute('parse'); var xpointer = xinclude.getattribute('xpointer'); var encoding = xinclude.getattribute('encoding'); // ...
...e.g., utf-8 // "text/xml or application/xml or matches text/*+xml or application/*+xml" before encoding (then utf-8) var accept = xinclude.getattribute('accept'); // header "accept: "+x var acceptlanguage = xinclude.getattribute('accept-language'); // "accept-language: "+x var xifallback = xinclude.getelementsby
tagnamens('http://www.w3.org/2001/xinclude', 'fallback')[0]; // only one such child is allowed if (href === '' || href === null) { // points to same document if empty (null is equivalent to empty string) href = null; // set for uniformity in testing below if (parse === 'xml' && xpointer === null) { alert('there must be an xpointer attribute present if "href" is empty an parse is "xml"');...
Speculative parsing - MDN Web Docs Glossary: Definitions of Web-related terms
traditionally in browsers the html parser ran on the main thread and was blocked after a </script>
tag until the script has been retrieved from the network and executed.
... avoiding losing tree builder output speculative tree building fails when document.write() changes the tree builder state such that the speculative state after the </script>
tag no longer holds when all the content inserted by document.write() has been parsed.
... note that writing balanced
tags may cause other
tags to be inferred in a way that makes the write unbalanced.
HTML: A good basis for accessibility - Learn web development
building keyboard accessibility back in adding such advan
tages back in takes a bit of work (you can see an example in our fake-div-buttons.html example — also see the source code).
...there are other disadvan
tages too — you can't select it and copy/paste it.
... onclick events anchor
tags are often abused with the onclick event to create pseudo-buttons by setting href to "#" or "javascript:void(0)" to prevent the page from refreshing.
HTML: A good basis for accessibility - Learn web development
building keyboard accessibility back in adding such advan
tages back in takes a bit of work (you can see an example in our fake-div-buttons.html example — also see the source code).
...there are other disadvan
tages too — you can't select it and copy/paste it.
... onclick events anchor
tags are often abused with the onclick event to create pseudo-buttons by setting href to "#" or "javascript:void(0)" to prevent the page from refreshing.
WAI-ARIA basics - Learn web development
we'd like you to take a copy of aria-no-live.html and quotes.json, and update your <section>
tag as follows: <section aria-live="assertive"> this will cause a screenreader to read out the content as it is updated.
...update your <section>
tag again, like so: <section aria-live="assertive" aria-atomic="true"> the aria-atomic="true" attribute tells screenreaders to read out the entire element contents as one atomic unit, not just the bits that were updated.
... first of all, add a paragraph just above the opening <form>
tag, like the one below, and mark both the form <label>s with an asterisk.
Backgrounds and borders - Learn web development
in this case we could use the background-size property, which can take length or percen
tage values, to size the image to fit inside the background.
... you can use keywords such as top and right (look up the others on the background-position page): .box { background-image: url(star.png); background-repeat: no-repeat; background-position: top center; } and lengths, and percen
tages: .box { background-image: url(star.png); background-repeat: no-repeat; background-position: 20px 10%; } you can also mix keyword values with lengths or percen
tages, for example: .box { background-image: url(star.png); background-repeat: no-repeat; background-position: top 20px; } finally, you can also use a 4-value syntax in order to indicate a distance from certain edges of t...
...two lengths or percen
tages may be used as a value, the first value defining the horizontal radius, and the second the vertical radius.
Organizing your CSS - Learn web development
if you come across a project that uses one of these approaches then the advan
tage is that you will be able to search and find many articles and guides to help you understand how to code in the same style.
... the disadvan
tage of using such a system is that they can seem overly complex, especially for smaller projects.
... build systems for css another way to organise css is to take advan
tage of some of the tooling that is available for front-end developers, which allows you to take a slightly more programmatic approach to writing css.
Grids - Learn web development
you can use any length unit, or percen
tages to create these column tracks.
...ound-color: rgb(207,232,220); border: 2px solid rgb(79,185,227); } <div class="container"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> <div>six</div> <div>seven</div> </div> .container { display: grid; grid-template-columns: 200px 200px 200px; } flexible grids with the fr unit in addition to creating grids using lengths and percen
tages, we can use the fr unit to flexibly size grid rows and columns.
... .container { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-gap: 20px; } these gaps can be any length unit or a percen
tage, but not an fr unit.
Beginner's guide to media queries - Learn web development
the viewport meta
tag if you look at the html source in the above example, you'll see the following element included in the head of the document: <meta name="viewport" content="width=device-width,initial-scale=1"> this is the viewport meta
tag — it exists as a way control how mobile browsers render content.
... to remedy this, including a viewport meta
tag like the one above on your page tells the browser "don't render the content with a 960 pixel viewport — render it using the real device width instead, and set a default initial scale level for better consistency." the media queries will then kick in as expected.
... there are a number of other options you can put inside the content attribute of the viewport meta
tag — see using the viewport meta
tag to control layout on mobile browsers for more details.
How to structure a web form - Learn web development
you can label a <fieldset> by including a <legend> element just below the opening <fieldset>
tag.
... another advan
tage of properly set up labels is that you can click or tap the label to activate the corresponding widget.
... apply the css to the html by adding the following line inside the html <head>: <link href="payment-form.css" rel="stylesheet"> next, create your form by adding the outer <form> element: <form> </form> inside the <form>
tags, add a heading and paragraph to inform users how required fields are marked: <h1>payment form</h1> <p>required fields are followed by <strong><abbr title="required">*</abbr></strong>.</p> next we'll add a larger section of code into the form, below our previous entry.
Other form controls - Learn web development
<textarea> also takes a closing
tag, and any default text you want it to contain should be put between the opening and closing
tags.
... in contrast, the <input> is an empty element with no closing
tag — any default value is put inside the value attribute.
... <progress max="100" value="75">75/100</progress> this is for implementing anything requiring progress reporting, such as the percen
tage of total files downloaded, or the number of questions filled in on a questionnaire.
CSS basics - Learn web development
paste the following line in the head (between the <head> and </head>
tags): <link href="styles/style.css" rel="stylesheet"> save index.html and load it in your browser.
...here are some of the more common types of selectors: selector name what does it select example element selector (sometimes called a
tag or type selector) all html elements of the specified type.
...add the <link> element somewhere inside your index.html's head (anywhere between the <head> and </head>
tags).
HTML text fundamentals - Learn web development
the rain lashed down on the ...</p> <h2>chapter 2: the eternal silence</h2> <p>our pro
tagonist could not so much as a whisper out of the shadowy figure ...</p> <h3>the specter speaks</h3> <p>several more hours had passed, when all of a sudden the specter sat bolt upright and exclaimed, "please have mercy on my soul!"</p> it's really up to you what the elements involved represent, as long as the hierarchy makes sense.
...browsers style this as italic by default, but you shouldn't use this
tag purely to get italic styling.
...browsers style this as bold text by default, but you shouldn't use this
tag purely to get bold styling.
Marking up a letter - Learn web development
the head of the document the character set of the document should be set as utf-8 using the appropriate meta
tag.
... the author of the letter should be specified in an appropriate meta
tag.
... the provided css should be included inside an appropriate
tag.
Adding vector graphics to the Web - Learn web development
these packages allow you to create a variety of illustrations using various graphics tools, and create approximations of photos (for example inkscape's trace bitmap feature.) svg has some additional advan
tages besides those described so far: text in vector images remains accessible (which also benefits your seo).
...well, svg does have some disadvan
tages: svg can get complicated very quickly, meaning that file sizes can grow; complex svgs can also take significant processing time in the browser.
...make sure your svg code snippet begins and ends with the <svg></svg>
tags (don't include anything outside those.) here's a very simple example of what you might paste into your document: <svg width="300" height="200"> <rect width="100%" height="100%" fill="green" /> </svg> pros putting your svg inline saves an http request, and therefore can reduce a bit your loading time.
Images in HTML - Learn web development
this is an empty element (meaning that it has no text content or closing
tag) that requires a minimum of one attribute to be useful — src (sometimes spoken as its full title, source).
...if you put an image inside <a>
tags, to turn an image into a link, you still must provide accessible link text.
...you are provided with a basic <img>
tag; we'd like you to embed the image located at the following url: https://udn.realityripple.com/samples/ec/5a13bd14f6.jpg earlier we said to never hotlink to images on other servers, but this is just for learning purposes, so we'll let you off this one time.
From object to iframe — other embedding technologies - Learn web development
fallback content in the same way as other similar elements like <video>, you can include fallback content between the opening and closing <iframe></iframe>
tags that will appear if the browser doesn't support the <iframe>.
...um: <embed> <object> url of the embedded content src data accurate media type of the embedded content type type height and width (in css pixels) of the box controlled by the plugin height width height width names and values, to feed the plugin as parameters ad hoc attributes with those names and values single-
tag <param> elements, contained within <object> independent html content as fallback for an unavailable resource not supported (<noembed> is obsolete) contained within <object>, after <param> elements note: <object> requires a data attribute, a type attribute, or both.
...for virtually all applications, it's time to stop delivering content that depends on plugins and start taking advan
tage of web technologies instead.
Video and audio content - Learn web development
the paragraph inside the <video>
tags this is called fallback content — this will be displayed if the browser accessing the page doesn't support the <video> element, allowing us to provide a fallback for older browsers.
...each codec offers its own advan
tages and drawbacks, and each container may also offer its own positive and negative features affecting your decisions about which to use.
...here is a <a href="rabbit320.mp4">link to the video</a> instead.</p> </video> here we've taken the src attribute out of the actual <video>
tag, and instead included separate <source> elements that point to their own sources.
HTML table advanced features and accessibility - Learn web development
you should put it just below the opening <table>
tag.
... a caption is placed directly beneath the <table>
tag.
...to check this, open up one of your previous examples that doesn't include <tbody> and look at the html code in your browser developer tools — you will see that the browser has added this
tag for you.
Drawing graphics - Learn web development
inside the canvas
tags, you can put some fallback content, which is shown if the user's browser doesn't support canvas.
... add the following code into it, just below the opening <body>
tag: <canvas class="mycanvas"> <p>add suitable fallback here.</p> </canvas> we have added a class to the <canvas> element so it will be easier to select if we have multiple canvases on the page, but we have removed the width and height attributes for now (you could add them back in if you wanted, but we will set them using javascript in a below section).
...ture.wraps = three.repeatwrapping; texture.wrapt = three.repeatwrapping; texture.repeat.set(2, 2); let geometry = new three.boxgeometry(2.4, 2.4, 2.4); let material = new three.meshlambertmaterial( { map: texture, shading: three.flatshading } ); cube = new three.mesh(geometry, material); scene.add(cube); draw(); }); there's a bit more to take in here, so let's go through it in s
tages: we first create a cube global variable so we can access our cube from anywhere in the code.
Web performance resources - Learn web development
as we learned in the critical rendering path document, linking css with a tradional link
tag with rel="stylesheet" is synchronous and blocks rendering.
...the following snippet includes an onload attribute, requiring javascript, so it is important to include a noscript
tag with a traditional fallback.
...javascript only block rendering for elements that appear after the script
tag in the dom tree.
Deployment and next steps - Learn web development
create a .gitlab-ci.yml file inside your project's root and give it the following content: image: node:latest pages: s
tage: deploy script: - npm install - npm run build artifacts: paths: - public only: - master here we are telling gitlab to use an image with the latest version of node to build our app.
... svelte questions on stackoverflow: questions with the svelte
tag at so.
... we took advan
tage of the svelte reactivity system and learned how to avoid common pitfalls.
Working with Svelte stores - Learn web development
to handle those situations, we can take advan
tage of aria live regions, which provide a way to programmatically expose dynamic content changes so that they can be detected and announced by assistive technologies.
... put the following import statement below the existing ones: import { fly } from 'svelte/transition' to use it, update your opening <div>
tag like so: <div role="alert" on:click={() => visible = false} transition:fly > transitions can also receive parameters, like this: <div role="alert" on:click={() => visible = false} transition:fly="{{delay: 250, duration: 300, x: 0, y: -100, opacity: 0.5}}" > note: the double curly braces are not special svelte syntax.
...to take advan
tage of all its features, we will also port our entire application to typescript.
Focus management with Vue refs - Learn web development
vue lets you run methods at various s
tages of this lifecycle using lifecycle methods.
... destroyed() — runs after a component has been removed from the dom activated() — only used in components wrapped in a special keep-alive
tag.
... deactivated() — only used in components wrapped in a special keep-alive
tag.
Implementing feature detection - Learn web development
next, add a <script></script> element at the bottom of your body (just before the closing </body>
tag).
... <script src="modernizr-custom.js"></script> now edit your opening <html>
tag, so that it looks like this: <html class="no-js"> at this point, try loading your page, and you'll get an idea of how modernizr works for css features.
... finally, add another <script> element at the bottom of the html body (just before the </body>
tag), and put the following script inside the
tags: if (modernizr.geolocation) { navigator.geolocation.getcurrentposition(function(position) { let latlng = new google.maps.latlng(position.coords.latitude,position.coords.longitude); let myoptions = { zoom: 8, center: latlng, maptypeid: google.maps.maptypeid.terrain, disabledefaultui: true } let map = new g...
Client-side tooling overview - Learn web development
transformation this s
tage of your web app lifecycle typically allows you to code in either "future code" (such as the latest css or javascript features that might not have native support in browsers yet) or code using another language entirely, such as typescript.
... this s
tage of the development process is one that you want the least amount of active interaction with so that once it is configured, it runs mostly automatically, only popping up to say hello if something has gone wrong.
... others there are a number of other tool types available to use in the post-development s
tage, including code climate for gathering code quality metrics, the webhint browser extension for performing runtime analysis of cross-browser compatibility and other checks, github bots for providing more powerful github functionality, updown for providing app uptime monitoring, and so many more!
Application cache implementation overview
the association happens in nscontentsink::processofflinemanifest() called from the html parser every time <html>
tag has been parsed.
...when the url in the manifest attribute of the html
tag is identical to the manifest url the channel's nsiapplicationcache object belongs to and, the channel's loadedfromapplicationcache flag is set, the document is associated with that nsiapplicationcache object and an update attempt for the manifest is scheduled after the document completely loads.
... marking entries as foreign when nscontentsink::processofflinemanifest() discovers that the url in the manifest attribute of the html
tag is different from the manifest url the channel's nsiapplicationcache object belongs to, the entry the document has been loaded from is marked “foreign” and the page load is completely restarted.
Updating NSPR or NSS in mozilla-central
the nspr and nss sources in mozilla-central are maintained by the nspr and nss teams and always taken from exports of hg
tags.
...if you check in an individual change by mistake, your change will be lost when the nspr and nss teams push a new hg
tag to mozilla-central.
... (because some developers might not be aware that nspr/nss are separately maintained and released, the mozilla hg server rejects accidental changes/forking, if the required keywords are missing in the commit comment.) if nspr or nss must be upgraded to a new static
tag, follow this procedure: before starting, make sure your local repository is updated to mozilla-central tip and that there are no local changes: $ hg status -mard pull the new sources $ python client.py update_nspr nspr_
tag_name or $ python client.py update_nss nss_
tag_name if you update a branch older than mozilla 17 (without the change from bug 782784), you must manually add a dummy change (add or remove a blank line) to force a rebuild of nspr: mozilla/nsprpub/config/prdepend.h or nss: mozilla/sec...
Reviewer Checklist
tag for sec review if unsure.
...
tag for privacy review if needed.
... compatibility version files, databases, messages
tag messages with ids to disambiguate callers.
Communicating with frame scripts
the example below sends a message named "my-e10s-extension-message", with a data payload containing details and
tag properties, and exposes the event.target object as a cpow: // frame script addeventlistener("click", function (event) { sendasyncmessage("my-addon@me.org:my-e10s-extension-message", { details : "they clicked",
tag : event.target.
tagname }, { target : event.target }); }, false); to receive messages from content, a chrome script needs to add a message listener using the messa...
...unction listener(message) { console.log(message.name); console.log(message.sync); console.log(message.data); console.log(message.target); console.log(message.objects); } so combining this message listener with the message above will give console output somewhat like this, when the user clicks a <div>: "my-addon@me.org:my-e10s-extension-message" false object { details: "they clicked",
tag: "div" } <xul:browser anonid="initialbrowser" ...
...because a single message can be received by more than one listener, the return value of sendsyncmessage() is an array of all the values returned from every listener, even if it only contains a single value: // frame script addeventlistener("click", function (event) { var results = sendsyncmessage("my-addon@me.org:my-e10s-extension-message", { details : "they clicked",
tag : event.target.
tagname }); content.console.log(results[0]); // "value from chrome" }, false); like arguments, return values from sendsyncmessage() must be json-serializable, so chrome can't return functions.
JavaScript Tips
similarly prefer document.getelementsby
tagname(a
tag).item(0) != null to document.getelementsby
tagname(a
tag).length > 0.
... prefer to use localname rather than
tagname.
...however in addition to locating elements by
tag name xul also allows you to locate an element by attribute, starting at any element in the document.
Index
found 42 pages: # page
tags and summary 1 localization at mozilla landing, localization, mozilla, translation, l10n localization (l10n) is the process of translating software user interfaces from one language to another and adapting it to suit a foreign culture.
...all we ask is that you name this page according to this example, "mozilla content in spanish (es-mx)" and add your locale code
tag at the bottom.
...to take advan
tage of this functionality, you need to use a different keyword (i.e.
SVN for Localizers
trunk refers to a set of files and directories that are in the testing s
tage (i.e., s
taging).
... note: we use the terms s
tage and prod (abbreviations of the terms s
taging and production) to refer to testing and publicly visible websites, respectively.
... after you commit your changes, wait 15 minutes and check the s
taging website for your locale.
Profiling with the Firefox Profiler
label stack the label stack (formerly called "pseudo stack") uses function entry/exit
tags added by hand to important points in the code base.
... the stacks you see in the ui are chains of these
tags.
...
tagging is done by adding macros of the form auto_profiler_label("namespace", "name").
Patches and pushes
<searchplugin xmlns="http://www.mozilla.org/2006/browser/search/"> <shortname>yahoo</shortname> <description>yahoo search</description> <inputencoding>utf-8</inputencoding> <image width="16" height="16">data:image/x-icon;base64,r0lgodlheaaqajecap8aaaaaap///waaach5baeaaaialaaaaaaqabaaaaipli+py+0nogquybdened2khkffwuamezmpzsfmaihphrrguum/ft+uwaaow==</image> ***this
tag is optional***<url type="application/x-suggestions+json" method="get" template="http://ff.search.yahoo.com/gossip?output=fxjson&command={searchterms}" />*** <url type="text/html" method="get" template="http://search.yahoo.com/search"> <param name="p" value="{searchterms}"/> <param name="ei" value="utf-8"/> <mozparam name="fr" condition="pref" pref="yahoo-fr" /> </url> <searchform>...
...for references on how each
tag functions, visit the opensearch wiki page and the mozsearch wiki page.
...upload your plugins icon image to data kitchen to obtain its uri id and add to the xml file within the image
tag.
PR_NewUDPSocket
description udp (user da
tagram protocol) is a connectionless, unreliable da
tagram protocol of the tcp/ip protocol suite.
... udp da
tagrams may be lost or delivered in duplicates or out of sequence.
...da
tagrams can be sent with pr_sendto and received with pr_recvfrom.
PR OpenUDPSocket
description udp (user da
tagram protocol) is a connectionless, unreliable da
tagram protocol of the tcp/ip protocol suite.
... udp da
tagrams may be lost or delivered in duplicates or out of sequence.
...da
tagrams can be sent with pr_sendto and received with pr_recvfrom.
NSPR release process
create a beta cvs
tag.
... push the beta
tag to mozilla-central for testing in firefox trunk builds.
... create a rtm cvs
tag.
NSS 3.22 release notes
distribution information the hg
tag is nss_3_22_rtm.
... pk11_createpbev2algorithmid() now supports sec_oid_pkcs5_pbkdf2 with cipheralg
tag and prfalg
tag set to sec_oid_hmac_sha256, sec_oid_hmac_sha224, sec_oid_hmac_sha384, or sec_oid_hmac_sha512.
... in ssl.h ssl_peersignedcerttimestamps - get signed_certificate_timestamp tls extension data ssl_setsignedcerttimestamps - set signed_certificate_timestamp tls extension data new types in secoidt.h the following are added to secoid
tag: sec_oid_aes_128_gcm sec_oid_aes_192_gcm sec_oid_aes_256_gcm sec_oid_idea_cbc sec_oid_rc2_40_cbc sec_oid_des_40_cbc sec_oid_rc4_40 sec_oid_rc4_56 sec_oid_null_cipher sec_oid_hmac_md5 sec_oid_tls_rsa sec_oid_tls_dhe_rsa sec_oid_tls_dhe_dss sec_oid_tls_dh_rsa sec_oid_tls_dh_dss sec_oid_tls_dh_anon sec_oid_tls_...
NSS 3.47 release notes
the nss team would like to recognize first-time contributors: christian weisgerber deian stefan jenine distribution information the hg
tag is nss_3_47_rtm.
...uites presented in clienthello bug 1570501 - add cmac to freebl and pkcs #11 libraries bugs fixed in nss 3.47 bug 1459141 - make softoken cbc padding removal constant time bug 1589120 - more cbc padding tests bug 1465613 - add ability to distrust certificates issued after a certain date for a specified root cert bug 1588557 - bad debug statement in tls13con.c bug 1579060 - mozilla::pkix
tag definitions for issueruniqueid and subjectuniqueid shouldn't have the constructed bit set bug 1583068 - nss 3.47 should pick up fix from bug 1575821 (nspr 4.23) bug 1152625 - support aes hw acceleration on armv8 bug 1549225 - disable dsa signature schemes for tls 1.3 bug 1586947 - pk11_importandreturnprivatekey does not store nickname for ec keys bug 1586456 - unnecessary conditional in pki3...
...d param length before casting to mechanism-specific structs bug 1577953 - support longer (up to rfc maximum) hkdf outputs bug 1508776 - remove refcounting from sftk_freesession (cve-2019-11756) bug 1494063 - support tls exporter in tstclnt and selfserv bug 1581024 - heap overflow in nss utility "derdump" bug 1582343 - soft token mac verification not constant time bug 1578238 - handle invald
tag sizes for ckm_aes_gcm bug 1576295 - check all bounds when encrypting with seed_cbc bug 1580286 - nss rejects tls 1.2 records with large padding with sha384 hmac bug 1577448 - create additional nested s/mime test messages for thunderbird bug 1399095 - allow nss-try to be used to test nspr changes bug 1267894 - libssl should allow selecting the order of cipher suites in clienthello bug 158150...
Index
found 550 pages: # page
tags and summary 1 spidermonkey: the mozilla javascript runtime spidermonkey standalone source code releases can be found on the releases page.
...all native objects have a jsclass, which is stored as a private (int-
tagged) pointer in object slots.
....5) build documentation, spidermonkey after installing the build pre-requisites and downloading the spidermonkey source tarball issue the following commands at the terminal: 527 spidermonkey internals guide, javascript, needsupdate, spidermonkey at heart, spidermonkey is a fast interpreter that runs an untyped bytecode and operates on values of type js::value—type-
tagged values that represent the full range of javascript values.
Bytecode Descriptions
creating constructors checkclassheri
tage stack: baseclass ⇒ baseclass throw a typeerror if baseclass isn't either null or a constructor.
...we use jsop::checkclassheri
tage to check.
...format: jof_atom callsiteobj operands: (uint32_t objectindex) stack: ⇒ callsiteobj push the call site object for a
tagged template call.
Web Replay
using the middleman provides the following advan
tages: ipdl communication is greatly simplified.
... the advan
tage of spawning both recording and replaying children is that by switching between different children the middleman can effectively rewind a live recording, then play forward and allow the user to resume interacting with the tab after they have finished inspecting state in the past.
... the advan
tage of using two replaying processes is to provide a smoother experience when rewinding.
Frecency algorithm
frecency is a score given to each unique uri in places, encompassing bookmarks, history and
tags.
... this score is determined by the amount of revisitation, the type of those visits, how recent they were, and whether the uri was bookmarked or
tagged.
...determine percen
tage bonus for type of visit (ie: the "transition type"): ....
Manipulating bookmarks using Places
note: all annotations,
tags, and so forth are kept when the bookmark's uri is changed.
... var parentfolderid = bmsvc.getfolderidforitem(newbkmkid); observing changes to bookmarks and
tags to set up an observer to listen for changes related to bookmarks, you will need to create an nsinavbookmarkobserver object and use the nsinavbookmarksservice.addobserver() and nsinavbookmarksservice.removeobserver() methods.
... note that this example takes advan
tage of xpcomutils to generate the nsisupports.queryinterface() method.
nsIDOMEvent
if, during any s
tage of event flow, the preventdefault method is called the event is canceled.
...this method may be used during any s
tage of event flow.
...this method may be used during any s
tage of event flow.
nsINavBookmarksService
note: renamed from bookmarksroot in gecko 1.9 placesroot long long the item id of the top-level folder that contains bookmarks,
tags and all other places data.
...
tagsfolder long long the item id of the top-level folder that contains the
tag "folders".
...note: renamed from
tagroot in gecko 1.9 toolbarfolder long long the item id of the personal toolbar folder.
nsINavHistoryResultObserver
long aoldindex, in nsinavhistorycontainerresultnode anewparent, in unsigned long anewindex); void noderemoved(in nsinavhistorycontainerresultnode aparent, in nsinavhistoryresultnode aitem, in unsigned long aoldindex); void nodereplaced(in nsinavhistorycontainerresultnode aparentnode, in nsinavhistoryresultnode aoldnode, in nsinavhistoryresultnode anewnode, in unsigned long aindex); void node
tagschanged(in nsinavhistoryresultnode anode); void nodetitlechanged(in nsinavhistoryresultnode anode, in autf8string anewtitle); void nodeurichanged(in nsinavhistoryresultnode anode, in autf8string anewuri); void sortingchanged(in unsigned short sortingmode); attributes attribute type description result nsinavhistoryresult the nsinavhistoryresult this observer monitors.
... node
tagschanged() called right after a node's
tags have changed.
... void node
tagschanged( in nsinavhistoryresultnode anode ); parameters anode the node whose
tags have changed.
nsINavHistoryResultViewer
, in nsinavhistorycontainerresultnode aoldparent, in unsigned long aoldindex, in nsinavhistorycontainerresultnode anewparent, in unsigned long anewindex); void nodetitlechanged(in nsinavhistoryresultnode anode, in autf8string anewtitle); void noderemoved(in nsinavhistorycontainerresultnode aparent, in nsinavhistoryresultnode anode, in unsigned long aoldindex); void node
tagschanged(in nsinavhistoryresultnode anode); void nodeurichanged(in nsinavhistoryresultnode anode, in autf8string anewuri); void nodereplaced(in nsinavhistorycontainerresultnode parent, in nsinavhistoryresultnode olditem, in nsinavhistoryresultnode newitem, in unsigned long index); void nodeinserted(in nsinavhistorycontainerresultnode aparent, in nsinavhistoryresultnode...
... node
tagschanged() called right after a node's
tags have changed.
... void node
tagschanged( in nsinavhistoryresultnode anode ); parameters anode the node whose
tags have changed.
nsIXULRuntime
os autf8string a string
tag identifying the current operating system.
... widgettoolkit autf8string a string
tag identifying the target widget toolkit in use.
... xpcomabi autf8string a string
tag identifying the binary abi of the current processor and compiler vtable.
Creating a gloda message query
query.
tags(
tag1,
tag2,
tag3, ...): add the constraint that the message must have one of the provided nsimsg
tag tags applied.
... (use nsimsg
tagservice to access message
tags.) query.starred(true/false): add the constraint that the message must be (or not be) starred (flagged).
... attributes provided by explattr.js:
tags: a list of the nsimsg
tags applied to this message.
Mail composition back end
this will change in the coming weeks and allow for developers to write javascript to take advan
tage of the back end services.
... ns_imethod onprogress(const char *amsgid, - the message id for the message being sent pruint32 aprogress, - the progress so far pruint32 aprogressmax) = 0; - the maximum progress (aprogress should be used as a numerator and aprogressmax as a denominator for a message sent percen
tage) onstatus the onstatus gives the listener status updates for the current operation.
... ns_imethod onprogress( pruint32 aprogress, - the progress so far pruint32 aprogressmax) = 0; - the maximum progress (aprogress should be used as a numerator and aprogressmax as a denominator for a message sent percen
tage) nsisupports *listenerdata) = 0; - the nsisupports pointer passed in to the original copy operation onstopcopy the onstopcopy interface is called when the copy operation has completed.
Examine and edit HTML - Firefox Developer Tools
there is an ellipsis shown between the opening and closing
tag of an element when the node is collapsed if it has larger contents.
... editing html you can edit the html —
tags, attributes, and content — directly in the html pane: double-click the text you want to edit, change it, and press enter to see the changes reflected immediately.
...you'll see a text box in the html pane: you can add any html in here: changing the element's
tag, changing existing elements, or adding new ones.
AesGcmParams - Web APIs
taglength optional a number.
... this determines the size in bits of the authentication
tag generated in the encryption operation and used for authentication in the corresponding decryption.
...
taglength is optional and defaults to 128 if it is not specified.
CSSPrimitiveValue - Web APIs
(for example, a pixel value cannot be converted to a centimeter value.) percen
tage values can't be converted since they are relative to the parent value (or another property value).
... there is one exception for color percen
tage values: since a color percen
tage value is relative to the range 0-255, a color percen
tage value can be converted to a number (see also the rgbcolor interface).
... css_percen
tage the value is a <percen
tage>.
Basic usage of canvas - Web APIs
fallback content the <canvas> element differs from an <img>
tag in that, like for <video>, <audio>, or <picture> elements, it is easy to define some fallback content, to be displayed in older browsers not supporting it, like versions of internet explorer earlier than version 9 or textual browsers.
... required </canvas>
tag as a consequence of the way fallback is provided, unlike the <img> element, the <canvas> element requires the closing
tag (</canvas>).
... if this
tag is not present, the rest of the document would be considered the fallback content and wouldn't be displayed.
Document.createElementNS() - Web APIs
optionsoptional an optional elementcreationoptions object containing a single property named is, whose value is the
tag name for a custom element previously defined using customelements.define().
... for backwards compatibility with previous versions of the custom elements specification, some browsers will allow you to pass a string here instead of an object, where the string's value is the custom element's
tag name.
... the new element will be given an is attribute whose value is the custom element's
tag name.
HTMLVideoElement.msZoom - Web APIs
if the native aspect ratio of a video frame, which is defined by the videowidth and videoheight attributes, does not match the aspect ratio of the video
tag, which is defined by the width and height attributes, the video is rendered with letterbox or pillarbox format.
... for instance, if the layout space for the video
tag is a 4:3 aspect ratio, but the stream coming in is in 16:9 aspect ratio, the mszoom option can be used to render the 16:9 video in 4:3 aspect ratio.
... var myvideo = document.getelementbyid("video
tag1"); myvideo.mszoom = true; myvideo.play(); see also htmlvideoelement microsoft api extensions ...
NDEFWriter.write() - Web APIs
the write() method of ndefwriter interface writes a specified message to a compatiable nfc
tag.
... notallowederror the permission for this operation was rejected or overwrite is false and there are already records on the
tag.
... networkerror transfer failed after it already started (e.g., the
tag was removed from the reader).
ServiceWorkerRegistration.getNotifications() - Web APIs
the available options are:
tag: a domstring representing a notification
tag.
... if specified, only notifications that have this
tag will be returned.
... example navigator.serviceworker.register('sw.js'); var options = {
tag : 'user_alerts' }; navigator.serviceworker.ready.then(function(registration) { registration.getnotifications(options).then(function(notifications) { // do something with your notifications }) }); specifications specification status comment notifications apithe definition of 'serviceworkerregistration.getnotifications()' in that specification.
VTTCue - Web APIs
vttcue.snaptolines returns true if the vttcue.line attribute is an integer number of lines or a percen
tage of the video size.
...this can be the string auto or a number representing the percen
tage of the vttcue.region, or the video size if vttcue.region is null.
... vttcue.size returns a double representing the size of the cue, as a percen
tage of the video size.
Accessibility: What users can do to browse more safely - Accessibility
this article discusses making web content accessible for those with vestibular disorders, and those who support them, by taking advan
tage of personalization and accessibility settings built into the operating systems.
... taking advan
tage of personalization settings can help prevent exposure to content leading to seizures and / or other physical reactions.
...there is a github repository for it at https://github.com/0ui/gif-scrubber beeline reader beeline reader has a browser extension that allows you to set up for grayscale and dyslexi font, among other things take advan
tage operating system accessibility features most operating systems such as windows 10, have accessibility options that are surprisingly powerful.
An overview of accessible web applications and widgets - Accessibility
since the html4 specification doesn't provide built-in
tags that semantically describe these kinds of widgets, developers typically resort to using generic elements such as <div> and <span>.
...designed to fill the gap between standard html
tags and the desktop-style controls found in dynamic web applications, aria provides roles and states that describe the behavior of most familiar ui widgets.
...in practice, this usually involves following the conventions supported by similar widgets on the desktop, taking full advan
tage of the tab, enter, spacebar, and arrow keys.
-moz-outline-radius-bottomleft - CSS: Cascading Style Sheets
syntax the value of -moz-outline-radius-bottomleft is either a css <length> or a percen
tage of the corresponding dimensions of the border box.
... <percen
tage> the radius of the circle defining the rounding of the bottom-left corner of the element, specified as the percen
tages of the bottom and left sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percen
tage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percen
tage> examples rounding a outline since this is a firefox-only property, this example will not display the desired effect if you are viewing this in a browser other than firefox.
-moz-outline-radius-bottomright - CSS: Cascading Style Sheets
syntax the value of -moz-outline-radius-bottomright is either a css <length> or a percen
tage of the corresponding dimensions of the border box.
... <percen
tage> the radius of the circle defining the rounding of the bottom-right corner of the element, specified as the percen
tages of the bottom and right sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percen
tage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percen
tage> examples html <p>look at this paragraph's bottom-right corner.</p> css p { margin: 5px; border: solid cyan; outline: dotted red; -moz-outline-radius-bottomright: 2em; } result the example above will not display the desired effect if you are viewing this in a browser other than firefox.
-moz-outline-radius-topleft - CSS: Cascading Style Sheets
syntax the value of -moz-outline-radius-topleft is either a css <length> or a percen
tage of the corresponding dimensions of the border box.
... <percen
tage> the radius of the circle defining the rounding of the top-left corner of the element, specified as the percen
tages of the top and left sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percen
tage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percen
tage> examples the example below will not display the desired effect if you are viewing this in a browser other than firefox.
-moz-outline-radius-topright - CSS: Cascading Style Sheets
syntax the value of -moz-outline-radius-topright is either a css <length> or a percen
tage of the corresponding dimensions of the border box.
... <percen
tage> the radius of the circle defining the rounding of the top-right corner of the element, specified as the percen
tages of the top and right sides of the border box.
... formal definition initial value0applies toall elementsinheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percen
tage or calc(); formal syntax <outline-radius>where <outline-radius> = <length> | <percen
tage> examples html <p>look at this paragraph's top-right corner.</p> css p { margin: 5px; border: solid cyan; outline: dotted red; -moz-outline-radius-topright: 2em; } result the example above will not display the desired effect if you are viewing this in a browser other than firefox.
max-height - CSS: Cascading Style Sheets
syntax /* keyword value */ max-height: auto; /* <length> values */ max-height: 400px; max-height: 50em; max-height: 20cm; /* <percen
tage> value */ max-height: 75%; values auto the used value is calculated from the other css descriptors' values.
... <percen
tage> a percen
tage value relative to the height of the initial viewport at zoom factor 1.0 for vertical lengths.
... formal definition related at-rule@viewportinitial valueautopercen
tagesrefer to the height of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples setting viewport max height in pixels @viewport { max-height: 600px; } specifications specification status comment css device adaptationthe definition of '"max-height" descriptor' in that specification.
max-width - CSS: Cascading Style Sheets
syntax /* keyword value */ max-width: auto; /* <length> values */ max-width: 600px; max-width: 80em; max-width: 15cm; /* <percen
tage> value */ max-width: 75%; values auto the used value is calculated from the other css descriptors' values.
... <percen
tage> a percen
tage value relative to the width of the initial viewport at zoom factor 1.0 for horizontal lengths.
... formal definition related at-rule@viewportinitial valueautopercen
tagesrefer to the width of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples setting viewport max width in pixels @viewport { max-width: 600px; } specifications specification status comment css device adaptationthe definition of '"max-width" descriptor' in that specification.
max-zoom - CSS: Cascading Style Sheets
syntax /* keyword value */ max-zoom: auto; /* <number> values */ max-zoom: 0.8; max-zoom: 2.0; /* <percen
tage> value */ max-zoom: 150%; values auto the user agent will set the document's upper zoom factor limit.
... <percen
tage> a non-negative percen
tage limiting the maximum value of the zoom factor.
... formal definition related at-rule@viewportinitial valueautopercen
tagesthe zoom factor itselfcomputed valueauto, or a non-negative number or percen
tage as specified formal syntax auto | <number> | <percen
tage> examples setting max-zoom @viewport { max-zoom: 1.5; } specifications specification status comment css device adaptationthe definition of '"max-zoom" descriptor' in that specification.
min-height - CSS: Cascading Style Sheets
syntax /* keyword value */ min-height: auto; /* <length> values */ min-height: 120px; min-height: 20em; min-height: 10cm; /* <percen
tage> value */ min-height: 25%; values auto the used value is calculated from the other css descriptors' values.
... <percen
tage> a percen
tage value relative to the height of the initial viewport at zoom factor 1.0 for vertical lengths.
... formal definition related at-rule@viewportinitial valueautopercen
tagesrefer to the height of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples setting viewport min height in pixels @viewport { min-height: 200px; } specifications specification status comment css device adaptationthe definition of '"min-height" descriptor' in that specification.
min-width - CSS: Cascading Style Sheets
syntax /* keyword value */ min-width: auto; /* <length> values */ min-width: 320px; min-width: 40em; min-width: 5cm; /* <percen
tage> value */ min-width: 25%; values auto the used value is calculated from the other css descriptors' values.
... <percen
tage> a percen
tage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively.
... formal definition related at-rule@viewportinitial valueautopercen
tagesrefer to the width of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples setting viewport min width in pixels @viewport { min-width: 200px; } specifications specification status comment css device adaptationthe definition of '"min-width" descriptor' in that specification.
min-zoom - CSS: Cascading Style Sheets
syntax /* keyword value */ min-zoom: auto; /* <number> values */ min-zoom: 0.8; min-zoom: 2.0; /* <percen
tage> value */ min-zoom: 150%; values auto the user agent will set the document's lower zoom factor limit.
... <percen
tage> a non-negative percen
tage limiting the minimum value of the zoom factor.
... formal definition related at-rule@viewportinitial valueautopercen
tagesthe zoom factor itselfcomputed valueauto, or a non-negative number or percen
tage as specified formal syntax auto | <number> | <percen
tage> examples setting min zoom factor @viewport { min-zoom: 2.0; } specifications specification status comment css device adaptationthe definition of '"min-zoom" descriptor' in that specification.
zoom - CSS: Cascading Style Sheets
syntax /* keyword value */ zoom: auto; /* <number> values */ zoom: 0.8; zoom: 2.0; /* <percen
tage> values */ zoom: 150%; values auto the user agent will set the document's initial zoom factor.
... <percen
tage> a non-negative percen
tage value used as the zoom factor.
... formal definition related at-rule@viewportinitial valueautopercen
tagesthe zoom factor itselfcomputed valueauto, or a non-negative number or percen
tage as specified formal syntax auto | <number> | <percen
tage> examples setting viewport zoom factor @viewport { zoom: 2.0; } specifications specification status comment css device adaptationthe definition of '"zoom" descriptor' in that specification.
At-rules - CSS: Cascading Style Sheets
(currently at the working draft s
tage) @counter-style — defines specific counter styles that are not part of the predefined set of styles.
... (at the candidate recommendation s
tage, but only implemented in gecko as of writing) @font-feature-values (plus @swash, @ornaments, @annotation, @stylistic, @styleset and @character-variant) — define common names in font-variant-alternates for feature activated differently in opentype.
... (at the candidate recommendation s
tage, but only implemented in gecko as of writing) conditional group rules much like the values of properties, each at-rule has a different syntax.
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
i find this named areas method very helpful at a prototyping s
tage, it is easy to play around with the location of elements.
...we have been able to inherit the placement set up for earlier breakpoints – an advan
tage of working “mobile first”.
... we are also able to take advan
tage of grid auto-placement.
<alpha-value> - CSS: Cascading Style Sheets
the <alpha-value> css data type represents a value that can be either a <number> or a <percen
tage>, specifying the alpha channel or transparency of a color.
... syntax the value of an <alpha-value> is given as either a <number> or a <percen
tage>.
... if the alpha value is given as a percen
tage, 0% corresponds to fully transparent while 100% indicates fully opaque.
background-size - CSS: Cascading Style Sheets
each value can be a <length>, a <percen
tage>, or auto.
... <percen
tage> stretches the image in the corresponding dimension to the specified percen
tage of the background positioning area.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrelative to the background positioning areacomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typerepeatable list of simple list of length, percen
tage, or calc formal syntax <bg-size>#where <bg-size> = [ <length-percen
tage> | auto ]{1,2} | cover | containwhere <length-percen
tage> = <length> | <percen
tage> examples please see scaling background imag...
block-size - CSS: Cascading Style Sheets
syntax /* <length> values */ block-size: 300px; block-size: 25em; /* <percen
tage> values */ block-size: 75%; /* keyword values */ block-size: max-content; block-size: min-content; block-size: fit-content(20em); block-size: auto; /* global values */ block-size: inherit; block-size: initial; block-size: unset; if the writing mode is vertically oriented, the value of block-size relates to the width of the element; otherwise, it relates to the height of the element.
... initial valueautoapplies tosame as width and heightinheritednopercen
tagesblock-size of containing blockcomputed valuesame as width and heightanimation typea length, percen
tage or calc(); syntax values the block-size property takes the same values as the width and height properties.
... formal definition initial valueautoapplies tosame as width and heightinheritednopercen
tagesblock-size of containing blockcomputed valuesame as width and heightanimation typea length, percen
tage or calc(); formal syntax <'width'> examples block size with vertical text html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; block-size: 200px; } result specifications specification status comment css logical properties and values level 1the definition of 'block-size' in that specification.
border-end-end-radius - CSS: Cascading Style Sheets
syntax values <length-percen
tage> denotes the size of the circle radius or the semi-major and semi-minor axes of the ellipse.
...percen
tages for the horizontal axis refer to the width of the box, percen
tages for the vertical axis refer to the height of the box.
...it also applies to ::first-letter.inheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valuetwo absolute <length>s or <percen
tage>sanimation typea length, percen
tage or calc(); formal syntax <length-percen
tage>{1,2}where <length-percen
tage> = <length> | <percen
tage> examples border radius with vertical text html <div> <p class="exampletext">example</p> </div> css content div { background-color: rebeccapurple; width: 120px; height: 120px; border-end-end-radius: 10px; } .example...
border-end-start-radius - CSS: Cascading Style Sheets
syntax values <length-percen
tage> denotes the size of the circle radius or the semi-major and semi-minor axes of the ellipse.
...percen
tages for the horizontal axis refer to the width of the box, percen
tages for the vertical axis refer to the height of the box.
...it also applies to ::first-letter.inheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valuetwo absolute <length>s or <percen
tage>sanimation typea length, percen
tage or calc(); formal syntax <length-percen
tage>{1,2}where <length-percen
tage> = <length> | <percen
tage> examples border radius with vertical text html <div> <p class="exampletext">example</p> </div> css div { background-color: rebeccapurple; width: 120px; height: 120px; border-end-start-radius: 10px; } .exampletext {...
border-start-end-radius - CSS: Cascading Style Sheets
syntax values <length-percen
tage> denotes the size of the circle radius or the semi-major and semi-minor axes of the ellipse.
...percen
tages for the horizontal axis refer to the width of the box, percen
tages for the vertical axis refer to the height of the box.
...it also applies to ::first-letter.inheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valuetwo absolute <length>s or <percen
tage>sanimation typea length, percen
tage or calc(); formal syntax <length-percen
tage>{1,2}where <length-percen
tage> = <length> | <percen
tage> examples border radius with vertical text html <div> <p class="exampletext">example</p> </div> css div { background-color: rebeccapurple; width: 120px; height: 120px; border-start-end-radius: 10px; } .exampletext {...
border-start-start-radius - CSS: Cascading Style Sheets
syntax values <length-percen
tage> denotes the size of the circle radius or the semi-major and semi-minor axes of the ellipse.
...percen
tages for the horizontal axis refer to the width of the box, percen
tages for the vertical axis refer to the height of the box.
...it also applies to ::first-letter.inheritednopercen
tagesrefer to the corresponding dimension of the border boxcomputed valuetwo absolute <length>s or <percen
tage>sanimation typea length, percen
tage or calc(); formal syntax <length-percen
tage>{1,2}where <length-percen
tage> = <length> | <percen
tage> examples border radius with vertical text html <div> <p class="exampletext">example</p> </div> css div { background-color: rebeccapurple; width: 120px; height: 120px; border-start-start-radius: 10px; } .exampletext...
clamp() - CSS: Cascading Style Sheets
the clamp() function can be used anywhere a <length>, <frequency>, <angle>, <time>, <percen
tage>, <number>, or <integer> is allowed.
... notes math expressions involving percen
tages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables may be treated as if auto had been specified.
... formal syntax clamp( <calc-sum>#{3} )where <calc-sum> = <calc-product> [ [ '+' | '-' ] <calc-product> ]*where <calc-product> = <calc-value> [ '*' <calc-value> | '/' <number> ]*where <calc-value> = <number> | <dimension> | <percen
tage> | ( <calc-sum> ) examples min, max, and clamp comparison in this example we have a simple responsive example that makes use of min(), max(), and clamp() for some of the sizes.
fit-content() - CSS: Cascading Style Sheets
syntax the fit-content() function accepts a <length> or a <percen
tage> as an argument.
... /* <length> values */ fit-content(200px) fit-content(5cm) fit-content(30vw) fit-content(100ch) /* <percen
tage> value */ fit-content(40%) values <length> an absolute length.
... <percen
tage> a percen
tage relative to the available space in the given axis.
font-variation-settings - CSS: Cascading Style Sheets
here are the registered axes along with their corresponding css properties: axis
tag css property "wght" font-weight "wdth" font-stretch "slnt" (slant) font-style: oblique + angle "ital" font-style: italic "opsz" font-optical-sizing custom axes can be anything the font designer wants to vary in their font, for example ascender or descender heights, the size of serifs, or anything else they can imag...
... note: registered axis
tags are identified using lower-case
tags, whereas custom axes should be given upper-case
tags.
...the important takeaway here is that axis
tags are case-sensitive.
font - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyespercen
tagesas each of the properties of the shorthand:font-size: refer to the parent element's font sizeline-height: refer to the font size of the element itselfcomputed valueas each of the properties of the shorthand:font-style: as specifiedfont-variant: as specifiedfont-weight: the keyword or the numerical value as specified, with bolder and lighter transformed to the real valuefont-stretch: as specified...
...font-size: as specified, but with relative lengths converted into absolute lengthsline-height: for percen
tage and length values, the absolute length, otherwise as specifiedfont-family: as specifiedanimation typeas each of the properties of the shorthand:font-style: discretefont-variant: discretefont-weight: a font weightfont-stretch: a font stretchfont-size: a lengthline-height: either number or lengthfont-family: discrete formal syntax [ [ <'font-style'> | <font-variant-css21> | <'font-weight'> | <'font-stretch'> ]?
... if(oradio[i].checked) { var propinput = "input_" + radio_name, curelemname = "input_" + radio_name, curelem = document.getelementbyid(curelemname); curelem.value = oradio[i].value; return oradio[i].value; } } } setcss = function () { getproperties(); injectcss(shorttext); } injectcss = function(cssfragment) { old = document.body.getelementsby
tagname("style"); if (old.length > 1) { old[1].parentelement.removechild(old[1]); } css = document.createelement("style"); css.innerhtml = ".fontshorthand{font: " + cssfragment + "}"; document.body.appendchild(css); } setcss(); specifications specification status comment css fonts module level 3the definition of 'font' in that specification.
grid-template - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:grid-template-columns: nonegrid-template-rows: nonegrid-template-areas: noneapplies togrid containersinheritednopercen
tagesas each of the properties of the shorthand:grid-template-columns: refer to corresponding dimension of the content areagrid-template-rows: refer to corresponding dimension of the content areacomputed valueas each of the properties of the shorthand:grid-template-columns: as specified, but with relative lengths converted into absolute lengthsgrid-template-rows: as specified, but with relative lengt...
...]+ [ / <explicit-track-list> ]?where <line-names> = '[' <custom-ident>* ']'<track-size> = <track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percen
tage> ] )<explicit-track-list> = [ <line-names>?
... <track-size> ]+ <line-names>?where <track-breadth> = <length-percen
tage> | <flex> | min-content | max-content | auto<inflexible-breadth> = <length> | <percen
tage> | min-content | max-content | autowhere <length-percen
tage> = <length> | <percen
tage> examples defining a grid template css #page { display: grid; width: 100%; height: 200px; grid-template: [header-left] "head head" 30px [header-right] [main-left] "nav main" 1fr [main-right] [footer-left] "nav foot" 30px [footer-right] / 120px 1fr; } header { background-color: lime; grid-area: head; } nav { background-color: lightblue; grid-area: nav; } main { background-color: yellow; grid-area: main; } footer { background-color: red; grid-area: foot; } html ...
<length> - CSS: Cascading Style Sheets
note: although <percen
tage> values are also css dimensions, and are usable in some of the same properties that accept <length> values, they are not themselves <length> values.
... see <length-percen
tage>.
... viewport-percen
tage lengths viewport-percen
tage lengths define the <length> value relative to the size of the viewport, i.e., the visible portion of the document.
margin-bottom - CSS: Cascading Style Sheets
argin-bottom: 10px; /* an absolute length */ margin-bottom: 1em; /* relative to the text size */ margin-bottom: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-bottom: auto; /* global values */ margin-bottom: inherit; margin-bottom: initial; margin-bottom: unset; the margin-bottom property is specified as the keyword auto, or a <length>, or a <percen
tage>.
... <percen
tage> the size of the margin as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> | auto examples setting positive and negative bottom margins html <div class="container"> <div class="box0">box 0</div> <div class="box1">box 1</div> <div class="box2">box one's negative margin pulls me up</div> </div> css css for divs to set margin-bottom and height .box0 { margin-bottom:1em; height:3em; } .box1 { margin-bot...
margin-left - CSS: Cascading Style Sheets
gth> values */ margin-left: 10px; /* an absolute length */ margin-left: 1em; /* relative to the text size */ margin-left: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-left: auto; /* global values */ margin-left: inherit; margin-left: initial; margin-left: unset; the margin-left property is specified as the keyword auto, or a <length>, or a <percen
tage>.
... <percen
tage> the size of the margin as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> | auto examples setting left margin using pixels and percen
tages .content { margin-left: 5%; } .sidebox { margin-left: 10px; } .logo { margin-left: -5px; } specifications specification status comment ...
margin-right - CSS: Cascading Style Sheets
ues */ margin-right: 20px; /* an absolute length */ margin-right: 1em; /* relative to the text size */ margin-right: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-right: auto; /* global values */ margin-right: inherit; margin-right: initial; margin-right: unset; the margin-right property is specified as the keyword auto, or a <length>, or a <percen
tage>.
... <percen
tage> the size of the margin as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> | auto examples setting right margin using pixels and percen
tages .content { margin-right: 5%; } .sidebox { margin-right: 10px; } .logo { margin-right: -5px; } specifications specification status comment ...
margin-top - CSS: Cascading Style Sheets
/* <length> values */ margin-top: 10px; /* an absolute length */ margin-top: 1em; /* relative to the text size */ margin-top: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-top: auto; /* global values */ margin-top: inherit; margin-top: initial; margin-top: unset; the margin-top property is specified as the keyword auto, or a <length>, or a <percen
tage>.
... <percen
tage> the size of the margin as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> | auto examples setting positive and negative top margins .content { margin-top: 5%; } .sidebox { margin-top: 10px; } .logo { margin-top: -5px; } #footer { margin-top: 1em; } specifications specification status comment css basic box modelthe definition of 'margin-top' in that specification.
mask-position - CSS: Cascading Style Sheets
formal definition initial valuecenterapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercen
tagesrefer to size of mask painting area minus size of mask layer image (see the text for background-position)computed valueconsists of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percen
tage.animation typerepeatable list of simple list of length, percen
tage, or calc formal syntax <position>#where <posi...
...tion> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
... | [ [ left | right ] <length-percen
tage> ] && [ [ top | bottom ] <length-percen
tage> ] ]where <length-percen
tage> = <length> | <percen
tage> examples setting mask position css #wrapper { border: 1px solid black; width: 250px; height: 250px; } #masked { width: 250px; height: 250px; background: blue linear-gradient(red, blue); mask-image: url(https://mdn.mozillademos.org/files/12676/star.svg); mask-repeat: no-repeat; mask-position: top right; /* can be changed in the live sample */ margin-bottom: 10px; } html <div id="wrapper"> <div id="masked"> </div> </div> <select id="maskposition"> <option value="top">top</option> <option value="center">center</option> <option value="bottom">bottom</option> <option value="top right" selected>top right</option> <opt...
max() - CSS: Cascading Style Sheets
the max() function can be used anywhere a <length>, <frequency>, <angle>, <time>, <percen
tage>, <number>, or <integer> is allowed.
... notes math expressions involving percen
tages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables may be treated as if auto had been specified.
... formal syntax max( <calc-sum># )where <calc-sum> = <calc-product> [ [ '+' | '-' ] <calc-product> ]*where <calc-product> = <calc-value> [ '*' <calc-value> | '/' <number> ]*where <calc-value> = <number> | <dimension> | <percen
tage> | ( <calc-sum> ) examples setting a minimum size for a font another use case for css functions is allow a font size to grow while ensuring it is at least a mimum size, enabling responsive font sizes while ensuring legibility.
min() - CSS: Cascading Style Sheets
the min() function can be used anywhere a <length>, <frequency>, <angle>, <time>, <percen
tage>, <number>, or <integer> is allowed.
... notes math expressions involving percen
tages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables may be treated as if auto had been specified.
... formal syntax min( <calc-sum># )where <calc-sum> = <calc-product> [ [ '+' | '-' ] <calc-product> ]*where <calc-product> = <calc-value> [ '*' <calc-value> | '/' <number> ]*where <calc-value> = <number> | <dimension> | <percen
tage> | ( <calc-sum> ) accessibility concerns when using min() to set a maximum font size, ensure that the font can still be scaled at least 200% for readability (without assistive technology like a zoom function).
offset-anchor - CSS: Cascading Style Sheets
syntax /* keyword values */ offset-anchor: top; offset-anchor: bottom; offset-anchor: left; offset-anchor: right; offset-anchor: center; offset-anchor: auto; /* <percen
tage> values */ offset-anchor: 25% 75%; /* <length> values */ offset-anchor: 0 0; offset-anchor: 1cm 2cm; offset-anchor: 10ch 8em; /* edge offsets values */ offset-anchor: bottom 10px right 20px; offset-anchor: right 3em bottom 10px; /* global values */ offset-anchor: inherit; offset-anchor: initial; offset-anchor: unset; values auto offset-anchor is given the same value as the element's transform-origin, unless offset-path is none, in which case it takes its value...
... formal definition initial valueautoapplies totransformable elementsinheritednopercen
tagesrelativetowidthandheightcomputed valuefor <length> the absolute value, otherwise a percen
tageanimation typea position formal syntax auto | <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
... | [ [ left | right ] <length-percen
tage> ] && [ [ top | bottom ] <length-percen
tage> ] ]where <length-percen
tage> = <length> | <percen
tage> examples setting various offset-anchor values in the following example, we have three <div> elements nested in <section> elements.
opacity - CSS: Cascading Style Sheets
syntax values <alpha-value> a <number> in the range 0.0 to 1.0, inclusive, or a <percen
tage> in the range 0% to 100%, inclusive, representing the opacity of the channel (that is, the value of its alpha channel).
... webaim: color contrast checker mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial value1.0applies toall elementsinheritednocomputed valuethe specified value, clipped in the range [0,1]animation typea number formal syntax <alpha-value>where <alpha-value> = <number> | <percen
tage> examples setting background opacity html <div class="light">you can barely see this.</div> <div class="medium">this is easier to see.</div> <div class="heavy">this is very easy to see.</div> css div { background-color: yellow; } .light { opacity: 0.2; /* barely see the text over the background */ } .medium { opacity: 0.5; /* see the text more clearly over the background */ } .heavy { ...
... working draft defines percen
tage opacity values.
padding-bottom - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-bottom: 0.5em; padding-bottom: 0; padding-bottom: 2cm; /* <percen
tage> value */ padding-bottom: 10%; /* global values */ padding-bottom: inherit; padding-bottom: initial; padding-bottom: unset; the padding-bottom property is specified as a single value chosen from the list below.
... <percen
tage> the size of the padding as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> examples setting padding bottom with pixels and percen
tages .content { padding-bottom: 5%; } .sidebox { padding-bottom: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-bottom' in that specification.
padding-left - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-left: 0.5em; padding-left: 0; padding-left: 2cm; /* <percen
tage> value */ padding-left: 10%; /* global values */ padding-left: inherit; padding-left: initial; padding-left: unset; the padding-left property is specified as a single value chosen from the list below.
... <percen
tage> the size of the padding as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> examples setting left padding using pixels and percen
tages .content { padding-left: 5%; } .sidebox { padding-left: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-left' in that specification.
padding-right - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-right: 0.5em; padding-right: 0; padding-right: 2cm; /* <percen
tage> value */ padding-right: 10%; /* global values */ padding-right: inherit; padding-right: initial; padding-right: unset; the padding-right property is specified as a single value chosen from the list below.
... <percen
tage> the size of the padding as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> examples setting right padding using pixels and percen
tages .content { padding-right: 5%; } .sidebox { padding-right: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-right' in that specification.
padding-top - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-top: 0.5em; padding-top: 0; padding-top: 2cm; /* <percen
tage> value */ padding-top: 10%; /* global values */ padding-top: inherit; padding-top: initial; padding-top: unset; the padding-top property is specified as a single value chosen from the list below.
... <percen
tage> the size of the padding as a percen
tage, relative to the width of the containing block.
...it also applies to ::first-letter and ::first-line.inheritednopercen
tagesrefer to the width of the containing blockcomputed valuethe percen
tage as specified or the absolute lengthanimation typea length formal syntax <length> | <percen
tage> examples setting top padding using pixels and percen
tages .content { padding-top: 5%; } .sidebox { padding-top: 10px; } specifications specification status comment css basic box modelthe definition of 'padding-top' in that specification.
repeat() - CSS: Cascading Style Sheets
<percen
tage> a non-negative percen
tage relative to the inline size of the grid container in column grid tracks, and the block size of the grid container in row grid tracks.
... if the size of the grid container depends on the size of its tracks, then the <percen
tage> must be treated as auto.
... the user-agent may adjust the intrinsic size contributions of the track to the size of the grid container and increase the final size of the track by the minimum amount that would result in honoring the percen
tage.
repeating-linear-gradient() - CSS: Cascading Style Sheets
<linear-color-stop> a color-stop's <color> value, followed by one or two optional stop positions, (each being either a <percen
tage> or a <length> along the gradient's axis).
... a percen
tage of 0%, or a length of 0, represents the start of the gradient; the value 100% is 100% of the image size, meaning the gradient will not repeat.
... and <color-stop-length> = [ <percen
tage> | <length> ]{1,2} and <color-hint> = [ <percen
tage> | <length> ] examples zebra stripes body { width: 100vw; height: 100vh; } body { background-image: repeating-linear-gradient(-45deg, transparent, transparent 20px, black 20px, black 40px); /* with multiple color stop lengths */ background-image: repeating-linear-gradient(-45deg, transparent 0 20...
row-gap (grid-row-gap) - CSS: Cascading Style Sheets
syntax /* <length> values */ row-gap: 20px; row-gap: 1em; row-gap: 3vmin; row-gap: 0.5cm; /* <percen
tage> value */ row-gap: 10%; /* global values */ row-gap: inherit; row-gap: initial; row-gap: unset; values <length-percen
tage> is the width of the gutter separating the rows.
... <percen
tage> values are relative to the dimension of the element.
... formal definition initial valuenormalapplies tomulti-column elements, flex containers, grid containersinheritednopercen
tagesrefer to corresponding dimension of the content areacomputed valueas specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typea length, percen
tage or calc(); formal syntax normal | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples flex layout html <div id="flexbox"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </div> css #flexbox { display: flex; flex-wrap: wrap; width: 300px; row-gap: 20px; } #flexbox > div { border: 1px solid green; background-color: lime; flex: 1 1 auto; width: 100px; height: 50px; } result...
scroll-snap-points-x - CSS: Cascading Style Sheets
repeat(<length-percen
tage>) defines an interval at which snap points are defined, starting from the container's relevant start edge.
...percen
tages refer to the width of the container.
... formal definition initial valuenoneapplies toscroll containersinheritednopercen
tagesrelative to same axis of the padding-box of the scroll containercomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typediscrete formal syntax none | repeat( <length-percen
tage> )where <length-percen
tage> = <length> | <percen
tage> examples setting horizontal scroll snap points html <div id="container"> <div>1</div> <div>2</div> <div>3</div> </div> css #container { width: 200px; overflow: auto; white-space: nowrap; scroll-snap-points-x: repeat(100%); scroll-snap-type: mandatory; font-size: 0; } #container > div { width: 200px; height: 200px; display: inline-block; line-height: 200px; text-align: center; font-size: 100px; } #c...
scroll-snap-points-y - CSS: Cascading Style Sheets
repeat(<length-percen
tage>) defines an interval at which snap points are defined, starting from the container's relevant start edge.
...percen
tages refer to the width of the container.
... formal definition initial valuenoneapplies toscroll containersinheritednopercen
tagesrelative to same axis of the padding-box of the scroll containercomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typediscrete formal syntax none | repeat( <length-percen
tage> )where <length-percen
tage> = <length> | <percen
tage> examples setting vertical scroll snap points html <div id="container"> <div>1</div> <div>2</div> <div>3</div> </div> css #container { height: 200px; width: 220px; overflow-x: hidden; overflow-y: auto; scroll-snap-points-y: repeat(200px); scroll-snap-type: mandatory; font-size: 0; } #container > div { width: 200px; height: 200px; display: inline-block; line-height: 200px; text-align: center; font-s...
text-overflow - CSS: Cascading Style Sheets
each value is specified as one of: one of the keyword values: clip, ellipsis, fade the function fade(), which is passed a <length> or a <percen
tage> to control the fade distance a <string>.
... fade( <length> | <percen
tage> ) this function clips the overflowing inline content and applies a fade-out effect near the edge of the line box with complete transparency at the edge.
...the <percen
tage> is resolved against the width of the line box.
translate3d() - CSS: Cascading Style Sheets
syntax translate3d(tx, ty, tz) values tx is a <length> or <percen
tage> representing the abscissa of the translating vector.
... ty is a <length> or <percen
tage> representing the ordinate of the translating vector.
...it can't be a <percen
tage> value; in that case the property containing the transform is considered invalid.
translateX() - CSS: Cascading Style Sheets
syntax /* <length-percen
tage> values */ transform: translatex(200px); transform: translatex(50%); values <length-percen
tage> is a <length> or <percen
tage> representing the abscissa of the translating vector.
... a percen
tage value refers to the width of the reference box defined by the transform-box property.
... 10t010001 10t010001 100t010000100001 [1 0 0 1 t 0] formal syntax translatex(<length-percen
tage>) examples html <div>static</div> <div class="moved">moved</div> <div>static</div> css div { width: 60px; height: 60px; background-color: skyblue; } .moved { transform: translatex(10px); /* equal to translate(10px) */ background-color: pink; } result specifications specification status comment css transforms level 1the definition of 'translatex(...
translateY() - CSS: Cascading Style Sheets
syntax /* <length-percen
tage> values */ transform: translatey(200px); transform: translatey(50%); values <length-percen
tage> the value is a <length> or <percen
tage> representing the ordinate of the translating vector.
... a percen
tage value refers to the height of the reference box defined by the transform-box property.
... 10001t001 10001t001 1000010t00100001 [1 0 0 1 0 t] formal syntax translatey(<length-percen
tage>) examples html <div>static</div> <div class="moved">moved</div> <div>static</div> css div { width: 60px; height: 60px; background-color: skyblue; } .moved { transform: translatey(10px); background-color: pink; } result specifications specification status comment css transforms level 1the definition of 'translatey()' in that specification.
Video player styling basics - Developer guides
-height:30.875rem; height:100%; margin:1.25rem auto; padding:1.051%; background-color:#666; } the video controls container itself also needs some styling so that it is set up the correct way: .controls { width:100%; height:8.0971659919028340080971659919028%; /* of figure's height */ position:relative; } the height of the .controls class is set to be (a very precise!) percen
tage of the enclosing <figure> element (this was worked out with experimentation based on the required button height).
...if a user uses the default controls, the defined media api events — such as play and pause — are raised so this can be taken advan
tage of to ensure that the custom control buttons are kept in sync.
...in this case, the margins and padding on the <figure> element need to be removed so that all the available space is taken advan
tage of, and the buttons are a bit too small so this needs to be altered by setting a new height on the element that has the .controls class set on it: @media screen and (max-width:64em) { figure { padding-left:0; padding-right:0; height:auto; } .controls { height:1.876rem; } } this works well enough until it is viewed on a smaller screen (680px/42.5em), so anot...
Creating a cross-browser video player - Developer guides
for the progress bar, the progress element is taken advan
tage of, with a fallback provided for browsers that don't support it (e.g.
...internet explorer 9), is also updated at this time, setting its width to be a percen
tage of the total time played.
...this can be taken advan
tage of to set the progress element's max attribute if it is currently not set: video.addeventlistener('timeupdate', function() { if (!progress.getattribute('max')) progress.setattribute('max', video.duration); progress.value = video.currenttime; progressbar.style.width = math.floor((video.currenttime / video.duration) * 100) + '%'; }); note: for more information and ideas on progress bars and buffering feedback, read media buffering, seeking, and time rang...
<col> - HTML: Hypertext Markup Language
tag omission it must have start
tag, but must not have an end
tag.
... permitted parents <colgroup> only, though it can be implicitly defined as its start
tag is not mandatory.
...in addition to the standard pixel and percen
tage values, this attribute might take the special form 0*, which means that the width of each column in the group should be the minimum width necessary to hold the column's contents.
<head>: The Document Metadata (Header) element - HTML: Hypertext Markup Language
tag omission the start
tag may be omitted if the first thing inside the <head> element is an element.
... the end
tag may be omitted if the first thing following the <head> element is not a space character or a comment.
... example <!doctype html> <html> <head> <title>document title</title> </head> </html> notes html5-compliant browsers automatically create a <head> element if its
tags are omitted in the markup.
<img>: The Image Embed element - HTML: Hypertext Markup Language
graphic expert group image image/jpeg .jpg, .jpeg, .jfif, .pjpeg, .pjp chrome, edge, firefox, internet explorer, opera, safari png portable network graphics image/png .png chrome, edge, firefox, internet explorer, opera, safari svg scalable vector graphics image/svg+xml .svg chrome, edge, firefox, internet explorer, opera, safari tiff
tagged image file format image/tiff .tif, .tiff none built-in; add-ons required webp web picture format image/webp .webp chrome, edge, firefox, opera the abbreviation for each format links to a longer description of the format, its capabilities, and detailed browser compatibility information; including which versions introduced support and specific special feature...
...to do so, nest the <img>
tag inside the <a>.
...
tag omission must have a start
tag and must not have an end
tag.
<label> - HTML: Hypertext Markup Language
associating a <label> with an <input> element offers some major advan
tages: the label text is not only visually associated with its corresponding text input; it is programmatically associated with it too.
...this increased hit area provides an advan
tage to anyone trying to activate the input, including those using a touch-screen device.
...
tag omission none, both the starting and ending
tag are mandatory.
<noembed>: The Embed Fallback element (Obsolete) - HTML: Hypertext Markup Language
this element was deprecated in html 4.01 and above in favor of placing fallback content between the opening and closing
tags of an <object> element.
...use <object> instead, with fallback content between the opening and closing
tags of the element.
... examples the message inside <noembed>
tag will appear only when your browser does not support <embed>
tag.
<object> - HTML: Hypertext Markup Language
tag omission none, both the starting and ending
tag are mandatory.
...no percen
tages) name the name of valid browsing context (html5), or the name of the control (html 4).
...no percen
tages) examples embed a flash movie <!-- embed a flash movie --> <object data="movie.swf" type="application/x-shockwave-flash"></object> <!-- embed a flash movie with parameters --> <object data="movie.swf" type="application/x-shockwave-flash"> <param name="foo" value="bar"> </object> specifications specification status comment html living standardthe definitio...
<source>: The Media or Image Source element - HTML: Hypertext Markup Language
it is an empty element, meaning that it has no content and does not have a closing
tag.
...
tag omission it must have a start
tag, but must not have an end
tag.
... usage notes the <source> element is an empty element (or void element), which means that it not only has no content but also has no closing
tag.
<table>: The Table element - HTML: Hypertext Markup Language
content categories flow content permitted content in this order: an optional <caption> element, zero or more <colgroup> elements, an optional <thead> element, either one of the following: zero or more <tbody> elements one or more <tr> elements an optional <tfoot> element
tag omission none, both the starting and ending
tag are mandatory.
...if the length is defined using a percen
tage value, the content will be centered and the total vertical space (top and bottom) will represent this value.
... cellspacing this attribute defines the size of the space between two cells in a percen
tage value or pixels.
<track>: The Embed Text Track element - HTML: Hypertext Markup Language
tag omission as it is a void element, the start
tag must be present and the end
tag must not be present.
...it must be a valid bcp 47 language
tag.
....vtt" srclang="en"> <track kind="chapters" src="samplechapters.vtt" srclang="en"> <track kind="subtitles" src="samplesubtitles_de.vtt" srclang="de"> <track kind="subtitles" src="samplesubtitles_en.vtt" srclang="en"> <track kind="subtitles" src="samplesubtitles_ja.vtt" srclang="ja"> <track kind="subtitles" src="samplesubtitles_oz.vtt" srclang="oz"> <track kind="metadata" src="keys
tage1.vtt" srclang="en" label="key s
tage 1"> <track kind="metadata" src="keys
tage2.vtt" srclang="en" label="key s
tage 2"> <track kind="metadata" src="keys
tage3.vtt" srclang="en" label="key s
tage 3"> <!-- fallback --> ...
Link types - HTML: Hypertext Markup Language
<link> <a>, <area>, <form>
tag indicates that the hyperlink refers to a document describing a
tag that applies to this document.
... note: this link type should not be set on links to a member of a
tag cloud as these do not apply to a single document but to a set of pages.
... recommendation added
tag, search, prefetch, noreferrer, nofollow, icon, and author.
HTTP authentication - HTTP
this could be a message like "access to the s
taging site" or similar, so that the user knows to which space they are trying to get access to.
... the .htaccess file typically looks like this: authtype basic authname "access to the s
taging site" authuserfile /path/to/.htpasswd require valid-user the .htaccess file references a .htpasswd file in which each line consists of a username and a password separated by a colon (:).
... location /status { auth_basic "access to the s
taging site"; auth_basic_user_file /etc/apache2/.htpasswd; } access using credentials in the url many clients also let you avoid the login prompt by using an encoded url containing the username and the password like this: https://username:password@www.example.com/ the use of these urls is deprecated.
HTTP caching - HTTP
the expiration time is computed as follows: expirationtime = responsetime + freshnesslifetime - curren
tage where responsetime is the time at which the response was received according to the browser.
... e
tags the e
tag response header is an opaque-to-the-useragent value that can be used as a strong validator.
...if the e
tag header was part of the response for a resource, the client can issue an if-none-match in the header of future requests – in order to validate the cached resource.
Accept-Language - HTTP
syntax accept-language: <language> accept-language: * // multiple types, weighted with the quality value syntax: accept-language: fr-ch, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5 directives <language> a language
tag (which is sometimes referred to as a "locale identifier").
... this consists of a 2-3 letter base language
tag representing the language, optionally followed by additional sub
tags separated by '-'.
... examples accept-language: de accept-language: de-ch accept-language: en-us,en;q=0.5 specifications specification title rfc 7231, section 5.3.5: accept-language hypertext transfer protocol (http/1.1): semantics and context bcp 47
tags for the identification of language ...
JavaScript modules - JavaScript
modules are only executed once, even if they have been referenced in multiple <script>
tags.
...if you go to our module-objects directory, you'll see the same example again, but rewritten to take advan
tage of this new syntax.
...this has some obvious performance advan
tages; let's read on and see how it works.
Intl.DateTimeFormat() constructor - JavaScript
syntax new intl.datetimeformat([locales[, options]]) parameters locales optional a string with a bcp 47 language
tag, or an array of such strings.
...this option overrides the hc language
tag and/or the hourcycle option in case both are present.
...this option overrides the hc language
tag, if both are present, and the hour12 option takes precedence in case both options have been specified.
Intl.Locale.prototype.collation - JavaScript
ing for latin, stroke order for cjk characters (used in chinese) trad traditional style ordering (such as in spanish) unihan pinyin ordering for latin, unihan radical-stroke ordering for cjk characters (used in chinese) zhuyin pinyin ordering for latin, zhuyin order for bopomofo and cjk characters (used in chinese) examples like other locale sub
tags, the collation type can be added to the intl.locale object via the locale string, or a configuration object argument to the constructor.
... adding a collation type via the locale string in the unicode locale string spec, collation types are locale key "extension sub
tags".
... these sub
tags add additional data about the locale, and are added to locale identifiers by using the -u extension.
Intl.Locale.prototype.hourCycle - JavaScript
like other additional locale data, hour cycle type is an extension sub
tag, which extends the data contained in a locale string.
... adding an hour cycle via the locale string in the unicode locale string spec, the hour cycle is a locale string "extension sub
tag".
... these sub
tags add additional data about the locale, and are added to locale identifiers by using the -u extension key.
Intl.RelativeTimeFormat.prototype.resolvedOptions() - JavaScript
description the resulting object has the following properties: locale the bcp 47 language
tag for the locale actually used.
... if any unicode extension values were requested in the input bcp 47 language
tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
... s
tage 4 ...
String.prototype.anchor() - JavaScript
the anchor() method creates a string beginning with an <a name="..."> start
tag, then some text, and then an </a> end
tag.
... syntax str.anchor(name) parameters name a string representing a name value to put into the generated <a name="..."> start
tag.
... return value a string beginning with an <a name="name"> start
tag, then the text str, and then an </a> end
tag description don't use this method.
String.raw() - JavaScript
the static string.raw() method is a
tag function of template literals.
...the first syntax mentioned above is only rarely used, because the javascript engine will call this with proper arguments for you, (just like with other
tag functions).
... string.raw() is the only built-in
tag function of template strings.
Destructuring assignment - JavaScript
syntax let a, b, rest; [a, b] = [10, 20]; console.log(a); // 10 console.log(b); // 20 [a, b, ...rest] = [10, 20, 30, 40, 50]; console.log(a); // 10 console.log(b); // 20 console.log(rest); // [30, 40, 50] ({ a, b } = { a: 10, b: 20 }); console.log(a); // 10 console.log(b); // 20 // s
tage 4(finished) proposal ({a, b, ...rest} = {a: 10, b: 20, c: 30, d: 40}); console.log(a); // 10 console.log(b); // 20 console.log(rest); // {c: 30, d: 40} description the object and array literal expressions provide an easy way to create ad hoc packages of data.
... nested object and array destructuring const metadata = { title: 'scratchpad', translations: [ { locale: 'de', localization_
tags: [], last_edit: '2014-04-14t08:43:37', url: '/de/docs/tools/scratchpad', title: 'javascript-umgebung' } ], url: '/docs/tools/scratchpad' }; let { title: englishtitle, // rename translations: [ { title: localetitle, // rename }, ], } = metadata; console.log(englishtitle); // "scratchpad" console.log(localetitle); // "javascript-umgebung" for of i...
... let key = 'z'; let {[key]: foo} = {z: 'bar'}; console.log(foo); // "bar" rest in object destructuring the rest/spread properties for ecmascript proposal (s
tage 4) adds the rest syntax to destructuring.
MathML documentation index - MathML
found 40 pages: # page
tags and summary 1 mathml landing, mathml, reference, web, xml mathematical markup language (mathml) is a dialect of xml for describing mathematical notation and capturing both its structure and content.
...just like html, mathml is described with
tags and attributes.
...every valid mathml instance must be wrapped in <math>
tags.
Progressive web app structure - Progressive web apps (PWAs)
they both have their advan
tages and disadvan
tages, and you can mix the two approaches to some degree.
... being linkable, progressive and responsive by design it's important to remember the pwa advan
tages and keep them in mind when designing the application.
...there are so many varied devices with browsers — it's important to prepare your website so it works on different screen sizes, viewports or pixel densities, using technologies like viewport meta
tag, css media queries, flexbox, and css grid.
Progressive loading - Progressive web apps (PWAs)
we could go even further and move everything from style.css to the <style>
tag in the <head> of index.html — this would improve performance even more, but for the readability of the example we will skip that approach too.
...you could try to make your apps more bulletproof by making them work without javascript — either using <noscript> to show the image with final src already assigned, or by wrapping <img>
tags with <a> elements pointing at the target images, so the user can click and access them when desired.
...pwas give a huge advan
tage over regular web apps.
Mobile first - Progressive web apps (PWAs)
we consider the overall experience during the planning s
tage, look at what subset of features will be available on mobile, desktop, etc.
...then at implementation s
tage, we present the mobile layout and functionality as the default configuration provided, before additional information is loaded on top of that, whenever appropriate.
...when they are not supported, the <html>
tag looks like this: <html class=" js no-rgba no-multiplebgs"> when these are present, we can serve alternative styling rules to provide sensible fallbacks using descendant selectors — see the following in my code.
Structural overview of progressive web apps - Progressive web apps (PWAs)
they both have their advan
tages and disadvan
tages, and you can mix the two approaches to some degree.
... being linkable, progressive, and responsive by design it's important to remember the pwa advan
tages and keep them in mind when designing the application.
...there are so many varied devices with browsers — it's important to prepare your website so it works on different screen sizes, viewports or pixel densities, using technologies like the viewport meta
tag, css media queries, flexbox, and css grid.
baseline-shift - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following four elements: <altglyph>, <textpath>, <tref>, and <tspan> usage notes value <length-percen
tage> | sub | super default value 0 animatable yes sub the dominant-baseline is shifted to the default position for subscripts.
... <length-percen
tage> a length value raises (positive value) or lowers (negative value) the dominant-baseline of the parent text content element by the specified length.
... a percen
tage value raises (positive value) or lowers (negative value) the dominant-baseline of the parent text content element by the specified percen
tage of the line-height.
Understanding WebAssembly text format - WebAssembly
note: the wasm-bindgen documentation contains some useful information on how to take advan
tage of externref from rust.
... at the time of writing (june 2020) this is at an early s
tage, and the only multi-value instructions available are calls to functions that themselves return multiple values.
... note: the emscripten pthreads support page shows how to take advan
tage of this new functionality from emscripten.
Communicating With Other Scripts - Archive of obsolete content
this section of the guide explains how content scripts can communicate with: your main.js file, or any other modules in your add-on other content scripts loaded by your add-on page scripts (that is, scripts embedded in the web page or included using <script>
tags) main.js your content scripts can communicate with your add-on's "main.js" (or any other modules you're written for your add-on) by sending it messages, using either the port.emit() api or the postmessage() api.
... page scripts if a page includes its own scripts using <script>
tags, either embedded in the page or linked to it using the src attribute, there are a couple of ways a content script can communicate with it: using the dom postmessage() api using custom dom events using the dom postmessage api note that before firefox 31 code in content scripts can't use window to access postmessage() and addeventlistener() and instead must use document.defaultview.
port - Archive of obsolete content
this example rewrites the content script in the port.removelistener() example so that it uses once(): // content-script.js function getfirstparagraph() { var paras = document.getelementsby
tagname('p'); console.log(paras[0].textcontent); } self.port.once("get-first-para", getfirstparagraph); removelistener() you can use port.on() to listen for messages.
... // content-script.js function getfirstparagraph() { var paras = document.getelementsby
tagname('p'); console.log(paras[0].textcontent); self.port.removelistener("get-first-para", getfirstparagraph); } self.port.on("get-first-para", getfirstparagraph); the result is that the paragraph is only logged the first time the button is clicked.
Communicating using "port" - Archive of obsolete content
function getfirstparagraph() { var paras = document.getelementsby
tagname('p'); console.log(paras[0].textcontent); self.port.removelistener("get-first-para", getfirstparagraph); } self.port.on("get-first-para", getfirstparagraph); the result is that the paragraph is only logged the first time the button is clicked.
... this example rewrites the "listener.js" content script in the port.removelistener() example so that it uses once(): function getfirstparagraph() { var paras = document.getelementsby
tagname('p'); console.log(paras[0].textcontent); } self.port.once("get-first-para", getfirstparagraph); json-serializable values the payload for an message can be any json-serializable value.
SDK and XUL Comparison - Archive of obsolete content
advan
tages of the sdk simplicity the sdk provides high-level javascript apis to simplify many common tasks in add-on development, and tool support which greatly simplifies the process of developing, testing, and packaging an add-on.
... advan
tages of xul-based add-ons user interface flexibility xul overlays offer a great deal of options for building a ui and integrating it into the browser.
panel - Archive of obsolete content
to interact with trusted content you don't need to use content scripts: you can just include a script from the html file in the normal way, using script
tags.
...addon.port.on("show", function onshow() { textarea.focus(); }); finally, the html file now references "get-text.js" inside a <script>
tag: <html> <head> <style type="text/css" media="all"> textarea { margin: 10px; } body { background-color: gray; } </style> </head> <body> <textarea rows="13" cols="33" id="edit-box"></textarea> <script src="get-text.js"></script> </body> </html> styling panel content the panel's default style is different for each operating system: t...
Creating Event Targets - Archive of obsolete content
open "bookmarks.js" and replace its contents with this code: var { emit } = require("sdk/event/core"); var { eventtarget } = require("sdk/event/target"); var { class } = require("sdk/core/heri
tage"); var { merge } = require("sdk/util/object"); var {cc, ci} = require("chrome"); var { xpcomutils } = require("resource://gre/modules/xpcomutils.jsm"); var bookmarkservice = cc["@mozilla.org/browser/nav-bookmarks-service;1"] .getservice(ci.nsinavbookmarksservice); function createobserver(target) { var bookmarkobserver = { onitemadded: function(aitemid, afolder...
...however: we're now importing from four modules: event/core gives us emit(): note that we don't need on, once, or off, since we will use eventtarget for adding and removing listeners event/target gives us eventtarget, which implements the interface for adding and removing listeners core/heri
tage gives us class(), which we can use to inherit from eventtarget util/object gives us merge(), which just simplifies setting up the bookmarkmanager's properties we use class to inherit from eventtarget.
Using XPCOM without chrome - Archive of obsolete content
examples bookmarks observer normally, a bookmark observer would require chrome components and xpcomutils as described in the following links: (observing changes to bookmarks and
tags) , (creating event targets).
... // this removes the need to import ci and the xpcomutils const { class } = require("sdk/core/heri
tage"); const { unknown } = require('sdk/platform/xpcom'); const { placesutils } = require("resource://gre/modules/placesutils.jsm"); let bmlistener = class({ extends: unknown, interfaces: [ "nsinavbookmarkobserver" ], //this event most often handles all events onitemchanged: function(bid, prop, an, nv, lm, type, parentid, aguid, aparentguid) { console.log("onitemchanged", "bid: "+bid, "pr...
Localization - Archive of obsolete content
to reference localized strings from html, add a data-l10n-id attribute to the html
tag where you want the localized string to appear, and assign the identifier to it: <html> <body> <h1 data-l10n-id="hello_id"></h1> </body> </html> then you can use this html file to build your interface, for example inside a panel: var button = require("sdk/ui/button/action").actionbutton({ id: "localized-hello", label: "localized hello", icon: "./icon-16.png", onclick: function(...
...html
tags are inserted as text.
QuerySelector - Archive of obsolete content
/ add <bar xmlns="somens"/> foo.documentelement.appendchild(bar); alert(foo.$('bar').nodename); // gives 'bar' element.prototype.$ = function (selector) { // works for html, xul, and plain xml return this.queryselector(selector); }; html example: <h1><a>test!<a/></h1> <script> element.prototype.$ = function (selector) { return this.queryselector(selector); }; alert(document.getelementsby
tagname('h1')[0].$('a').nodename); // 'a' xul example: <hbox><vbox/></hbox> <script type="text/javascript"><![cdata[ element.prototype.$ = function (selector) { return this.queryselector(selector); }; var xulns = 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'; alert(document.getelementsby
tagnamens(xulns, 'hbox')[0].$('vbox').nodename); // vbox ]]></script> xml example: <foo xml...
...ns="somens"><bar/></foo> in document earlier var foo = document.getelementsby
tagnamens('somens', 'foo')[0]; alert(foo.$('bar')); note that for plain xml, the # 'id' selector will not work with an 'id' attribute (since a such-named attribute need not necessarily be of type id in xml, though it is in html and xul), nor will it work with xml:id.
Displaying web content in an extension without security issues - Archive of obsolete content
this can be done as well, by placing the event handler on the frame
tag (meaning that it is outside the restricted document and can execute without restrictions): <iframe type="content" onclick="handleclick(event);"/> and the event handler would look like that: function handlebrowserclick(event) { // only react to left mouse clicks if (event.button != 0) return; // default action on link clicks is to go to this link, cancel it event.preventdefault(); ...
...g: var template = doc.getelementbyid("entrytemplate"); var entry = template.clonenode(true); entry.removeattribute("id"); entry.getelementsbyclassname("title")[0].textcontent = title; entry.getelementsbyclassname("description")[0].textcontent = description; template.parentnode.appendchild(entry); the important difference here is that the result will always have the same structure as the template
tag.
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
listing 1: calc.js (s
tage 1) function rpncalc() { } rpncalc.prototype = { init: function() { }, push: function(val) { }, plus: function() { }, pop: function() { } } implement the addition operation create test case begin by creating the test case.
...fixme: not sure we should talk about this tool installation windows users can take advan
tage of a self-contained version created by soutaro matsumoto called “gonzui for win32” http://soutaro.com/gonzui-win32/ run it as follows: download gonzui-win32-1.2.2.zip and expand it into a suitable directory.
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
this takes advan
tage of event bubbling2, appending the restore event handler to the menupopup element one layer above the menuitem element.
...when we get the preference value from javascript, we take advan
tage the xpcom nslprefservice interface, using the getboolpref and getintpref methods as appropriate to the data type.
Intercepting Page Loads - Archive of obsolete content
webprogresslisteners when used in the chrome, this is a more sophisticated way of intercepting and modifying the various s
tages in page loads.
... this also has the advan
tage of detecting page loads anywhere in the application, not only in browser windows.
Setting Up a Development Environment - Archive of obsolete content
komodo edit has automatic completion for xul
tags and attributes, and it supports mozilla's css extensions (css values and properties beginning with "-moz").
...when creating a development profile for your add-on, make sure you choose an easy name for the profile folder, and set it in your makefile in order to take advan
tage of the install command.
Useful Mozilla Community Sites - Archive of obsolete content
it's a very powerful tool you have when developing on top of the mozilla platform, and you should take advan
tage of it in order to create a truly successful add-on .
... one of the main advan
tages of using amo is that it handles updates automatically for published add-ons.
Firefox addons developer guide - Archive of obsolete content
each chapter should be
tagged appropriately, based on content, and every chapter should include the
tag "firefox addons developer guide".
... these articles are all
tagged as covering firefox 3.1 using the fx_minversion_header template, but i don't think that's the case.
Add-ons - Archive of obsolete content
these type of extensions have many advan
tages for both users and developers compared to the old xpinstall/-style extensions.
...acy technology for add-on development, including: legacy extensions for firefox for android add-ons that work with desktop firefox do not automatically work in firefox for android: overlay extensions this page contains links to documentation for the approach to developing extensions for gecko-based applications which uses: performance best practices in extensions one of firefox's great advan
tages is its extreme extensibility.
Index of archived content - Archive of obsolete content
widget windows low-level apis /loader chrome console/plain-text console/traceback content/content content/loader content/mod content/symbiont content/worker core/heri
tage core/namespace core/promise dev/panel event/core event/target frame/hidden-frame frame/utils fs/path io/byte-streams io/file io/text-streams lang/functional lang/type loader/cuddlefish loa...
...ally finding the code to modify finding the file to modify making a mozilla installation modifiable making it into a dynamic overlay and packaging it up for distribution making it into a static overlay prerequisites specifying the appearance tinderbox creating a release
tag creating a skin for firefox/getting started creating a skin for mozilla faq getting started in-depth links contents.rdf toolbarbindings.xml creating a skin for seamonkey 2.x getting started chrome.manif...
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
oconf=autoconf-2.13 ac_add_options --enable-application=mail ac_add_options --prefix="/usr/local/thunderbirddebug" ac_add_options --libdir="/usr/local/thunderbirddebuglibs" ac_add_options --enable-extensions=pref ac_add_options --enable-static ac_add_options --disable-shared ac_add_options --disable-crashreporter the option --disable-crashreporter is necessary if you get compile error at this s
tage of the build gmake[7]: entering directory `/usr/local/moz2/commsrc/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux' dump_symbols.cc build then start building [root@b008-02 commsrc]# time make -f client.mk build rm -f ../../mozilla/dist/bin/testcookie if test -f ../../mozilla/dist/bin/testtarray; then cp ../../mozilla/dist/bin/testtarray ../../mozilla/dist/bin/testcookie; fi; ...
...n install (--enable-static and --disable-shared necessary in .mozconfig !) [root@b008-02 commsrc]# make install -n /usr/bin/gmake -c mail/installer install gmake[1]: entrant dans le répertoire « /usr/local/moz/commsrc/mail/installer » rm -rf ../../mozilla/dist/thunderbird ../../mozilla/dist/thunderbird-3.0b3pre.en-us.linux-i686.tar ../../mozilla/dist/thunderbird-3.0b3pre.en-us.linux-i686.dmg s
tage-package echo "creating package directory..." ...
RDF Datasource How-To - Archive of obsolete content
the tree
tag will be treated as if it has the id attribute with a value http://foo.bar.com/.
...starting with the resource that corresponds to the tree element, http://foo.bar.com/, the graph will be traversed and content will be constructed using the pattern specified within the template
tags.
parent - Archive of obsolete content
« xul reference home parent type: element
tag name if set, the rule will only match the corresponding
tag.
... this may be used to have separate rules for leaf and container nodes with different
tags.
Property - Archive of obsolete content
dcount selectedindex selecteditem selecteditems selectedpanel selectedtab selectionend selectionstart selstyle seltype sessioncount sessionhistory showcommentcolumn showpopup size smoothscroll spinbuttons src state statusbar statustext stringbundle strings style subject suppressonselect tabcontainer tabindex tabs tabscrolling tabpanels
tag textlength textvalue timeout title toolbarname toolbarset tooltip tooltiptext top treeboxobject type uri useraction value valuenumber view webbrowserefind webnavigation webprogress width wizardpages wraparound year yearleadingzero related dom element properties dom:element.attributes dom:element.baseuri dom:element.childelementcount dom:el...
....namespaceuri dom:element.nextelementsibling dom:element.nextsibling dom:element.nodename dom:element.nodetype dom:element.nodevalue dom:element.ownerdocument dom:element.parentnode dom:element.prefix dom:element.previouselementsibling dom:element.previoussibling dom:element.scrollheight dom:element.scrollleft dom:element.scrolltop dom:element.scrollwidth dom:element.
tagname dom:element.textcontent ...
Additional Template Attributes - Archive of obsolete content
the container or starting node variable is specified in the <content>
tag inside a query, while the member variable is determined by the value of the uri attribute inside the action body.
... one possible advan
tage is when using the simple rdf query syntax where you don't specify variables; instead you use the special 'rdf:*' syntax for the member variable and the container is implied.
Rule Compilation - Archive of obsolete content
a query is declared with the query
tag (new to ff3; ff2 only worked with rdf datasources and had no query
tag), which you would place directly inside the <template>.
...each rule is declared with a rule
tag, and you may have more than one.
Template Logging - Archive of obsolete content
template errors the second type of template error is a syntax error is the template rules, for example, a missing attribute or a
tag out of place.
...the triple refers to two variables (?person and ?name) that aren't used in earlier
tags.
Using Recursive Templates - Archive of obsolete content
the local-name function retrieves the
tag of the element without the namespace prefix.
...as the type is bound to the local name of the result node, this will match only the first level of results from the xml data, that is, those with the group
tag.
The Joy of XUL - Archive of obsolete content
essentially, xbl empowers developers with the ability to extend xul by customizing existing
tags and creating new
tags of their own.
...these custom components can then be used in xul applications by specifying the custom
tag and associated attributes.
Modifying a XUL Interface - Archive of obsolete content
it takes one argument, the
tag name of the element to create.
...the function getelementbyid() does not know that the box it is looking for happens to be containing the
tag that has the oncommand attribute that referenced it.
The Chrome URL - Archive of obsolete content
installed packages have the advan
tage that they don't have security restrictions placed on them, which is necessary for many applications.
... another advan
tage over other url types is that they automatically handle multiple themes and locales.
Writing Skinnable XUL and CSS - Archive of obsolete content
for example, there should never be any css rules of the form
tagname {...}; in a derived skin file.
...the matching for these rules (unless you're very careful) will be inefficient, and when only using generic
tag names, can be positively grotesque.
XUL Questions and Answers - Archive of obsolete content
} the person can get the titles too using the .contenttitle
tag.
... specifying window.onload function to specify a function to run when the window is loaded,add the following code between the script
tags in the xul file: window.addeventlistener("load", function(e) { startup(); }, false); similarly, for onunload use the code: window.addeventlistener("unload", function(e) { shutdown(); }, false); is there an event which is called when the firefox browser is initialized?
XUL Event Propagation - Archive of obsolete content
in the example above, when the menuitem raises the "command" event, indicating that it has been selected, the menupopup, the menu itself, the parent box, or the root window element itself can all take advan
tage of this.
... <menupopup> </menu> </box> adding an event listener in order to take advan
tage of event capturing (or event bubbling with elements that do not already have event listeners), you must add an event listener to the element that wants to capture events taking place below it.
arrowscrollbox - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
browser - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
...in addition to the flags allowed for the reloadwithflags method, the following flags are also valid: load_flags_is_refresh: this flag is used when the url is loaded because of a meta
tag refresh or redirect.
button - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
checkbox - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
colorpicker - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
...property gets and sets color attribute methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
datepicker - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
editor - Archive of obsolete content
however, an issue is that if you specify the src attribute initially on the editor
tag in the xul file, the document does not become editable by default.
... inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
key - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
keyset - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
listbox - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
listcell - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
listhead - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
listheader - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
listitem - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
menu - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
menuitem - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
menulist - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
menuseparator - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
preference - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
progressmeter - Archive of obsolete content
the default value if not specified is 100 such that the value may be used as a percen
tage.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
radio - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
radiogroup - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
richlistbox - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
richlistitem - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
scale - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
script - Archive of obsolete content
you should usually put scripts in a separate file pointed to by the src attribute, but you may also place the script inline inside the opening and closing script
tags.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
scrollbar - Archive of obsolete content
the scroll bar may also be used independently when a numeric value or percen
tage needs to be selected by the user.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
scrollbox - Archive of obsolete content
note that this example doesn't use a scrollbox
tag; you only need that
tag if you want to programmatically scroll in addition to the automatic scroll bars.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
tab - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
tabbrowser - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
...in addition to the flags allowed for the reloadwithflags method, the following flags are also valid: load_flags_is_refresh: this flag is used when the url is loaded because of a meta
tag refresh or redirect.
tabs - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
template - Archive of obsolete content
if not specified, the variable specified in the uri attribute of the content
tag in the template's first rule is used.
..., tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
textbox - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
timepicker - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbarbutton - Archive of obsolete content
using it with an anchor
tag (an <a> link) will have no effect.
... methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
Archived Mozilla and build documentation - Archive of obsolete content
applications running in an ssb are therefore able to benefit from many of the advan
tages of the desktop and of the web at the same time.
... video presentations mozilla is actively working to produce video presentations that can help you learn how the mozilla codebase works and how to take advan
tage of its technology in your own applications and extensions.
2006-10-06 - Archive of obsolete content
cédric corazza recommends that the proposed documention should be made available on the l10n cvs once it reaches a decent s
tage so that localizers can get a head-start on the localization before the final version is made available.
... updated : need ui to rearrange
tags peter lairo suggested some ui should be available for rearranging
tags.
2006-10-06 - Archive of obsolete content
https://bugzilla.mozilla.org/show_bug.cgi?id=354866 taking moz180-linux-tbox down temporarily oct 6th early afternoon (pdt) on october 5th rob helmer announced that: he will be taking the 1.8.0 branch (en-us and l10n) linux tinderbox down tomorrow afternoon (oct 6th, pdt) in order to clone the disks and create a s
taging server for the release automation work.
...he also mentioned that he has filed bug 355606 in order to track the s
taging server setup.
Extentsions FAQ - Archive of obsolete content
keywords - in the gui they are called
tags.
... why there are some rss feeds that do not appear as livemarks when bookmarked even though the necessary
tags for the feed to appear as a livemark are seemingly present and properly formatted in the feeds source?
NSPR Release Engineering Guide - Archive of obsolete content
feature complete update ...pr/include/prinit.h with release numbers build all targets, debug and optimized on all platforms using local directories run the test suite on all targets verify release numbers show up in binaries resolve testing anomalies
tag the tree with nsprpub_release_x_y_z_beta beta release checkout a whole new tree using the
tag from above build all targets, debug and optimized on all platforms using the command: gmake release mdist=<dir>/mdist build_number=vx.y.z [build_opt=1 | use_debug_rtl=1] copy the bits from mdist to /share/builds/components/nspr20/.vx.y.z 1 run explode.pl run the test suite on all target...
...s, using binaries & headers from shipped bits resolve testing anomalies
tag the tree with nsprpub_release_x_y[_z] release candidate checkout a whole new tree using
tag (including fixes)
tag the treey with nsprpub_release_x_y_z build all targets, debug and optimized on all platforms using the command: gmake release mdist=<dir>/mdist build_number=vx.y.z [build_opt=1 | use_debug_rtl=1] copy the bits from mdist to /share/builds/components/nspr20/.vx.y.z in /share/builds/components/nspr20/ run the following scripts: explode.pl rename.sh symlink.sh rtm bits rename the .vx.y.z directory to vx.y.z (remove the hidden directory 'dot').
-ms-hyphenate-limit-zone - Archive of obsolete content
initial value0applies toblock container elementsinheritedyespercen
tagescalculated with respect to the width of the line boxcomputed valueas specifiedanimation typediscrete syntax values <percen
tage> an integer followed by a percent sign (%), which specifies the width of the hyphenation zone, calculated with respect to the line box.
... formal syntax <percen
tage> | <length> specifications not part of any specification.
CSS - Archive of obsolete content
this is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound s
tage.
... stereo output produce a lateral sound s
tage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional s
tage.display-insidethe display-inside css property specifies the inner display type of the box generated by an element, dictating how its contents lay out inside the box.display-outsidethe display-outside css property specifies the outer display type of the box generated by an element, dictating how the element participates in its parent formatting context.
ArrayBuffer.transfer() - Archive of obsolete content
the ability to grow an arraybuffer without copying has the advan
tage of being much faster for large buffers (similar to realloc).
... if (length <= source.bytelength) return source.slice(0, length); var sourceview = new uint8array(source), destview = new uint8array(new arraybuffer(length)); destview.set(sourceview); return destview.buffer; }; } specifications specification status comment arraybuffer.prototype.transfer proposal draft s
tage 2 draft ...
LiveConnect - Archive of obsolete content
liveconnect use by applets is enabled via the use of the "mayscript" attribute in applet
tags on an html page, following which the applet may refer to classes in the netscape.javascript package to access javascript objects, and scripts may directly call applet methods (using the syntax document.applets.name.methodname()).
... liveconnect testcases determine that applets within different html
tags work properly.
Properly Using CSS and JavaScript in XHTML Documents - Archive of obsolete content
problems with inline style and script inline style and script
tags can cause several different problems in xhtml when it is treated as xml rather than html.
... use of comments inside inline style and script authors who are familiar with html commonly enclose the contents of inline style and script
tags in comments in order to hide the contents of the
tags from browsers which do not understand them.
XForms Custom Controls - Archive of obsolete content
if you need to have xforms in other kinds of documents like svg, mathml or some other
tag language that mozilla supports, then you'll need to implement xforms controls for your desired document format.
...overview the mozilla xforms controls are largely implemented using xbl and the bindings are applied to the individual xforms control
tags via css.
RDF in Mozilla FAQ - Archive of obsolete content
you may use any kind of
tag (including html, or arbitrary xml) in the <action> section of a <rule>.
... in order to take advan
tage of this functionality, you must of course be able to express your information in terms of the rdf datasource api, either by using the built-in memory datasource, using rdf/xml to store your information, or writing your own implementation (possibly in javascript) of nsirdfdatasource.
Using the Right Markup to Invoke Plugins - Archive of obsolete content
if you aren't taking advan
tage of any version specific features, a more generic mime type such as application/x-java-vm will do the job just as well.
...here is a sample: <applet code="nervoustext.class" width="534" height="50"> <param name="text" value="java(tm) 2 sdk, standard edition v1.4" /> </applet> the applet element has been deprecated in the html 4.01 specification, but an advan
tage to using it is that in mozilla-based browsers such as netscape 7, if you are missing java, an automatic obtainment mechanism is in place.
Anatomy of a video game - Game development
games are constantly looping through these s
tages, over and over, until some end condition occurs (such as winning, losing, or exiting to go to bed).
... building a more optimized main loop in javascript ultimately, in javascript, the browser is running its own main loop and your code exists in some of its s
tages.
Introduction to game development for the Web - Game development
instead, you can advertise and promote your game all over the web as well as other media, taking advan
tage of the web's inherent linkability and shareability to reach new customers.
... web workers workers give you the ability to spawn background threads running their own javascript code, to take advan
tage of modern, multi-core processors.
Game distribution - Game development
benefits of html5 over native building games with html5 gives you extra advan
tages, such as: multiplatform bliss the technology itself is multiplatform, so you can write the code once and target multiple devices.
...mobile devices are where html5 technology can truly shine and show its advan
tages.
Game monetization - Game development
the worst cases were when you could use real money to pay for getting advan
tages over other players, or when they restricted access to the next s
tages of the game unless the players paid.
... there are many companies offering advert systems — you sign up and allow them to show adverts in exchange for a percen
tage of the earnings.
Bounding volume collision detection with THREE.js - Game development
the advan
tages of using this helper are: it has an update() method that will resize its bounding box mesh if the linked mesh rotates or changes its dimensions, and update its position.
... the main disadvan
tage is that it only creates box bounding volumes, so if you need spheres vs aabb tests you need to create your own sphere objects.
3D collision detection - Game development
the main advan
tage of spheres is that they are invariant to rotation, so if the wrapped entity rotates, the bounding sphere would still be the same.
... their main disadvan
tage is that unless the entity they are wrapping is actually spherical, the wrapping is usually not a good fit (i.e.
Building up a basic demo with A-Frame - Game development
add this code at the end of the <script>
tag: var t = 0; function render() { t += 0.01; requestanimationframe(render); cylinder.setattribute('position', '3 '+(math.sin(t*2)+1)+' 0'); } render(); we're using the render() function to update the cylinder's position on every frame.
...a-frame targets web developers by offering easy to use web markup and all the advan
tages that brings, such as javascript manipulation.
2D maze game with device orientation - Game development
if there's nothing specified in that last argument or the element is not found, the canvas will be added to the <body>
tag.
... without the framework, to add the canvas element to the page, you would have to write something like this inside the <body>
tag: <canvas id='game' width='320' height='480'></canvas> the important thing to remember is that the framework is setting up helpful methods to speed up a lot of things like image manipulation or assets management, which would be a lot harder to do manually.
Gecko FAQ - Gecko Redirect 1
basically, a layout engine takes content (such as html, xml, image files, applets, and so on) and formatting information (such as cascading style sheets, presentational html
tags, etc.) and displays the formatted content on the screen.
...here are some links to lists of reported bugs related to the standards mentioned above; be aware that these raw lists of open in-process bugs will inevitably include some duplicate, out of date, unreproducible, invalid, and incorrectly
tagged reports: the links themselves are probably outdated too.
Entity - MDN Web Docs Glossary: Definitions of Web-related terms
for example, if you use the less-than (<) sign, the browser interprets any text that follows as a
tag.
... < < interpreted as the beginning of a
tag > > interpreted as the ending of a
tag " " interpreted as the beginning and end of an attribute's value.
Hoisting - MDN Web Docs Glossary: Definitions of Web-related terms
learn more technical example one of the advan
tages of javascript putting function declarations into memory before it executes any code segment is that it allows you to use a function before you declare it in your code.
...for example: console.log(num); // returns undefined, as only declaration was hoisted, no initialization has happened at this s
tage var num; // declaration num = 6; // initialization the example below only has initialization.
Parse - MDN Web Docs Glossary: Definitions of Web-related terms
html tokens include start and end
tags, as well as attribute names and values.
...parsing can continue when a css file is encountered, but <script>
tags—particularly those without an async or defer attribute—blocks rendering, and pauses parsing of html.
Accessible multimedia - Learn web development
add the following, again at the bottom of your javascript: player.removeattribute('controls'); doing it this way round rather than just not including the controls attribute in the first place has the advan
tage that if our javascript fails for any reason, the user still has some controls available.
... if you are embedding video content using a plugin technology like flash or silverlight, you can take advan
tage of captioning/subtitling techniques available to those technologies.
Advanced styling effects - Learn web development
the second is grayscale(); by using a percen
tage we are setting how much color we want to be removed.
... play with the percen
tage and pixel parameters in the live example to see how the images change.
Styling tables - Learn web development
this is why we've selected the four different headings with the thead th:nth-child(n) (:nth-child) selector ("select the nth child that is a <th> element in a sequence, inside a <thead> element") and given them set percen
tage widths.
...by using percen
tages, so the design is more responsive.
Supporting older browsers - Learn web development
a good example of this is if we were to add percen
tage widths to our floated items to make the columns more like the grid display, stretching to fill the container.
... in the floated layout, the percen
tage is calculated from the container — 33.333% is a third of the container width.
How CSS works - Learn web development
it processes the document in a number of s
tages, which we've listed below.
... the visual display of the page is shown on the screen (this s
tage is called painting).
Client-side form validation - Learn web development
const form = document.getelementsby
tagname('form')[0]; const email = document.getelementbyid('mail'); const emailerror = document.queryselector('#mail + span.error'); email.addeventlistener('input', function (event) { // each time the user types something, we check if the // form fields are valid.
... // there are fewer ways to pick a dom node with legacy browsers const form = document.getelementsby
tagname('form')[0]; const email = document.getelementbyid('mail'); // the following is a trick to reach the next sibling element node in the dom // this is dangerous because you can easily build an infinite loop.
How to build custom form controls - Learn web development
for any interaction you do add, it is vital to spend time in the design s
tage; if you define a behavior poorly, or forget to define one, it will be very hard to redefine it once the users have gotten used to it.
... .select:after { content : "▼"; /* we use the unicode character u+25bc; make sure to set a charset meta
tag */ position: absolute; z-index : 1; /* this will be important to keep the arrow from overlapping the list of options */ top : 0; right : 0; box-sizing : border-box; height : 100%; width : 2em; padding-top : .1em; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #fff; text-align : center; } next, let's style the ...
UI pseudo-classes - Learn web development
more recently, the css selector level 3 and css basic ui level 3 added more pseudo-classes related to html forms that provide several other useful targetting conditions that you can take advan
tage of.
...the advan
tage of using a transform rather than transitioning width/height is that you can use transform-origin to make it grow from the center of the circle, rather than having it appear to grow from the circle's corner.
JavaScript basics - Learn web development
in your index.html file, enter this code on a new line, just before the closing </body>
tag: <script src="scripts/main.js"></script> this is doing the same job as the <link> element for css.
...if you enjoyed playing, and wish to go further, take advan
tage of the resources listed below.
Use JavaScript within a webpage - Learn web development
if you want to execute a .js script from your webpage, just use <script> with an src attribute pointing to the script file, using its url: <script src="path/to/my/script.js"></script> writing javascript within html you may also add javascript code between <script>
tags rather than providing an src attribute.
...for example, if you've implemented a nice javascript progress bar, make sure to supplement it with matching text percen
tages inside the html.
Advanced text formatting - Learn web development
wrap the title of each source in <cite>
tags and turn each one into a link to that source.
...if you wrap the text in <pre></pre>
tags however, your whitespace will be rendered identically to how you see it in your text editor.
Mozilla splash page - Learn web development
adding a video to the main article content just inside the <article> element (right below the opening
tag), embed the youtube video found at https://www.youtube.com/watch?v=ojcncvb1olg, using the appropriate youtube tools to generate the code.
...add the "learning"
tag to your post so we are able to more easily find it.
Video and Audio APIs - Learn web development
if you don't specify this, you get no playback controls: this is not as immediately useful for video playback, but it does have advan
tages.
... each <button> has a class name, a data-icon attribute for defining what icon should be shown on each button (we'll show how this works in the below section), and an aria-label attribute to provide an understandable description of each button, since we're not providing a human-readable label inside the
tags.
What went wrong? Troubleshooting JavaScript - Learn web development
but the above classifications will do at this early s
tage in your career.
...it won't always be that simple to work out what's wrong in your code, but at least this will save you a few hours of sleep and allow you to progress a bit faster when things don't turn out right, especially in the earlier s
tages of your learning journey.
Introduction to the server side - Learn web development
other services like facebook, twitter, ins
tagram, and wikipedia use server-side programming to highlight, share, and control access to interesting content.
...pick almost any large site that you are interested in (google, amazon, ins
tagram, etc.) and create a new account using your email address.
Framework main features - Learn web development
this s
tage will persist in some way as long as the component is in use.
...just like you can write html
tags inside each other to build a website, you can use components inside other components to build a web application.
Beginning our React todo list - Learn web development
further down, you can find our <ul> element: <ul role="list" classname="todo-list stack-large stack-exception" aria-labelledby="list-heading" > the role attribute helps assistive technology explain what kind of element a
tag represents.
... finally, the labels and inputs in our list items have some attributes unique to jsx: <input id="todo-0" type="checkbox" defaultchecked={true} /> <label classname="todo-label" htmlfor="todo-0"> eat </label> the defaultchecked attribute in the <input/ >
tag tells react to check this checkbox initially.
Dynamic behavior in Svelte: working with variables and props - Learn web development
this is another example in which svelte takes advan
tage of valid javascript syntax and gives it a new purpose — in this case to to mean "re-run this code whenever any of the referenced values change".
...update the newtodo form's opening
tag like so: <form on:submit|preventdefault={addtodo}> the on:eventname directive supports adding modifiers to the dom event with the | character.
Creating our first Vue component - Learn web development
inside the <script>
tags, add a default exported object export default {}, which is your component object.
... at the top of your <script>
tag, add the following to import your todoitem component: import todoitem from './components/todoitem.vue'; inside your component object, add the components property, and inside it add your todoitem component to register it.
Styling Vue components with CSS - Learn web development
while adding these files directly to the reset.css stylesheet would work, we'll instead add them to the <style>
tags in app.vue to demonstrate how this can be used.
... </label> </h2> <input type="text" id="new-todo-input" name="new-todo" autocomplete="off" v-model.lazy.trim="label" class="input__lg" /> <button type="submit" class="btn btn__primary btn__lg"> add </button> </form> </template> let's also add the stack-large class to the <ul>
tag in our app.vue file.
Understanding client-side JavaScript frameworks - Learn web development
to do this, we will take advan
tage of vue's conditional rendering capabilities — namely v-if and v-else — to allow us to toggle between the existing todo item view and an edit view where you can update todo item labels.
...finally we will go over our app and see what modifications we have to make to fully take advan
tage of typescript features.
Lightweight themes
pick a category and
tags — select a category and enter some
tags that best describe your theme.
... keep in mind that a reviewer may reject your theme if it is obvious that your category and/or
tags are unrelated to your theme.
Adding a new CSS property
if this variable needs to be a
tagged union, use nsstylecoord.
... note that use of setcoord (if the resulting value needs to be a
tagged union) or setdiscrete is preferred when it's possible to use those functions.
Creating a Language Pack
mv -f "../../dist/l10n-s
tage/firefox-3.6b5pre.x-testing.mac.dmg" "../../dist/firefox-3.6b5pre.x-testing.mac.dmg" repackaging done now go to the dist directory to find your repackaged binary ready to be installed!
...$ ls -l total 100216 drwxr-xr-x 5 your_id your_status 170 27 lis 13:33 branding -rw-r--r--@ 1 your_id your_status 25248119 26 lis 14:34 firefox-3.6b5pre.en-us.mac.dmg -rw-r--r--@ 1 your_id your_status 26056973 27 lis 13:40 firefox-3.6b5pre.x-testing.mac.dmg drwxr-xr-x 3 your_id your_status 102 27 lis 13:38 install drwxr-xr-x 3 your_id your_status 102 27 lis 13:40 l10n-s
tage drwxr-xr-x 3 your_id your_status 102 27 lis 13:37 xpi-s
tage you can install your locale's binary just as you would an official one.
Makefile - variables
default=$(dist)/bin xpi_name if set final_target=$(dist)/xpi-s
tage/$(xpi_name) dist_subdir if set final_target will be $(dist)/bin/$(dist_subdir) [ metro build ] l10n.mk and localization variable description en_us_binary_url server url from which wget will ftp binaries.
... s
tagedist local s
taging directory for localization and packaging.
Eclipse CDT Manual Setup
e, you should be sure to turn off the following two settings in the workspace preferences (window > preferences, or eclipse > preferences) before creating a project in that workspace: in "general > workspace", disable "build automatically" in "c/c++ > indexer", disable "automatically update the index" turning off automatic indexing prevents the cpu intensive indexer from running at various s
tages during the steps below before we're ready.
...if indexing started automatically (see the progress tab), cancel it, since there seems to be a bug that makes it give bad results when it starts automatically at this s
tage.
Displaying Places information using views
it also contains the built-in places context menu and commands, which you may want to take advan
tage of in your own uses of the views.
...n these magic column id values and their corresponding nsinavhistoryresultnode properties: treecol id or anonid corresponding nsinavhistoryresultnode property title title url uri date time visitcount accesscount keyword * description * dateadded dateadded lastmodified lastmodified
tags
tags ** icon *keyword and description are looked up in the places database using the nsinavhistoryresultnode property itemid.
mozbrowsermetachange
the content of the meta
tag.
... example var browser = document.queryselector("iframe"); browser.addeventlistener("mozbrowsermetachange", function(event) { console.log("a meta
tag has been " + event.details.type + ".
Mozilla Content Localized in Your Language
all we ask is that you name this page according to this example, "mozilla content in spanish (es-mx)" and add your locale code
tag at the bottom.
... percen
tages how are percen
tages expressed in your language?
Localization content best practices
ideally, all strings landing in code should originate from approved ux wireframes, any copy review should be part of the initial s
tage of creating these wireframes.
... units another example is localizing percen
tages or units.
QA phase
enter the following command: $ hg log -l 1 you should see an output similar to the one below: changeset: 0:7c543e8f3a6a
tag: tip user: your name <email@example.com> date: mon nov 23 18:08:25 2009 +0100 summary: added search bar strings now compare the local repository on your machine with the remote hg repository by entering this command: $ hg outgoing http://hg.mozilla.org/l10n-central/x-testing the hg outgoing command compares the two repositories and lists all changesets that are pre...
...you can expect to see output like this: comparing with http://hg.mozilla.org/l10n-central/x-testing searching for changes changeset: 0:7c543e8f3a6a
tag: tip user: your name <email@example.com> date: mon nov 23 18:08:25 2009 +0100 summary: added search bar strings let's now push this changeset.
Release phase
here's how that's done: run this command to see recent commits in your local clone: $ hg log -l 3 you should a list of the most recent commits, similar to this one: changeset: 0:7c543e8f3a6a
tag: tip user: your name <email@example.com> date: mon nov 23 18:08:25 2009 +0100 summary: added search bar strings now run the hg outgoing command to compare the local repository on your machine with the remote repository on hg.mozilla.org.
...the output will look something like this: comparing with ssh://hg.mozilla.org/releases/l10n-central/x-testing searching for changes changeset: 0:7c543e8f3a6a
tag: tip user: your name <email@example.com> date: mon nov 23 18:08:25 2009 +0100 summary: added search bar strings make sure this output is accurate before continuing.
Localization quick start guide
these four s
tages make up tech side of the l10n program.
...to get the big picture, we suggest you start with the green bubble and move from s
tage to s
tage.
Localization technical reviews
the team can also wrap contributors with <em:contributor>
tags just after the moz_langpack_contributors section.
... as your work is approved, you'll see a green circle in the furthest column to the right as well as a measure of percen
tage in the middle column.
Setting up the infrastructure
on the s
taging server you can also choose to set up a cronjob that will run compile-mo.sh every n minutes.
... set up the s
taging server.
Mozilla MathML Project
updates status of each
tag result of the mathml 3 testsuite unofficial nightly builds with mathml patches applied (maintained by bill gianopoulos) more updates and archived content community view mozilla forums...
... demo of some mathml
tags: mfrac, mo, mtable, mspace, mmultiscripts, msqrt-mroot.
Mozilla Development Strategies
-name cvs | xargs -l -p10 cvs
tag -l my_base_
tag > & ../
taglog1.txt find .
...-name cvs | xargs -l -p10 cvs
tag -b -l my_branch_
tag > & ../
taglog2.txt from your windows box: cvs co -r my_branch_
tag mozilla/client.mak cd mozilla edit client.mak, putting my_branch_
tag in the right places.
BloatView
the delta numbers show the percen
tage change between runs for the amount of leaks and amount of bloat (negative numbers are better!).
...the percen
tage 99999.99% will show up indicating an "infinite" amount of leakage.
DMD
it also indicates what percen
tage of the total heap size and the unreported portion of the heap these blocks represent.
... at this s
tage you might wonder how dmd knows, in "dark matter" mode, which allocations have been reported and which haven't.
Power profiling overview
p0 is the state where the processor is operating at maximum frequency and vol
tage, and higher-numbered p-states operate at a lower frequency and vol
tage to reduce power consumption.
...the long measurement times required are a disadvan
tage, though.
A brief guide to Mozilla preferences
this method has the advan
tage of resetting preferences back to administrator defaults at every start-up.
...another disadvan
tage is that existing profiles will not be affected.
A guide to searching crash reports
crash reports always include a platform field (though it may be empty if something has gone wrong) and so the percen
tages add up to 100.
...for that reason, the percen
tages do not add up to 100.
L20n HTML Bindings
the l20n html bindings you can take advan
tage of html bindings to localize your html documents with l20n.
... <script type="application/l20n" src="../locales/strings.l20n"></script> note that you currently cannot use the manifest file and manually add resources via script
tags at the same time (bug 923670).
NSPR's Position On Abrupt Thread Termination
in the general course of events when programming with threads, it is very advan
tageous for a thread to have resources that it and only it knows about.
...but what percen
tage of c programs actually bother?
Optimizing Applications For NSPR
nspr does take advan
tage of macintosh' asynchronous i/o capability to perform scheduling during i/o.
... win-nt the win-nt port of nspr takes advan
tage of some of the features of nt that are not available in win-95, such as fibers and asynch i/o.
Cryptography functions
function name/documentation source code nss versions pk11_alg
tagtomechanism mxr 3.2 and later pk11_authenticate mxr 3.2 and later pk11_blockdata mxr 3.2 and later pk11_changepw mxr 3.2 and later pk11_checkuserpassword mxr 3.2 and later pk11_cipherop mxr 3.2 and later pk11_clonecontext mxr ...
... mxr 3.4 and later pk11_loadprivkey mxr 3.4 and later pk11_logoutall mxr 3.4 and later pk11_makekeapubkey mxr 3.2 and later pk11_mappbemechanismtocryptomechanism mxr 3.2 and later pk11_mapsignkeytype mxr 3.11 and later pk11_mechanismtoalg
tag mxr 3.4 and later pk11_mergetokens mxr 3.12 and later pk11_movesymkey mxr 3.9 and later pk11_needlogin mxr 3.2 and later pk11_needuserinit mxr 3.2 and later pk11_paramfromiv mxr 3.2 and later pk11_paramfromalgid mxr 3.
NSS_3.12_release_notes.html
distribution information the cvs
tag for the nss 3.12 release is nss_3_12_rtm.
... pk11pub.h) pk11_generatekeypairwithopflags (see pk11pub.h) pk11_getpbecryptomechanism (see pk11pub.h) pk11_isremovable (see pk11pub.h) pk11_mergetokens (see pk11pub.h) pk11_writerawattribute (see pk11pub.h) seckey_ecparamstobasepointorderlen (see keyhi.h) seckey_ecparamstokeysize (see keyhi.h) secmod_deletemoduleex (see secmod.h) sec_getregisteredhttpclient (see ocsp.h) sec_pkcs5isalgorithmpbealg
tag (see secpkcs5.h) vfy_createcontextdirect (see cryptohi.h) vfy_createcontextwithalgorithmid (see cryptohi.h) vfy_verifydatadirect (see cryptohi.h) vfy_verifydatawithalgorithmid (see cryptohi.h) vfy_verifydigestdirect (see cryptohi.h) vfy_verifydigestwithalgorithmid (see cryptohi.h) new macros for camellia support (see blapit.h): nss_camellia nss_camellia_cbc camellia_block_size new macros for...
NSS 3.14 release notes
the cvs
tag is nss_3_14_rtm.
...ts ckm_aes_ctr ckm_aes_gcm (see warnings against using c_encryptupdate/c_decryptupdate above) ckm_sha224_key_derivation ckm_sha256_key_derivation ckm_sha384_key_derivation ckm_sha512_key_derivation changes in nss 3.14 bug 333601 - performance enhancements for intel macs when building for intel macs, nss will now take advan
tage of optimized assembly code for common operations.
NSS 3.16.2 release notes
distribution information the hg
tag is nss_3_16_2_rtm.
...it is the same as cert_addextension except that the oid is represented by a secitem instead of a secoid
tag.
NSS 3.43 release notes
distribution information the hg
tag is nss_3_43_rtm.
... new in nss 3.43 new functionality new functions in sechash.h hash_gethashoid
tagbyhashtype - convert type hash_hashtype to type secoid
tag in sslexp.h ssl_sendcertificaterequest - allow server to request post-handshake client authentication.
NSS 3.45 release notes
the nss team would like to recognize first-time contributors: bastien abadie christopher patton jeremie courreges-anglas marcus burghardt michael shigorin tomas mraz distribution information the hg
tag is nss_3_45_rtm.
...1-v1_5 algorithms in tls 1.3 (cve-2019-11727) bug 1227090 - fix a potential divide-by-zero in makepfromqandseed from lib/freebl/pqg.c (static analysis) bug 1227096 - fix a potential divide-by-zero in pqg_verifyparams from lib/freebl/pqg.c (static analysis) bug 1509432 - de-duplicate code between mp_set_long and mp_set_ulong bug 1515011 - fix a mistake with chacha20-poly1305 test code where
tags could be faked.
NSS 3.55 release notes
the nss team would like to recognize first-time contributors: danh distribution information the hg
tag is nss_3_55_rtm.
... bug 1636771 (cve-2020-12403) - explicitly disable multi-part chacha20 (which was not functioning correctly) and more strictly enforce
tag length.
nss tech note4
*/ else /* the extension is not critical */ } /* value attribute of the extension */ /* secitem ext_value has type (secitemtype), data (unsigned char *) and len (unsigned int) fields - the application interprets these */ secoid
tag oid
tag = secoid_findoid
tag(ext_oid); switch (oid
tag) { case a_
tag_that_app_recognizes: .....
...em value as an integer if secitem *item->len <=4, then int value = der_getinteger(item); interpreting a secitem value as a string use string copy functions to copy item->len bytes from item->data and null terminate explicitly some higher level extension functions get a specific extension from the list of extensions, given the extension
tag secstatus cert_findcertextension (certcertificate *cert, int
tag, secitem *value); get a specific extension from the issuer's cert secstatus cert_findissuercertextension (certcertificate *cert, int
tag, secitem *value); get the value of an extension with the given oid secstatus cert_findcertextensionbyoid (certcertificate *cert, secitem *o...
NSS tools : cmsutil
the most closely-related project is dog
tag pki, with a project wiki at [1]http://pki.fedoraproject.org/wiki/.
...mailing lists: pki-devel@redhat.com and pki-users@redhat.com irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape and now with red hat.
NSS tools : crlutil
the most closely-related project is dog
tag pki, with a project wiki at [1]http://pki.fedoraproject.org/wiki/.
... mailing lists: pki-devel@redhat.com and pki-users@redhat.com irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape, red hat, sun, oracle, mozilla, and google.
NSS tools : modutil
o the metainfo
tag for this is pkcs11_install_script.
... mailing lists: https://lists.mozilla.org/listinfo/dev-tech-crypto irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape, red hat, sun, oracle, mozilla, and google.
NSS tools : ssltab
the most closely-related project is dog
tag pki, with a project wiki at [2]http://pki.fedoraproject.org/wiki/.
...mailing lists: pki-devel@redhat.com and pki-users@redhat.com irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape and now with red hat and sun.
NSS tools : ssltap
the most closely-related project is dog
tag pki, with a project wiki at [2]http://pki.fedoraproject.org/wiki/.
...mailing lists: pki-devel@redhat.com and pki-users@redhat.com irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape and now with red hat and sun.
gtstd.html
your ssl clients), or use professional grade ca software, such as red hat's dog
tag certificate system, to set up and operate your own ca and issue your own certificates.
... setting up the client db and certificate setting up the client certificate database involves three s
tages: create a new certificate database in the client_db directory.
NSS tools : cmsutil
the most closely-related project is dog
tag pki, with a project wiki at [1]http://pki.fedoraproject.org/wiki/.
... mailing lists: pki-devel@redhat.com and pki-users@redhat.com irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape and now with red hat.
NSS tools : crlutil
the most closely-related project is dog
tag pki, with a project wiki at [1]http://pki.fedoraproject.org/wiki/.
... mailing lists: pki-devel@redhat.com and pki-users@redhat.com irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape and now with red hat.
NSS tools : modutil
o the metainfo
tag for this is pkcs11_install_script.
... mailing lists: https://lists.mozilla.org/listinfo/dev-tech-crypto irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape, red hat, and sun.
NSS tools : ssltap
the most closely-related project is dog
tag pki, with a project wiki at [2]http://pki.fedoraproject.org/wiki/.
... mailing lists: pki-devel@redhat.com and pki-users@redhat.com irc: freenode at #dog
tag-pki authors the nss tools were written and maintained by developers with netscape and now with red hat and sun.
64-bit Compatibility
for example, consider this code: #define pointer_
tagbits 3 static inline uintptr_t unmaskpointer(uintptr_t v) { return v & ~pointer_
tagbits; } the value 3 will be inverted to 0xfffffffc, then zero-extended to 0x00000000fffffffc - a subtle and nasty bug, assuming it is unintended.
... the best way to fix this is to make types explicit, such as: const uintptr_t pointer_
tagbits = 3 or by using a cast inside the macro.
JS_SetOptions
mxr id search for jsoption_atline jsoption_xml obsolete since jsapi 15 ecmascript for xml (e4x) support: parse <!-- --> as a token, not backward compatible with the comment-hiding hack used in html script
tags.
... mxr id search for jsoption_allow_xml jsoption_moar_xml added in spidermonkey 15 ecmascript for xml (e4x) support: parse <!-- --> as a token, not backward compatible with the comment-hiding hack used in html script
tags.
WebReplayRoadmap
replay was an early-s
tage experiment and is no longer part of firefox.
... dynamic analysis features an important but as-yet unexploited advan
tage of being able to exactly replay a web replay recording is that the recording can be analyzed without overhead affecting the user's experience.
The Places database
bookmarks tables moz_bookmarks: this table contains bookmarks, folders, separators and
tags, and defines the hierarchy.
...bookmarks, folders and separators are descendants of the bookmarks root, while
tags and
tagged uris are descendants of the
tag root.
An Overview of XPCOM
modular, component-based programming makes software easier to develop and maintain and has some well-known advan
tages: benefit description reuse modular code can be reused in other applications and other contexts.
...this kind of "future-proofing" is a key advan
tage that comes along with deriving from nsisupports.
Starting WebLock
the existing code would need to change very little for a weblock implementation to take advan
tage of files that do not actually exist on disk.
...to do this, you can take advan
tage of the nsembedcstring described in string classes in xpcom.
IAccessibleHyperlink
this interface could also be applied to other kinds of objects with multiple actions such as "smart
tags" which are objects, typically strings, which have multiple actions such as "activate uri", "bookmark uri", end so on.
... an interesting use case is an image map where each area is associated with multiple actions, for example an image map of smart
tags.
nsIAppShellService
can be overridden by the "width"
tag in the xul.
...can be overridden by the "height"
tag in the xul.
nsIBlocklistService
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 29 (firefox 29 / thunderbird 29 / seamonkey 2.26) method overview unsigned long getaddonblockliststate(in jsval addon, [optional] in astring appversion, [optional] in astring toolkitversion); unsigned long getpluginblockliststate(in nsiplugin
tag plugin, [optional] in astring appversion, [optional] in astring toolkitversion); boolean isaddonblocklisted(in jsval addon, [optional] in astring appversion, [optional] in astring toolkitversion); constants constant value description state_not_blocked 0 state_softblocked 1 state_blocked 2 state_outdated 3 ...
...unsigned long getpluginblockliststate( in nsiplugin
tag plugin, in astring appversion, optional in astring toolkitversion optional ); parameters plugin the plugin to get the state for.
nsIEditorMailSupport
ion, in boolean ainserthtml); nsidomnode insertasquotation(in astring aquotedtext); void inserttextwithquotations(in domstring astringtoinsert); void pasteascitedquotation(in astring acitation, in long aselectiontype); void pasteasquotation(in long aselectiontype); void rewrap(in boolean arespectnewlines); void stripcites(); methods getembeddedobjects() get a list of img and object
tags in the current document.
...return value an nsisupportsarray containing the img and object
tags of the current document.
nsISound
please use the html 5 <audio>
tag instead.
...please use the html 5 <audio>
tag instead.
nsITreeBoxObject
it is dynamically settable, either using a view attribute on the tree
tag or by setting this attribute to a new value.
... this is a node that corresponds to the treechildren
tag.
nsIWebBrowserPersist
persist_flags_replace_existing_files 32 replace existing files on the disk (use with due diligence!) persist_flags_no_base_
tag_modifications 64 don't modify or add base
tags.
... encode_flags_body_only 8 output only the body section, no html
tags.
Address Book examples
* the onshow method should take the input fields in the document, * and render the requested photo in the img
tag with id * atargetid.
... ldap autocomplete ldap autocomplete still uses the xpfe interfaces, it is planned (bug 452232) to move this over to the toolkit interfaces at some s
tage.
Building a Thunderbird extension 5: XUL
when parsing our overlay file, the xul engine will take all child elements of the <statusbar>
tag and merge them with the original xul document's <statusbar>
tag.
... we have also added a <script>
tag that contains a reference to the javascript file overlay.js.
Standard OS Libraries
standard libraries offer the advan
tage of not having to ship anything.
...ource://gre/modules/ctypes.jsm"); var lib = ctypes.open("user32.dll"); /* note: if you go to getcursorpos page on msdn, it says first argument is of structure point, so lets create that structure, * the link here shows that that x and y are type long which is ctypes.long */ // https://msdn.microsoft.com/en-us/library/windows/desktop/dd162805%28v=vs.85%29.aspx var point = new ctypes.structtype("
tagpoint", [ { "x": ctypes.long }, { "y": ctypes.long } ]); /* declare the signature of the function we are going to call */ var getcursorpos = lib.declare('getcursorpos', ctypes.winapi_abi, ctypes.bool, point.ptr ); /* use it like this */ var point = point(); var ret = getcursorpos(point.address()); components.utils.reporterror(ret); components.utils.reporterror(point); lib.close...
Memory - Plugins
because plug-ins share memory space with the browser, they can take advan
tage of any customized memory-allocation scheme the browser has.
...using npn_memalloc offers several advan
tages to the plug-in.
DOM Inspector FAQ - Firefox Developer Tools
the dom inspector's search uses javascript regexps to find nodes for
tag and attribute searches, and will do partial matching.
... for example, if you search nodes'
tags for "tab", you'll get matches for tabpanel and tabbox as well as tab.
Index - Firefox Developer Tools
found 158 pages: # page
tags and summary 1 firefox developer tools developing mozilla, guide, tools, web development, web development:tools, l10n:priority firefox developer tools is a set of web developer tools built into firefox.
... 89 how to to open the performance tools: 90 scenarios needscontent performance scenarios 91 animating css properties css animation, developer tools, web performance with css animations you specify a number of keyframes, each of which uses css to define the appearance of the element at a particular s
tage of the animation.
Network request details - Firefox Developer Tools
timings tab the timings tab provides information about how long each s
tage of a network request took, with a more detailed, annotated, view of the timeline bar, so it is easy to locate performance bottlenecks.
... request timing the request timing section breaks a network request down into the following subset of the s
tages defined in the http archive specification: name description blocked time spent in a queue waiting for a network connection.
Call Tree - Firefox Developer Tools
total cost is that number as a percen
tage of the total number of samples in the selected portion of the recording.
... self cost is calculated from self time as a percen
tage of the total number of samples in the selected portion of the recording.
Shader Editor - Firefox Developer Tools
with webgl you provide 2 programs called shaders which are called at the appropriate s
tages of the opengl rendering pipeline: a vertex shader, which computes the clip space coordinates of each vertex to be drawn, and a fragment shader, which determines the color for each pixel to be drawn.
...in webgl they can be included in a page in several ways: as text hardcoded in javascript strings, as separate files included using <script>
tags, or retrieved from the server as plain text.
Background Tasks API - Web APIs
we use this to do the math to present progress as a precen
tage of total work to do.
... progressbarelem is the <progress> element showing the percen
tage of the tasks processed so far.
Optimizing canvas - Web APIs
<div id="s
tage"> <canvas id="ui-layer" width="480" height="320"></canvas> <canvas id="game-layer" width="480" height="320"></canvas> <canvas id="background-layer" width="480" height="320"></canvas> </div> <style> #s
tage { width: 480px; height: 320px; position: relative; border: 2px solid black; } canvas { position: absolute; } #ui-layer { z-index: 3; } #game-layer { z-index: 2...
... var scalex = window.innerwidth / canvas.width; var scaley = window.innerheight / canvas.height; var scaletofit = math.min(scalex, scaley); var scaletocover = math.max(scalex, scaley); s
tage.style.transformorigin = '0 0'; //scale from top left s
tage.style.transform = 'scale(' + scaletofit + ')'; turn off transparency if your application uses canvas and doesn’t need a transparent backdrop, set the alpha option to false when creating a drawing context with htmlcanvaselement.getcontext().
Example - Web APIs
<html> <head> <title>my document</title> <script type="text/javascript"> function change() { // document.getelementsby
tagname("h1") returns a nodelist of the h1 // elements in the document, and the first is number 0: var header = document.getelementsby
tagname("h1").item(0); // the firstchild of the header is a text node: header.firstchild.data = "a dynamic document"; // now the header is "a dynamic document".
... var para = document.getelementsby
tagname("p").item(0); para.firstchild.data = "this is the first paragraph."; // create a new text node for the second paragraph var newtext = document.createtextnode("this is the second paragraph."); // create a new element to be the second paragraph var newelement = document.createelement("p"); // put the text in the paragraph newelement.appendchild(newtext); // and put the paragraph on the end of the document by appending it to // the body (which is the parent of para) para.parentnode.appendchild(newelement); } </script> </head> <body> <input type="button" value="change this document." onclick="change()"> <h1>header</h1> <p>paragraph</p> </body> </head> ...
Using the W3C DOM Level 1 Core - Web APIs
the following script would do the job: html content <body> <input type="button" value="change this document." onclick="change()"> <h2>header</h2> <p>paragraph</p> </body> javascript content function change() { // document.getelementsby
tagname("h2") returns a nodelist of the <h2> // elements in the document, and the first is number 0: var header = document.getelementsby
tagname("h2").item(0); // the firstchild of the header is a text node: header.firstchild.data = "a dynamic document"; // now the header is "a dynamic document".
... var para = document.getelementsby
tagname("p").item(0); para.firstchild.data = "this is the first paragraph."; // create a new text node for the second paragraph var newtext = document.createtextnode("this is the second paragraph."); // create a new element to be the second paragraph var newelement = document.createelement("p"); // put the text in the paragraph newelement.appendchild(newtext); // and put the paragraph on the end of the document by appending it to // the body (which is the parent of para) para.parentnode.appendchild(newelement); } you can see this script as a complete example.
EventTarget.addEventListener() - Web APIs
however, that same listener may be triggered during a later s
tage of event flow, such as the bubbling phase.
... memory issues const els = document.getelementsby
tagname('*'); // case 1 for(let i=0 ; i < els.length; i++){ els[i].addeventlistener("click", function(e){/*do something*/}, false); } // case 2 function processevent(e){ /* do something */ } for(let i=0 ; i < els.length; i++){ els[i].addeventlistener("click", processevent, false); } in the first case above, a new (anonymous) handler function is created with each iteration of the loop.
Using files from web applications - Web APIs
function fileupload(img, file) { const reader = new filereader(); this.ctrl = createthrobber(img); const xhr = new xmlhttprequest(); this.xhr = xhr; const self = this; this.xhr.upload.addeventlistener("progress", function(e) { if (e.lengthcomputable) { const percen
tage = math.round((e.loaded * 100) / e.total); self.ctrl.update(percen
tage); } }, false); xhr.upload.addeventlistener("load", function(e){ self.ctrl.update(100); const canvas = self.ctrl.ctx.canvas; canvas.parentnode.removechild(canvas); }, false); xhr.open("post", "http://demos.hacks.mozilla.org/paul/demos/resources/webservices/devnull...
... before actually transferring the data, several preparatory steps are taken: the xmlhttprequest's upload progress listener is set to update the throbber with new percen
tage information so that as the upload progresses the throbber will be updated based on the latest information.
HTMLImageElement.sizes - Web APIs
it may be specified using font-relative units (such as em or ex), absolute units (such as px or cm), or the vw unit, which lets you specify the width as a percen
tage of the viewport width (1vw being 1% of the viewport width).
... note: the source size value must not be specified as a percen
tage of the container size; that is, lengths such as 50% or 100% are not allowed, as there would be uncertainty as to what the specified value is a percen
tage of.
HTMLMarqueeElement - Web APIs
htmlmarqueeelement.height sets the height in pixels or percen
tage value.
... htmlmarqueeelement.width sets the width in pixels or percen
tage value.
HTMLScriptElement - Web APIs
these algorithms describe the core ideas, but they rely on the parsing rules for <script> start and end
tags in html, in foreign content, and in xml; the rules for the document.write() method; the handling of scripting; and so on.
...script = document.createelement("script"); newscript.onerror = loaderror; if (onloadfunction) { newscript.onload = onloadfunction; } document.currentscript.parentnode.insertbefore(newscript, document.currentscript); newscript.src = url; } this next function, instead of prepending the new scripts immediately before the document.currentscript element, appends them as children of the <head>
tag.
IntersectionObserver.IntersectionObserver() - Web APIs
syntax var observer = new intersectionobserver(callback[, options]); parameters callback a function which is called when the percen
tage of the target element is visible crosses a threshold.
... the callback receives as input two parameters: entries an array of intersectionobserverentry objects, each representing one threshold which was crossed, either becoming more or less visible than the percen
tage specified by that threshold.
NDEFReader.onerror - Web APIs
the onerror property of ndefreader interface of the web nfc api is called whenever an error occurs during reading of nfc
tags, e.g.
... when
tags leave the reader's magnetic induction field.
NDEFRecord.lang - Web APIs
the lang property ofthe ndefrecord interface is usvstring containing the language
tag of the record contents, if it is a vailable.
... the record might be missing a language
tag, for example, if the recorded information is not locale-specific.
NDEFRecord - Web APIs
nfc
tags supporting ndef.
... ndefrecord.lang read only represents a language
tag of the content, if it was encoded.
NDEFWriter - Web APIs
nfc
tags supporting ndef, when these devices are within the reader's magnetic induction field.
... methods ndefwriter.write() called to write ndef message to a
tag (after ensuring hardware and ua compatibility and obtaining permission from the user) or get an error explaining why feature is not available.
Node.baseURI - Web APIs
details the base url of a document the base url of a document defaults to the document's address (as displayed by the browser and available in window.location), but it can be changed: when an html <base>
tag is found in the document when the document is new (created dynamically) see the base urls section of the html living standard for details.
...note that obtaining the base url for a document may return different urls over time if the <base>
tags or the document's location change.
Node.firstChild - Web APIs
<p id="para-01"> <span>first span</span> </p> <script> var p01 = document.getelementbyid('para-01'); console.log(p01.firstchild.nodename); </script> in the above, the console will show '#text' because a text node is inserted to maintain the whitespace between the end of the opening <p> and <span>
tags.
... another #text node is inserted between the closing </span> and </p>
tags.
Node.nextSibling - Web APIs
script **************************************************/ in the above example, #text nodes are inserted in the dom where whitespace occurs between
tags (i.e.
... after the closing
tag of an element and before the opening
tag of the next).
Node - Web APIs
an htmlelement will contain the name of the corresponding
tag, like 'audio' for an htmlaudioelement, a text node will have the '#text' string, or a document node will have the '#document' string.
... sample usage the following example prints the textcontent properties of each <span>
tag in a <div> element named "box": <div id="box"> <span>foo</span> <span>bar</span> <span>baz</span> </div> const box = document.getelementbyid("box") eachnode(box, function(node) { if (null != node.textcontent) { console.log(node.textcontent) } }) the above will result in the following strings printing to the user's console: "\n\t", "foo", "\n\t", "bar", "\n\t", "baz" note: whit...
Notification.Notification() - Web APIs
it defaults to auto, which just adopts the browser's language setting behavior, but you can override that behaviour by setting values of ltr and rtl (although most browsers seem to ignore these settings.) lang: the notification's language, as specified using a domstring representing a bcp 47 language
tag.
...
tag: a domstring representing an identifying
tag for the notification.
Notification.lang - Web APIs
the language itself is specified using a domstring representing a bcp 47 language
tag.
... syntax var language = notification.lang; value a domstring specifying the language
tag.
NotificationEvent.notification - Web APIs
the notification provides read-only access to many properties that were set at the instantiation time of the notification such as
tag and data attributes that allow you to store information for defered use in the notificationclick event.
... console.log('notification
tag:', event.notification.
tag); console.log('notification data:', event.notification.data); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.ope...
RTCDtlsTransport - Web APIs
the rtcdtlstransport interface provides access to information about the da
tagram transport layer security (dtls) transport over which a rtcpeerconnection's rtp and rtcp packets are sent and received by its rtcrtpsender and rtcrtpreceiver objects.
...iddle" alignment-baseline="middle">rtcdtlstransport</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} propertiesicetransport read only the read-only rtcdtlstransport property icetransport contains a reference to the underlying rtcicetransport.state read only the state read-only property of the rtcdtlstransport interface provides information which describes a da
tagram transport layer security (dtls) transport state.methodsthis interface has no methods.
Range.cloneContents() - Web APIs
partially selected nodes include the parent
tags necessary to make the document fragment valid.
... syntax documentfragment = range.clonecontents(); example range = document.createrange(); range.selectnode(document.getelementsby
tagname("div").item(0)); documentfragment = range.clonecontents(); document.body.appendchild(documentfragment); specifications specification status comment domthe definition of 'range.clonecontents()' in that specification.
Range.createContextualFragment() - Web APIs
syntax documentfragment = range.createcontextualfragment(
tagstring) parameters
tagstring text that contains text and
tags to be converted to a document fragment.
... example var
tagstring = "<div>i am a div node</div>"; var range = document.createrange(); // make the parent of the first div in the document becomes the context node range.selectnode(document.getelementsby
tagname("div").item(0)); var documentfragment = range.createcontextualfragment(
tagstring); document.body.appendchild(documentfragment); specification specification status comment dom parsing and serializationthe definition of 'range.createcontextualfragment()' in that specification.
Range.extractContents() - Web APIs
partially selected nodes are cloned to include the parent
tags necessary to make the document fragment valid.
... syntax documentfragment = range.extractcontents(); example basic example var range = document.createrange(); range.selectnode(document.getelementsby
tagname("div").item(0)); var documentfragment = range.extractcontents(); document.body.appendchild(documentfragment); moving items between containers this example lets you move items between two containers.
ResizeObserverEntry.contentBoxSize - Web APIs
this example includes a green box, sized as a percen
tage of the viewport size.
...we could just implement this using border-radius with a percen
tage, but that quickly leads to ugly-looking elliptical corners; this solution gives you nice square corners that scale with the box size.
ResizeObserverEntry.target - Web APIs
this example includes a green box, sized as a percen
tage of the viewport size.
...we could just implement this using border-radius with a percen
tage, but that quickly leads to ugly-looking elliptical corners; this solution gives you nice square corners that scale with the box size.
Resize Observer API - Web APIs
examples you find a couple of simple examples on our github repo: resize-observer-border-radius.html (see source): a simple example with a green box, sized as a percen
tage of the viewport size.
...we could just implement this using border-radius with a percen
tage, but that quickly leads to ugly-looking elliptical corners, whereas the above solution gives you nice square corners that scale with the box size.
Resource Timing API - Web APIs
resource loading timestamps an application can get timestamps for the various s
tages used to load a resource.
...the next s
tages are connectstart and connectend which are the timestamps immediately before and after connecting to the server, respectively.
SVGLength - Web APIs
unsigned short unittype, in float valueinspecifiedunits) void converttospecifiedunits(in unsigned short unittype) properties readonly unsigned short unittype float value float valueinspecifiedunits domstring valueasstring constants svg_lengthtype_unknown = 0 svg_lengthtype_number = 1 svg_lengthtype_percen
tage = 2 svg_lengthtype_ems = 3 svg_lengthtype_exs = 4 svg_lengthtype_px = 5 svg_lengthtype_cm = 6 svg_lengthtype_mm = 7 svg_lengthtype_in = 8 svg_lengthtype_pt = 9 svg_lengthtype_pc = 10 normative document svg 1.1 (2nd edition) example <svg height="200" onload="start();" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg">...
... svg_lengthtype_percen
tage 2 a percen
tage value was specified.
ServiceWorkerGlobalScope: notificationclick event - Web APIs
bubbles no cancelable no interface notificationevent event handler onnotificationclick examples you can use the notificationclick event in an addeventlistener method: self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.
tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow...
...) return clients.openwindow('/'); })); }); or use the onnotificationclick event handler property: self.onnotificationclick = function(event) { console.log('on notification click: ', event.notification.
tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }; specifications specification status notifications apithe definition of 'onnotificationclick' in that specific...
SpeechSynthesisUtterance.rate - Web APIs
other values act as a percen
tage relative to this, so for example 2 is twice as fast, 0.5 is half as fast, etc.
...if ssml is used, this value will be overridden by prosody
tags in the markup.
Using readable streams - Web APIs
it has a number of advan
tages, and what is really nice about it is that browsers have recently added the ability to consume a fetch response as a readable stream.
... this functionality is at a very experimental s
tage and is subject to change, so we have no explored it too deeply as of yet.
Multi-touch interaction - Web APIs
false : true; } function log(name, ev, printtargetids) { var o = document.getelementsby
tagname('output')[0]; var s = name + ": touches = " + ev.touches.length + " ; targettouches = " + ev.targettouches.length + " ; changedtouches = " + ev.changedtouches.length; o.innerhtml += s + " "; if (printtargetids) { s = ""; for (var i=0; i < ev.targettouches.length; i++) { s += "...
... id = " + ev.targettouches[i].identifier + " "; } o.innerhtml += s; } } function clearlog(event) { var o = document.getelementsby
tagname('output')[0]; o.innerhtml = ""; } related topics and resources pointer events ...
Basic scissoring - Web APIs
scissoring is a distinct s
tage in the webgl/opengl graphics pipeline (it occurs after color clearing, but before color masking).
... the scissoring s
tage of the pipeline is disabled by default.
WebGL best practices - Web APIs
take advan
tage of universally supported webgl 1 extensions these webgl 1 extensions are universally supported: angle_instanced_arrays ext_blend_minmax oes_element_index_uint oes_standard_derivatives oes_vertex_array_object webgl_debug_renderer_info webgl_lose_context (see also: https://jdashg.github.io/misc/webgl/webgl-feature-levels.html) consider polyfilling these into webglrenderingcontext, lik...
...mipmaps are cheap on memory (only 30% overhead) while providing often-large performance advan
tages when textures are "zoomed out" or generally downscaled in the distance in 3d, or even for cube-maps!
Taking still photos with WebRTC - Web APIs
this canvas is kept hidden by styling the canvas with display:none, to avoid cluttering up the screen — the user does not need to see this intermediate s
tage.
... note: this takes advan
tage of the fact that the htmlvideoelement interface looks like an htmlimageelement to any api that accepts an htmlimageelement as a parameter, with the video's current frame presented as the image's contents.
Using WebRTC data channels - Web APIs
since all webrtc components are required to use encryption, any data transmitted on an rtcdatachannel is automatically secured using da
tagram transport layer security (dtls).
...in the case of rtcdatachannel, the encryption used is da
tagram transport layer security (dtls), which is based on transport layer security (tls).
Rendering and the WebXR frame animation callback - Web APIs
the advan
tage to xr is that not only can we use the classic monocular techniques to simulate 3d graphics (perspective, size, and simulated parallax), but we can also simulate binocular vision—that is, vision using two eyes—by rendering the scene twice for each frame of animation—once for each eye.
... optimizing by rendering in object-first order an advan
tage of webxr's approach of using a single webgl framebuffer to contain both the left and right eye's views in a single framebuffer makes it possible to substantially improve rendering performance by rearranging the order in which things are done.
Starting up and shutting down a WebXR session - Web APIs
here we define a getxr() function, which returns the xrsystem object after optionally installing the polyfill, assuming that the polyfill has been included or loaded using a prior <script>
tag.
...at this point, the setup process is complete and we've entered the rendering s
tage of our application.
Using the Web Animations API - Web APIs
however, unlike css, the web animations api doesn’t need to explicitly be told the percen
tages along the animation for each key to appear at.
...if you're using the api and want to share, try using the #waapi hash
tag.
ARIA: textbox role - Accessibility
<!-- simple text input field --> <div id="txtboxlabel">enter your five-digit zipcode</div> <div role="textbox" contenteditable="true" aria-placeholder="5-digit zipcode" aria-labelledby="txtboxlabel"></div> <!-- multi-line text area --> <div id="txtboxmultilinelabel">enter the
tags for the article</div> <div role="textbox" contenteditable="true" aria-multiline="true" aria-labelledby="txtboxmultilinelabel" aria-required="true"></div> semantic elements are more concise and require no javascript to support textbox features.
... <label for="txtbox">enter your five-digit zipcode</label> <input type="text" placeholder="5-digit zipcode" id="txtbox"/> <!-- multi-line text area --> <label for="txtboxmultiline">enter the
tags for the article</label> <textarea id="txtboxmultiline" required></textarea> where a text field is read-only, indicated this by setting aria-readonly="true" on the element.
-webkit-mask-box-image - CSS: Cascading Style Sheets
initial value: none applies to: all elements inherited: no media: visual computed value: as specified syntax -webkit-mask-box-image: <mask-box-image> [<top> <right> <bottom> <left> <x-repeat> <y-repeat>] where: <mask-box-image> <uri> | <gradient> | none <top> <right> <bottom> <left> <length> | <percen
tage> <x-repeat> <y-repeat> repeat | stretch | round | space values <uri> the location of the image resource to be used as a mask image.
... <percen
tage> the mask image's offset has a percen
tage value relative to the border box's corresponding dimension (width or height).
width - CSS: Cascading Style Sheets
<percen
tage> a percen
tage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively.
... formal definition related at-rule@viewportinitial valueas each of the properties of the shorthand:min-width: automax-width: nonepercen
tagesas each of the properties of the shorthand:min-width: refer to the width of the containing blockmax-width: refer to the width of the containing blockcomputed valueas each of the properties of the shorthand:min-width: the percen
tage as specified or the absolute lengthmax-width: the percen
tage as specified or the absolute length or none formal syntax <viewport-length>{1,2}where <viewport-length> = auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples setting minimum and maximum width @viewport { width: 500px; } specifications specification status comment css devic...
@viewport - CSS: Cascading Style Sheets
lengths specified as percen
tages are calculated relative to the initial viewport, which is the viewport before any user agent or authored styles have had an opportunity to adjust the viewport.
... @viewport { width: 100vw; /*sets the width of the actual viewport to the device width*/ } note: the use of <meta name="viewport">
tag overrides @viewport syntax the at-rule contains a set of nested descriptors in a css block that is delimited by curly braces.
Using CSS animations - CSS: Cascading Style Sheets
there are three key advan
tages to css animations over traditional script-driven animation techniques: they’re easy to use for simple animations; you can create them without even having to know javascript.
... since the timing of the animation is defined in the css style that configures the animation, keyframes use a <percen
tage> to indicate the time during the animation sequence at which they take place.
Styling Columns - CSS: Cascading Style Sheets
the allowed value for column-gap is a <length-percen
tage>, this means percen
tages are allowed.
... percen
tage values for column-gap are calculated as a percen
tage of the width of the multicol container.
Mastering Wrapping of Flex Items - CSS: Cascading Style Sheets
if you assign percen
tage widths to flex items — either as flex-basis or by adding a width to the item itself leaving the value of flex-basis as auto — you can get the impression of a two dimensional layout.
... here i have set flex-grow and flex-shrink to 0 to make inflexible flex items and am then controlling flexibility using percen
tages, just like we used to do in float layouts.
Basic Shapes - CSS: Cascading Style Sheets
this argument can be a length or percen
tage but can also be one of the keywords closest-side or farthest-side.
... our circle therefore accepts one radius value, which may be a length, a percen
tage or the closest-side or farthest side keyword then optionally the keyword at followed by a position value.
CSS data types - CSS: Cascading Style Sheets
index the data types defined by the set of css specifications include the following: <angle> <angle-percen
tage> <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-percen
tage> <gradient> <ident> <image> <integer> <length> <length-percen
tage> <number> <number-percen
tage> <percen
tage> <pos...
...ition> <quote> <ratio> <resolution> <shape-box> <shape-radius> <string> <time> <time-percen
tage> <timing-function> <toggle-value> <transform-function> <type-or-unit> <url> <url-modifier> <zero> specifications specification status comment css values and units module level 4 editor's draft css values and units module level 3 candidate recommendation initial definition.
Linear-gradient Generator - CSS: Cascading Style Sheets
</div> <div class="section"> <div class="title"> active axis </div> <div class="property"> <div class="name"> axis unit </div> <div class="ui-dropdown" data-topic="axis-unit" data-selected="1"> <div data-value='px'> pixels (px) </div> <div data-value='%'> percen
tage (%) </div> </div> <div id="delete-axis" class="button"> delete line </div> </div> <div class="property"> <div class="ui-slider" data-topic="axis-rotation" data-info="rotation" data-min="-180" data-value="0" data-max="180"></div> </div> </div> ...
...{ lineargradienttool.init(); }); var lineargradienttool = (function lineargradienttool() { 'use strict'; var radian = 180 / math.pi; var inv_radian = math.pi / 180; var units = {'%': 1, 'px' : 0}; /*========== dom methods ==========*/ function getelembyid(id) { return document.getelementbyid(id); } function allowdropevent(e) { e.preventdefault(); } function createclasselement(
tag, classname, parent) { var elem = document.createelement(
tag); elem.classname = classname; if (parent) parent.appendchild(elem); return elem; }; function trackmouse(elem, callback, startfunc, endfunc) { startfunc = startfunc || function(e) {}; endfunc = endfunc || function(e) {}; elem.addeventlistener('mousedown', function(e) { e.preventdefault(); startfunc(e); document...
Viewport concepts - CSS: Cascading Style Sheets
to tell a mobile browser to use the viewport width instead of the default 980px as the width of the screen, developers can include a viewport meta
tag, like the following: <meta name="viewport" content="width=device-width"> the width property controls the size of the viewport.
... see also @viewport css at-rule visual viewport api <meta>, specifically <meta name="viewport"> using the viewport meta
tag to control layout on mobile browsers ...
border-block-start-width - CSS: Cascading Style Sheets
initial valuemediumapplies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueabsolute length; 0 if the border style is none or hiddenanimation typea length values <'border-width'> the width of the border.
... formal definition initial valuemediumapplies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueabsolute length; 0 if the border style is none or hiddenanimation typea length formal syntax <'border-top-width'> examples border width with vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 1px solid blue; border-block-start-width: 5px; } results specifications specification status comment css logical properties and values level 1the definition of 'border-block-start-width' in that specification.
border-image - CSS: Cascading Style Sheets
it also applies to ::first-letter.inheritednopercen
tagesas each of the properties of the shorthand:border-image-slice: refer to the size of the border imageborder-image-width: refer to the width or height of the border image areacomputed valueas each of the properties of the shorthand:border-image-outset: as specified, but with relative lengths converted into absolute lengthsborder-image-repeat: as specifiedborder-image-slice: one to four percen
tage(...
...it also applies to ::first-letter.inheritednopercen
tagesas each of the properties of the shorthand:border-image-slice: refer to the size of the border imageborder-image-width: refer to the width or height of the border image areacomputed valueas each of the properties of the shorthand:border-image-outset: as specified, but with relative lengths converted into absolute lengthsborder-image-repeat: as specifiedborder-image-slice: one to four percen
tage(...
border-inline-end-width - CSS: Cascading Style Sheets
initial valuemediumapplies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueabsolute length; 0 if the border style is none or hiddenanimation typea length values <'border-width'> the width of the border.
... formal definition initial valuemediumapplies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueabsolute length; 0 if the border style is none or hiddenanimation typea length formal syntax <'border-top-width'> examples applying a border with vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 1px solid blue; border-inline-end-width: 5px; } results specifications specification status comment css logical properties and values level 1the definition of 'border-inline-end-width' in that specification.
Computed value - CSS: Cascading Style Sheets
the computation needed to reach a property's computed value typically involves converting relative values (such as those in em units or percen
tages) to absolute values.
... however, for some properties (those where percen
tages are relative to something that may require layout to determine, such as width, margin-right, text-indent, and top), percen
tage-specified values turn into percen
tage-computed values.
brightness() - CSS: Cascading Style Sheets
syntax brightness(amount) parameters amount the brightness of the result, specified as a <number> or a <percen
tage>.
... examples setting brightness using numbers and percen
tages 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
syntax contrast(amount) parameters amount the contrast of the result, specified as a <number> or a <percen
tage>.
... examples setting contrast using numbers and percen
tages 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.
flex-basis - CSS: Cascading Style Sheets
values <'width'> an absolute <length>, a <percen
tage> of the parent flex container's main size property, or the keyword auto.
... formal definition initial valueautoapplies toflex items, including in-flow pseudo-elementsinheritednopercen
tagesrefer to the flex container's inner main sizecomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea length, percen
tage or calc(); formal syntax content | <'width'> examples setting flex item initial sizes html <ul class="container"> <li class="flex flex1">1: flex-basis test</li> <li class="flex flex2">2: flex-basis test</li> <li class="fl...
grid - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:grid-template-rows: nonegrid-template-columns: nonegrid-template-areas: nonegrid-auto-rows: autogrid-auto-columns: autogrid-auto-flow: rowgrid-column-gap: 0grid-row-gap: 0column-gap: normalrow-gap: normalapplies togrid containersinheritednopercen
tagesas each of the properties of the shorthand:grid-template-rows: refer to corresponding dimension of the content areagrid-template-columns: refer to corresponding dimension of the content areagrid-auto-rows: refer to corresponding dimension of the content areagrid-auto-columns: refer to corresponding dimension of the content areacomputed valueas each of the properties of the shorthand:grid-templat...
...e-rows: as specified, but with relative lengths converted into absolute lengthsgrid-template-columns: as specified, but with relative lengths converted into absolute lengthsgrid-template-areas: as specifiedgrid-auto-rows: the percen
tage as specified or the absolute lengthgrid-auto-columns: the percen
tage as specified or the absolute lengthgrid-auto-flow: as specifiedgrid-column-gap: the percen
tage as specified or the absolute lengthgrid-row-gap: the percen
tage as specified or the absolute lengthcolumn-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsrow-gap: as specified, with <length>s made absolute, and normal computing to zero except on multi-column elementsanimation typediscrete formal syntax <'grid-template'> | <'grid-template...
inline-size - CSS: Cascading Style Sheets
syntax /* <length> values */ inline-size: 300px; inline-size: 25em; /* <percen
tage> values */ inline-size: 75%; /* keyword values */ inline-size: max-content; inline-size: min-content; inline-size: fit-content(20em); inline-size: auto; /* global values */ inline-size: inherit; inline-size: initial; inline-size: unset; if the writing mode is vertically oriented, the value of inline-size relates to the height of the element; otherwise, it relates to the width of the element.
... formal definition initial valueautoapplies tosame as width and heightinheritednopercen
tagesinline-size of containing blockcomputed valuesame as width and heightanimation typea length, percen
tage or calc(); formal syntax <'width'> examples setting inline size in pixels html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; inline-size: 110px; } result specifications specification status comment css logical properties and values level 1the definition of 'inline-size' in that specification.
inset-block-end - CSS: Cascading Style Sheets
/* <length> values */ inset-block-end: 3px; inset-block-end: 2.4em; /* <percen
tage>s of the width or height of the containing block */ inset-block-end: 10%; /* keyword value */ inset-block-end: auto; /* global values */ inset-block-end: inherit; inset-block-end: initial; inset-block-end: unset; syntax values the inset-block-end property takes the same values as the left property.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tageslogical-height of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percen
tage or calc(); formal syntax <'top'> examples setting block end offset html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; position: relative; inset-block-end: 20px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'inset-block-end' in that specification.
inset-block-start - CSS: Cascading Style Sheets
/* <length> values */ inset-block-start: 3px; inset-block-start: 2.4em; /* <percen
tage>s of the width or height of the containing block */ inset-block-start: 10%; /* keyword value */ inset-block-start: auto; /* global values */ inset-block-start: inherit; inset-block-start: initial; inset-block-start: unset; syntax values the inset-block-start property takes the same values as the left property.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tageslogical-height of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percen
tage or calc(); formal syntax <'top'> examples setting block start offset html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; position: relative; inset-block-start: 20px; background-color: #c8c800; } specifications specification status comment css logical properties and values level 1the definition of 'inset-block-start' in that specification.
inset-block - CSS: Cascading Style Sheets
/* <length> values */ inset-block: 3px 10px; inset-block: 2.4em 3em; inset-block: 10px; /* value applied to start and end */ /* <percen
tage>s of the width or height of the containing block */ inset-block: 10% 5%; /* keyword value */ inset-block: auto; /* global values */ inset-block: inherit; inset-block: initial; inset-block: unset; constituent properties this property is a shorthand for the following css properties: inset-block-end inset-block-start syntax values the inset-block property takes the same values as the l...
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tageslogical-height of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percen
tage or calc(); formal syntax <'top'>{1,2} examples setting block start and end offsets html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; position: relative; inset-block: 20px 50px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'inset-block' in that specification...
inset-inline-end - CSS: Cascading Style Sheets
/* <length> values */ inset-inline-end: 3px; inset-inline-end: 2.4em; /* <percen
tage>s of the width or height of the containing block */ inset-inline-end: 10%; /* keyword value */ inset-inline-end: auto; /* global values */ inset-inline-end: inherit; inset-inline-end: initial; inset-inline-end: unset; the shorthand for inset-inline-start and inset-inline-end is inset-inline.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tageslogical-width of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percen
tage or calc(); formal syntax <'top'> examples setting inline end offset html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; position: relative; inset-inline-end: 20px; background-color: #c8c800; } result specifications specification status comment css logical properties and value...
inset-inline-start - CSS: Cascading Style Sheets
/* <length> values */ inset-inline-start: 3px; inset-inline-start: 2.4em; /* <percen
tage>s of the width or height of the containing block */ inset-inline-start: 10%; /* keyword value */ inset-inline-start: auto; /* global values */ inset-inline-start: inherit; inset-inline-start: initial; inset-inline-start: unset; the shorthand for inset-inline-start and inset-inline-end is inset-inline.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tageslogical-width of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percen
tage or calc(); formal syntax <'top'> examples setting inline start offset html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; position: relative; inset-inline-start: 20px; background-color: #c8c800; } result specifications specification status comment css logical properties an...
inset-inline - CSS: Cascading Style Sheets
/* <length> values */ inset-inline: 3px 10px; inset-inline: 2.4em 3em; inset-inline: 10px; /* value applied to start and end */ /* <percen
tage>s of the width or height of the containing block */ inset-inline: 10% 5%; /* keyword value */ inset-inline: auto; /* global values */ inset-inline: inherit; inset-inline: initial; inset-inline: unset; constituent properties this property is a shorthand for the following css properties: inset-inline-end inset-inline-start syntax values the inset-inline property takes the same values ...
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tageslogical-width of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percen
tage or calc(); formal syntax <'top'>{1,2} examples setting inline start and end offsets html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; position: relative; inset-inline: 20px 50px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'inset-inline' in that spe...
inset - CSS: Cascading Style Sheets
/* <length> values */ inset: 10px; /* value applied to all edges */ inset: 4px 8px; /* top/bottom left/right */ inset: 5px 15px 10px; /* top left/right bottom */ inset: 2.4em 3em 3em 3em; /* top right bottom left */ /* <percen
tage>s of the width (left/right) or height (top/bottom) of the containing block */ inset: 10% 5% 5% 5%; /* keyword value */ inset: auto; /* global values */ inset: inherit; inset: initial; inset: unset; syntax values the inset property takes the same values as the left property.
... formal definition initial valueautoapplies topositioned elementsinheritednopercen
tageslogical-height of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percen
tage or calc(); formal syntax <'top'>{1,4} examples setting offsets for an element html <div> <span class="exampletext">example text</span> </div> css div { background-color: yellow; width: 150px; height: 120px; position: relative; } .exampletext { writing-mode: sideways-rl; position: absolute; inset: 20px 40px 30px 10px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'inset' in that specif...
linear-gradient() - CSS: Cascading Style Sheets
<linear-color-stop> a color-stop's <color> value, followed by one or two optional stop positions, (each being either a <percen
tage> or a <length> along the gradient's axis).
...a color-stop's position can be explicitly defined by using a <length> or a <percen
tage>.
margin-inline - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercen
tagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, autoanimation typediscrete formal syntax <'margin-left'>{1,2} examples setting inline start and end margins html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; heigh...
... initial value0applies tosame as margininheritednopercen
tagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percen
tage, the specified value; otherwise, autoanimation typediscrete ...
max-inline-size - CSS: Cascading Style Sheets
syntax /* <length> values */ max-inline-size: 300px; max-inline-size: 25em; /* <percen
tage> values */ max-inline-size: 75%; /* keyword values */ max-inline-size: auto; max-inline-size: max-content; max-inline-size: min-content; max-inline-size: fit-content(20em); /* global values */ max-inline-size: inherit; max-inline-size: initial; max-inline-size: unset; values the max-inline-size property takes the same values as the max-width and max-height properties.
... formal definition initial value0applies tosame as width and heightinheritednopercen
tagesinline-size of containing blockcomputed valuesame as max-width and max-heightanimation typea length, percen
tage or calc(); formal syntax <'max-width'> examples setting max inline size in pixels html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; block-size: 100%; max-inline-size: 200px; } result specifications specification status comment css logical properties and values level 1the definition of 'max-inline-size' in that specification.
min-block-size - CSS: Cascading Style Sheets
syntax /* <length> values */ min-block-size: 100px; min-block-size: 5em; /* <percen
tage> values */ min-block-size: 10%; /* keyword values */ min-block-size: max-content; min-block-size: min-content; min-block-size: fit-content(20em); /* global values */ min-block-size: inherit; min-block-size: initial; min-block-size: unset; if the writing mode is vertically oriented, the value of min-block-size relates to the minimum width of the element; otherwise, it relates to the minimum h...
... formal definition initial value0applies tosame as width and heightinheritednopercen
tagesblock-size of containing blockcomputed valuesame as min-width and min-heightanimation typea length, percen
tage or calc(); formal syntax <'min-width'> examples setting minimum block size for vertical text html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; min-block-size: 200px; } result specifications specification status comment css logical properties and values level 1the definiti...
min-inline-size - CSS: Cascading Style Sheets
syntax /* <length> values */ min-inline-size: 100px; min-inline-size: 5em; /* <percen
tage> values */ min-inline-size: 10%; /* keyword values */ min-inline-size: max-content; min-inline-size: min-content; min-inline-size: fit-content(20em); /* global values */ min-inline-size: inherit; min-inline-size: initial; min-inline-size: unset; if the writing mode is vertically oriented, the value of min-inline-size relates to the minimum height of the element; otherwise, it relates to the ...
... formal definition initial value0applies tosame as width and heightinheritednopercen
tagesinline-size of containing blockcomputed valuesame as min-width and min-heightanimation typea length, percen
tage or calc(); formal syntax <'min-width'> examples setting minimum inline size for vertical text html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; block-size: 5%; min-inline-size: 200px; } result specifications specification status comment css logical properties a...
object-position - CSS: Cascading Style Sheets
formal definition initial value50% 50%applies toreplaced elementsinheritedyespercen
tagesrefer to width and height of element itselfcomputed valueas specifiedanimation typerepeatable list of simple list of length, percen
tage, or calc formal syntax <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
... | [ [ left | right ] <length-percen
tage> ] && [ [ top | bottom ] <length-percen
tage> ] ]where <length-percen
tage> = <length> | <percen
tage> examples positioning image content html here we see html that includes two <img> elements, each displaying the mdn logo.
offset-distance - CSS: Cascading Style Sheets
syntax /* default value */ offset-distance: 0; /* the middle of the offset-path */ offset-distance: 50%; /* a fixed length positioned along the path */ offset-distance: 40px; <length-percen
tage> a length that specifies how far the element is along the path (defined with offset-path).
... formal definition initial value0applies totransformable elementsinheritednopercen
tagesrefer to the total path lengthcomputed valuefor <length> the absolute value, otherwise a percen
tageanimation typea length, percen
tage or calc(); formal syntax <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples using offset-distance in an animation the motion aspect in css motion path typically comes from animating the offset-distance property.
offset - CSS: Cascading Style Sheets
(circle.svg) 50px 20deg; /* including offset anchor */ offset: ray(45deg closest-side) / 40px 20px; offset: url(arc.svg) 2cm / 0.5cm 3cm; offset: url(arc.svg) 30deg / 50px 100px; formal definition initial valueas each of the properties of the shorthand:offset-position: autooffset-path: noneoffset-distance: 0offset-anchor: autooffset-rotate: autoapplies totransformable elementsinheritednopercen
tagesas each of the properties of the shorthand:offset-position: refertosizeofcontainingblockoffset-distance: refer to the total path lengthoffset-anchor: relativetowidthandheightcomputed valueas each of the properties of the shorthand:offset-position: for <length> the absolute value, otherwise a percen
tageoffset-path: as specifiedoffset-distance: for <length> the absolute value, otherwise a percenta...
...geoffset-anchor: for <length> the absolute value, otherwise a percen
tageoffset-rotate: as specifiedanimation typeas each of the properties of the shorthand:offset-position: a positionoffset-path: as <angle>, <basic-shape> or <path()>offset-distance: a length, percen
tage or calc();offset-anchor: a positionoffset-rotate: as <angle>, <basic-shape> or <path()>creates stacking contextyes formal syntax [ <'offset-position'>?
padding-block-end - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-block-end: 10px; /* an absolute length */ padding-block-end: 1em; /* a length relative to the text size */ /* <percen
tage> value */ padding-block-end: 5%; /* a padding relative to the block container's width */ /* global values */ padding-block-end: inherit; padding-block-end: initial; padding-block-end: unset; values the padding-block-end property takes the same values as the padding-left property.
... formal definition initial value0applies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueas <length>animation typea length formal syntax <'padding-left'> examples setting block end padding for vertical text html content <div> <p class="exampletext">example text</p> </div> css content div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; padding-block-end: 20px; ...
padding-block-start - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-block-start: 10px; /* an absolute length */ padding-block-start: 1em; /* a length relative to the text size */ /* <percen
tage> value */ padding-block-start: 5%; /* a padding relative to the block container's width */ /* global values */ padding-block-start: inherit; padding-block-start: initial; padding-block-start: unset; values the padding-block-start property takes the same values as the padding-left property.
... formal definition initial value0applies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueas <length>animation typea length formal syntax <'padding-left'> examples setting block start padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; padding-block-start: 20px; background-co...
padding-block - CSS: Cascading Style Sheets
/* <length> values */ padding-block: 10px 20px; /* an absolute length */ padding-block: 1em 2em; /* relative to the text size */ padding-block: 10px; /* sets both start and end values */ /* <percen
tage> values */ padding-block: 5% 2%; /* relative to the nearest block container's width */ /* global values */ padding-block: inherit; padding-block: initial; padding-block: unset; these values corresponds to the padding-top and padding-bottom, or padding-right, and padding-left property depending on the values defined for writing-mode, direction, and text-orientation.
... formal definition initial value0applies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueas <length>animation typediscrete formal syntax <'padding-left'>{1,2} examples setting block padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; padding-block: 20px 40px; background-color: #c8c800; } result specifications specification status comment c...
padding-inline-end - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-inline-end: 10px; /* an absolute length */ padding-inline-end: 1em; /* a length relative to the text size */ /* <percen
tage> value */ padding-inline-end: 5%; /* a padding relative to the block container's width */ /* global values */ padding-inline-end: inherit; padding-inline-end: initial; padding-inline-end: unset; values the padding-inline-end property takes the same values as the padding-left property.
... formal definition initial value0applies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueas <length>animation typea length formal syntax <'padding-left'> examples setting inline end padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; padding-inline-end: 20px; background-colo...
padding-inline-start - CSS: Cascading Style Sheets
syntax /* <length> values */ padding-inline-start: 10px; /* an absolute length */ padding-inline-start: 1em; /* a length relative to the text size */ /* <percen
tage> value */ padding-inline-start: 5%; /* a padding relative to the block container's width */ /* global values */ padding-inline-start: inherit; padding-inline-start: initial; padding-inline-start: unset; values the padding-inline-start property takes the same values as the padding-left property.
... formal definition initial value0applies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueas <length>animation typea length formal syntax <'padding-left'> examples setting inline start padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; padding-inline-start: 20px; background-...
padding-inline - CSS: Cascading Style Sheets
/* <length> values */ padding-inline: 10px 20px; /* an absolute length */ padding-inline: 1em 2em; /* relative to the text size */ padding-inline: 10px; /* sets both start and end values */ /* <percen
tage> values */ padding-inline: 5% 2%; /* relative to the nearest block container's width */ /* global values */ padding-inline: inherit; padding-inline: initial; padding-inline: unset; constituent properties this property is a shorthand for the following css properties: padding-inline-end padding-inline-start syntax values the padding-inline property takes the same values as the padding-...
... formal definition initial value0applies toall elementsinheritednopercen
tageslogical-width of containing blockcomputed valueas <length>animation typediscrete formal syntax <'padding-left'>{1,2} examples setting inline padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; padding-inline: 20px 40px; background-color: #c8c800; } result specifications specification status comment ...
scale - CSS: Cascading Style Sheets
two length/percen
tage values two <number>s that specify the x and y axis scaling values (respectively) of a 2d scale.
... three length/percen
tage values three <number>s that specify the x, y, and z axis scaling values (respectively) of a 3d scale.
scroll-padding-block-end - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-block-end: auto; /* <length> values */ scroll-padding-block-end: 10px; scroll-padding-block-end: 1em; scroll-padding-block-end: 10%; /* global values */ scroll-padding-block-end: inherit; scroll-padding-block-end: initial; scroll-padding-block-end: unset; values <length-percen
tage> an inwards offset from the block end edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-block-end' in that specification.
scroll-padding-block-start - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-block-start: auto; /* <length> values */ scroll-padding-block-start: 10px; scroll-padding-block-start: 1em; scroll-padding-block-start: 10%; /* global values */ scroll-padding-block-start: inherit; scroll-padding-block-start: initial; scroll-padding-block-start: unset; values <length-percen
tage> an inwards offset from the block start edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-block-start' in that specification.
scroll-padding-block - CSS: Cascading Style Sheets
nd for the following css properties: scroll-padding-block-end scroll-padding-block-start syntax /* keyword values */ scroll-padding-block: auto; /* <length> values */ scroll-padding-block: 10px; scroll-padding-block: 1em .5em; scroll-padding-block: 10%; /* global values */ scroll-padding-block: inherit; scroll-padding-block: initial; scroll-padding-block: unset; values <length-percen
tage> an inwards offset from the corresponding edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax [ auto | <length-percen
tage> ]{1,2}where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-block' in that specification.
scroll-padding-bottom - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-bottom: auto; /* <length> values */ scroll-padding-bottom: 10px; scroll-padding-bottom: 1em; scroll-padding-bottom: 10%; /* global values */ scroll-padding-bottom: inherit; scroll-padding-bottom: initial; scroll-padding-bottom: unset; values <length-percen
tage> an inwards offset from the bottom edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-bottom' in that specification.
scroll-padding-inline-end - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-inline-end: auto; /* <length> values */ scroll-padding-inline-end: 10px; scroll-padding-inline-end: 1em; scroll-padding-inline-end: 10%; /* global values */ scroll-padding-inline-end: inherit; scroll-padding-inline-end: initial; scroll-padding-inline-end: unset; values <length-percen
tage> an inwards offset from the inline end edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-inline-end' in that specification.
scroll-padding-inline-start - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-inline-start: auto; /* <length> values */ scroll-padding-inline-start: 10px; scroll-padding-inline-start: 1em; scroll-padding-inline-start: 10%; /* global values */ scroll-padding-inline-start: inherit; scroll-padding-inline-start: initial; scroll-padding-inline-start: unset; values <length-percen
tage> an inwards offset from the inline start edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-inline-start' in that specification.
scroll-padding-inline - CSS: Cascading Style Sheets
e following css properties: scroll-padding-inline-end scroll-padding-inline-start syntax /* keyword values */ scroll-padding-inline: auto; /* <length> values */ scroll-padding-inline: 10px; scroll-padding-inline: 1em .5em; scroll-padding-inline: 10%; /* global values */ scroll-padding-inline: inherit; scroll-padding-inline: initial; scroll-padding-inline: unset; values <length-percen
tage> an inwards offset from the corresponding edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax [ auto | <length-percen
tage> ]{1,2}where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-inline' in that specification.
scroll-padding-left - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-left: auto; /* <length> values */ scroll-padding-left: 10px; scroll-padding-left: 1em; scroll-padding-left: 10%; /* global values */ scroll-padding-left: inherit; scroll-padding-left: initial; scroll-padding-left: unset; values <length-percen
tage> an inwards offset from the left edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-left' in that specification.
scroll-padding-right - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-right: auto; /* <length> values */ scroll-padding-right: 10px; scroll-padding-right: 1em; scroll-padding-right: 10%; /* global values */ scroll-padding-right: inherit; scroll-padding-right: initial; scroll-padding-right: unset; values <length-percen
tage> an inwards offset from the top edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-right' in that specification.
scroll-padding-top - CSS: Cascading Style Sheets
syntax /* keyword values */ scroll-padding-top: auto; /* <length> values */ scroll-padding-top: 10px; scroll-padding-top: 1em; scroll-padding-top: 10%; /* global values */ scroll-padding-top: inherit; scroll-padding-top: initial; scroll-padding-top: unset; values <length-percen
tage> an inwards offset from the top edge of the scrollport, as a valid length or a percen
tage.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-top' in that specification.
scroll-padding - CSS: Cascading Style Sheets
hand for the following css properties: scroll-padding-bottom scroll-padding-left scroll-padding-right scroll-padding-top syntax /* keyword values */ scroll-padding: auto; /* <length> values */ scroll-padding: 10px; scroll-padding: 1em .5em 1em 1em; scroll-padding: 10%; /* global values */ scroll-padding: inherit; scroll-padding: initial; scroll-padding: unset; values <length-percen
tage> an inwards offset from the corresponding edge of the scrollport, as a valid <length> or a <percen
tage>.
... formal definition initial valueautoapplies toscroll containersinheritednopercen
tagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax [ auto | <length-percen
tage> ]{1,4}where <length-percen
tage> = <length> | <percen
tage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding' in that specification.
scroll-snap-coordinate - CSS: Cascading Style Sheets
formal definition initial valuenoneapplies toall elementsinheritednopercen
tagesrefer to the element’s border boxcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea position formal syntax none | <position>#where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
... | [ [ left | right ] <length-percen
tage> ] && [ [ top | bottom ] <length-percen
tage> ] ]where <length-percen
tage> = <length> | <percen
tage> examples setting scroll snap coordinates html <div id="container"> <div> <p>at coordinate (0, 0)</p> <div class="scrollcontainer coordinate0"> <div>1</div> <div>2</div> <div>3</div> </div> </div> <div> <p>at coordinate (25, 0)</p> <div class="scrollcontainer coordinate25"> <div>1</div> <div>2</div> <div>3</div> </div> </div> <div> <p>at coordinate (50, 0)</p> <div class="scrollcontainer coordinate50"> <div>1</div> <div>2</div> <div>3</div> </div> </div> </div> css #container { display: flex; } #container > div:nth-child(-n+2) { margin-right...
scroll-snap-destination - CSS: Cascading Style Sheets
formal definition initial value0px 0pxapplies toscroll containersinheritednopercen
tagesrelative to same axis of the padding-box of the scroll containercomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea position formal syntax <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percen
tage> ] [ top | center | bottom | <length-percen
tage> ]?
... | [ [ left | right ] <length-percen
tage> ] && [ [ top | bottom ] <length-percen
tage> ] ]where <length-percen
tage> = <length> | <percen
tage> examples setting scroll snap destination html <div id="container"> <div> <p>at coordinate (0, 0)</p> <div class="scrollcontainer destination0"> <div>1</div> <div>2</div> <div>3</div> </div> </div> <div> <p>at coordinate (25, 0)</p> <div class="scrollcontainer destination25"> <div>1</div> <div>2</div> <div>3</div> </div> </div> <div> <p>at coordinate (50, 0)</p> <div class="scrollcontainer destination50"> <div>1</div> <div>2</div> <div>3</div> </div> </div> </div> css #container { display: flex; } #container > div:nth-child(-n+2) { margin-ri...
shape-margin - CSS: Cascading Style Sheets
syntax /* <length> values */ shape-margin: 10px; shape-margin: 20mm; /* <percen
tage> value */ shape-margin: 60%; /* global values */ shape-margin: inherit; shape-margin: initial; shape-margin: unset; values <length-percen
tage> sets the margin of the shape to a <length> value or to a <percen
tage> of the width of the element's containing block.
... formal definition initial value0applies tofloatsinheritednopercen
tagesrefer to the width of the containing blockcomputed valueas specified, but with relative lengths converted into absolute lengthsanimation typea length, percen
tage or calc(); formal syntax <length-percen
tage>where <length-percen
tage> = <length> | <percen
tage> examples adding a margin to a polygon html <section> <div class="shape"></div> we are not quite sure of any one thing in biology; our knowledge of geology is relatively very slight, and the economic laws of society are uncertain to every one except some individual who attempts to set them forth; but before the world was fashioned the square on the hypotenuse was equal to the sum of the squares on the other two sides of a right triangle, and it will be so after ...
Getting Started - Developer guides
at this s
tage, you need to tell the xmlhttp request object which javascript function will handle the response, by setting the onreadystatechange property of the object and naming it after the function to call when the request changes state, like this: httprequest.onreadystatechange = nameofthefunction; note that there are no parentheses or parameters after the function name, because you're assigning a refer...
... then in alertcontents(), we need to replace the line alert(httprequest.responsetext); with: var xmldoc = httprequest.responsexml; var root_node = xmldoc.getelementsby
tagname('root').item(0); alert(root_node.firstchild.data); this code takes the xmldocument object given by responsexml and uses dom methods to access some of the data contained in the xml document.
Live streaming web audio and video - Developer guides
it can also be used instead of the traditional progressive download method for audio and video on demand: there are several advan
tages to this: latency is generally lower so media will start playing more quickly adaptive streaming makes for better experiences on a variety of devices media is downloaded just in time which makes bandwidth usage more efficient streaming protocols while static media is usually served over http, there are several protocols for serving adaptive streams; let's take a look at the options.
... important: although the <audio> and <video>
tags are protocol agnostic, no browser currently supports anything other than http without requiring plugins, although this looks set to change.
Setting up adaptive streaming media sources - Developer guides
server cannot cache range requests efficiently your server cannot prefetch range requests efficiently the sidx* is large and having to load it first slows down startup a little you want to use the original files for both dash and other forms of delivery (such as microsoft smooth streaming) as a transition strategy you can use the same media files for both live transmission and vod at a later s
tage *sidx or segmentindexbox is a structure describing a segment by giving its earliest presentation time and other meta-data and can often make up a large portion of the mpd file.
...dth="480" height="360"> <baseurl>elephantsdream_h264bpl30_0250.264.dash</baseurl> </representation> <representation id="5" bandwidth="500000" width="480" height="360"> <baseurl>elephantsdream_h264bpl30_0500.264.dash</baseurl> </representation> </adaptationset> </period> </mpd> once you have generated your mpd file you can reference it from within the video
tag.
Audio and Video Delivery - Developer guides
html audio <audio controls preload="auto"> <source src="audiofile.mp3" type="audio/mpeg"> <!-- fallback for browsers that don't support mp3 --> <source src="audiofile.ogg" type="audio/ogg"> <!-- fallback for browsers that don't support audio
tag --> <a href="audiofile.mp3">download audio</a> </audio> the code above will create an audio player that attempts to preload as much audio as possible for smooth playback.
...e src="videofile.mp4" type="video/mp4"> <!-- fallback for browsers that don't support mp4 --> <source src="videofile.webm" type="video/webm"> <!-- specifying subtitle files --> <track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="english"> <track src="subtitles_no.vtt" kind="subtitles" srclang="no" label="norwegian"> <!-- fallback for browsers that don't support video
tag --> <a href="videofile.mp4">download video</a> </video> the code above creates a video player of dimensions 640x480 pixels, displaying a poster image until the video is played.
Challenge solutions - Developer guides
solution change the selector of the new rule to be a
tag selector using p: p { color: blue; } the rules for the other colors all have more specific selectors, so they override the blue of the paragraph.
... solution the following rule achieves this effect: ul { border: 10px solid lightblue; width: 100px; } layout default image position fixed image position challenge change your sample document, doc2.html, adding this
tag to it near the end, just before </body>: <img id="fixed-pin" src="yellow-pin.png" alt="yellow map pin"> predict where the image will appear in your document.
Rich-Text Editing in Mozilla - Developer guides
internet explorer differences one major difference between mozilla and internet explorer that affects designmode is the generated code in the editable document: while internet explorer uses html
tags (em, i, etc), mozilla 1.3 will generate by default spans with inline style rules.
...for it to work in internet explorer, the contenteditable attribute of the body
tag needs to be set to "true".
<th> - HTML: Hypertext Markup Language
tag omission the start
tag is mandatory.
... the end
tag may be omitted, if it is immediately followed by a <th> or <td> element or if there are no more data in its parent element.
<tr>: The Table Row element - HTML: Hypertext Markup Language
technical summary content categories none permitted content zero or more <td> and/or <th> elements; script-supporting elements (<script> and <template>) are also allowed
tag omission start
tag is mandatory.
... end
tag may be omitted if the <tr> element is immediately followed by a <tr> element, or if the row is the last element in its parent table group (<thead>, <tbody> or <tfoot>) element permitted parents <table> (only if the table has no child <tbody> element, and even then only after any <caption>, <colgroup>, and <thead> elements); otherwise, the parent must be <thead>, <tbody> or <tfoot> implicit aria role row permitted aria roles any dom interface htmltablerowelement specifications specification status comment html living standardthe definition of 'tr element' in that specification.
Clear-Site-Data - HTTP
so https://example.com as well as https://s
tage.example.com, will have cookies cleared.
... when sending the page confirming that logging out from the site has been accomplished successfully (https://example.com/logout, for example): clear-site-data: "cache", "cookies", "storage", "executioncontexts" clearing cookies if this header is delivered with the response at https://example.com/clear-cookies, all cookies on the same domain https://example.com and any subdomains (like https://s
tage.example.com, etc), will be cleared out.
CSP: base-uri - HTTP
when generating the hash, don't include the <script> or <style>
tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
... examples meta
tag configuration <meta http-equiv="content-security-policy" content="base-uri 'self'"> apache configuration <ifmodule mod_headers.c> header set content-security-policy "base-uri 'self'"; </ifmodule> nginx configuration add_header content-security-policy "base-uri 'self';" violation case since your domain isn't example.com, a <base> element with its href set to https://example.com will result ...
CSP: form-action - HTTP
when generating the hash, don't include the <script> or <style>
tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
... examples meta
tag configuration <meta http-equiv="content-security-policy" content="form-action 'none'"> apache configuration <ifmodule mod_headers.c> header set content-security-policy "form-action 'none'; </ifmodule> nginx configuration add_header content-security-policy "form-action 'none';" violation case using a <form> element with an action set to inline javascript will result in a csp violation.
CSP: navigate-to - HTTP
when generating the hash, don't include the <script> or <style>
tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
... examples meta
tag configuration <meta http-equiv="content-security-policy" content="navigate-to 'none'"> violation case using a <form> element with an action set to inline javascript will result in a csp violation.
CSP: script-src - HTTP
when generating the hash, don't include the <script> or <style>
tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
... content-security-policy: script-src 'sha256-b2yphkaxnvfwtrchibabymubfzdvfkkxhbwtwiddvf8=' when generating the hash, don't include the <script>
tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
CSP: style-src - HTTP
when generating the hash, don't include the <script> or <style>
tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
... content-security-policy: style-src 'sha256-a330698cbe9dc4ef1fb12e2ee9fc06d5d14300262fa4dc5878103ab7347e158f' when generating the hash, don't include the <style>
tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
If-Range - HTTP
this header can be used either with a last-modified validator, or with an e
tag, but not with both.
... header type request header forbidden header name no syntax if-range: <day-name>, <day> <month> <year> <hour>:<minute>:<second> gmt if-range: <e
tag> directives <e
tag> an entity
tag uniquely representing the requested resource.
Firefox user agent string reference - HTTP
form factor gecko user agent string phone mozilla/5.0 (android 4.4; mobile; rv:41.0) gecko/41.0 firefox/41.0 tablet mozilla/5.0 (android 4.4; tablet; rv:41.0) gecko/41.0 firefox/41.0 focus for android from version 1, focus is powered by android webview and uses the following user agent string format: mozilla/5.0 (linux; <android version> <build
tag etc.>) applewebkit/<webkit rev> (khtml, like gecko) version/4.0 focus/<focusversion> chrome/<chrome rev> mobile safari/<webkit rev> tablet versions on webview mirror mobile, but do not contain a mobile token.
...the third digit is incremented with regular version
tags (about every 6 weeks) for security updates, and the fourth is owned by the oem.
412 Precondition Failed - HTTP
status 412 precondition failed examples e
tag: "33a64df551425fcc55e4d42a148795d9f25f89d4" e
tag: w/"0815" avoiding mid-air collisions with the help of the e
tag and the if-match headers, you can detect mid-air edit collisions.
... for example, when editing mdn, the current wiki content is hashed and put into an e
tag in the response: e
tag: "33a64df551425fcc55e4d42a148795d9f25f89d4" when saving changes to a wiki page (posting data), the post request will contain the if-match header containing the e
tag values to check freshness against.
CSS Houdini
advan
tages of houdini houdini enables faster parse times than using javascript .style for style changes.
... css painting api reference css painting api guide worklets an api for running scripts in various s
tages of the rendering pipeline independent of the main javascript execution environment.
A re-introduction to JavaScript (JS tutorial) - JavaScript
the second method has the advan
tage that the name of the property is provided as a string, which means it can be calculated at run-time.
... we can take advan
tage of the this keyword to improve our makeperson function: function person(first, last) { this.first = first; this.last = last; this.fullname = function() { return this.first + ' ' + this.last; }; this.fullnamereversed = function() { return this.last + ', ' + this.first; }; } var s = new person('simon', 'willison'); we have introduced another keyword: new.
Indexed collections - JavaScript
the simplest way to do this is as follows: let colors = ['red', 'green', 'blue'] for (let i = 0; i < colors.length; i++) { console.log(colors[i]) } if you know that none of the elements in your array evaluate to false in a boolean context—if your array consists only of dom nodes, for example—you can use a more efficient idiom: let divs = document.getelementsby
tagname('div') for (let i = 0, div; div = divs[i]; i++) { /* process div in some way */ } this avoids the overhead of checking the length of the array, and ensures that the div variable is reassigned to the current item each time around the loop for added convenience.
... working with array-like objects some javascript objects, such as the nodelist returned by document.getelementsby
tagname() or the arguments object made available within the body of a function, look and behave like arrays on the surface but do not share all of their methods.
Keyed collections - JavaScript
map objects, however, have a few more advan
tages that make them better maps.
...the new set object, however, has some advan
tages: deleting array elements by value (arr.splice(arr.indexof(val), 1)) is very slow.
Classes - JavaScript
ss methods: class rectangle { constructor(height, width) { this.height = height; this.width = width; } } static (class-side) data properties and prototype data properties must be defined outside of the classbody declaration: rectangle.staticwidth = 20; rectangle.prototype.prototypewidth = 25; field declarations public and private field declarations are an experimental feature (s
tage 3) proposed at tc39, the javascript standards committee.
...this is one advan
tage over prototype-based inheritance.
Date.prototype.toLocaleDateString() - JavaScript
to check whether an implementation supports them already, you can use the requirement that illegal language
tags are rejected with a rangeerror exception: function tolocaledatestringsupportslocales() { try { new date().tolocaledatestring('i'); } catch (e) { return e.name === 'rangeerror'; } return false; } using locales this example shows some of the variations in localized date formats.
...(['ban', 'id'])); // → "20/12/2012" using options the results provided by tolocaledatestring() can be customized using the options argument: var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // request a weekday along with a long date var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; console.log(date.tolocaledatestring('de-de', options)); // → "donners
tag, 20.
Date.prototype.toLocaleString() - JavaScript
to check whether an implementation supports them already, you can use the requirement that illegal language
tags are rejected with a rangeerror exception: function tolocalestringsupportslocales() { try { new date().tolocalestring('i'); } catch (e) { return e instanceof rangeerror; } return false; } using locales this example shows some of the variations in localized date and time formats.
...'ban', 'id'])); // → "20/12/2012 11.00.00" using options the results provided by tolocalestring() can be customized using the options argument: let date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // request a weekday along with a long date let options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; console.log(date.tolocalestring('de-de', options)); // → "donners
tag, 20.
Intl.Collator.prototype.resolvedOptions() - JavaScript
description the resulting object has the following properties: locale the bcp 47 language
tag for the locale actually used.
... if any unicode extension values were requested in the input bcp 47 language
tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
description the resulting object has the following properties: locale the bcp 47 language
tag for the locale actually used.
... if any unicode extension values were requested in the input bcp 47 language
tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
Intl.DisplayNames.prototype.resolvedOptions() - JavaScript
description the object returned by resolvedoptions() has the following properties: locale the bcp 47 language
tag for the locale actually used.
... if any unicode extension values were requested in the input bcp 47 language
tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
Intl.ListFormat.prototype.resolvedOptions() - JavaScript
description the object returned by resolvedoptions() has the following properties: locale the bcp 47 language
tag for the locale actually used.
... if any unicode extension values were requested in the input bcp 47 language
tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
Intl.Locale() constructor - JavaScript
syntax new intl.locale(
tag [, options]) parameters
tag the unicode locale identifier string.
...keys are unicode locale
tags, values are valid unicode
tag values.
Intl.Locale.prototype.caseFirst - JavaScript
kf is treated as a locale string "extension sub
tag".
... these sub
tags add additional data about the locale, and are added to locale identifiers by using the -u extension key.
Intl.Locale.prototype.numeric - JavaScript
kn is considered a locale string "extension sub
tag".
... these sub
tags add additional data about the locale, and are added to locale identifiers by using the -u extension key.
Intl.NumberFormat.prototype.resolvedOptions() - JavaScript
description the resulting object has the following properties: locale the bcp 47 language
tag for the locale actually used.
... if any unicode extension values were requested in the input bcp 47 language
tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
Intl.PluralRules.prototype.resolvedOptions() - JavaScript
description the resulting object has the following properties: locale the bcp 47 language
tag for the locale actually used.
... if any unicode extension values were requested in the input bcp 47 language
tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
Intl.getCanonicalLocales() - JavaScript
duplicates will be omitted and elements will be validated as structurally valid language
tags.
... examples using getcanonicallocales intl.getcanonicallocales('en-us'); // ["en-us"] intl.getcanonicallocales(['en-us', 'fr']); // ["en-us", "fr"] intl.getcanonicallocales('en_us'); // rangeerror:'en_us' is not a structurally valid language
tag specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.getcanonicallocales' in that specification.
Object.prototype.toString() - JavaScript
; tostring.call(new date); // [object date] tostring.call(new string); // [object string] tostring.call(math); // [object math] // since javascript 1.8.5 tostring.call(undefined); // [object undefined] tostring.call(null); // [object null] using tostring() in this way is unreliable; objects can change the behavior of object.prototype.tostring() by defining a symbol.tostring
tag property, leading to unexpected results.
... for example: const mydate = new date(); object.prototype.tostring.call(mydate); // [object date] mydate[symbol.tostring
tag] = 'mydate'; object.prototype.tostring.call(mydate); // [object mydate] date.prototype[symbol.tostring
tag] = 'prototype polluted'; object.prototype.tostring.call(new date()); // [object prototype polluted] specifications specification ecmascript (ecma-262)the definition of 'object.prototype.tostring' in that specification.
String.prototype.localeCompare() - JavaScript
to check whether an implementation supports them, use the "i" argument (a requirement that illegal language
tags are rejected) and look for a rangeerror exception: function localecomparesupportslocales() { try { 'foo'.localecompare('bar', 'i'); } catch (e) { return e.name === 'rangeerror'; } return false; } using locales the results provided by localecompare() vary between languages.
...are('a', 'de', { sensitivity: 'base' })); // 0 // in swedish, ä and a are separate base letters console.log('ä'.localecompare('a', 'sv', { sensitivity: 'base' })); // a positive value numeric sorting // by default, "2" > "10" console.log("2".localecompare("10")); // 1 // numeric using options: console.log("2".localecompare("10", undefined, {numeric: true})); // -1 // numeric using locales
tag: console.log("2".localecompare("10", "en-u-kn-true")); // -1 specifications specification ecmascript (ecma-262)the definition of 'string.prototype.localecompare' in that specification.
Object initializer - JavaScript
examples creating objects an empty object with no properties can be created like this: let object = {} however, the advan
tage of the literal or initializer notation is, that you are able to quickly create objects with properties inside the curly braces.
...5) let i = 0 let a = { ['foo' + ++i]: i, ['foo' + ++i]: i, ['foo' + ++i]: i } console.log(a.foo1) // 1 console.log(a.foo2) // 2 console.log(a.foo3) // 3 let param = 'size' let config = { [param]: 12, ['mobile' + param.charat(0).touppercase() + param.slice(1)]: 4 } console.log(config) // {size: 12, mobilesize: 4} spread properties the rest/spread properties for ecmascript proposal (s
tage 4) adds spread properties to object literals.
async function - JavaScript
progress moves through function foo in three s
tages.
...instead, the promise chain is constructed in s
tages as control is successively yielded from and returned to the async function.
Web audio codec guide - Web media technologies
lossy codecs, on the other hand, take advan
tage of the fact that the human ear is not a perfect interpreter of audio, and of the fact that the human brain can pluck the important information out of imperfect or noisy audio.
...certain codecs are specifically designed for voice-only content (they take advan
tage of the reduced frequency range needed for human speech).
Web video codec guide - Web media technologies
hevc was designed to support efficient encoding and decoding of video in sizes including very high resolutions (including 8k video), with a structure specifically designed to let software take advan
tage of modern processors.
... <video controls> <source type="video/webm" src="filename.webm"> <source type="video/mp4" src="filename.mp4"> </video> keep in mind that the <video> element requires a closing </video>
tag, whether or not you have any <source> elements inside it.
Codecs used by WebRTC - Web media technologies
avc has the advan
tage, on ios and ipados, of being able to be encoded and decoded in hardware.
...webrtc video is protected using da
tagram transport layer security (dtls), but it is theoretically possible for a motivated party to infer the amount of change that's occurring from frame to frame when using variable bit rate (vbr) codecs, by monitoring the stream's bit rate and how it changes over time.
Web media technologies
this ranges from simply using the alt attribute on <img> elements to captions to
tagging media for screen readers.
... streaming audio and video a guide which covers how to stream audio and video, as well as techniques and technologies you can take advan
tage of to ensure the best possible quality and/or performance of your streams.
Performance fundamentals - Web Performance
responsiveness sometimes involves multiple s
tages of feedback.
...simply downloading large files can take longer, even over a fast network, because mobile hardware is sometimes too slow to take advan
tage of all the available bandwidth.
Optimizing startup performance - Web Performance
getting asynchronous here are some suggestions for how to build your startup process to be as asynchronous as possible (whether it's a new app or a port): use the defer or async attribute on script
tags needed by the web application.
... the more stuff you can do asynchronously, the better advan
tage your app can take of multicore processors.
Add to Home screen - Progressive web apps (PWAs)
this guide explains how a2hs is used, and what you need to do as a developer to allow your users to take advan
tage of it.
... a2hs is thought to be part of the progressive web app philosophy — giving web apps the same user experience advan
tages as native apps so they can compete in today's ecosystem wars.
Installing and uninstalling web apps - Progressive web apps (PWAs)
this guide explains how installation is performed, what it means, and what you need to do as a developer to let your users take advan
tage of it.
... the option to install a web application is part of the progressive web app philosophy—giving web apps the same user experience advan
tages as native apps so they can be competitive.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
(for a real app, the notifications should be much less frequent, and more useful.) the advan
tage of the notifications api is that it uses the operating system's notification functionality.
... the technology is still at a very early s
tage — some working examples use the google cloud messaging platform, but are being rewritten to support vapid (voluntary application identification), which offers an extra layer of security for your app.
Web technology reference
html provides a means to create structured documents made up of blocks called html elements that are delineated by
tags, written using angle brackets.
... some introduce content into the page directly, others provide information about document text and may include other
tags as sub-elements.
cx - SVG: Scalable Vector Graphics
value <length-percen
tage> default value 0 animatable yes note: starting with svg2 cx, is a geometry property, meaning this attribute can also be used as css property for circles.
... value <length-percen
tage> default value 0 animatable yes note: starting with svg2 cx, is a geometry property, meaning this attribute can also be used as css property for ellipses.
cy - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0 animatable yes note: starting with svg2, cy is a geometry property meaning this attribute can also be used as a css property for circles.
... value <length> | <percen
tage> default value 0 animatable yes note: starting with svg2, cy is a geometry property meaning this attribute can also be used as a css property for ellipses.
flood-opacity - SVG: Scalable Vector Graphics
ty="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 percen
tage indicating the opacity value to use across the current filter primitive subregion.
... a number of 0 or a percen
tage of 0% represents a fully transparent color, 1 or 100% represents a fully opaque color.
font-stretch - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> usage notes value <font-stretch-absolute>where <font-stretch-absolute> = normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percen
tage> default value normal animatable yes specifications specification status comment css fonts module level 4the definition of 'font-stretch' in that specification.
... working draft adds the <percen
tage> syntax for variable fonts.
lang - SVG: Scalable Vector Graphics
the glyph was meant to be used if the xml:lang attribute exactly matched one of the languages given in the value of this parameter, or if the xml:lang attribute exactly equaled a prefix of one of the languages given in the value of this parameter such that the first
tag character following the prefix was "-".
... <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <text lang="en-us">this is some english text</text> </svg> usage notes value <language-
tag> default value none animatable no <language-
tag> this value specifies the language used for the element.
markerHeight - SVG: Scalable Vector Graphics
only one element is using this attribute: <marker> usage notes value <length-percen
tage> | <number> default value 3 animatable yes <length-percen
tage> this value defines either an absolute or a relative height of the marker.
... candidate recommendation allowed percen
tage and number values.
markerWidth - SVG: Scalable Vector Graphics
only one element is using this attribute: <marker> usage notes value <length-percen
tage> | <number> default value 3 animatable yes <length-percen
tage> this value defines either an absolute or a relative width of the marker.
... candidate recommendation allowed percen
tage and number values.
r - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0 animatable yes note: starting with svg2, r is a geometry property meaning this attribute can also be used as a css property for circles.
... value <length> | <percen
tage> default value 50% animatable yes specifications specification status comment scalable vector graphics (svg) 2the definition of 'r' in that specification.
rx - SVG: Scalable Vector Graphics
value <length> | <percen
tage> | auto default value auto animatable yes note: starting with svg2, rx is a geometry property meaning this attribute can also be used as a css property for ellipses.
... value <length> | <percen
tage> | auto default value auto animatable yes note: starting with svg2, rx is a geometry property meaning this attribute can also be used as a css property for rects.
ry - SVG: Scalable Vector Graphics
value <length> | <percen
tage> | auto default value auto animatable yes note: starting with svg2, ry is a geometry property meaning this attribute can also be used as a css property for ellipses.
... value <length> | <percen
tage> | auto default value auto animatable yes note: starting with svg2, ry is a geometry property meaning this attribute can also be used as a css property for rects.
startOffset - SVG: Scalable Vector Graphics
</textpath> </text> </svg> usage notes value <length-percen
tage> | <number> default value 0 animatable yes <length-percen
tage> a length represents a distance along the path measured in the current user coordinate system for the <textpath> element.
... if a percen
tage is given, then the start offset represents a percen
tage distance along the entire path.
stop-opacity - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following element: <stop> usage notes value <opacity-value> default value 1 animatable yes <opacity-value> this value is either a <number> between 0 and 1 or a <percen
tage> value specifying the opacity of the color gradient stop.
... candidate recommendation refers to the definition in css colors 3, but allows percen
tage values.
textLength - SVG: Scalable Vector Graphics
four elements are using this attribute: <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 200 60" xmlns="http://www.w3.org/2000/svg"> <text y="20" textlength="6em">small text length</text> <text y="40" textlength="120%">big text length</text> </svg> usage notes value <length-percen
tage> | <number> default value none animatable yes <length-percen
tage> this value specifies the width of the space the text will be adjusted to occupy as absolute length or percen
tage.
... candidate recommendation allowed percen
tages and numbers as values.
viewBox - SVG: Scalable Vector Graphics
html,body,svg { height:100% } svg:not(:root) { display: inline-block; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!-- with relative unit such as percen
tage, the visual size of the square looks unchanged regardless of the viewbox --> <rect x="0" y="0" width="100%" height="100%"/> <!-- with a large viewbox the circle looks small as it is using user units for the r attribute: 4 resolved against 100 as set in the viewbox --> <circle cx="50%" cy="50%" r="4" fill="white"/> </svg> <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/...
...svg"> <!-- with relative unit such as percen
tage, the visual size of the square looks unchanged regardless of the viewbox` --> <rect x="0" y="0" width="100%" height="100%"/> <!-- with a small viewbox the circle looks large as it is using user units for the r attribute: 4 resolved against 10 as set in the viewbox --> <circle cx="50%" cy="50%" r="4" fill="white"/> </svg> <svg viewbox="-5 -5 10 10" xmlns="http://www.w3.org/2000/svg"> <!-- the point of coordinate 0,0 is now in the center of the viewport, and 100% is still resolve to a width or height of 10 user units so the rectangle looks shifted to the bottom/right corner of the viewport --> <rect x="0" y="0" width="100%" height="100%"/> <!-- with the point of coordinate 0,0 in the center of the viewport...
x1 - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="5" y1="1" y2="9" stroke="red" /> <line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <line x1="9" x2="5" y1="1" y2="9" stroke="blue" /> </svg> lineargradient for <lineargradient>, x1 defines the x coor...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percen
tage> default value 0% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector start at the left bounding limit of the shape it is applied to --> <lineargradient x1="0%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 80% of the left bounding limit of the shape it is applied...
x2 - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="5" x2="1" y1="1" y2="9" stroke="red" /> <line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <line x1="5" x2="9" y1="1" y2="9" stroke="blue" /> </svg> lineargradient for <lineargradient>, x2 defines the x coor...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percen
tage> default value 100% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector end at the right bounding limit of the shape it is applied to --> <lineargradient x2="100%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 20% of the left bounding limit of the shape it is applie...
y1 - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="9" y1="1" y2="5" stroke="red" /> <line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <line x1="1" x2="9" y1="9" y2="5" stroke="blue" /> </svg> lineargradient for <lineargradient>, y1 defines the y coord...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percen
tage> default value 0% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector start at the top left corner of the bounding box of the shape it is applied to.
y2 - SVG: Scalable Vector Graphics
value <length> | <percen
tage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="9" y1="5" y2="1" stroke="red" /> <line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <line x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg> lineargradient for <lineargradient>, y2 defines the y coord...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percen
tage> default value 0% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector end at the top right corner of the bounding box of the shape it is applied to.
<circle> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage> ; default value: 0; animatable: yes cy the y-axis coordinate of the center of the circle.
... value type: <length>|<percen
tage> ; default value: 0; animatable: yes r the radius of the circle.
<textPath> - SVG: Scalable Vector Graphics
value type: <length>|<percen
tage>|<number> ; default value: 0; animatable: yes textlength the width of the space into which the text will render.
... value type: <length>|<percen
tage>|<number> ; default value: auto; animatable: yes global attributes 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, ari...
SVG Tutorial - SVG: Scalable Vector Graphics
the tutorial is in an early s
tage of development.
... 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.
Tutorials
html tutorials introductory level introduction to html this module sets the s
tage, getting you used to important concepts and syntax, looking at applying html to text, how to create hyperlinks, and how to use html to structure a webpage.
... creating a simple web page with html an html guide for beginners that includes explanations of common
tags, including html5
tags.
Using custom elements - Web Components
many modern browsers implement an optimization for <style>
tags either cloned from a common node or that have identical text, to allow them to share a single backing stylesheet.
...some of these libraries are snuggsi ツ, x-
tag, slim.js, litelement, smart, stencil and hyperhtml-element.
XML Index - XML: Extensible Markup Language
found 4 pages: # page
tags and summary 1 xml: extensible markup language draft, landing, web, xml the extensible markup language is a strict serialisation of the document object model.
...this means, unlike other markup languages, xml is not predefined so you must define your own
tags.
Content Scripts - Archive of obsolete content
"sdk/page-worker").page({ contentscriptfile: self.data.url("content-script.js"), contenturl: "http://en.wikipedia.org/wiki/internet" }); pageworker.port.on("first-para", function(firstpara) { console.log(firstpara); }); pageworker.port.emit("get-first-para"); // content-script.js self.port.on("get-first-para", getfirstpara); function getfirstpara() { var paras = document.getelementsby
tagname("p"); if (paras.length > 0) { var firstpara = paras[0].textcontent; self.port.emit("first-para", firstpara); } } from page-mod a single page-mod object might attach its scripts to multiple pages, each with its own context in which the content scripts are executing, so it needs a separate channel (worker) for each page.
XUL Parser in Python/source - Archive of obsolete content
def strip(snip): t = re.sub('http://.*?\s', '', snip) return t class xulparser(xmllib.xmlparser): def unknown_start
tag(self, t, a): name = strip(t) if name not in el_list: el_list[name] = {} for attr,val in a.items(): el_list[name][strip(attr)] = strip(val) def syntax_error(self, message): pass p = xulparser() cmd = 'dir /s /b *.xul' chrome_dir = 'c:\program files\netscape\netscape 6\chrome' os.chdir(chrome_dir) files = os.popen(cmd).readlines() for file in files: file = file.strip() print '**...
Accessibility/XUL Accessibility Reference - Archive of obsolete content
progressmeter <progressmeter mode="determined" value="10" /> as progress advances, jaws indicates percen
tage to the user radio see radiogroup radiogroup <label value='<!--radio group-->' control='radioid' /> <radiogroup id='radioid'> <radio selected="true" label='<!--option1-->' /> <radio label='<!--option2-->' /> </radiogroup> row see grid rows see grid stack all elements can be focused, even if not visi...
action - Archive of obsolete content
,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
assign - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
bbox - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
binding - Archive of obsolete content
,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
bindings - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
box - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
broadcaster - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
broadcasterset - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
caption - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
column - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
columns - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
commandset - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
conditions - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
deck - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
dialog - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
dialogheader - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
dropmarker - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
grid - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
grippy - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
groupbox - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
hbox - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
iframe - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
image - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
listcol - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
listcols - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
member - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
menubar - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
menupopup - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
notification - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
notificationbox - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
observes - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
page - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
panel - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
param - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
popupset - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
preferences - Archive of obsolete content
inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
query - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
queryset - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
resizer - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
row - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
rows - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
scrollcorner - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
separator - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
spacer - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
spinbuttons - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
splitter - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
stack - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
statusbar - Archive of obsolete content
,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
<statusbarpanel> - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
stringbundle - Archive of obsolete content
inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
stringbundleset - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
tabbox - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
tabpanel - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
tabpanels - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
textnode - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
titlebar - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbar - Archive of obsolete content
inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbargrippy - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbaritem - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbarpalette - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbarseparator - Archive of obsolete content
,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbarset - Archive of obsolete content
,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbarspacer - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbarspring - Archive of obsolete content
,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
toolbox - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
tooltip - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
treecell - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
treechildren - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
treecol - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
treecols - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
treeitem - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
treerow - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
treeseparator - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
triple - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
vbox - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
where - Archive of obsolete content
, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
wizard - Archive of obsolete content
methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setatt...
wizardpage - Archive of obsolete content
op, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsby
tagname(), getelementsby
tagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechi...
Building XULRunner with Python - Archive of obsolete content
using python in xul applications add the following to yourprefs.js during development pref("browser.dom.window.dump.enabled", true); pref("javascript.options.showinconsole", true); pref("javascript.options.strict", true); pref("nglayout.debug.disable_xul_cache", true); pref("nglayout.debug.disable_xul_fastload", true); html <script>
tags specify that python is used withtype="application/x-python" attribute.
MacFAQ - Archive of obsolete content
taking advan
tage of the core code "openurl" from "nscommandlineservicemac.cpp", you'll see that it looks for "browser.chromeurl" before defaulting to navigator.xul, and this is called when an xulrunner app is already running, so: create a default preference of "browser.chromeurl" that points to your new "hiddenwindow" as such: "chrome://myxul/content/hiddenwindow.xul" next take the code below and drop it in,...
nsIContentPolicy - Archive of obsolete content
other 0 obsolete since gecko 1.8 script 1 obsolete since gecko 1.8 image 2 obsolete since gecko 1.8 stylesheet 3 obsolete since gecko 1.8 object 4 obsolete since gecko 1.8 subdocument 5 obsolete since gecko 1.8 control_
tag 6 obsolete since gecko 1.8 raw_url 7 obsolete since gecko 1.8 document 8 obsolete since gecko 1.8 methods shouldload() called to let your content policy implementation decide whether or not the resource at a given location should be loaded.
reftest opportunities files - Archive of obsolete content
r/htmlparser/tests/html/title01.html parser/htmlparser/tests/html/title.html parser/htmlparser/tests/html/tiny.html parser/htmlparser/tests/html/thead001.html parser/htmlparser/tests/html/text003.html parser/htmlparser/tests/html/text002.html parser/htmlparser/tests/html/text001.html parser/htmlparser/tests/html/tbody001.html parser/htmlparser/tests/html/target01.html parser/htmlparser/tests/html/
tag008.html parser/htmlparser/tests/html/
tag007.html parser/htmlparser/tests/html/
tag006.html parser/htmlparser/tests/html/
tag005.html parser/htmlparser/tests/html/
tag004.html parser/htmlparser/tests/html/
tag003.html parser/htmlparser/tests/html/
tag002.html parser/htmlparser/tests/html/
tag001.html parser/htmlparser/tests/html/tableall.html parser/htmlparser/tests/html/table205.html parser/htmlparser/...
xbDesignMode.js - Archive of obsolete content
ron rosenberg <doron@netscape.com> (original author) * * * * ***** end license block ***** */ /* xbdesignmode a javascript wrapper for browsers that support designmode */ function xbdesignmode(aiframe){ this.meditordocument = null; this.miframeelement = null; // argument is a string, therefore an id if ( (typeof(aiframe) == "string") && (document.getelementbyid(aiframe).
tagname.tolowercase()=="iframe") ){ this.miframeelement = document.getelementbyid(aiframe); } else if( (typeof(aiframe)=="object") && (aiframe.
tagname.tolowercase() == "iframe") ){ this.miframeelement = aiframe; } else { throw "argument isn't an id of an iframe or an iframe reference"; } if (this.miframeelement.contentdocument){ // gecko this.meditordocument = this.mifram...
Using the CSS properties and values API - Web APIs
the following will register a css custom properties, --my-prop, using @property, as a color, give it a default value, and have it not inherit its value: @property --my-prop { syntax: '<color>'; inherits: false; initial-value: #c0ffee; } using registered custom properties one of the advan
tages of registering a property is that the browser now knows how it should handle your custom property through things like transitions!
Using the CSS Typed Object Model - Web APIs
property value unit padding-top 0 px margin-bottom 16 px font-size 16 px font-stretch 100 percent animation-duration 0 s animation-iteration-count 1 number width auto undefined height auto undefined you'll note the <length> unit returned is px, the <percen
tage> unit returned is percent, the <time> unit is s for 'seconds', and the unitless <number> unit is number.
CanvasCaptureMediaStreamTrack.canvas - Web APIs
example // find the canvas element to capture var canvaselt = document.getelementsby
tagname("canvas")[0]; // get the stream var stream = canvaselt.capturestream(25); // 25 fps // do things to the stream ...
CanvasCaptureMediaStreamTrack.requestFrame() - Web APIs
example // find the canvas element to capture var canvaselt = document.getelementsby
tagname("canvas")[0]; // get the stream var stream = canvaselt.capturestream(25); // 25 fps // send the current state of the canvas as a frame to the stream stream.getvideotracks()[0].requestframe(); specifications specification status comment media capture from dom elementsthe definition of 'canvascapturemediastream.requestframe()' in that specification.
Basic animations - Web APIs
ent.getelementbyid("time").innertext = tmz(), settimeout(() => { requestanimationframe(anima) }, fw) } function emit(t) { key.keydown(t) } function touch(t) { t.classlist.toggle("off"), document.getelementsbyclassname("keypress")[0].classlist.toggle("hide") } var t = new date + "", d = void 0, cc = document.getelementsby
tagname("canvas")[0], c = cc.getcontext("2d"); key = {}, key.keydown = function (t) { var e = document.createevent("keyboardevent"); object.defineproperty(e, "keycode", { get: function () { return this.keycodeval } }), object.defineproperty(e, "key", { get: function () { return 37 == this.keycodeva...
Client.url - Web APIs
example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.
tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: 'window' }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status c...
DOMTokenList.remove() - Web APIs
the order you supply the tokens doesn't have to match the order they appear in the list: let span2 = document.getelementsby
tagname("span")[0] let classes2 = span.classlist; classes2.remove("c", "b"); span2.textcontent = classes; specifications specification status comment domthe definition of 'remove()' in that specification.
Document.caretRangeFromPoint() - Web APIs
range = document.caretrangefrompoint(e.clientx, e.clienty); textnode = range.startcontainer; offset = range.startoffset; } // only split text_nodes if (textnode && textnode.nodetype == 3) { let replacement = textnode.splittext(offset); let br = document.createelement('br'); textnode.parentnode.insertbefore(br, replacement); } } let paragraphs = document.getelementsby
tagname("p"); for (let i = 0; i < paragraphs.length; i++) { paragraphs[i].addeventlistener('click', insertbreakatpoint, false); } result ...
Document.createCDATASection() - Web APIs
example var docu = new domparser().parsefromstring('<xml></xml>', 'application/xml') var cdata = docu.createcdatasection('some <cdata> data & then some'); docu.getelementsby
tagname('xml')[0].appendchild(cdata); alert(new xmlserializer().serializetostring(docu)); // displays: <xml><![cdata[some <cdata> data & then some]]></xml> notes this will only work with xml, not html documents (as html documents do not support cdata sections); attempting it on an html document will throw not_supported_err.
Document.createComment() - Web APIs
example var docu = new domparser().parsefromstring('<xml></xml>', 'application/xml'); var comment = docu.createcomment('this is a not-so-secret comment in your document'); docu.getelementsby
tagname('xml')[0].appendchild(comment); alert(new xmlserializer().serializetostring(docu)); // displays: <xml><!--this is a not-so-secret comment in your document--></xml> specifications specification status comment domthe definition of 'document.createcomment' in that specification.
Document.evaluate() - Web APIs
for example, if you know the content you are looking for is somewhere inside the body
tag, you can use this: document.evaluate(".//h2", document.body, null, xpathresult.any_type, null); notice in the above document.body has been used as the context instead of document so the xpath starts from the body element.
Document.getElementsByName() - Web APIs
example <!doctype html> <html lang="en"> <title>example: using document.getelementsbyname</title> <input type="hidden" name="up"> <input type="hidden" name="down"> <script> var up_names = document.getelementsbyname("up"); console.log(up_names[0].
tagname); // displays "input" </script> </html> notes the name attribute can only be applied in (x)html documents.
Range.intersectsNode() - Web APIs
example var range = document.createrange(); range.selectnode(document.getelementsby
tagname("div").item(0)); var bool = range.intersectsnode(document.getelementsby
tagname("p").item(0)); specification specification status comment domthe definition of 'range.intersectnode()' in that specification.
Range.isPointInRange() - Web APIs
example range = document.createrange(); range.selectnode(document.getelementsby
tagname("div").item(0)); bool = range.ispointinrange(document.getelementsby
tagname("p").item(0),1); specification specification status comment domthe definition of 'range.ispointinrange()' in that specification.
Range.selectNode() - Web APIs
example let range = document.createrange(); let referencenode = document.getelementsby
tagname('div').item(0); range.selectnode(referencenode); specifications specification status comment domthe definition of 'range.selectnode()' in that specification.
Range.selectNodeContents() - Web APIs
example range = document.createrange(); referencenode = document.getelementsby
tagname("div")[0]; range.selectnodecontents(referencenode); live sample this example lets the user select and deselect a paragraph with buttons.
Range.setEnd() - Web APIs
example const range = document.createrange(); const endnode = document.getelementsby
tagname('p').item(3); const endoffset = endnode.childnodes.length; range.setend(endnode, endoffset); setend() is commonly used in conjunction with setstart() to fully configure a range.
Range.setEndAfter() - Web APIs
example var range = document.createrange(); var referencenode = document.getelementsby
tagname('div').item(0); range.setendafter(referencenode); specifications specification status comment domthe definition of 'range.setendafter()' in that specification.
Range.setEndBefore() - Web APIs
example var range = document.createrange(); var referencenode = document.getelementsby
tagname("div").item(0); range.setendbefore(referencenode); specifications specification status comment domthe definition of 'range.setendbefore()' in that specification.
Range.setStartAfter() - Web APIs
example var range = document.createrange(); var referencenode = document.getelementsby
tagname("div").item(0); range.setstartafter(referencenode); specifications specification status comment domthe definition of 'range.setstartafter()' in that specification.
Range.setStartBefore() - Web APIs
example var range = document.createrange(); var referencenode = document.getelementsby
tagname("div").item(0); range.setstartbefore(referencenode); specifications specification status comment domthe definition of 'range.setstartbefore()' in that specification.
Range.toString() - Web APIs
look at the output below.</p> <p id="log"></p> javascript const range = document.createrange(); range.setstartbefore(document.getelementsby
tagname('b').item(0), 0); range.setendafter(document.getelementsby
tagname('b').item(1), 0); document.getelementbyid('log').textcontent = range.tostring(); result specifications specification status comment domthe definition of 'range.tostring()' in that specification.
Request.cache - Web APIs
fetch("some.json", {cache: "reload"}) .then(function(response) { /* consume the response */ }); // download a resource with cache busting when dealing with a // properly configured server that will send the correct e
tag // and date headers and properly handle if-modified-since and // if-none-match request headers, therefore we can rely on the // validation to guarantee a fresh response.
SVGGraphicsElement: copy event - Web APIs
3.org/2000/svg"> <text x="5" y="10" id="text-to-copy">copy this text</text> <foreignobject x="5" y="20" width="90" height="20"> <input xmlns="http://www.w3.org/1999/xhtml" placeholder="paste it here"/> </foreignobject> </svg> css input { font-size: 10px; width: 100%; height: 90%; box-sizing: border-box; border: 1px solid black; } javascript document.getelementsby
tagname("text")[0].addeventlistener("copy", evt => { evt.clipboarddata.setdata('text/plain', document.getselection().tostring().touppercase()); evt.preventdefault(); }); result specifications specification status comment scalable vector graphics (svg) 2 candidate recommendation definition that the clipboard events apply to svg elements.
The 'X' property - Web APIs
usage context name x value <length> | <percen
tage> initial 0 applies to <mask> , ‘svg’, ‘rect’, ‘image’, ‘foreignobject’ inherited no percen
tages refer to the size of the current viewport (see units) media visual computed value absolute length or percen
tage animatable yes simple usage a <coordinate> is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the relevant axis (the x-axis for x coordinates, the y-axis for y coordinates).
Selection.addRange() - Web APIs
html <p>i <strong>insist</strong> that you <strong>try</strong> selecting the <strong>strong words</strong>.</p> <button>select strong words</button> javascript let button = document.queryselector('button'); button.addeventlistener('click', function () { let selection = window.getselection(); let strongs = document.getelementsby
tagname('strong'); if (selection.rangecount > 0) { selection.removeallranges(); } for (let i = 0; i < strongs.length; i++) { let range = document.createrange(); range.selectnode(strongs[i]); selection.addrange(range); } }); result specifications specification status comment selection apithe definition of 'selection.addrange()' in that specificati...
Selection.collapse() - Web APIs
*/ var body = document.getelementsby
tagname("body")[0]; window.getselection().collapse(body,0); specifications specification status comment selection apithe definition of 'selection.collapse()' in that specification.
Privacy, permissions, and information security
for example, if a site leaks a list of users' names and zip codes online, a bad actor could almost certainly track down at least some percen
tage of those users by simply using the corresponding phone books.
fill-opacity - SVG: Scalable Vector Graphics
cle>, <ellipse>, <path>, <polygon>, <polyline>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 400 100" xmlns="http://www.w3.org/2000/svg"> <!-- default fill opacity: 1 --> <circle cx="50" cy="50" r="40" /> <!-- fill opacity as a number --> <circle cx="150" cy="50" r="40" fill-opacity="0.7" /> <!-- fill opacity as a percen
tage --> <circle cx="250" cy="50" r="40" fill-opacity="50%" /> <!-- fill opacity as a css property --> <circle cx="350" cy="50" r="40" style="fill-opacity: .25;" /> </svg> usage notes value [0-1] | <percen
tage> default value 1 animatable yes note: svg2 introduces percen
tage values for fill-opacity, however, it is not widely su...
font-size - SVG: Scalable Vector Graphics
it has effect only on the following eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-size="smaller">smaller</text> <text x="100" y="20" font-size="2em">2em</text> </svg> usage notes value <absolute-size> | <relative-size> | <length-percen
tage> default value medium animatable yes for a description of the values, please refer to the css font-size property.
maskUnits - SVG: Scalable Vector Graphics
objectboundingbox this value indicates that all coordinates for the geometry attributes represent fractions or percen
tages of the bounding box of the element to which the mask is applied.
patternUnits - SVG: Scalable Vector Graphics
objectboundingbox this value indicates that all coordinates for the geometry properties represent fractions or percen
tages of the bounding box of the element to which the mask is applied.
stroke-dasharray - SVG: Scalable Vector Graphics
-dasharray="4 1 2" /> <!-- dashes and gaps of various sizes with an even number of values --> <line x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="4 1 2 3" /> </svg> usage notes value none | <dasharray> default value none animatable yes <dasharray> a list of comma and/or white space separated <length>s and <percen
tage>s that specify the lengths of alternating dashes and gaps.
stroke-dashoffset - SVG: Scalable Vector Graphics
ts which ends up in the same rendering as the previous example --> <line x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="3 1" stroke-dashoffset="1" /> <!-- the following red lines highlight the offset of the dash array for each line --> <path d="m0,5 h-3 m0,7 h3 m0,9 h-1" stroke="rgba(255,0,0,.5)" /> </svg> usage notes value <percen
tage> | <length> default value 0 animatable yes the offset is usually expressed in user units resolved against the pathlength but if a <percen
tage> is used, the value is resolved as a percen
tage of the current viewport.
stroke-opacity - SVG: Scalable Vector Graphics
gon>, <polyline>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 40 10" xmlns="http://www.w3.org/2000/svg"> <!-- default stroke opacity: 1 --> <circle cx="5" cy="5" r="4" stroke="green" /> <!-- stroke opacity as a number --> <circle cx="15" cy="5" r="4" stroke="green" stroke-opacity="0.7" /> <!-- stroke opacity as a percen
tage --> <circle cx="25" cy="5" r="4" stroke="green" stroke-opacity="50%" /> <!-- stroke opacity as a css property --> <circle cx="35" cy="5" r="4" stroke="green" style="stroke-opacity: .3;" /> </svg> usage notes value [0-1] | <percen
tage> default value 1 animatable yes note: svg2 introduces percen
tage values for stroke-opacit...
stroke-width - SVG: Scalable Vector Graphics
th>, <polygon>, <polyline>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <!-- default stroke width: 1 --> <circle cx="5" cy="5" r="3" stroke="green" /> <!-- stroke width as a number --> <circle cx="15" cy="5" r="3" stroke="green" stroke-width="3" /> <!-- stroke width as a percen
tage --> <circle cx="25" cy="5" r="3" stroke="green" stroke-width="2%" /> </svg> usage notes value <length> | <percen
tage> default value 1px animatable yes note: a percen
tage value is always computed as a percen
tage of the normalized viewbox diagonal length.
xml:lang - SVG: Scalable Vector Graphics
<svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <text xml:lang="en-us">this is some english text</text> </svg> usage notes value <language-
tag> default value none animatable no <language-
tag> this value specifies the language used for the element.
<a> - SVG: Scalable Vector Graphics
see warning below */ svg|a:link, svg|a:visited { cursor: pointer; } svg|a text, text svg|a { fill: blue; /* even for text, svg uses fill over color */ text-decoration: underline; } svg|a:hover, svg|a:active { outline: dotted 1px blue; } since this element shares its
tag name with html's <a> element, selecting a with css or queryselector may apply to the wrong kind of element.