Search completed in 1.26 seconds.
2506 results for "none":
Your results are loading. Please wait...
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 ETag matching the given ones. For other methods, the request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. When the condition fails for GET and HEAD methods, then the server must return HTTP status code 304 (Not Modified). For methods that apply server-side changes, the status code 412 (Precondition Failed) is used. ...
...tion, Date, ETag, Expires, and Vary. The comparison with the stored ETag uses the weak comparison algorithm, meaning two files are considered identical if the content is equivalent -- they don't have to be identical byte for byte. For example, two pages that differ by the date of generation in the footer would still be considered as identical. ...
...for byte. For example, two pages that differ by the date of generation in the footer would still be considered as identical. When used in combination with If-Modified-Since, If-None-Match has precedence (if the server supports it). There are two common use cases: For GET and HEAD methods, to update a cached entity that has an associated ETag. For other methods, and in particular for PUT, If-None-Match used with the * value can be used to save a file not known to exist, guaranteeing that another upload didn't happen before, losing the data of the previous put; this problem is a variation of the lost update problem. Header type Request header Forbidden header name no Syntax If-None-Match: "<etag_value>" If-None-Match: "<etag_value>", "<etag_value>", ... If...
...And 5 more matches
Using Feature Policy - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Specifying your policy Feature Policy provides two ways to specify policies to control features: The Feature-Policy HTTP header. The allow attribute on <iframe>s. The primary difference between the HTTP header and the allow attribute is that the allow attribute only controls features within an iframe. The header control...
...ge. The Feature-Policy HTTP header You can send the Feature-Policy HTTP header with the response of a page. The value of this header is a policy to be enforced by the browser for the given page. It has the following structure. ...
...And 14 more matches
stroke-linejoin - SVG: Scalable Vector Graphics
applied to any element but it has effect only on the following nine elements: <altGlyph>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewBox="0 0 18 12" xmlns="http://www.w3.org/2000/svg"> <!-- Upper left path: Effect of the "miter" value --> <path d="M1,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" stroke="black" fill="none" stroke-linejoin="miter" /> <!-- Center path: Effect of the "round" value --> <path d="M7,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" stroke="black" fill="none" stroke-linejoin="round" /> <!-- Upper right path: Effect of the "bevel" value --> <path d="M13,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" stroke="black" fill="none" stroke-linejoin="bevel" /> <!-- Bo...
... stroke-linejoin="round" /> <!-- Upper right path: Effect of the "bevel" value --> <path d="M13,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" stroke="black" fill="none" stroke-linejoin="bevel" /> <!-- Bottom left path: Effect of the "miter-clip" value with fallback to "miter" if not supported. --> <path d="M3,11 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" stroke="black" fill="none" stroke-linejoin="miter-clip" /> <!-- Bottom right path: Effect of the "arcs" value with fallback to "miter" if not supported. ...
...om left path: Effect of the "miter-clip" value with fallback to "miter" if not supported. --> <path d="M3,11 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" stroke="black" fill="none" stroke-linejoin="miter-clip" /> <!-- Bottom right path: Effect of the "arcs" value with fallback to "miter" if not supported. ...
...And 13 more matches
Table Layout Regression Tests - Archive of obsolete content
7,4872,600 Node 1: TableOuter(table)(144) 0x10004 0,26437,4824,600, |null attr|-16777216|left: 0[0x0]tw top: 0[0x0]tw right: 0[0x0]tw bottom: 0[0x0]tw left: 0[0x0]tw top: 0[0x0]tw right: 0[0x0]tw bottom: 0[0x0]tw left: 1[0x1]enum top: 1[0x1]enum right: 1[0x1]enum bottom: 1[0x1]enum left: Null top: Null right: Null bottom: Null left: Null top: Null right: Null bottom: Null 1[0x1]enum 0|1 1 [none]|left: Auto top: Auto right: Auto bottom: Auto Auto 0[0x0]tw Null Auto 0[0x0]tw Null 0 Auto |0 0 0 Normal Normal 0[0x0]tw Normal |0 8 1,000000 0 0 0 0 0 0 0 0 0 0 0 [none]|0 0 0 -1 1 |0 0 0 Null Node 2: TableOuter(table)(144) 0x10004 0,26437,4872,600, |null attr|-16777216|left: 0[0x0]tw top: 0[0x0]tw right: 0[0x0]tw bottom: 0[0x0]tw left: 0[0x0]tw top: 0[0x0]tw right: 0[0x0]tw bott...
...0,0,4872,600 Node 1: Table(table)(144) 0x10004 0,0,4824,600, |null attr|-16777216|left: Null top: 0[0x0]tw right: Null bottom: 0[0x0]tw left: Null top:...
...right: 0[0x0]tw bottom: 0[0x0]tw left: 1[0x1]enum top: 1[0x1]enum right: 1[0x1]enum bottom: 1[0x1]enum left: Null top: Null right: Null bottom: Null left: Null top: Null right: Null bottom: Null 1[0x1]enum 0|1 1 [none]|left: Auto top: Auto right: Auto bottom: Auto Auto 0[0x0]tw Null Auto 0[0x0]tw Null 0 Auto |0 0 0 Normal Normal 0[0x0]tw Normal |0 8 1,000000 0 0 0 0 0 0 0 0 0 0 0 [none]|0 0 0 -1 1 |0 0 0 Null frame bbox mismatch: 0,0,4824,600 vs. 0,0,4872,600 Node 1: Table(table)(144) 0x10004 0,0,4824,600, |null attr|-16777216|left: Null top: 0[0x0]tw right: Null bottom: 0[0x0]tw left: Null top: Null right: Null bottom: Null left: 1[0x1]enum top: 1[0x1]enum right: 1[0x1]enum bottom: 1[0x1]enum left: Null top: Null right: Null bottom: Null left: Null top: Null right: Null ...
...And 12 more matches
Index - Web APIs
Web › API › Index
dowClient objects from methods such as Clients.matchAll() and Clients.get(). 625 Client.frameType API, Client, Experimental, NeedsExample, Property, Reference, Service Workers, ServiceWorker, frameType The frameType read-only property of the Client interface indicates the type of browsing context of the current Client. This value can be one of auxiliary, top-level, nested, or none. 626 Client.id API, Client, Experimental, NeedsExample, Property, Reference, Service Workers, ServiceWorker, id The id read-only property of the Client interface returns the universally unique identifier of the Client object. 627 Client.postMessage() API, Client, Experimental, Method, Reference, Service Workers, Service worker API, ServiceWorker, postMessage ...
...API. 706 DOMException() API, Constructor, DOMException, Reference The DOMException() constructor returns a DOMException object with a specified message and name. 707 DOMException.code API, Code, DOMException, Property, Reference The code read-only property of the DOMException interface returns a short that contains one of the error code constants, or 0 if none match. This field is used for historical reasons. New DOM exceptions don't use this anymore: they put this info in the DOMException.name attribute. 708 DOMException.message API, DOMException, Property, Reference, message The message read-only property of the DOMException interface returns a DOMString representing a message or description associated with the given error name. ...
...ment, Property, Reference The Document.currentScript property returns the <script> element whose script is currently being processed and isn't a JavaScript module. (For modules use import.meta instead.) 896 Document.defaultView API, Document, HTML DOM, Property, Reference In browsers, document.defaultView returns the window object associated with a document, or null if none is available. 897 Document.designMode API, Document, HTML DOM, NeedsContent, NeedsSpecTable, Property, Reference, editor document.designMode controls whether the entire document is editable. Valid values are "on" and "off". According to the specification, this property is meant to default to "off". Firefox follows this standard. The earlier versions of Chrome and IE default t...
...And 12 more matches
Box-shadow generator - CSS: Cascading Style Sheets
out) */ } /* GRID COLUMN SETUP * ========================================================================== */ .col { display: block; float:left; margin: 1% 0 1% 1.6%; } .col:first-child { margin-left: 0; } /* all browsers except IE6 and lower */ /* * UI Slider */ .slidergroup { height: 20px; margin: 10px 0; font-family: "Segoe UI", Arial, Helvetica, sans-serif; -moz-user-select: none; user-select: none; } .slidergroup * { float: left; height: 100%; line-height: 100%; } /* Slider */ .ui-slider { height: 10px; width: 200px; margin: 4px 10px; display: block; border: 1px solid #999; border-radius: 3px; background: #EEE; } .ui-slider:hover { cursor: pointer; } .ui-slider-name { width: 90px; padding: 0 10px 0 0; text-align: right; text-transform: lowercase; } ...
...: pointer; } .ui-slider-input > input { margin: 0 10px; padding: 0; width: 50px; text-align: center; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } /* * UI Button */ /* Checkbox */ .ui-checkbox { text-align: center; font-size: 16px; font-family: "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5em; color: #FFF; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-checkbox > input { display: none; } .ui-checkbox > label { font-size: 12px; padding: 0.333em 1.666em 0.5em; height: 1em; line-height: 1em; background-color: #888; background-image: url("https://mdn.mozillademos.org/files/5683/disabled.png"); background-position: center center; background-repeat: no-repeat;...
...put:checked + label { background-image: url("https://mdn.mozillademos.org/files/5681/checked.png"); background-color: #379B4A; } /* * BOX SHADOW GENERATOR TOOL */ body { max-width: 1000px; height: 800px; margin: 20px auto 0; font-family: "Segoe UI", Arial, Helvetica, sans-serif; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; } #container { width: 100%; padding: 2px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } /* container with shadows stacks */ #stack_container { height: 400px; overflow: hidden; position: relative; border: 1px solid #CCC; border-radius: 3px; -moz-box-sizing: border-box; -webkit-box-sizing:...
...And 12 more matches
Advanced form styling - Learn web development
ox all support the -webkit- prefixed version (-webkit-appearance). Firefox settled on this because web developers mostly seemed to be using the -webkit- prefixed version, so it was better for compatibility. If you look at the reference page you'll see a lot of different possible values listed for -webkit-appearance, however by far the most helpful value, and probably the only one you'll use, is none. This stops any control you apply it to from using system-level styling, as much as possible, and lets you build up the styles yourself using CSS. For example, let's take the following controls: <form> <p> <label for="search">search: </label> <input id="search" name="search" type="search"> </p> <p> <label for="text">text: </label> <input id="text" name="text" type="text"> ...
...el for="radio">radio: </label> <input id="radio" name="radio" type="radio"> </p> <p> <label for="checkbox">checkbox: </label> <input id="checkbox" name="checkbox" type="checkbox"> </p> <p><input type="submit" value="submit"></p> <p><input type="button" value="button"></p> </form> Applying the following CSS to them removes system-level styling. input { -webkit-appearance: none; appearance: none; } Note: It is a good idea to always include both declarations -- prefixed and unprefixed -- when using a prefixed property. Prefixed usually means "work in progress", so in the future browser vendors may come to a consensus to drop the prefix. The above code is good for future-proofing against such an eventuality. The following live example shows you what they look like i...
...ind it here also if you want to test it on other systems). In most cases, the effect is to remove the stylized border, which makes CSS styling a bit easier, but isn't really essential. In a couple of cases -- search and radio buttons/checkboxes, it becomes way more useful. We'll look at those now. Taming search boxes <input type="search"> is basically just a text input, so why is appearance: none; useful here? The answer is that in Chromium-based browsers on macOS, search boxes have some styling restrictions -- you can't adjust their height or font-size freely, for example. This is because non-macOS Chrome browsers no longer use the WebKit rendering engine, which enabled Aqua appearance by default for certain form controls. With Aqua enabled, some form controls are not scalable. This ca...
...And 11 more matches
filter - CSS: Cascading Style Sheets
Web › CSS › filter
rl("filters.svg#filter-id"); /* <filter-function> values */ filter: blur(5px); filter: brightness(0.4); filter: contrast(200%); filter: drop-shadow(16px 16px 20px blue); filter: grayscale(50%); filter: hue-rotate(90deg); filter: invert(75%); filter: opacity(25%); filter: saturate(30%); filter: sepia(60%); /* Multiple filters */ filter: contrast(175%) brightness(3%); /* Use no filter */ filter: none; /* Global values */ filter: inherit; filter: initial; filter: unset; With a function, use the following: filter: <filter-function> [<filter-function>]* | none For a reference to an SVG <filter> element, use the following: filter: url(file.svg#filter-element-id) Interpolation If both the beginning and end filters have a function list of the same length without <url>, each of their filte...
... filters have a function list of the same length without <url>, each of their filter functions is interpolated according to its specific rules. If they have different lengths, the missing equivalent filter functions from the longer list are added to the end of the shorter list using their lacuna values, then all filter functions are interpolated according to their specific rules. If one filter is none, it is replaced with the filter functions list of the other one using the filter function default values, then all filter functions are interpolated according to their specific rules. Otherwise, discrete interpolation is used. Functions The filter property is specified as none or one or more of the functions listed below. If the parameter for any function is invalid, the function returns none. ...
... overflow:hidden; } #img2 { width:100%; height:auto; -webkit-filter:blur(5px); -ms-filter:blur(5px); filter:blur(5px); } table.standard-table { border: 1px solid rgb(187, 187, 187); border-collapse: collapse; border-spacing: 0; margin: 0 0 1.286em; height: 100%; width: 85%; } table.standard-table th { border: 1px solid rgb(187, 187, 187); padding: 0px 5px; background: none repeat scroll 0% 0% rgb(238, 238, 238); text-align: left; font-weight: bold; } table.standard-table td { padding: 5px; border: 1px solid rgb(204, 204, 204); text-align: left; vertical-align: top; width:25%; height:auto; } #img3 { height:100%; } <svg style="position: absolute; top: -99999px" xmlns="http://www.w3.org/2000/svg"> <filter id="svgBlur" x="-5%" y="-5%" width="110%...
...And 11 more matches
d - SVG: Scalable Vector Graphics
Web › SVG › Attribute › d
bute defines a path to be drawn. A path definition is a list of path commands where each command is composed of a command letter and numbers that represent the command parameters. The commands are detailed below. ...
... { height:100% } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="red" d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z" /> </svg> path For <path>, d is a string containing a series of path commands that define the path to be drawn. Value <string> Default value none Animatable Yes glyph Warning: As of SVG2 <glyph> is deprecated and shouldn't be used. For <glyph>, d is a string containing a series of path commands that define the outline shape of the glyph. ...
...However the <glyph> element has its origin in the bottom left corner of its letterbox. ...
...And 11 more matches
Index - Archive of obsolete content
tes Add-ons, Extensions In order to complete this tutorial you need to have and know how to use the following programs on your computer: 397 Specifying the appearance Add-ons, Extensions Now that we have defined a panel in which to display an icon, we use CSS to specify which icon to display. For this we have to first create four icons, one for each tinderbox state (none, success, test failed, and busted), then create a set of CSS rules that displays the icon corresponding to the current tinderbox state: 398 Tinderbox Add-ons, Extensions Tinderbox is a web tool for tracking the status of the Mozilla source code. It consists of a set of client machines that continuously build and test Mozilla and report their results back to a server that make...
...Thanks t...
...s This document may be distributed and modified freely. No guarantee of factuality in this FAQ is made, and it is maintained by Pat Gunn, who is not affiliated with Netscape. Various other people have contributed to this FAQ. 3438 Newsgroup summaries No summary! 3439 Format No summary! 3440 Mozilla.dev.apps.firefox-2006-09-29 None this week. 3441 Mozilla.dev.apps.firefox-2006-10-06 None this week. 3442 mozilla-dev-accessibility No summary! 3443 2006-10-06 No summary! 3444 2006-11-10 No summary! 3445 2006-11-22 No summary! 3446 mozilla-dev-apps-calendar No summary! 3447 2006-09-29 ...
...And 9 more matches
source-editor.jsm
he event, call removeEventListener(). void addEventListener( String aEventType, Function aCallback ); Parameters aEventType The name of the event type to listen for; see Event name constants for possible values. aCallback The function to call when the specified event occurs. canRedo() Determines whether or not there are changes that can be redone. Boolean canRedo(); Parameters None. Return value true if there are changes that can be redone, otherwise false. canUndo() Determines whether or not there are changes that can be undone. Boolean canUndo(); Parameters None. Return value true if there are changes that can be undone, otherwise false. destroy() Destroys the editor, releasing resource it's allocated and removing event handlers it's installed. You should call...
...do() Determines whether or not there are changes that can be undone. Boolean canUndo(); Parameters None. Return value true if there are changes that can be undone, otherwise false. destroy() Destroys the editor, releasing resource it's allocated and removing event handlers it's installed. You should call this method when you're done using the editor object. void destroy(); Parameters None. dropSelection() Deselects the currently selected text. void dropSelection(); Parameters None. endCompoundChange() Ends a compound change that was previously started by calling startCompoundChange(). All changes made to the text between the two calls is considered to be a single edit for the purposes of undo operations. void endCompoundChange(); Parameters None. find() Finds a strin...
... findNext( Boolean aWrap }; Parameters aWrap If true, the search operation will wrap around to the end of the text. Otherwise, the search stops if the beginning of the text is reached. Return value The offset into the text at which the next occurrence of the string begins, or -1 if the string isn't found. focus() Makes the editor the focus for user input. void focus(); Parameters None. getBreakpoints Returns an array of all of the breakpoints currently set on the code in the editor instance. Array getBreakpoints(); Parameters None. Return value An Array of all of the breakpoints in the editor instance. Each breakpoint is an Object with the following properties: Property Type Description line Number The 0-based line number on which the bre...
...And 9 more matches
Border-radius generator - CSS: Cascading Style Sheets
D COLUMN SETUP * ========================================================================== */ .col { display: block; float:left; margin: 1% 0 1% 1.6%; } .col:first-child { margin-left: 0; } /* all browsers except IE6 and lower */ /* * UI Component */ .ui-input-slider-container { height: 20px; margin: 10px 0; font-family: "Segoe UI", Arial, Helvetica, sans-serif; -moz-user-select: none; user-select: none; } .ui-input-slider-container * { float: left; height: 100%; line-height: 100%; } /* Input Slider */ .ui-input-slider > input { margin: 0; padding: 0; width: 50px; text-align: center; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .ui-input-slider-info { width: 90px; padding: 0px 10px 0px 0px; text-align: right; text-t...
...lor: #2C9FC9; border-radius: 5px; color: #FFF; font-weight: bold; line-height: 14px; text-align: center; } .ui-input-slider-btn-set:hover { background-color: #379B4A; cursor: pointer; } /* * UI Component */ /* Checkbox */ .ui-checkbox { text-align: center; font-size: 16px; font-family: "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5em; color: #FFF; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-checkbox > input { display: none; } .ui-checkbox > label { font-size: 12px; padding: 0.333em 1.666em 0.5em; height: 1em; line-height: 1em; background-color: #888; background-image: url("https://mdn.mozillademos.org/files/5683/disabled.png"); background-position: center center; background-repeat: no-repeat;...
...box > label:hover { cursor: pointer; } .ui-checkbox > input:checked + label { background-image: url("https://mdn.mozillademos.org/files/5681/checked.png"); background-color: #379B4A; } body { max-width: 1000px; margin: 0 auto; font-family: "Segoe UI", Arial, Helvetica, sans-serif; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } #container { width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } /******************************************************************************/ /******************************************************************************/ /* * Preview Area */ #preview { height...
...And 9 more matches
Color picker tool - CSS: Cascading Style Sheets
div> <div id="canvas" data-tutorial="drop"> <div id="zindex" class="ui-input-slider" data-topic="z-index" data-info="z-index" data-max="20" data-sensivity="10"></div> </div> </div> CSS /* * COLOR PICKER TOOL */ .ui-color-picker { width: 420px; margin: 0; border: 1px solid #DDD; background-color: #FFF; display: table; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-color-picker .picking-area { width: 198px; height: 198px; margin: 5px; border: 1px solid #DDD; position: relative; float: left; display: table; } .ui-color-picker .picking-area:hover { cursor: default; } /* HSV format - Hue-Saturation-Value(Brightness) */ .ui-color-picker .picking-area { background: url('ht...
...name { height: 20px; width: 30px; text-align: center; font-size: 14px; line-height: 18px; float: left; } .ui-color-picker .input input { width: 30px; height: 18px; margin: 0; padding: 0; border: 1px solid #DDD; text-align: center; float: right; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; } .ui-color-picker .input[data-topic="lightness"] { display: none; } .ui-color-picker[data-mode='HSL'] .input[data-topic="value"] { display: none; } .ui-color-picker[data-mode='HSL'] .input[data-topic="lightness"] { display: block; } .ui-color-picker .input[data-topic="alpha"] { margin-top: 10px; width: 93px; } .ui-color-picker .input[data-topic="alpha"] > .name { width: 60px; } .ui-color-picker .input[data-topic="alpha"] > input { float: right; } .
...y: block; } .ui-color-picker .input[data-topic="alpha"] { margin-top: 10px; width: 93px; } .ui-color-picker .input[data-topic="alpha"] > .name { width: 60px; } .ui-color-picker .input[data-topic="alpha"] > input { float: right; } .ui-color-picker .input[data-topic="hexa"] { width: auto; float: right; margin: 6px 8px 0 0; } .ui-color-picker .input[data-topic="hexa"] > .name { display: none; } .ui-color-picker .input[data-topic="hexa"] > input { width: 90px; height: 24px; padding: 2px 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } /* Preview color */ .ui-color-picker .preview { width: 95px; height: 53px; margin: 5px; margin-top: 10px; border: 1px solid #DDD; background-image: url("https://mdn.mozillademos.org/files/5705/alpha.
...And 9 more matches
user-select - CSS: Cascading Style Sheets
The user-select CSS property controls whether the user can select text. This doesn't have any effect on content loaded as chrome, except in textboxes. ...
...user-select CSS property controls whether the user can select text. This doesn't have any effect on content loaded as chrome, except in textboxes. ...
...ent loaded as chrome, except in textboxes. ...
...And 9 more matches
xlink:href - SVG: Scalable Vector Graphics
ern>, <radialGradient>, <script>, <set>, <textPath>, <tref>, and <use>} html, body, svg { height: 100%; } <svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a xlink:href="https://developer.mozilla.org/"><text x="10" y="25">MDN Web Docs</text></a> </svg> a For <a>, xlink:href defines the location of the referenced object. Value <iri> Default value None Animatable Yes altGlyph For <altGlyph>, xlink:href defines the reference either to a <glyph> element in an SVG document fragment or to an <altGlyphDef> element. If the reference is to a <glyph> element and that glyph is available, then that glyph is rendered instead of the characters that are inside of the <altGlyph> element. If the reference is to an <altGlyphDef> eleme...
...lyph is rendered instead of the characters that are inside of the <altGlyph> element. If the reference is to an <altGlyphDef> element, then if an appropriate set of alternate glyphs is located from processing the <altGlyphDef> element, then those alternate glyphs are rendered instead of the characters that are inside of the <altGlyph> element. Value <iri> Default value None Animatable No animate, animateColor, animateMotion, animateTransform, set For <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set>, xlink:href defines the reference to the element which is the target of this animation and which therefore will be modified over time. The target element must be part of the current SVG document fragment. The value must point...
...capable of being the target of the given animation. If the xlink:href attribute is not provided, the target element will be the immediate parent element of the current animation element. Refer to the descriptions of the individual animation elements for any restrictions on what types of elements can be targets of particular types of animations. ...
...And 9 more matches
Index
Mozilla › Tech › XPCOM › Index
case is an image map where each area is associated with multiple actions, for example an image map of smart tags. In this case you would have to implement two levels of accessible hyperlinks. The first level hyperlinks would only implement anchor() and anchorTarget(). The anchors would all reference the image object. The anchorTargets would reference the second level accessible hyperlink objects. None of the IAccessibleAction methods would be implemented on the first level hyperlink objects. The second level hyperlink objects would implement the IAccessibleAction methods. Their anchors would also reference the image object and their anchorTargets would reference URLs or the objects that would be activated. This use case demonstrates that in some cases there is no need for IAccessibleHyperlink ...
...cessibleSelectable Accessibility, Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference Adds the specified accessible child of the object to the object's selection. If the specified object is already selected, then it does nothing. 313 nsIAccessibleStateChangeEvent Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference None. 314 nsIAccessibleStates Accessibility, Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference Prior to Gecko 1.9, these constants were implemented in nsIAccessible. 315 nsIAccessibleTable Accessibility, Interfaces, Interfaces:Scriptable, NeedsContent, XPCOM, XPCOM API Reference Return the accessible object at the specified row and column in ...
...erence Return the accessible object at the specified row and column in the table. If both row and column index are valid then the corresponding accessible object is returned that represents the requested cell regardless of whether the cell is currently visible (on the screen). 316 nsIAccessibleTableCell Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference None. 317 nsIAccessibleTableChangeEvent No summary! 318 nsIAccessibleText Accessibility, Interfaces, Interfaces:Scriptable, NeedsContent, XPCOM Interface Reference Get the accessible and start/end offsets around the given offset. This accessible get return the DOM node and layout frame with the uniform attributes for this range of text. 319 nsIAcce...
...And 8 more matches
imgIContainer
of this image (one of the TYPE_* values above). Read only. width PRInt32 The width of the container rectangle. In the case of any error, zero is returned, and an exception will be thrown. Read only. Constants Constant Value Description TYPE_RASTER 0 Enumerated values for the 'type' attribute (below). TYPE_VECTOR 1 FLAG_NONE 0x0 Flags for imgIContainer operations. Meanings: FLAG_NONE: Lack of flags. FLAG_SYNC_DECODE: Forces synchronous/non-progressive decode of all available data before the call returns. It is an error to pass this flag from a call stack that originates in a decoder (that is, from a decoder observer event). FLAG_DECODE_NO_PREMULTIPLY_ALPHA: Do not premultiply alpha if it is...
... aPaletteDepth Missing Description imageData Missing Description imageLength Missing Description paletteData Missing Description paletteLength Missing Description Exceptions thrown Missing Exception Missing Description clear() Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) void clear(); Parameters None. Exceptions thrown Missing Exception Missing Description Native code only!copyCurrentFrame Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Create and return a new copy of the current frame that you can write ...
...yCurrentFrame Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Create and return a new copy of the current frame that you can write to and otherwise inspect the pixels of. gfxImageSurface copyCurrentFrame(); Parameters None. Return value Missing Description Exceptions thrown Missing Exception Missing Description Native code only!copyFrame Create and return a new copy of the given frame that you can write to and otherwise inspect the pixels of. gfxImageSurface copyFrame( in PRUint32 aWhichFrame, in PRUint32 aFlags ); Parameters aWhichFrame Frame specifier of the FRAME_* variety. aFlags ...
...And 8 more matches
nsIVariant
wstring getAsWString(); Native code only! void getAsWStringWithSize(out PRUint32 size, [size_is(size), retval] out wstring str); Native code only! Attributes Attribute Type Description dataType PRUint16 Read only. Native code only! Methods Native code only!getAsACString ACString getAsACString(); Parameters None. Return value The value is converted to an 8-bit string in the ISO-8859-1 character set. If the value was UTF16 then the high bits are lost. If the value was UTF8 then it is converted to UTF16 and the high bits are discarded. Arrays and interface pointers cannot be converted to a string. Violates the XPCOM interface guidelines getAsArray() nsresult getAsArray( out PRUint16 type, out nsI...
... The type of the array elements. iid The IID of the array elements, if they are interface pointers. count The number of elements in the array. ptr A copy of the array of underlying elements. (Reference counted elements are not cloned, but their reference count is increased.) Return value Native code only!getAsAString AString getAsAString(); Parameters None. Return value The internal value is converted to a UTF16 string. Arrays and interface pointers cannot be converted to a string. Native code only!getAsAUTF8String AUTF8String getAsAUTF8String(); Parameters None. Return value The internal value is converted to a UTF8 string. An ISO-8859-1 string is widened to a UTF16 string first. Arrays and interface pointers cannot be converted to a string. Nati...
...16 string. Arrays and interface pointers cannot be converted to a string. Native code only!getAsAUTF8String AUTF8String getAsAUTF8String(); Parameters None. Return value The internal value is converted to a UTF8 string. An ISO-8859-1 string is widened to a UTF16 string first. Arrays and interface pointers cannot be converted to a string. Native code only!getAsBool PRBool getAsBool(); Parameters None. Return value If possible, the internal value is converted to a double, which is then compared to zero. Native code only!getAsChar char getAsChar(); Parameters None. Return value If the internal value is a string, it is first converted to a double, if possible. If it is of a numeric type, it is cast directly to char. Native code only!getAsDOMString DOMString getAsDOMString(); Parameters None. R...
...And 8 more matches
HTMLTableElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 8 more matches
nsIHTMLEditor
tagname. Special input value for Links: Use "href" to get a link node (an "A" tag with the "href" attribute set) Return value The new element created. decreaseFontSize() Decrease font size for text in selection by 1 HTML unit All existing text is scanned for existing <FONT SIZE> attributes so they will be decreased instead of inserting new <FONT> tag. void decreaseFontSize(); Parameters None. doDrag() Transfers the relevant data (as appropriate) to a transferable so it can later be dropped. void doDrag( in nsIDOMEvent aEvent ); Parameters aEvent getAlignment() Returns what alignment is in the selection. void getAlignment( out boolean aMixed, out short aAlign ); Parameters aMixed true if there is more than one type of list item, or if there is some list and ...
...ne type of list item, or if there is some list and non-list. aAlign Enum value for first encountered alignment (left/center/right) getBackgroundColorState() getFontColorState() returns what font face is in the selection. AString getBackgroundColorState( out boolean aMixed ); Parameters aMixed true if there is more than one font color. Return value Color string. "" is returned for none. getElementOrParentByTagName() Return the input node or a parent matching the given aTagName, starting the search at the supplied node. An example of use is for testing if a node is in a table cell given a selection anchor node. nsIDOMElement getElementOrParentByTagName( in AString aTagName, in nsIDOMNode aNode ); Parameters aTagName The HTML tagname Special input values: Use "href" ...
.... If it is null, the anchor node of the current selection is used. Return value NS_EDITOR_ELEMENT_NOT_FOUND if an element is not found (passes NS_SUCCEEDED macro) getFontColorState() Returns what font face is in the selection. AString getFontColorState( out boolean aMixed ); Parameters aMixed true if there is more than one font color. Return value Color string. "" is returned for none. getFontFaceState() Returns what font face is in the selection. AString getFontFaceState( out boolean aMixed ); Parameters aMixed true if there is more than one font face. Return value Name of face. Note: "tt" is returned for tt tag. "" is returned for none. getHeadContentsAsHTML() Output the contents of the <HEAD> section as text/HTML format. AString getHeadContentsAsHTML(); P...
...And 7 more matches
border-inline-end - CSS: Cascading Style Sheets
order-block-start, border-block-end, and border-inline-start, which define the other borders of the element. ...
...r-block-end, and border-inline-start, which define the other borders of the element. ...
...nline-start, which define the other borders of the element. ...
...And 7 more matches
nsIDOMWindowUtils
Methods activateNativeMenuItemAt() See nsIWidget.ActivateNativeMenuItemAt(). Cannot be accessed from unprivileged context (not content-accessible) Will throw a DOM security error if called without UniversalXPConnect privileges. void activateNativeMenuItemAt( in AString indexString ); Parameters indexString clearMozAfterPaintEvents() void clearMozAfterPaintEvents(); Parameters None. compareCanvases() Compare the two canvases, returning the number of differing pixels and the maximum difference in a channel. This will throw an error if the dimensions of the two canvases are different. This method requires UniversalXPConnect privileges. PRUint32 compareCanvases( in nsIDOMHTMLCanvasElement aCanvas1, in nsIDOMHTMLCanvasElement aCanvas2, out unsigned long aMaxDifference...
... the root scroll frame when retrieving the element. If false, this method returns null for coordinates outside of the viewport. aFlushLayout Flushes layout if true. Otherwise, no flush occurs. Return value enterModalState() Put the window into a state where scripts are frozen and events suppressed, for use when the window has launched a modal prompt. void enterModalState(); Parameters None. findElementWithViewId() Given a view ID from the compositor process, return the corresponding DOM element object. nsIDOMElement findElementWithViewId( in nsViewID aId ); Parameters aId The ID of the view for which to retrieve the corresponding nsIDOMElement object. Return value The nsIDOMElement object for the HTML element drawn by the specified view ID. Note: For scrollable frame...
...eges in non-debug builds. Available to all callers in debug builds. void garbageCollect( in nsICycleCollectorListener aListener Optional ); Parameters aListener Optional Listener that receives information about the CC graph (see @mozilla.org/cycle-collector-logger;1 for a logger component) getCursorType() Get current cursor type from this window. short getCursorType(); Parameters None. Return value The current value of nsCursor. getDocumentMetadata() Function to get metadata associated with the window's current document. Will throw a DOM security error if called without UniversalXPConnect privileges. AString getDocumentMetadata( in AString aName ); Parameters aName The name of the metadata. This should be all lowercase. Return value The value of the metadata, ...
...And 6 more matches
nsIFile
File. This string must not contain a path separator character. This string must be encoded using the native character encoding. Exceptions thrown NS_ERROR_FILE_UNRECOGNIZED_PATH Indicates that aNode incorrectly contains a path separator character. clone() This method creates a clone of the nsIFile. (It does NOT clone the file itself; see the copy methods.) nsIFile clone(); Parameters None. Return value A new nsIFile instance that corresponds to the same file or directory as this nsIFile. contains() This method tests whether or not the path represented by the specified nsIFile instance is a descendant of the path represented by this nsIFile. This nsIFile should point to a directory, while the specified argument can point to a file or directory. boolean contains( in nsIFile i...
...X-style file permissions value. For example, the octal value 0600 may be used to limit read and write access to the current user of the system. This parameter may be ignored on systems that do not support file permissions. Exceptions thrown NS_ERROR_FILE_UNKNOWN_TYPE Indicates that the value of "type" does not correspond to a known type. NS_ERROR_FILE_TOO_BIG Indicates that the search for nonexistent files was unsuccessful because all of the attempted leaf name variants already exist. equals() This method tests whether or not two nsIFile instances correspond to the same file or directory. boolean equals( in nsIFile inFile ); Parameters inFile The nsIFile to compare this nsIFile against. Return value true if "inFile" is equivalent to this nsIFile. exists() This method t...
...iants already exist. equals() This method tests whether or not two nsIFile instances correspond to the same file or directory. boolean equals( in nsIFile inFile ); Parameters inFile The nsIFile to compare this nsIFile against. Return value true if "inFile" is equivalent to this nsIFile. exists() This method tests whether or not this nsIFile exists. boolean exists() Parameters None. Return value true if the file or directory exists. Otherwise it returns false. isDirectory() This method tests whether or not this nsIFile corresponds to a directory. boolean isDirectory(); Parameters None. Return value true if this nsIFile corresponds to a directory. Otherwise it returns false. isExecutable() This method tests whether or not this nsIFile corresponds to a file that m...
...And 6 more matches
animation - CSS: Cascading Style Sheets
Web › CSS › animation
th: 1.5em; height: 1.5em; } button { width: 27px; height: 27px; background-size: 16px; background-position: center; background-repeat: no-repeat; border-radius: 3px; cursor: pointer; } button.play { background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cstyle%3Epath%20%7Bdisplay%3Anone%7D%20path%3Atarget%7Bdisplay%3Ablock%7D%3C%2Fstyle%3E%3Cpath%20id%3D%22play%22%20d%3D%22M3%2C3%20L3%2C13%20L13%2C8%20Z%22%20%2F%3E%3Cpath%20id%3D%22pause%22%20d%3D%22M5%2C4%20L7%2C4%20L7%2C13%20L5%2C13%20Z%20M9%2C4%20L11%2C4%20L11%2C13%20L9%2C13%20Z%22%20%2F%3E%3Cpath%20id%3D%22restart%22%20d%3D%22M13%2C9%20A5%2C5%2C1%2C1%2C1%2C8%2C4%20L8%2C2%20L12%2C5%20L8%2C8%20L8%2C6%20A3%2C3%2C1%2C1%2C0%2C11%...
...d%3D%22restart%22%20d%3D%22M13%2C9%20A5%2C5%2C1%2C1%2C1%2C8%2C4%20L8%2C2%20L12%2C5%20L8%2C8%20L8%2C6%20A3%2C3%2C1%2C1%2C0%2C11%2C9%20A1%2C1%2C1%2C1%2C1%2C13%2C9%20z%22%20%2F%3E%3C%2Fsvg%3E#play'); } button.pause { background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cstyle%3Epath%20%7Bdisplay%3Anone%7D%20path%3Atarget%7Bdisplay%3Ablock%7D%3C%2Fstyle%3E%3Cpath%20id%3D%22play%22%20d%3D%22M3%2C3%20L3%2C13%20L13%2C8%20Z%22%20%2F%3E%3Cpath%20id%3D%22pause%22%20d%3D%22M5%2C4%20L7%2C4%20L7%2C13%20L5%2C13%20Z%20M9%2C4%20L11%2C4%20L11%2C13%20L9%2C13%20Z%22%20%2F%3E%3Cpath%20id%3D%22restart%22%20d%3D%22M13%2C9%20A5%2C5%2C1%2C1%2C1%2C8%2C4%20L8%2C2%20L12%2C5%20L8%2C8%20L8%2C6%20A3%2C3%2C1%2C1%2C0%2C11%...
...D%22restart%22%20d%3D%22M13%2C9%20A5%2C5%2C1%2C1%2C1%2C8%2C4%20L8%2C2%20L12%2C5%20L8%2C8%20L8%2C6%20A3%2C3%2C1%2C1%2C0%2C11%2C9%20A1%2C1%2C1%2C1%2C1%2C13%2C9%20z%22%20%2F%3E%3C%2Fsvg%3E#pause'); } button.restart { background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cstyle%3Epath%20%7Bdisplay%3Anone%7D%20path%3Atarget%7Bdisplay%3Ablock%7D%3C%2Fstyle%3E%3Cpath%20id%3D%22play%22%20d%3D%22M3%2C3%20L3%2C13%20L13%2C8%20Z%22%20%2F%3E%3Cpath%20id%3D%22pause%22%20d%3D%22M5%2C4%20L7%2C4%20L7%2C13%20L5%2C13%20Z%20M9%2C4%20L11%2C4%20L11%2C13%20L9%2C13%20Z%22%20%2F%3E%3Cpath%20id%3D%22restart%22%20d%3D%22M13%2C9%20A5%2C5%2C1%2C1%2C1%2C8%2C4%20L8%2C2%20L12%2C5%20L8%2C8%20L8%2C6%20A3%2C3%2C1%2C1%2C0%2C11%...
...And 6 more matches
border - CSS: Cascading Style Sheets
Web › CSS › border
le | color */ border: outset #f33; /* width | style | color */ border: medium dashed green; /* Global values */ border: inherit; border: initial; border: unset; The border property may be specified using one, two, or three of the values listed below. The order of the values does not matter. Note: The border will be invisible if its style is not defined. This is because the style defaults to none. Values <line-width> Sets the thickness of the border. Defaults to medium if absent. See border-width. <line-style> Sets the style of the border. Defaults to none if absent. See border-style. <color> Sets the color of the border. Defaults to currentcolor if absent. See border-color. Description As with all shorthand properties, any omitted sub-values will be set to their initial valu...
... The border shorthand is especially useful when you want all four borders to be the same. To make them different from each other, however, you can use the longhand border-width, border-style, and border-color properties, which accept different values for each side. ...
...According to the spec, outlines don't have to be rectangular, although they usually are. Formal definition Initial valueas each of the properties of the shorthand: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: noneborder-color: as each of the properties of the shorthand:border-top-color: currentcolorborder-right-color: currentcolorborder-bottom-color: currentcolorborder-left-color: currentcolorApplies toall elements. It also applies to ::first-letter.InheritednoComputed valueas each of the properties of the shorthand:border-width: as ea...
...And 6 more matches
flex - CSS: Cascading Style Sheets
Web › CSS › flex
this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
... | flex-basis */ flex: 2 2 10%; /* Global values */ flex: inherit; flex: initial; flex: unset; The flex property may be specified using one, two, or three values. One-value syntax: the value must be one of: a <number>: In this case it is interpreted as flex: <number> 1 0; the <flex-shrink> value is assumed to be 1 and the <flex-basis> value is assumed to be 0. one of the keywords: none, auto, or initial. Two-value syntax: the first value must be a <number> and it is interpreted as <flex-grow>. The second value must be one of: a <number>: then it is interpreted as <flex-shrink>. a valid value for width: then it is interpreted as <flex-basis>. Three-value syntax: the values must be in the following order: a <number> for <flex-grow>. a <number> for <f...
...to its minimum size to fit the container, but does not grow to absorb any extra free space in the flex container. This is equivalent to setting "flex: 0 1 auto". auto The item is sized according to its width and height properties, but grows to absorb any extra free space in the flex container, and shrinks to its minimum size to fit the container. This is equivalent to setting "flex: 1 1 auto". none The item is sized according to its width and height properties. It is fully inflexible: it neither shrinks nor grows in relation to the flex container. This is equivalent to setting "flex: 0 0 auto". <'flex-grow'> Defines the flex-grow of the flex item. Negative values are considered invalid. Defaults to 1 when omitted. <'flex-shrink'> Defines the flex-shrink of the flex item. Negative value...
...And 6 more matches
Enumerability and ownership of properties - JavaScript
ies, with the chart showing below which are available. Some sample code follows which demonstrates how to obtain the missing categories. ...
...ich are available. Some sample code follows which demonstrates how to obtain the missing categories. ...
... Detection Enumerable Nonenumerable Enumerable and Nonenumerable propertyIsEnumerable hasOwnProperty hasOwnProperty - filtered to exclude enumerables using propertyIsEnumerable hasOwnProperty Enumerable Nonenumerable Enumerable and Nonenumerable Not available without extra code Not available without extra code in Not available without extra code Retrieval Enumerable Nonenumerable Enumerable and Nonenumerable Object.keys g...
...And 6 more matches
href - SVG: Scalable Vector Graphics
Web › SVG › Attribute › href
ient>, <script>, <set>, <textPath>, and <use> html, body, svg { height: 100%; } <svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a href="https://developer.mozilla.org/"><text x="10" y="25">MDN Web Docs</text></a> </svg> In SVG a For <a>, href defines the location of the referenced object, expressed as a URL reference. Value <url> Default value None Animatable Yes animate, animateMotion, animateTransform, set For the <animate>, <animateMotion>, <animateTransform>, and <set>, href defines a URL referring to the element which is the target of this animation element and which therefore will be modified over time. The URL must point to exactly one target element which is capable of being the target of the given animation ele...
...dual animation elements for any restrictions on what types of elements can be targets of particular types of animations. Except for any SVG-specific rules explicitly mentioned in this specification, the normative definition for this attribute is the SMIL Animation specification. In particular, see SMIL Animation: Specifying the animation target. Value <url> Default value None Animatable No discard For <discard>, href defines a URL referring the target element to discard. See the definition of href on animation elements for details on identifying a target element. Note: Unlike other animation elements, the <discard> element does not support the deprecated xlink:href attribute. Note that if the target element is not part of the current SVG docume...
... not support the deprecated xlink:href attribute. Note that if the target element is not part of the current SVG document fragment, then whether the target element will be removed or not is defined by the host language. If the href attribute is not provided, then the target element will be the immediate parent element of the <discard> element. Value <url> Default value None Animatable No feImage For <feImage>, href defines a URL referring to an image resource or to an element. If both, the xlink:href and the href attribute are specified, the latter overrides the former. Value <url> Default value None Animatable Yes image For <image>, href defines a URL referring to the image to render. Value ...
...And 6 more matches
nsIContentViewer
.0 / SeaMonkey 2.7), this attribute was part of nsIDocumentViewer. previousViewer nsIContentViewer The previous content viewer, which has been closed but not destroyed. Native code only! sticky boolean Methods clearHistoryEntry() Clears the current history entry. This is used to clear out the saved presentation state. void clearHistoryEntry(); Parameters None. close() All users of a content viewer are responsible for calling both close() and destroy(), in that order. close() should be called when the load of a new page for the next content viewer begins, and destroy() should be called when the next content viewer replaces this one. Note: If the document is currently being printed, it will not be saved in session history. void close( in nsISHEntry ...
...ull, the document will not be destroyed, and the following actions will happen when destroy() is called: Sanitize() will be called on the viewer's document The content viewer will set the contentViewer property on the history entry, and release its reference (ownership reversal). Hide() will be called, and no further destruction will happen. destroy() void destroy(); Parameters None. findContainerView() Finds the view to use as the container view for MakeWindow. Note: Prior to Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of nsIDocumentViewer. [noscript,notxpcom,nostdcall] nsIViewPtr findContainerView(); Parameters None. Return value The container view, or null if this content viewer is the root of a view manager hierarchy. Note: ...
...ger hierarchy (that is, this method returns null), and mParentWidget is also null, then this document should not even be displayed. Native code only!getBounds void getBounds( in nsIntRectRef aBounds ); Parameters aBounds Missing Description getDocument() Returns the DOM document object (as an nsIDocument without addrefing. [noscript,notxpcom] nsIDocumentPtr getDocument(); Parameters None. Return value The DOM document object. hide() void hide(); Parameters None. Native code only!init Initializes the content viewer. void init( in nsIWidgetPtr aParentWidget, [const] in nsIntRectRef aBounds ); Parameters aParentWidget Missing Description aBounds Missing Description loadComplete() void loadComplete( in unsigned long aStatus ); Parameters aStatus Mi...
...And 5 more matches
nsIEditorSpellCheck
void UninitSpellChecker(); void UpdateCurrentDictionary(); Methods AddWordToDictionary() Adds the specified word to the current personal dictionary. void AddWordToDictionary( in wstring word ); Parameters word The word to add to the current personal dictionary. canSpellCheck() Determines whether or not spell checking can be enabled. boolean canSpellCheck(); Parameters None. Return value Returns true if spell checking can be enabled. If there are no available dictionaries, the return value is false. checkCurrentDictionary() Call this after any change in installed dictionaries to ensure that the spell checker is not using a current dictionary which is no longer available. If the current dictionary is no longer available, pick another dictionary. void checkCurrentDict...
... true if spell checking can be enabled. If there are no available dictionaries, the return value is false. checkCurrentDictionary() Call this after any change in installed dictionaries to ensure that the spell checker is not using a current dictionary which is no longer available. If the current dictionary is no longer available, pick another dictionary. void checkCurrentDictionary(); Parameters None. CheckCurrentWord() Checks a given word. In spite of the name, this function checks the word you give it, returning true if the word is misspelled. If the word is misspelled, it will compute the suggestions which you can get from GetSuggestedWord(). boolean CheckCurrentWord( in wstring suggestedWord ); Parameters suggestedWord Missing Description Return value true if the specified wo...
...from previous calls to CheckCurrentWord(), so there may be suggestions, but they will be invalid. boolean CheckCurrentWordNoSuggest( in wstring suggestedWord ); Parameters suggestedWord The word to check. Return value true if the word is misspelled; otherwise false. GetCurrentDictionary() Returns the name of the dictionary currently in use. AString GetCurrentDictionary(); Parameters None. Return value The name of the dictionary currently in use. Typically, this is an ISO language code, such as "en-US". GetDictionaryList() Retrieves a list of the currently available dictionaries. The strings will typically be language IDs, such as "en-US". void GetDictionaryList( [array, size_is(count)] out wstring dictionaryList, out PRUint32 count ); Parameters dictionaryList An ar...
...And 5 more matches
MailNews fakeserver
someone writing a new test may have to take into account a new handler. A handler will contain the following methods: <caption> Handler methods </caption> Name Arguments Returns Notes [command] rest of sent line Server's response The name is normalized to be uppercase. onError command, rest of sent line Server's response Called if handler does not define the command function. onStartup none Server's response Called when a connection is made. onMultiline sent line Server's response or nothing Called when in multi-line mode. postCommand Server object none Called after every command. The server is smart about the responses and will normalize all occurrences of '\n' (but not '\r') to '\r\n' for you, as well as append the '\r\n' to the response if not present. It will also properl...
... not '\r') to '\r\n' for you, as well as append the '\r\n' to the response if not present. It will also properly queue all messages sent in pipelining mode and will present lines without any EOL characters. In addition, it uses UTF-8 as the transmission medium. The server presents the following API to the handler: <caption> Server API </caption> Name Arguments Returns Description closeSocket none nothing Closes the socket and stops the test. setMultiline the new value of multiline nothing The value is a boolean, with true invoking multiline mode. It is off by default. Extending a handler to provide different mechanisms is a process not defined here; please check the documentation of the corresponding handler for instructions. Using fakeserver in xpcshell tests Since there are three ...
...o keep a persistent connection past a test, requiring connections to be closed, possibly forcibly. Alternatively, one can wait for the timeout, which occurs after 3 minutes, so not closing connections would make the tests take unbearably long. ...
...And 5 more matches
EventTarget.addEventListener() - Web APIs
ent this bindings. While anonymous (and all traditional JavaScript functions) create their own this bindings, arrow functions inherit the this binding of the containing function. That means that the variables and constants available to the containing function are also available to the event handler when using an arrow function. ...
...tions) create their own this bindings, arrow functions inherit the this binding of the containing function. That means that the variables and constants available to the containing function are also available to the event handler when using an arrow function. ...
...arrow function. ...
...And 5 more matches
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
ship with the Mozilla platform. Starting with Gecko/Firefox 80, these uses were changed to -moz-default-appearance, which should never be used outside of internal stylesheets. Compatibility note: If you wish to use this property on websites, you should test it very carefully. Although it is supported in most modern browsers, its implementation varies widely. ...
...you should test it very carefully. Although it is supported in most modern browsers, its implementation varies widely. In older browsers, even the keyword none does not have the same effect on all form elements across different browsers, and some do not support it at all. The differences are smaller in the newest browsers. ...
...This is the default. auto div{ color: black; -moz-appearance: auto; -webkit-appearance: auto; appearance:auto; } <div>Lorem</div> None The user agent select...
...And 5 more matches
border-style - CSS: Cascading Style Sheets
le is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
... When one value is specified, it applies the same style to all four sides. ...
...en three values are specified, the first style applies to the top, the second to the left and right, the third to the bottom. When four values are specified, the styles apply to the top, right, bottom, and left in that order (clockwise). Each value is a keyword chosen from the list below. Values <line-style> Describes the style of the border. It can have the following values: none Like the hidden keyword, displays no border. Unless a background-image is set, the computed value of the same side's border-width will be 0, even if the specified value is something else. In the case of table cell and border collapsing, the none value has the lowest priority: if any other conflicting border is set, it will be displayed. hidden L...
...And 5 more matches
clip-path - CSS: Cascading Style Sheets
Web › CSS › clip-path
gion that sets what part of an element should be shown. Parts that are inside the region are shown, while those outside are hidden. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...g box as the reference box. view-box Uses the nearest SVG viewport as the reference box. If a viewBox attribute is specified for the element creating the SVG viewport, the reference box is positioned at the origin of the coordinate system established by the viewBox attribute and the dimension of the size of the reference box is set to the width and height values of the viewBox attribute. ...
...s the reference box. If a viewBox attribute is specified for the element creating the SVG viewport, the reference box is positioned at the origin of the coordinate system established by the viewBox attribute and the dimension of the size of the reference box is set to the width and height values of the viewBox attribute. none No clipping path is created. ...
...And 5 more matches
grid-template - CSS: Cascading Style Sheets
eractive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...There are no named grid areas. Rows and columns will be implicitly generated; their size will be determined by the grid-auto-rows and grid-auto-columns properties. <'grid-template-rows'> / <'grid-template-columns'> Sets grid-template-rows and grid-template-columns to the specified values, and sets ...
... "b b b"; grid-template: "a a a" 20% "b b b" auto; grid-template: [header-top] "a a a" [header-bottom] [main-top] "b b b" 1fr [main-bottom] / auto 1fr auto; /* Global values */ grid-template: inherit; grid-template: initial; grid-template: unset; Values none Is a keyword that sets all three longhand properties to none, meaning there is no explicit grid. There are no named grid areas. Rows and columns will be implicitly generated; their size will be determined by the grid-auto-rows and grid-auto-columns properties. <'grid-template-rows'> / <'grid-template-columns'> Sets grid-template-rows and grid-template-columns to the specified values, and sets grid-template-areas to none. [ <line-names>? <string> <track-...
...And 5 more matches
hyphens - CSS: Cascading Style Sheets
Web › CSS › hyphens
termined by the lang attribute, and browsers will hyphenate only if this attribute is present and the appropriate hyphenation dictionary is available. In XML, the xml:lang attribute must be used. Note: The rules defining how hyphenation is performed are not explicitly defined by the specification, so the exact hyphenation may vary from browser to browser. Syntax /* Keyword values */ hyphens: none; hyphens: manual; hyphens: auto; /* Global values */ hyphens: inherit; hyphens: initial; hyphens: unset; The hyphens property is specified as a single keyword value chosen from the list below. Values none Words are not broken at line breaks, even if characters inside the words suggest line break points. Lines will only wrap at whitespace. manual Words are broken for line-wrapping only w...
...hyphen. This character is not rendered visibly; instead, it marks a place where the browser should break the word if hyphenation is necessary. In HTML, use &shy; to insert a soft hyphen. When the HTML <wbr> element leads to a line break, no hyphen is added. ...
...hyphen. When the HTML <wbr> element leads to a line break, no hyphen is added. Formal definition Initial valuemanualApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | manual | auto Examples Specifying text hyphenation This example uses three classes, one for each possible configuration of the hyphens property. ...
...And 5 more matches
pointer-events - CSS: Cascading Style Sheets
under what circumstances (if any) a particular graphic element can become the target of pointer events. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
... /* SVG only */ /* Global values */ pointer-events: inherit; pointer-events: initial; pointer-events: unset; The pointer-events property is specified as a single keyword chosen from the list of values below. Values auto The element behaves as it would if the pointer-events property were not specified. In SVG content, this value and the value visiblePainted have the same effect. none The element is never the target of pointer events; however, pointer events may target its descendant elements if those descendants have pointer-events set to some other value. In these circumstances, pointer events will trigger event listeners on this parent element as appropriate on their way to/from the descendant during the event capture/bubble phases. SVG only (experimental for HTML) vi...
...ate on their way to/from the descendant during the event capture/bubble phases. SVG only (experimental for HTML) visiblePainted SVG only (experimental for HTML). The element can only be the target of a pointer event when the visibility property is set to visible and e.g. when a mouse cursor is over the interior (i.e., 'fill') of the element and the fill property is set to a value other than none, or when a mouse cursor is over the perimeter (i.e., 'stroke') of the element and the stroke property is set to a value other than none. visibleFill SVG only. The element can only be the target of a pointer event when the visibility property is set to visible and when e.g. a mouse cursor is over the interior (i.e., fill) of the element. The value of the fill property does not affect event proce...
...And 5 more matches
Styling links - Learn web development
a link is being activated, it is also being hovered over. If you put these in the wrong order, things won't work properly. To remember the order, you could try using a mnemonic like LoVe Fears HAte. ...
..., it is also being hovered over. If you put these in the wrong order, things won't work properly. To remember the order, you could try using a mnemonic like LoVe Fears HAte. ...
...output.innerHTML = htmlInput.value; styleElem.textContent = cssInput.value; } reset.addEventListener("click", function() { htmlInput.value = htmlCode; cssInput.value = cssCode; drawOutput(); }); solution.addEventListener("click", function() { htmlInput.value = htmlCode; cssInput.value = 'p {\n font-size: 1.2rem;\n font-family: sans-serif;\n line-height: 1.4;\n}\n\na {\n outline: none;\n text-decoration: none;\n padding: 2px 1px 0;\n}\n\na:link {\n color: #265301;\n}\n\na:visited {\n color: #437A16;\n}\n\na:focus {\n border-bottom: 1px solid;\n background: #BAE498;\n}\n\na:hover {\n border-bottom: 1px solid;\n background: #CDFEAA;\n}\n\na:active {\n background: #265301;\n color: #CDFEAA;\n}'; drawOutput(); }); htmlInput.addEventListener("input", drawOutput); cssIn...
...And 4 more matches
CSS property compatibility table for form controls - Learn web development
y doesn't work or is so inconsistent that it's not reliable. n.a. The property has no meaning for this type of widget. Rendering For each property there are two possible renderings: N (Normal) Indicates that the property is applied as it is T (Tweaked) Indicates that the property is applied with the extra rule below: * { /* Turn off the native look and feel */ -webkit-appearance: none; appearance: none; /* for Internet Explorer */ background: none; } Compatibility tables Global behaviors Some behaviors are common to many browsers at a global level: border, background, border-radius, height Using one of these properties can partially or fully turn off the native look & feel of widgets on some browsers. Be careful when you use them. line-height This property is sup...
...gets and IE9 does not support it at all. Text fields See the text, search, and password input types. Property N T Note CSS box model width Yes Yes height Partial[1][2] Yes WebKit browsers (mostly on Mac OSX and iOS) use the native look & feel for the search fields. ...
... CSS box model width Yes Yes height Partial[1][2] Yes WebKit browsers (mostly on Mac OSX and iOS) use the native look & feel for the search fields. Therefore, it's required to use -webkit-appearance:none to be able to apply this property to search fields. On Windows 7, Internet Explorer 9 does not apply the border unless background:none is applied. border Partial[1][2] Yes WebKit browsers (mostly on Mac OSX and iOS) use the native look & feel for the search fields. Therefore, it's required to use -webkit-appearance:none to be able to apply this property to search fields. On Windows 7, Internet Explorer 9 does not apply the border unless background:none is applied. marg...
...And 4 more matches
nsIClipboardCommands
Return value true if an image is selected, false otherwise. canCopyLinkLocation() R...
...n(); boolean canCopySelection(); boolean canCutSelection(); boolean canPaste(); void copyImageContents(); void copyImageLocation(); void copyLinkLocation(); void copySelection(); void cutSelection(); void paste(); void selectAll(); void selectNone(); Methods canCopyImageContents() Returns whether we can copy an image's contents. boolean canCopyImageContents(); Parameters None. Return value true if an image is selected, false otherwise. canCopyImageLocation() Returns whether we can copy an image location. boolean canCopyImageLocation(); Parameters None. Return value true if an image is selected, false otherwise. canCopyLinkLocation() Returns whether we can copy a link location. boolean canCopyLinkLocation(); Parameters None. Return value true if a link is selected, f...
...Return value true if the current selection can be cut, false otherwise. ...
...And 4 more matches
nsIDocShell
tting this attribute, a NS_ERROR_NOT_IMPLEMENTED error may be returned by implementations not supporting zoom. Implementations not supporting zoom should return 1.0 all the time for the Get operation. 1.0 by the way is the default of zoom. This means 100% of normal scaling or in other words normal size no zoom. Constants Constant Value Description INTERNAL_LOAD_FLAGS_NONE 0x0 Used as a placeholder when you don't want to explicitly specify flags. INTERNAL_LOAD_FLAGS_INHERIT_OWNER 0x1 Used to indicate that it may be safe to inherit the owner of a javascript: or data: URL from the existing document. INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER 0x2 Used to indicate that the load was caused by a meta refresh and the current document URI sh...
...of the appType attribute. APP_TYPE_MAIL 1 This is the value of the appType attribute used by Thunderbird and SeaMonkey to indicate that email messages are displayed in this window. APP_TYPE_EDITOR 2 This is the value of the appType attribute used by Thunderbird and SeaMonkey to indicate that email messages or web pages are composed in this window. BUSY_FLAGS_NONE 0 Returned by the busyFlags attribute when the nsIDocShell is not loading a document. BUSY_FLAGS_BUSY 1 Returned by the busyFlags attribute when the nsIDocShell is loading a document from the network. BUSY_FLAGS_BEFORE_PAGE_LOAD 2 Returned by the busyFlags attribute when the nsIDocShell has started loading a document from the network, but no data has been recei...
...o( out nsIDocShellLoadInfo loadInfo ); Parameters loadInfo The new nsIDocShellLoadInfo object. Violates the XPCOM interface guidelines DetachEditorFromWindow() Disconnects this docshell's editor from its window, and stores the editor data in the open document's session history entry. This should be called only during page transitions. void DetachEditorFromWindow(); Parameters None. finishRestore() Finish firing WebProgressListener notifications and DOM events for restoring a page presentation. This should only be called via beginRestore(). void finishRestore(); Parameters None. Native code only!firePageHideNotification Notify the associated content viewer and all child docshells that they are about to be hidden. If isUnload is true, then the document is being unloaded as...
...And 4 more matches
SVGTSpanElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 4 more matches
SVGTextElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 4 more matches
ARIA: row role - Accessibility
ader, within a grid, table or treegrid, and optionally within a rowgroup. ...
...grid, indicating the position, or index, of each row. For example, if a table has 1,500 rows, but only the header and rows 47 and 52 are in the DOM, aria-rowindex="1" would be set on the header row, and aria-rowindex="47" and aria-rowindex="52" would be set on the 47th and 52nd row, respectively. If all the rows are present in the DOM, this attribute is not necessary. Keyboard Interactions None Required JavaScript features None. For sortable columns, see the columnheader aria role. The first rule of ARIA use is you can use a native feature with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so. Employ the HTML <table> element instead of the ARIA role of table whe...
...Employ the HTML <table> element instead of the ARIA role of table whenever possible. ...
...And 4 more matches
ARIA: rowgroup role - Accessibility
d cells, column headers, or row headers within a grid, table or treegrid. ...
...aining data arranged in rows and columns, similar to the native <table> HTML element. role="treegrid" Similar to a grid, but with rows that can be expanded and collapsed in the same manner as for a tree. Descendant roles role="row" A row of cells within a tabular structure. A row contains one or more cells, gridcell, or column headers, and sometimes a row header. Keyboard interactions None Required JavaScript features None. The first rule of ARIA use is if you can use a native feature with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so. Employ the HTML <table> element instead of the ARIA role of table whenever possible. Examples <div role="table" aria-lab...
...Employ the HTML <table> element instead of the ARIA role of table whenever possible. ...
...And 4 more matches
any-pointer - CSS: Cascading Style Sheets
The any-pointer CSS media feature tests whether the user has any pointing device (such as a mouse), and if so, how accurate it is. Note: If you want to test the accuracy of the primary pointing device, use pointer instead. Syntax The any-pointer feature is specified as a keyword value chosen from the list below. none No pointing device is available. coarse At least one input mechanism includes a pointing device of limited accuracy. fine At least one input mechanism includes an accurate pointing device. Note: More than one value can match if the available devices have different characteristics, although none only matches when none of them are pointing devices. Examples This example creates a small checkbox for users with at least one fine pointer and a large checkbox for use...
...users with at least one fine pointer and a large checkbox for users with at least one coarse pointer. The big checkbox takes precedence because it is declared after the small one. ...
...ointer and a large checkbox for users with at least one coarse pointer. The big checkbox takes precedence because it is declared after the small one. ...
...And 4 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
</div> <div id="output"> <div class="css-property"> <span class="property">background:</span> <span class="value"></span> </div> </div> </div> CSS Content /* * COLOR PICKER TOOL */ .ui-color-picker { width: 420px; margin: 0; border: 1px solid #DDD; background-color: #FFF; display: table; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-color-picker .picking-area { width: 198px; height: 198px; margin: 5px; border: 1px solid #DDD; position: relative; float: left; display: table; } .ui-color-picker .picking-area:hover { cursor: default; } /* HSV format - Hue-Saturation-Value(Brightness) */ .ui-color-picker .picking-area { background: url("im...
...name { height: 20px; width: 30px; text-align: center; font-size: 14px; line-height: 18px; float: left; } .ui-color-picker .input input { width: 30px; height: 18px; margin: 0; padding: 0; border: 1px solid #DDD; text-align: center; float: right; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; } .ui-color-picker .input[data-topic="lightness"] { display: none; } .ui-color-picker[data-mode='HSL'] .input[data-topic="value"] { display: none; } .ui-color-picker[data-mode='HSL'] .input[data-topic="lightness"] { display: block; } .ui-color-picker .input[data-topic="alpha"] { margin-top: 10px; width: 93px; } .ui-color-picker .input[data-topic="alpha"] > .name { width: 60px; } .ui-color-picker .input[data-topic="alpha"] > input { float: right; } .
...y: block; } .ui-color-picker .input[data-topic="alpha"] { margin-top: 10px; width: 93px; } .ui-color-picker .input[data-topic="alpha"] > .name { width: 60px; } .ui-color-picker .input[data-topic="alpha"] > input { float: right; } .ui-color-picker .input[data-topic="hexa"] { width: auto; float: right; margin: 6px 8px 0 0; } .ui-color-picker .input[data-topic="hexa"] > .name { display: none; } .ui-color-picker .input[data-topic="hexa"] > input { width: 90px; height: 24px; padding: 2px 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } /* Preview color */ .ui-color-picker .preview { width: 95px; height: 53px; margin: 5px; margin-top: 10px; border: 1px solid #DDD; background-image: url("images/alpha.png"); float: left; position: r...
...And 4 more matches
content - CSS: Cascading Style Sheets
Web › CSS › content
The content CSS property replaces an element with a generated value. Objects inserted using the content property are anonymous replaced elements. ...
... <string> Specifies the "alt text" for the element. This value can be any number of text characters. Non-La...
... <string> Specifies the "alt text" for the element. ...
...And 4 more matches
font - CSS: Cascading Style Sheets
Web › CSS › font
f. */ p { font: bold italic large serif } /* Use the same font as the status bar of the window */ p { font: status-bar } Live sample HTML <p> Change the radio buttons below to see the generated shorthand and it's effect. ...
... window */ p { font: status-bar } Live sample HTML <p> Change the radio buttons below to see the generated shorthand and it's effect. ...
...w */ p { font: status-bar } Live sample HTML <p> Change the radio buttons below to see the generated shorthand and it's effect. ...
...And 4 more matches
text-size-adjust - CSS: Cascading Style Sheets
The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property. /* Keyword values */ text-size-adjust: none; text-size-adjust: auto; /* <percentage> 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. Instead of laying out pages at the width of the device screen, they lay them out using a viewport that is much wider, usually 800 or 1000 pixels. To map the extra-wide layout back to the original device size, they either show only part of the whole render or scale th...
... algorithm to enlarge the text to make it more readable. When an element containing text uses 100% of the screen's width, the algorithm increases its text size, but without modifying the layout. The text-size-adjust property allows web authors to disable or modify this behavior, as web pages designed with small screens in mind do not need it. Syntax The text-size-adjust property is specified as none, auto, or a <percentage>. Values none Disables the browser's inflation algorithm. auto Enables the browser's inflation algorithm. This value is used to cancel a none value previously set with CSS. <percentage> Enables the browser's inflation algorithm, specifying a percentage value with which to increase the font size. Formal definition Initial valueauto for smartphone browsers suppor...
...rcentage>. Values none Disables the browser's inflation algorithm. auto Enables the browser's inflation algorithm. This value is used to cancel a none value previously set with CSS. <percentage> Enables the browser's inflation algorithm, specifying a percentage value with which to increase the font size. ...
...And 4 more matches
Link types - HTML: Hypertext Markup Language
n that case, it is better to lead to a page containing a contact form. Although recognized, the rev attribute on <a>, <area> or<link> elements with a link type of made is incorrect and should be replaced by the rel attribute with this link type. <a>, <area>, <link> <form> bookmark Indicates that the hyperlink is a permalink for the nearest ancestor <article> element. If none, it is a permalink for the section that the element is most closely associated to. This allows for bookmarking a single article in a page containing multiple articles, such as on a monthly summary blog page, or a blog aggregator. <a>, <area> <link>, <form> canonical From Wikipedia, the free encyclopedia: Canonical_link_element A canonical link element is an HTML ele...
...voided. <a>, <area>, <link> <form> help If the element is <a> or <area>, it indicates that the hyperlink leads to a resource giving further help about the parent of the element, and its descendants. If the element is <link> it indicates that the hyperlink leads to a resource giving further help about the page as a whole. <a>, <area>, <form>, <link> None. icon Defines a resource for representing the page in the user interface, usually an icon (auditory or visual). In the browser, it is usually referred to as the favicon. If there are multiple <link rel="icon">s, the browser uses their media, type, and sizes attributes to select the most appropriate icon. If several icons are equally appropriate, the last one is used. If the m...
...yperlink leads to a document describing the licensing information. If not inside the <head> element, the standard doesn't distinguish between a hyperlink applying to a specific part of the document or to the document as a whole. Only the data on the page can indicate this. Note: Although recognized, the synonym copyright is incorrect and must be avoided. <a>, <area>, <form>, <link> None. manifest Indicates that the linked file is a Web App Manifest. <link> <a>, <area>, <form> modulepreload Initiates early (and high-priority) loading of module scripts. <link> <a>, <area>, <form> next Indicates that the hyperlink leads to the next resource of the sequence the current page is in. Note: Other link types related to linking reso...
...And 4 more matches
SVG Presentation Attributes - SVG: Scalable Vector Graphics
lows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element. Value: auto|baseline|super|sub|<percentage>|<length>|inherit; Animatable: Yes clip Deprecated It defines what portion of an element is visible. Value: auto|<shape()>|inherit; Animatable: Yes clip-path It binds the element it is applied to with a given <clipPath> element. Value: none|<FuncIRI>|inherit; Animatable: Yes clip-rule It indicates how to determine what side of a path is inside a shape in order to know how a <clipPath> should clip its target. Value: nonezero|evenodd|inherit; Animatable: Yes color It provides a potential indirect value (currentcolor) for the fill, stroke, stop-color, flood-color and lighting-color presentation attributes. Value: <color>|inherit;...
...pacity It specifies the opacity of the color or the content the current object is filled with. Value: <number>|<percentage>; Animatable: Yes fill-rule It indicates how to determine what side of a path is inside a shape. Value: nonzero|evenodd|inherit; Animatable: Yes filter It defines the filter effects defined by the <filter> element that shall be applied to its element. Value: <FuncIRI>|none|inherit; Animatable: Yes flood-color It indicates what color to use to flood the current filter primitive subregion defined through the <feFlood> or <feDropShadow> element. Value: <color>; Animatable: Yes flood-opacity It indicates the opacity value to use across the current filter primitive subregion defined through the <feFlood> or <feDropShadow> element. Value: <number>|<percentage>; Ani...
...es font-family It indicates which font family will be used to render the text of the element. Value: see css font-family; Animatable: Yes font-size It specifies the size of the font. Value: see css font-size; Animatable: Yes font-size-adjust It specifies that the font size should be chosen based on the height of lowercase letters rather than the height of capital letters. Value: <number>|none|inherit; Animatable: Yes font-stretch It selects a normal, condensed, or expanded face from a font. Value: see css font-stretch; Animatable: Yes font-style It specifies whether a font should be styled with a normal, italic, or oblique face from its font-family. Value: normal|italic|oblique; Animatable: Yes font-variant It specifies whether a font should be used with some of their variatio...
...And 4 more matches
treecol - Archive of obsolete content
default. If targeting Firefox for Mac OS X, be sure to use these styles but include your own checkbox image. However, chrome://global/skin/checkbox/cbox-check.gif is available in SeaMonkey on Mac OS X.. treechildren::-moz-tree-checkbox { /* unchecked checkbox treecells. This style MUST come before treechildren::-moz-tree-checkbox(checked) otherwise it won't take effect. */ list-style-image: none; } treechildren::-moz-tree-checkbox(checked){ /* css for checked cells. cbox-check.gif isn't available in Firefox 1, 2, and 3 on Mac OS X, so you should specify a URL to an image in your extension or elsewhere. */ list-style-image: url("chrome://global/skin/checkbox/cbox-check.gif"); } For example: Create a CSS file. Copy and paste the code above and link the CSS file to your XUL ...
...n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...And 3 more matches
Client-side form validation - Learn web development
Note: You can find this example live on GitHub as full-example.html (see also the source code.) Validating forms using JavaScript You must use JavaScript if you want to take control over the look and feel of nati...
...bubbles, and allows us to instead display the custom error messages in the DOM in some manner of our own choosing. ...
...us to instead display the custom error messages in the DOM in some manner of our own choosing. ...
...And 3 more matches
Example 1 - Learn web development
<li class="option">Cherry</li> <li class="option">Lemon</li> <li class="option">Banana</li> <li class="option">Strawberry</li> <li class="option">Apple</li> </ul> </div> CSS /* --------------- */ /* Required Styles */ /* --------------- */ .select { position: relative; display : inline-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; outline: none; } .select .optList { position: absolute; top : 100%; left : 0; } .select .optList.hidden { max-height: 0; visibility: hidden; } /* ------------ */ /* Fancy Styles */ /* ------------ */ .select { font-size : 0.625em; /* 10px */ font-family : Verdana, Arial, sans-serif; -moz-box-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1...
... content : "?"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -moz-box-sizing : border-box; box-sizing : border-box; text-align : center; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #FFF; } .select .optList { z-index : 2; list-style: none; margin : 0; padding: 0; background: #f0f0f0; border: .2em solid #000; border-top-width : .1em; border-radius: 0 0 .4em .4em; box-shadow: 0 .2em .4em rgba(0,0,0,.4); box-sizing : border-box; min-width : 100%; max-height: 10em; /* 100px */ overflow-y: auto; overflow-x: hidden; } .select .option { padding: .2em .3em; } .select .highlight { background: #000; color...
...<li class="option">Cherry</li> <li class="option">Lemon</li> <li class="option">Banana</li> <li class="option">Strawberry</li> <li class="option">Apple</li> </ul> </div> CSS /* --------------- */ /* Required Styles */ /* --------------- */ .select { position: relative; display : inline-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; outline: none; } .select .optList { position: absolute; top : 100%; left : 0; } .select .optList.hidden { max-height: 0; visibility: hidden; } /* ------------ */ /* Fancy Styles */ /* ------------ */ .select { font-size : 0.625em; /* 10px */ font-family : Verdana, Arial, sans-serif; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1px 25px 2px 5px */ width : 1...
...And 3 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
} rotateCount = (timestamp - startTime) / 3; if(rotateCount > 359) { rotateCount %= 360; } spinner.style.transform = 'rotate(' + rotateCount + 'deg)'; rAF = requestAnimationFrame(draw); } Now it is time to set up the initial state of the app when the page first loads. ...
...startTime) / 3; if(rotateCount > 359) { rotateCount %= 360; } spinner.style.transform = 'rotate(' + rotateCount + 'deg)'; rAF = requestAnimationFrame(draw); } Now it is time to set up the initial state of the app when the page first loads. Add the following two lines, which simply hide the results paragraph and spinner container using display: none;. ...
...{ rotateCount %= 360; } spinner.style.transform = 'rotate(' + rotateCount + 'deg)'; rAF = requestAnimationFrame(draw); } Now it is time to set up the initial state of the app when the page first loads. Add the following two lines, which simply hide the results paragraph and spinner container using display: none;. ...
...And 3 more matches
Download
cancel() method was called but the cancellation process has not finished yet, this method waits for the cancellation to finish, then restarts the download immediately. Note: If you need to start a new download from the same source, rather than restarting a failed or canceled one, you should create a separate Download object with the same source as the current one. Promise start(); Parameters None. Promise resolves to undefined when the download has finished successfully and you can access the target file. Promise can be rejected with DownloadError if the download failed. launch() Opens or executes the target file after download has completed. If the launcherPath property is null, the file will be opened with the default application for the MIME type specified in the contentType pro...
...d. If the launcherPath property is null, the file will be opened with the default application for the MIME type specified in the contentType property. If the content type is not available, an attempt will be made to obtain it from the extension of the target file. If the launcherPath property is set, the file will be opened with the specified custom application. Promise launch(); Parameters None. Promise resolves to undefined when the instruction to launch the file has been successfully given to the operating system. Note that the OS might still take a while until the file is actually launched. showContainingDirectory() Shows the folder containing the target file, or where the target file will be saved. This may be called at any time, even if the download failed or is currently in pr...
...launch the file has been successfully given to the operating system. Note that the OS might still take a while until the file is actually launched. showContainingDirectory() Shows the folder containing the target file, or where the target file will be saved. This may be called at any time, even if the download failed or is currently in progress. Promise showContainingDirectory(); Parameters None. Promise resolves to undefined when the instruction to open the containing folder has been successfully given to the operating system. Note that the OS might still take a while until the folder is actually opened. cancel() Cancels the download. The cancellation request is asynchronous. Until the cancellation process finishes, temporary files or part files may still exist even if they are exp...
...And 3 more matches
Index
reate certificate, key, and module security database files. The tasks associated with security module database management are part of a process that typically also involves managing key databases and certificate databases. Options Running modutil always requires one (and only one) option to specify the type of module operation. Each option may take arguments, anywhere from none to multiple arguments. Options -add modulename Add the named PKCS #11 module to the database. Use this option with the -libfile, -ciphers, and -mechanisms arguments. -changepw tokenname Change the password on the named token. If the token has not been initialized, this option initializes the password. Use this option with the -p...
... token it is loaded on. ...
... Status: Enabled Token Name: NSS Generic Crypto Services Token Manufacturer: Mozilla Foundation Token Model: NSS 3 Token Serial Number: 0000000000000000 Token Version: 4.0 Token Firmware Version: 0.0 Access: Write Protected Login Type: Public (no login required) User Pin: NOT Initialized Slot: NSS User Private Key and Certificate Services Slot Mechanism Flags: None Manufacturer: Mozilla Foundation Type: Software Version Number: 3.11 Firmware Version: 0.0 Status: Enabled Token Name: NSS Certificate DB Token Manufacturer: Mozilla Foundation Token Model: NSS 3 Token Serial Number: 0000000000000000 Token Version: 8.3 Token Firmware Version: 0.0 Access: NOT Write Protected Login Type: Login required User Pin: Initialized...
...And 3 more matches
nsIAppStartup
application will be restarted with the same profile and an empty command line. eRestartNotSameProfile 0x100 Restart the application after quitting. The application will be restarted with an empty command line and the normal profile selection process will take place on startup. Methods createHiddenWindow() Create the hidden window. void createHiddenWindow(); Parameters None. createStartupState() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Creates the initial state of the application by launching tasks specfied by "general.startup.*" prefs. Note: SIZE_TO_CONTENT may be used for width or height. boolean createStartupState( in long aWindowWidth, in long aWindowHeight ); Parameters aWindowWidth The w...
...ong aWindowWidth, in long aWindowHeight ); Parameters aWindowWidth The width to make the initial window(s) opened. aWindowHeight The height to make the initial window(s) opened. Return value TRUE if a window was opened. destroyHiddenWindow() Destroys the hidden window. This will have no effect if the hidden window has not yet been created. void destroyHiddenWindow(); Parameters None. doProfileStartup() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Starts up the profile manager with the given arguments. void doProfileStartup( in nsICmdLineService aCmdLineService, in boolean canInteract ); Parameters aCmdLineService The arguments given to the program. canInteract If FALSE and UI is needed, will fail. ...
...CmdLineService ); Parameters aCmdLineService The command line from which startup args can be read. enterLastWindowClosingSurvivalArea() Serves for situations when all application windows will be closed but we don't want to take this as a signal to quit the application. Bracket the code where the last window could close with these. void enterLastWindowClosingSurvivalArea(); Parameters None. exitLastWindowClosingSurvivalArea() This method serves for situations when all application windows will be closed but we don't want to take this as a signal to quit the application. Bracket the code where the last window could close with these. void exitLastWindowClosingSurvivalArea(); Parameters None. getStartupInfo() Returns a JavaScript object with events from startup and the timestam...
...And 3 more matches
nsIDOMEvent
ormation the value of timeStamp may be not available for all events. When not available, a value of 0 will be returned. Examples of epoch time are the time of the system start or 0:0:0 UTC 1st January 1970. Read only. type DOMString The name of the event (case-insensitive). The name must be an XML name. Read only. Constants Constant Value Description NONE 0 The event is not being dispatched. CAPTURING_PHASE 1 The current event phase is the capturing phase. AT_TARGET 2 The event is currently being evaluated at the target EventTarget. BUBBLING_PHASE 3 The current event phase is the bubbling phase. MOUSEDOWN 0x00000001 MOUSEUP 0x00000002 MOUSEOVER 0x000000...
... CONTROL_MASK 0x00000002 SHIFT_MASK 0x00000004 META_MASK 0x00000008 Methods Violates the XPCOM interface guidelines Deserialize() boolean Deserialize( in ConstIPCMessagePtr aMsg, out voidPtr aIter ); Parameters aMsg aIter Return value Native code only!duplicatePrivateData void duplicatePrivateData(); Parameters None. Violates the XPCOM interface guidelines GetInternalNSEvent() nsEventPtr GetInternalNSEvent(); Parameters None. Return value getPreventDefault() Note: Use the defaultPrevented attribute instead. This method will be removed in future releases, see bug 691151. boolean getPreventDefault(); Parameters None. Return value initEvent() This method is used to initialize the v...
...rd parties adding their own events use their own prefix to avoid confusion and lessen the probability of conflicts with other new events. canBubbleArg Specifies whether or not the event can bubble. cancelableArg Specifies whether or not the event's default action can be prevented. Violates the XPCOM interface guidelines IsDispatchStopped() boolean IsDispatchStopped(); Parameters None. Return value preventBubble() Note: Use stopPropagation() instead. void preventBubble(); Parameters None. preventCapture() Note: Use stopPropagation() instead. void preventCapture(); Parameters None. preventDefault() If an event is cancelable, the preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implem...
...And 3 more matches
nsIMsgIncomingServer
gFolder Read only. searchScope nsMsgSearchScopeValue Read only. serverBusy boolean serverRequiresPasswordForBiff boolean Read only. serverURI ACString Read only. socketType long spamFilterPlugin nsIMsgFilterPlugin Read only. spamSettings nsISpamSettings spam settings. Read only. supportsDiskSpace boolean Read only. type ACString protocol type, that is "pop3", "imap", "nntp", "none", and so on. used to construct URLs. username ACString userid to log into the server. useSecAuth boolean valid boolean Constants Constant Value Description defaultSocket 0 tryTLS 1 alwaysUseTLS 2 useSSL 3 keepDups 0 deleteDups 1 moveDupsToTrash 2 markDupsRead 3 Methods clearAllValues() this is really dangerous. this destroys all pref values do not call t...
...to the server. useSecAuth boolean valid boolean Constants Constant Value Description defaultSocket 0 tryTLS 1 alwaysUseTLS 2 useSSL 3 keepDups 0 deleteDups 1 moveDupsToTrash 2 markDupsRead 3 Methods clearAllValues() this is really dangerous. this destroys all pref values do not call this unless you know what you're doing! void clearAllValues(); Parameters None. Exceptions thrown Missing Exception Missing Description clearTemporaryReturnReceiptsFilter() If Sent folder pref is changed we need to clear the temporary return receipt filter so that the new return receipt filter can be recreated (by ConfigureTemporaryReturnReceiptsFilter()). void clearTemporaryReturnReceiptsFilter(); Parameters None. Exceptions thrown Missing Exception Missing Description...
...raryReturnReceiptsFilter() If Sent folder pref is changed we need to clear the temporary return receipt filter so that the new return receipt filter can be recreated (by ConfigureTemporaryReturnReceiptsFilter()). void clearTemporaryReturnReceiptsFilter(); Parameters None. Exceptions thrown Missing Exception Missing Description closeCachedConnections() void closeCachedConnections(); Parameters None. Exceptions thrown Missing Exception Missing Description configureTemporaryFilters() for mail, this configures both the MDN filter, and the server-side spam filter filters, if needed. If we have set up to filter return receipts into our Sent folder, this utility method creates a filter to do that, and adds it to our filterList if it doesn't exist. If it does, it will enable it. this is not used...
...And 3 more matches
nsISHEntry
hell restores a saved presentation. Append a child shell to the end of our list. void addChildShell( in nsIDocShellTreeItem shell ); Parameters shell childShellAt() nsIDocShellTreeItem childShellAt( in long index ); Parameters index The child shell at index; null if index is out of bounds. Return value clearChildShells() Clear the child shell list. void clearChildShells(); Parameters None. clone() nsISHEntry clone(); Parameters None. Return value Native code only!create Additional ways to create an entry. void create( in nsIURI URI, in AString title, in nsIInputStream inputStream, in nsILayoutHistoryState layoutHistoryState, in nsISupports cacheKey, in ACString contentType, in nsISupports owner, in unsigned long long docshellID, in boolean dynamicCreation ); P...
...n dynamicCreation ); Parameters URI title inputStream layoutHistoryState cacheKey contentType owner docshellID dynamicCreation Violates the XPCOM interface guidelines forgetEditorData() Gets the owning pointer to the editor data assosicated with this shistory entry. This forgets its pointer, so free it when you're done. nsDocShellEditorDataPtr forgetEditorData(); Parameters None. Return value getAnyContentViewer() Return any content viewer present in or below this node in the nsSHEntry tree. This will differ from contentViewer in the case where a child nsSHEntry has the content viewer for this tree. nsIContentViewer getAnyContentViewer( out nsISHEntry ownerEntry ); Parameters ownerEntry Return value getScrollPosition() void getScrollPosition( out long x, out ...
... long y ); Parameters x y Native code only!getViewerBounds Saved position and dimensions of the content viewer; we must adjust the root view's widget accordingly if this has changed when the presentation is restored. void getViewerBounds( in nsIntRect bounds ); Parameters bounds Violates the XPCOM interface guidelines hasDetachedEditor() boolean hasDetachedEditor(); Parameters None. Return value true if this shistory entry is storing a detached editor. hasDynamicallyAddedChild() boolean hasDynamicallyAddedChild(); Parameters None. Return value true if any of the child entries returns true when isDynamicallyAdded() is called on it. isDynamicallyAdded() Returns true if the related docshell was added because of dynamic addition of an iframe/frame. boolean isDynamicallyAdded()...
...And 3 more matches
nsITransactionManager
r to add. beginBatch() Turns on the transaction manager's batch mode, forcing all transactions executed by the transaction manager's doTransaction() method to be aggregated together until EndBatch() is called. This mode allows an application to execute and group together several independent transactions so they can be undone with a single call to undoTransaction(). void beginBatch(); Parameters None. clear() Clears the undo and redo stacks. void clear(); Parameters None. doTransaction() Calls a transaction's nsITransaction.doTransaction() method, then pushes it on the undo stack. This method calls the transaction's nsITransaction.AddRef() method. The transaction's nsITransaction.Release() method will be called when the undo or redo stack is pruned or when the transaction manager is destroye...
...lls the transaction's nsITransaction.AddRef() method. The transaction's nsITransaction.Release() method will be called when the undo or redo stack is pruned or when the transaction manager is destroyed. void doTransaction( in nsITransaction aTransaction ); Parameters aTransaction The nsITransaction to do. endBatch() Turns off the transaction manager's batch mode. void endBatch(); Parameters None. getRedoList() Returns the list of nsITransaction on the redo stack. Note that the transaction at the top of the redo stack will actually be at the index n-1 in the list, where n is the number of items in the list. nsITransactionList getRedoList(); Parameters None. Return value A list of nsITransaction on the redo stack. getUndoList() Returns the list of nsITransaction on the undo stack. Note th...
...e number of items in the list. nsITransactionList getRedoList(); Parameters None. Return value A list of nsITransaction on the redo stack. getUndoList() Returns the list of nsITransaction on the undo stack. Note that the transaction at the top of the undo stack will actually be at the index n-1 in the list, where n is the number of items in the list. nsITransactionList getUndoList(); Parameters None. Return value A list of nsITransaction on the undo stack. peekRedoStack() Returns an AddRef'd pointer to the nsITransaction at the top of the redo stack. Callers should be aware that this method could return a null in some implementations if there is a batch at the top of the redo stack. nsITransaction peekRedoStack(); Parameters None. Return value An AddRef'd pointer to the nsITransaction at th...
...And 3 more matches
EffectTiming.fill - Web APIs
Web › API › EffectTiming › fill
The Web Animations API's EffectTiming dictionary's fill property specifies a fill mode, which defines how the element to which the animation is applied should look when the animation sequence is not actively running, such as before the time specified by iterationStart or after animation's end time. For example, setting fill to "none" means the animation's effects are not applied to the element if the current time is outside the range of times during which the animation is running, while "forwards" ensures that once the animation's end time has been passed, the element will continue to be drawn in the state it was in at its last rendered frame. Note that authors are discouraged from using fill modes to persist the effect of an animation indefinitely. See the alternatives to fill mo...
...animation indefinitely. See the alternatives to fill modes section below for approaches that are simpler and more performant. Element.animate(), and KeyframeEffect() accept an object of timing properties including fill. The value of fill corresponds directly to fill in EffectTiming objects returned by getTiming() in AnimationEffect and KeyframeEffect. Syntax var timingProperties = { fill: "none" | "forwards" | "backwards" | "both" | "auto" } Value A DOMString indicating the fill type to use in order to properly render an affected element when outside the animation's active interval (that is, when it's not actively animating). The default is "auto". "none" The animation's effects are only visible while the animation is iterating or its playhead is positioned over an iteration. The...
...wards and backwards: The animation's effects should be reflected by the element(s) state prior to playing and retained after the animation has completed playing, in spite of and during any endDelay, delay and/or pending or finished playState. "auto" If the animation effect the fill mode is being applied to is a keyframe effect (KeyframeEffect or KeyframeEffectReadOnly), "auto" is equivalent to "none". Otherwise, the result is "both". Examples Here are a few examples. Fill mode: none HTML content The HTML is pretty simple. We have a <div> named "main" which is a container for the element we'll be animating, which is a <div> with the ID "box". Below that, another <div> serves as a button that will trigger the animation to begin. <div class="main"> <div id="box"> <div id="text">Loo...
...And 3 more matches
HTMLInputElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 3 more matches
HTMLMediaElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 3 more matches
HTMLTextAreaElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 3 more matches
SVGCircleElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGEllipseElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGLineElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGPathElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGPolygonElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGPolylineElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGRectElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGTextPathElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
SVGTextPositioningElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 3 more matches
ARIA: cell role - Accessibility
w of the first header would likely have aria-rowindex="1" set, and cells in row 47 would have aria-rowindex="47", if aria-rowindex were needed due to not all rows being in the DOM. If the rows that are visible are contiguous, and there are no cells with a colspan or rowspan greater than one, this property can be added to the parent rows instead of all the rows' cells. Keyboard interactions None Required JavaScript features The first rule of ARIA use is if you can use a native feature with the semantics and behavior you require already built in, instead of repurposing an element and adding an ARIA role, state or property to make it accessible, then do so. Employ the HTML <td> element instead of the ARIA role of cell whenever possible. Examples <div role="table" aria-label="Semanti...
... so. Employ the HTML <td> element instead of the ARIA role of cell whenever possible. ...
... Examples <div role="table" aria-label="Semantic Elements" aria-describedby="semantic_elements_table_desc" aria-rowcount="81"> <div id="semantic_elements_table_desc">Semantic Elements to use instead of ARIA's roles</div> <div role="rowgroup"> <div role="row"> <span role="columnheader" aria-sort="none" aria-rowindex="1">ARIA Role</span> <span role="columnheader" aria-sort="none" aria-rowindex="1">Semantic Element</span> </div> </div> <div role="rowgroup"> <div role="row"> <span role="cell" aria-rowindex="11">header</span> <span role="cell" aria-rowindex="11">h1</span> </div> <div role="row"> <span role="cell" aria-rowindex="16">header</span> <span role="cell" aria-rowindex="16">h6</span> </div> <div role="row"> ...
...And 3 more matches
ARIA: table role - Accessibility
ructure containing data arranged in rows and columns, similar to the native <table> HTML element. ...
...he native <table> HTML element. ...
...unt="-1". aria-rowcount attribute This attribute is only required if the rows are not present in the DOM all the time, such as scrollable tables that reuse rows to minimize the number of DOM nodes. It provides an explicit indication of the number of rows in the full table. Set the value to the total number of rows in the full table. If unknown, set aria-colcount="-1". Keyboard interactions None Required JavaScript features None. For sortable columns, see the columnheader aria role. The first rule of ARIA use is if you can use a native feature with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so. Employ the HTML <table> element instead of the ARIA role of table ...
...And 3 more matches
Border-image generator - CSS: Cascading Style Sheets
r hasLayout) */ } /* GRID COLUMN SETUP * ========================================================================== */ .col { display: block; float:left; margin: 1% 0 1% 1.6%; } .col:first-child { margin-left: 0; } /* all browsers except IE6 and lower */ /* * UI Component */ .ui-input-slider { height: 20px; font-family: "Segoe UI", Arial, Helvetica, sans-serif; -moz-user-select: none; user-select: none; } .ui-input-slider * { float: left; height: 100%; line-height: 100%; } /* Input Slider */ .ui-input-slider > input { margin: 0; padding: 0; width: 50px; text-align: center; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .ui-input-slider-info { width: 90px; padding: 0px 10px 0px 0px; text-align: right; text-transform: ...
...dth: 120px; font-family: "Segoe UI", Arial, Helvetica, sans-serif; font-size: 12px; background-image: url("https://mdn.mozillademos.org/files/6037/drop_arrow_icon.png"); background-position: right center; background-repeat: no-repeat; background-color: #359740; position: relative; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-dropdown:hover { cursor: pointer; background-color: #208B20; } /* Dropdown Select Button */ .ui-dropdown-select { height: inherit; padding: 0 0.75em; color: #FFF; line-height: 2em; } /* Dropdown List */ .ui-dropdown-list { width: 100%; height: 150px; max-height: 150px; margin: 0; padding: 0 0.3em; bor...
...cursor: pointer; } /*************************************************************************************/ /*************************************************************************************/ /* * UI Button */ /* Checkbox */ .ui-checkbox { text-align: center; font-size: 16px; font-family: "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5em; color: #FFF; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-checkbox > input { display: none; } .ui-checkbox > label { font-size: 12px; padding: 0.333em 1.666em 0.5em; height: 1em; line-height: 1em; background-color: #888; background-image: url("https://mdn.mozillademos.org/files/5683/disabled.png"); background-position: center center; background-repeat: no-repeat;...
...And 3 more matches
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
bar, and a block into which I am intending to place advertising. ...
...ith the same markup as used for the grid template areas example. ...
...I want them never to become smaller than 200 pixels, and then to share any available remaining space equally - so we always get equal width column tracks. We ach...
...And 3 more matches
border-top-style - CSS: Cascading Style Sheets
tyle of an element's top border. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. The specification doesn't define how borders of different styles connect in the corners. ...
...-style: solid; border-top-style: double; border-top-style: groove; border-top-style: ridge; border-top-style: inset; border-top-style: outset; /* Global values */ border-top-style: inherit; border-top-style: initial; border-top-style: unset; The border-top-style property is specified as a single keyword chosen from those available for the border-style property. ...
...top-style: inherit; border-top-style: initial; border-top-style: unset; The border-top-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
...And 3 more matches
display - CSS: Cascading Style Sheets
Web › CSS › display
t "unusual elements" -- elements that aren't rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details. Due to a bug in browsers this will currently remove the element from the accessibility tree -- screen readers will not look at what's inside. See the Accessibility concerns section below for more details. none Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off. To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead. Legacy <display-legacy> CSS 2 used a single-keyword ...
...This will cause the element and all its descendant elements to no longer be announced by screen reading technology. If you want to visually hide the element, a more accessible alternative is to use a combination of properties to remove it visually from the screen but keep it parseable by assistive technology...
...This will cause the element and all its descendant elements to no longer be announced by screen reading technology. If you want to visually hide the element, a more accessible alternative is to use a combination of properties to remove it visually from the screen but keep it parseable by assistive technology such as screen readers. displ...
...And 3 more matches
grid - CSS: Cascading Style Sheets
Web › CSS › grid
roperties you don't specify are set to their initial value, as normal for shorthands. Also, the gutter properties are NOT reset by this shorthand. ...
...l values */ grid: inherit; grid: initial; grid: unset; Values <'grid-template'> Defines the grid-template including grid-template-columns, grid-template-rows and grid-template-areas. <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? Sets up an auto-flow by setting the row tracks explicitly via the grid-template-rows property (and the grid-template-columns property to none) and specifying how to auto-repeat the column tracks via grid-auto-columns (and setting grid-auto-rows to auto). grid-auto-flow is also set to column accordingly, with dense if it's specified. All other grid sub-properties are reset to their initial values. [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'> Sets up an auto-flow by setting the column tracks explicitly via...
...(and setting grid-auto-rows to auto). grid-auto-flow is also set to column accordingly, with dense if it's specified. All other grid sub-properties are reset to their initial values. ...
...And 3 more matches
list-style - CSS: Cascading Style Sheets
If list-style-type and list-style-image are both set, then list-style-type is used as a fallback if the image is unavailable. Values list-style-type See list-style-type. list-style-image See list-style-image. list-style-posi...
...e: inherit; list-style: initial; list-style: unset; The list-style property is specified as one, two, or three keywords in any order. If list-style-type and list-style-image are both set, then list-style-type is used as a fallback if the image is unavailable. Values list-style-type See list-style-type. list-style-image See list-style-image. list-style-position See list-style-position. none No list style is used. Accessibility concerns Safari has an issue whereby unordered lists with a list-style value of none applied to them will not be recognized as a list in the accessibility tree. To address this, add a zero-width space as pseudo-content before each list item to ensure the list is recognized properly. This ensures the design is unaffected by the bug fix and that list items a...
... Safari has an issue whereby unordered lists with a list-style value of none applied to them will not be recognized as a list in the accessibility tree. To address this, add a zero-width space as pseudo-content before each list item to ensure the list is recognized properly. This ensures the design is unaffected by the bug fix and that list items are not improperly described. ...
...And 3 more matches
max-height - CSS: Cascading Style Sheets
is interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. max-height overrides height, but min-height overrides max-height. Syntax /* <length> value */ max-height: 3.5em; /* <percentage> 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. <percentage> Defines the max-height as a percentage of the containing block's height. auto The browser will calculate and select a max-height for the specified elem...
...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. <percentage> Defines the max-height as a percentage of the containing block's height. auto The browser will calculate and select a max-height for the specified element. none No limit on the size of the box. max-content The intrinsic preferred max-height. min-content The intrinsic minimum max-height. fit-content(<length-percentage>) Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)). Accessibility concerns Ensure that elements set with a max-height are not truncated and...
...e specified argument, i.e. min(max-content, max(min-content, argument)). Accessibility concerns Ensure that elements set with a max-height are not truncated and/or do not obscure other content when the page is zoomed to increase text size. ...
...And 3 more matches
object-fit - CSS: Cascading Style Sheets
io while filling the element's entire content box. If the object's aspect ratio does not match the aspect ratio of its box, then the object will be clipped to fit. fill The replaced content is sized to fill the element's content box. The entire object will completely fill the box. If the object's aspect ratio does not match the aspect ratio of its box, then the object will be stretched to fit. ...
...s not match the aspect ratio of its box, then the object will be clipped to fit. fill The replaced content is sized to fill the element's content box. The entire object will completely fill the box. If the object's aspect ratio does not match the aspect ratio of its box, then the object will be stretched to fit. none The replaced content is not resized. ...
...ratio of its box, then the object will be stretched to fit. none The replaced content is not resized. scale-down The content is sized as if none or contain were specified, whichever would result in a smaller concrete object size. ...
...And 3 more matches
shape-outside - CSS: Cascading Style Sheets
ide provides a way to customize this wrapping, making it possible to wrap text around complex objects rather than simple boxes. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...*/ shape-outside: linear-gradient(45deg, rgba(255, 255, 255, 0) 150px, red 150px); /* Global values */ shape-outside: initial; shape-outside: inherit; shape-outside: unset; The shape-outside property is specified using the values from the list below, which define the float area for float elements. The float area determines the shape around which inline content (float elements) wrap. Values none The float area is unaffected. Inline content wraps around the element's margin box, like usual. <shape-box> The float area is computed according to the shape of a float element's edges (as defined by the CSS box model). This can be margin-box, border-box, padding-box, or content-box. The shape includes any curvature created by the border-radius property (behavior which is similar to background...
...gents must use the potentially CORS-enabled fetch method defined by the HTML5 specification for all URLs in a shape-outside value. When fetching, user agents must use "Anonymous" mode, set the referrer source to the stylesheet's URL, and set the origin to the URL of the containing document. If this results in network errors such that there is no valid fallback image, the effect is as if the value none had been specified. Interpolation When animating between one <basic-shape> and a second, the rules below are applied. The values in the shape functions interpolate as a simple list. The list values interpolate as <length>, <percentage>, or calc() where possible. If list values are not one of those types but are identical (such as finding nonzero in the same list position in both lists), thos...
...And 3 more matches
display - SVG: Scalable Vector Graphics
Web › SVG › Attribute › display
The display attribute lets you control the rendering of graphical or container elements. A value of display="none" indicates that the given element and its children will not be rendered. Any value other than none or inherit indicates that the given element will be rendered by the browser. When applied to a container element, setting display to none causes the container and all of its children to be invisible; thus, it acts on groups of elements as a group. This means that any child of an element with display="none" will never be rendered even if the child has a value for display other than none. When the display attribute is set to none, then the given element does not become part of the rendering tree. It has implications for the <tspan>, <tref>, and <altGlyph> elements, event processing,...
...ement with display="none" will never be rendered even if the child has a value for display other than none. When the display attribute is set to none, then the given element does not become part of the rendering tree. It has implications for the <tspan>, <tref>, and <altGlyph> elements, event processing, for bounding box calculations and for calculation of clipping paths: If display is set to none on a <tspan>, <tref>, or <altGlyph> element, then the text string is ignored for the purposes of text layout. Regarding events, if display is set to none, the element receives no events. The geometry of a graphics element with display set to none is not included in bounding box and clipping paths calculations. The display attribute only affects the direct rendering of a given element, whereas...
...text layout. Regarding events, if display is set to none, the element receives no events. The geometry of a graphics element with display set to none is not included in bounding box and clipping paths calculations. The display attribute only affects the direct rendering of a given element, whereas it does not prevent elements from being referenced by other elements. For example, setting it to none on a <path> element will prevent that element from getting rendered directly onto the canvas, but the <path> element can still be referenced by a <textPath> element; furthermore, its geometry will be used in text-on-a-path processing even if the <path> has a display value of none. This attribute also affects direct rendering into offscreen canvases, such as occurs with masks or clip paths. Thus,...
...And 3 more matches
pathLength - SVG: Scalable Vector Graphics
he length of the path. stroke-dasharray, for example, will assume the start of the path being 0 and the end point the value defined in the pathLength attribute. Seven elements are using this attribute: <circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, and <rect> html,body,svg { height:100% } <svg viewBox="0 0 100 60" xmlns="http://www.w3.org/2000/svg"> <style> path { fill: none; stroke: black; stroke-width: 2; stroke-dasharray: 10; } </style> <!-- No pathLength, the real length of the path is used. In that case, 100 user units --> <path d="M 0,10 h100"/> <!-- compute everything like if the path length was 90 user units long --> <path d="M 0,20 h100" pathLength="90"/> <!-- compute everything like if the path length was 50 user units long --...
...- compute everything like if the path length was 30 user units long --> <path d="M 0,40 h100" pathLength="30"/> <!-- compute everything like if the path length was 10 user units long --> <path d="M 0,50 h100" pathLength="10"/> </svg> circle For <circle>, pathLength lets authors specify a total length for the circle, in user units. ...
...path d="M 0,50 h100" pathLength="10"/> </svg> circle For <circle>, pathLength lets authors specify a total length for the circle, in user units. Value <number> Default value none Animatable Yes ellipse For <ellipse>, pathLength lets authors specify a total length for the ellipse, in user units. Value <number> Default value none Animatable Yes line For <line>, pathLength lets authors specify a total length for the line, in user units. ...
...And 3 more matches
SVG and CSS - SVG: Scalable Vector Graphics
="0" r="200" gradientUnits="userSpaceOnUse"> <stop id="fade-stop-1" offset="33%"/> <stop id="fade-stop-2" offset="95%"/> </radialGradient> </defs> <text id="heading" x="-280" y="-270">SVG demonstration</text> <text id="caption" x="-280" y="-250">Move your mouse pointer over the flower.</text> <g id="flower"> <circle id="overlay" cx="0" cy="0" r="200" stroke="none" fill="url(#fade)"/> <g id="outer-petals"> <g class="quadrant"> <g class="segment"> <path class="segment-fill" d="M0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="M0,-200 a40,40 0 0,0 -62,10"/> </g> <g class="segment" transform="rotate(18)"> <path class="segment-fill" d="M0,0 v-200 a40,40 0 0,0 -62,10 z"/> ...
...-hover); } .segment-edge { fill: var(--segment-edge-fill); stroke: var(--segment-edge-stroke); stroke-width: var(--segment-edge-stroke-width); } .segment-edge:hover { stroke: var(--segment-edge-stroke-hover); } /* outer petals */ #outer-petals { opacity: .75; --segment-fill-fill: azure; --segment-fill-stroke: lightsteelblue; --segment-fill-stroke-width: 1; --segment-edge-fill: none; --segment-edge-stroke: deepskyblue; --segment-edge-stroke-width: 3; --segment-fill-fill-hover: plum; --segment-fill-stroke-hover: none; --segment-edge-stroke-hover: slateblue; } /* Non-standard way of styling elements referenced via <use> elements, supported by some older browsers */ #outer-petals .segment-fill { fill: azure; stroke: lightsteelblue; stroke-width: 1; } #outer-...
...skyblue; --segment-edge-stroke-width: 3; --segment-fill-fill-hover: plum; --segment-fill-stroke-hover: none; --segment-edge-stroke-hover: slateblue; } /* Non-standard way of styling elements referenced via <use> elements, supported by some older browsers */ #outer-petals .segment-fill { fill: azure; stroke: lightsteelblue; stroke-width: 1; } #outer-petals .segment-edge { fill: none; stroke: deepskyblue; stroke-width: 3; } #outer-petals .segment:hover > .segment-fill { fill: plum; stroke: none; } #outer-petals .segment:hover > .segment-edge { stroke: slateblue; } /* inner petals */ #inner-petals { --segment-fill-fill: yellow; --segment-fill-stroke: yellow; --segment-fill-stroke-width: 1; --segment-edge-fill: none; --segment-edge-stroke: yellowgreen; ...
...And 3 more matches
Microsummary XML grammar reference - Archive of obsolete content
ines how to transform pages into their microsummaries. <pages> (required) Identifies the set of pages that the generator is able to summarize. <update> (optional) Specifies how frequently Firefox should update the microsummaries. The <template> element The <template> element contains the XSLT stylesheet which transforms web pages into their microsummaries. Attributes: None. Child Elements: <stylesheet> or <transform> (required) The XSLT stylesheet which performs the transformation. Per XSLT, you may specify the stylesheet child element using either the <stylesheet> or the <transform> tag, which are interchangeable. Note: Although the <template> element must be in the microsummaries namespace (http://www.mozilla.org/microsummaries/0.1), its <style...
...sform> tag, which are interchangeable. Note: Although the <template> element must be in the microsummaries namespace (http://www.mozilla.org/microsummaries/0.1), its <stylesheet>/<transform> child element must be in the XSLT namespace (http://www.w3.org/1999/XSL/Transform). The <pages> element The <pages> element identifies the set of pages that the generator is able to summarize. Attributes: None. Child Elements: <include> (optional) A regular expression matching the URLs of pages that the generator is able to summarize. <exclude> (optional) A regular expression matching the URLs of pages that the generator is not able to summarize. The <pages> element can contain zero or more <include> and <exclude> child elements, each of which must contain a valid JavaScri...
.... It must not contain any other elements, and it does not have any attributes. When a generator is examined to determine whether or not it is able to summarize a page, the regular expressions provided by the child elements are evaluated against the URL of the page. A generator is considered to be able to summarize a page if at least one of the <include> expressions matches the URL of the page and none of the <exclude> expressions match the URL of the page. The order in which child elements appear within the <pages> element is not significant. 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. The following example identifies a gene...
...And 2 more matches
menu - Archive of obsolete content
Archive › Mozilla › XUL › menu
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...And 2 more matches
menuitem - Archive of obsolete content
to the id of a command element that is being observed by the element. closemenu Type: one of the values below Indicates if the menu closes when the menuitem is activated. auto This, the default value if the closemenu attribute is not specified, closes up the menu and all parent menus. single The menu the item is contained within is closed, but the parent menus remain open. none No menus are closed. crop Type: one of the values below If the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute. An ellipsis will be used in place of the cropped text. If the box direction is reversed, the cropping is reversed. start The text will be ...
...n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...And 2 more matches
Overview of Mozilla embedding APIs
ity within the WebBrowser (such as a right-click on a hypertext link). Saving Documents Notification Interfaces which the embedding application should implement nsFile Public Interfaces nsISupports Base Component Object Model interface. This interface provides runtime interface discovery and a reference counted memory model fashioned after the Microsoft COM IUnknown interface. Interface status... none Interface definition: nsISupportsUtils.h nsIInterfaceRequestor This Interface provides an interface discovery mechanism which does not imply aggregation. Interface status... none Interface definition: nsIInterfaceRequestor.idl nsIWeakReference This interface is used to retern a proxy reference to a component. Interface status... being reviewed Interface definition: nsIWeakReference.idl nsISimp...
...nterface is used to retern a proxy reference to a component. Interface status... being reviewed Interface definition: nsIWeakReference.idl nsISimpleEmunerator This interface provides a simple enumeration abstraction. Interface status... being reviewed Interface definition: nsISimpleEnumerator.idl nsIServiceManager This interface allows access to global services within mozilla. Interface status... ...
... a simple enumeration abstraction. Interface status... being reviewed Interface definition: nsISimpleEnumerator.idl nsIServiceManager This interface allows access to global services within mozilla. Interface status... none Interface definition: nsIServiceManager.h nsIShutdownListener This interface is used to receive notifications when the Service Manager is being shutdown. Interface status... none Interface definition: nsIServiceManager.h nsIComponentManager This interface allows new instances of registered XPCOM components to be instantiated. Interface status... none Interface definition: nsIComponentManager.idl nsIFactory This interface is used by the Component Manager to create new instances of a particular XPCOM component. Each component must provide a factory implementation for ...
...And 2 more matches
Dict.jsm
which to initialize the dictionary. Return value A newly created dictionary object implementing the methods described in this article. Methods copy() Returns a shallow copy of the dictionary; that is, a copy of the dictionary including the items immediately included within the dictionary; however, any objects referenced by those top-level objects are not copied. Dict copy(); Parameters None. Return value A new dictionary object containing the same top-level items as the original dictionary on which the copy() method was called. del() Deletes a key/value pair from the dictionary, given a key. boolean del( String aKey ); Parameters aKey The key for the item to delete from the dictionary. Return value true if an entry was found and removed; false if no match was found. ...
...specified key exists in the dictionary. boolean has( String aKey ); Parameters aKey The key for which to determine existence in the dictionary. Return value true if the specified key is in the dictionary, otherwise false. listitems() Returns an array of the key/value pairs in the dictionary. Note: The order in which items are returned is arbitrary. Array listitems(); Parameters None. Return value An array of the key/value pairs in the dictionary. listkeys() Returns an array of the keys in the dictionary. Note: The order in which items are returned is arbitrary. Array listkeys(); Parameters None. Return value An array of the keys in the dictionary. listvalues() Returns an array of the values in the dictionary. Note: The order in which items are returned is arbit...
...e pairs in the dictionary. listkeys() Returns an array of the keys in the dictionary. Note: The order in which items are returned is arbitrary. Array listkeys(); Parameters None. Return value An array of the keys in the dictionary. listvalues() Returns an array of the values in the dictionary. Note: The order in which items are returned is arbitrary. Array listvalues(); Parameters None. Return value An array of the values in the dictionary. set() Sets the value for a given key, adding a new key to the dictionary if necessary. ...
...And 2 more matches
MathML Torture Test
ttps://udn.realityripple.com/samples/b8/da4a50ea34.png" width="30" height="17" alt="TeXbook, 16.2-16.3" /></td> <td> <math display="block"> <!-- <mrow> <msub><mi></mi><mn>2</mn></msub> <msub><mi>F</mi><mn>3</mn></msub> </mrow> --> <mrow> <mmultiscripts> <mi>F</mi> <mn>3</mn><none/> <mprescripts/> <mn>2</mn><none/> </mmultiscripts> </mrow> </math> </td></tr> <tr> <td>3</td> <td><img src="https://udn.realityripple.com/samples/8a/1d0e6e073c.png" width="58" height="47" alt="TeXbook, 17-17.1" /></td> <td> <math display="block"> <mrow> <mfrac> <mrow> <mi>x</mi> ...
... <mn>?</mn> </msup> </mrow> </math> </td></tr> <tr> <td>2</td> <td> <math dir="rtl" display="block"> <!-- <mrow> <msub><mi></mi><mn>?</mn></msub> <msub><mi>F</mi><mn>?</mn></msub> </mrow> --> <mrow> <mmultiscripts> <mi>F</mi> <mn>?</mn><none/> <mprescripts/> <mn>?</mn><none/> </mmultiscripts> </mrow> </math> </td> <td> <math dir="rtl" display="block"> <!-- <mrow> <msub><mi></mi><mn>?</mn></msub> <msub><mi>F</mi><mn>?</mn></msub> </mrow> --> <mrow> <mmultiscripts> <mi>F</mi...
...ts/> <mn>?</mn><none/> </mmultiscripts> </mrow> </math> </td> <td> <math dir="rtl" display="block"> <!-- <mrow> <msub><mi></mi><mn>?</mn></msub> <msub><mi>F</mi><mn>?</mn></msub> </mrow> --> <mrow> <mmultiscripts> <mi>F</mi> <mn>?</mn><none/> <mprescripts/> <mn>?</mn><none/> </mmultiscripts> </mrow> </math> </td> <td> <math display="block"> <!-- <mrow> <msub><mi></mi><mn>?</mn></msub> <msub><mi>F</mi><mn>?</mn></msub> </mrow> --> <mrow> <mmultiscripts> <mi>F</mi> ...
...And 2 more matches
Animated PNG graphics
Mozilla › Tech › APNG
ancillary chunks. The first 'fcTL' chunk must contain sequence number 0, and the sequence numbers in the remaining 'fcTL' and 'fdAT' chunks must be in order, with no gaps or duplicates. The tables below illustrates the use of sequence numbers for images with more than one frame and more than one 'fdAT' chunk. ...
...ce number 0, and the sequence numbers in the remaining 'fcTL' and 'fdAT' chunks must be in order, with no gaps or duplicates. The tables below illustrates the use of sequence numbers for images with more than one frame and more than one 'fdAT' chunk. ...
... ... Decoders must treat out-of-order APNG chunks as an error. APNG-aware PNG editors should restore them to correct order using the sequence numbers. ...
...And 2 more matches
imgIRequest
otten from the channel the image was loaded from. Read only. imageStatus unsigned long Status flags of the STATUS_* variety. Read only. mimeType string Read only. URI nsIURI The URI the image load was started with. Note that this might not be the actual URI for the image (for example if HTTP redirects happened during the load). Read only. Constants Constant Value Description STATUS_NONE 0x0 Nothing to report. STATUS_SIZE_AVAILABLE 0x1 We received enough image data from the network or filesystem that we know the width and height of the image, and have thus called SetSize() on the container. STATUS_LOAD_PARTIAL 0x2 Used internally by imgRequest to flag that a request is being cancelled as a result of a failure of a proxy holder and not an internal failure. At least I think t...
...it should either go away or become a private state flag within imgRequest. Do not rely on it. STATUS_LOAD_COMPLETE 0x4 The data has been fully loaded to memory, but not necessarily fully decoded. STATUS_ERROR 0x8 An error occurred loading the image. STATUS_FRAME_COMPLETE 0x10 The first frame has been completely decoded. STATUS_DECODE_COMPLETE 0x20 The whole image has been decoded. CORS_NONE 1 CORS modes images can be loaded with. By default, all images are loaded with CORS_NONE and cannot be used cross-origin in context like WebGL. If an HTML img element has the crossorigin attribute set, the imgIRequest will be validated for cross-origin usage with CORS, and, if successful, will have its CORS mode set to the relevant type. CORS_ANONYMOUS 2 CORS_USE_CREDENTIALS 3 Methods ...
.... aObserver will be notified synchronously (before the clone call returns) with all the notifications that have already been dispatched for this image load. imgIRequest clone( in imgIDecoderObserver aObserver ); Parameters aObserver Return value decrementAnimationConsumers() Tell the image it can forget about a request that the image animate. void decrementAnimationConsumers(); Parameters None. getStaticRequest() If this request is for an animated image, the method creates a new request which contains the current frame of the image. Otherwise returns the same request. imgIRequest getStaticRequest(); Parameters None. Return value incrementAnimationConsumers() Requests that the image animate (if it has an animation). void incrementAnimationConsumers(); Parameters None. lockImage() Loc...
...And 2 more matches
mozIStorageConnection
) routine will be called once the connection is closed. Exceptions thrown NS_ERROR_UNEXPECTED Thrown if the method was called on a thread other than the one that opened the connection. beginTransaction() Starts a new transaction DEFERRED transaction. This is the same as calling mozIStorageConnection with mozIStorageConnection.TRANSACTION_DEFERRED. void beginTransaction(); Parameters None. beginTransactionAs() This method starts a new transaction of the given transaction type. See the SQLite documentation on transactions for more details. In JavaScript, managing transactions can be difficult when you are using the same connection on different threads, or are using a combination of asynchronous and synchronous statement execution. The best way to deal with this is to only execut...
...ction. Exceptions thrown NS_ERROR_UNEXPECTED The connection is to a memory database. close() Closes a database connection. Before closing the connection, you need to finalize all statements created for the connection. Note: You must not call this method if any asynchronous statements have been executed on the connection. Instead, you should call asyncClose(). void close(); Parameters None. Exceptions thrown NS_ERROR_UNEXPECTED Thrown if any statement has been executed asynchronously on the connection, or if the method was called on a thread other than the one that opened the connection. commitTransaction() This method commits the current transaction. void commitTransaction(); Parameters None. createAggregateFunction() This method creates a new aggregate function tha...
... a transaction open on the connection, or have a transaction open on another connection that shares the same pager cache. This cached data will go away when the transaction is closed. This preload operation can dramatically speed up read operations because the data is loaded as one large block. Normally, pages are read in on demand, which can cause many disk seeks. void preload(); Parameters None. removeFunction() Deletes a custom SQL function that was created with either mozIStorageConnection.createFunction() or mozIStorageConnection.createAggregateFunction(). void removeFunction( in AUTF8String aFunctionName ); Parameters aFunctionName The name of the function to remove. removeProgressHandler() Removes the progress handler that was registered with mozIStorageConnection.
...And 2 more matches
nsIBinaryInputStream
_is(aLength), retval] out PRUint8 aBytes); void readBytes(in PRUint32 aLength, [size_is(aLength), retval] out string aString); ACString readCString(); double readDouble(); float readFloat(); AString readString(); void setInputStream(in nsIInputStream aInputStream); Methods read8() Reads from the stream. PRUint8 read8(); Parameters None. Return value An 8-bit integer read from the stream. read16() Reads from the stream. PRUint16 read16(); Parameters None. Return value A 16-bit integer read from the stream. read32() Reads from the stream. PRUint32 read32(); Parameters None. Return value A 32-bit integer read from the stream. read64() Reads from the stream. Warning: This method is available from JavaScript; ho...
... Return value A 64-bit integer read from the stream. readArrayBuffer() Read opaque bytes from the stream, storing the results in an ArrayBuffer. unsigned long readArrayBuffer(in PRUint32 aLength, in jsval aArrayBuffer); Parameters aLength The number of bytes that should be read. aArrayBuffer The arraybuffer in which to store the results. ...
...er. unsigned long readArrayBuffer(in PRUint32 aLength, in jsval aArrayBuffer); Parameters aLength The number of bytes that should be read. aArrayBuffer The arraybuffer in which to store the results. Return value The number of bytes actually read into aArrayBuffer. readBoolean() Reads an 8-bit value from the stream, treating it as a Boolean value. PRBool readBoolean(); Parameters None. Return value A boolean value read from the stream. readByteArray() Reads an opaque byte array from the stream, storing the results as an array of PRUint8s. void readByteArray( in PRUint32 aLength, [array, size_is(aLength), retval] out PRUint8 aBytes ); Parameters aLength The number of bytes that must be read. aBytes An array containing the bytes read from the stream. Exception...
...And 2 more matches
nsISelectionPrivate
value is to be cached. See bug 35296 and bug 199412 Native code only! interlinePosition boolean type short Returns the type of the selection (see nsISelectionController for available constants). Read only. ...
... TABLESELECTION_COLUMN 3 TABLESELECTION_TABLE 4 TABLESELECTION_ALLCELLS 5 Methods addSelectionListener() void addSelectionListener( in nsISelectionListener newListener ); Parameters newListener endBatchChanges() Will resume User Interface updates after a previous call to startBatchChanges(). void endBatchChanges(); Parameters None. Native code only!getCachedFrameOffset Returns cached value for nsTextFrame::GetPointFromOffset. void getCachedFrameOffset( in nsIFrame aFrame, in PRInt32 inOffset, in nsPointRef aPoint ); Parameters aFrame inOffset aPoint getEnumerator() nsIEnumerator getEnumerator(); Parameters None. Return value Native code only!getFrameSelection nsFrameSelection getFrameS...
... Return value A reference to the frame selection associated with this selection. ...
...And 2 more matches
nsITreeView
rows in the tree (including the offscreen rows). Read only. selection nsITreeSelection The selection for this view. ...
...ws). Read only. selection nsITreeSelection The selection for this view. Constants Constant Value Description PROGRESS_NORMAL 1 Note: Renamed from progressNormal in Gecko 1.8 PROGRESS_UNDETERMINED 2 Note: Renamed from progressUndetermined in Gecko 1.8 PROGRESS_NONE 3 Note: Renamed from progressNone in Gecko 1.8 DROP_BEFORE -1 DROP_ON 0 DROP_AFTER 1 inDropBefore 0 Obsolete since Gecko 1.8 inDropOn 1 Obsolete since Gecko 1.8 inDropAfter 2 Obsolete since Gecko 1.8 Methods canDrop() Methods used by the drag feedback code to determine if a drag is allowable at the current location. To get th...
...wisty is actually drawn; that's left up to isContainerEmpty. For very simple tree views, such as those without multi-level data, you might want to consider using something simpler than a tree view, such as a listbox. For tree views with multi-level data, it's advisable to distinguish between a row which is an empty container (i.e., a row with the potential to hold children but that currently has none), and a non-empty container (i.e., a row that positively does currently have children). The tree frame code that handles drag and drop, for example, uses this method to determine how to interpret the drop position. Note: nsITreeView implementations must be prepared to handle a call to toggleOpenState for any row index which returns true for a call to isContainer, even if isContainerEmpty returns...
...And 2 more matches
nsIZipWriter
hrown NS_ERROR_NOT_INITIALIZED If no zip file has been opened. file nsIFile The Zip file being written to. Read only. inQueue boolean true if operations are being performed in the background queue, or false if background operations are not in progress. Read only. Constants Constant Value Description COMPRESSION_NONE 0 Do not compress the file. COMPRESSION_FASTEST 1 Use the fastest compression method when adding the file to the archive. COMPRESSION_DEFAULT 6 Use the default compression method when adding the file to the archive. COMPRESSION_BEST 9 Use the best compression method when adding the file to the archive. Methods addEntryChannel() Adds data...
...If saveInZipAs was equal to "add this file.txt" then in the zip file it will also be named "add this file.txt" Further Detail: This example gives fut...
...il on the importance of forward slashes var fileToAddToZip = FileUtils.File('C:\\add this file.txt'); var saveInZipAs = 'sub folder/blah.txt'; //DO NOT USE BACKWARD SLASH for example do not do: 'sub folder\\blah.txt'. Using backward slash will not throw any errors but if this was an xpi file, firefox would not be able to read it properly. zw.addEntryFile(saveInZipAs, Ci.nsIZipWriter.COMPRESSION_NONE, fileToAddToZip, false); This example creates a folder in the zip called "sub folder" and then adds "C:\add this file.txt" to it, but it will be called "blah.txt". aModTime The modification time of the entry in microseconds. aQueue If true, the operation is queued for later execution. If false, the operation is performed immediately. Will be performed when processQueue() is called. Ex...
...And 2 more matches
FileSystemEntrySync - Web APIs
olean True if FileSystemEntrySync is a directory. isFile readonly boolean True if the FileSystemEntrySync is a file. name readonly DOMString The name of the entry, excluding the path leading to it. Methods getMetadata() Look up metadata about this entry. [ todo: specify what kind of metadata ] Metadata getMetada () raises (FileException); Parameter None Returns Metadata Exceptions This method can raise a FileException with the following codes: Exception Description NOT_FOUND_ERR The entry does not exist. INVALID_STATE_ERR The FileSystemSync is no longer valid for some reason besides being deleted. moveTo() Move an entry to a different location on the file system. Moving a file over an exis...
...g like: filesystem:http://example.com/temporary/lolcat.png. The file system URL does not expire. Because the method describes a location on disk, the URL is valid for as long as that location exists. You can delete the file and recreate it, and it's all good. You can supply the mimeType to simulate the optional MIME type header associated with HTTP downloads. DOMString toURL (); Parameter None. ...
...rary/lolcat.png. The file system URL does not expire. Because the method describes a location on disk, the URL is valid for as long as that location exists. You can delete the file and recreate it, and it's all good. You can supply the mimeType to simulate the optional MIME type header associated with HTTP downloads. DOMString toURL (); Parameter None. Returns DOMString Exceptions None remove() Deletes a file or directory. ...
...And 2 more matches
HTMLAudioElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
HTMLButtonElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
HTMLFieldSetElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
HTMLLinkElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
HTMLOptionElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
HTMLStyleElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
HTMLTrackElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
HTMLVideoElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...And 2 more matches
SVGAnimateElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGAnimateMotionElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGAnimateTransformElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGDefsElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGFEConvolveMatrixElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGFEFuncAElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGFEFuncBElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGFEFuncGElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGFEFuncRElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGFEGaussianBlurElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGForeignObjectElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGGElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGGeometryElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGImageElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGLinearGradientElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGRadialGradientElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGSVGElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGSetElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGSwitchElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGTextContentElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
SVGUseElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
...And 2 more matches
animation-timing-function - CSS: Cascading Style Sheets
on-timing-function: linear; animation-timing-function: step-start; animation-timing-function: step-end; /* Function values */ animation-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1); animation-timing-function: steps(4, end); /* Steps Function keywords */ animation-timing-function: steps(4, jump-start); animation-timing-function: steps(10, jump-end); animation-timing-function: steps(20, jump-none); animation-timing-function: steps(5, jump-both); animation-timing-function: steps(6, start); animation-timing-function: steps(8, end); /* Multiple animations */ animation-timing-function: ease, step-start, cubic-bezier(0.1, 0.7, 1.0, 0.1); /* Global values */ animation-timing-function: inherit; animation-timing-function: initial; animation-timing-function: unset; Timing functions may be spec...
...Instead, holding at both the 0% mark and the 100% mark, each for 1/n of the duration. jump-both Includes pauses at both the 0% and 100% marks, effectively adding a step during the animation iteration. start Same as jump-start. end Same as jump-end. step-start Equal to steps(1, jump-start) step-end Equal to steps(1, jump-end) Note: When you ...
...multipliers to transform them as a single component">[0,1]>, <number>, <number <a href="/docs/CSS/Value_definition_syntax#Brackets" title="Brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[0,1]>, <number>)<step-timing-function> = step-start | step-end | steps(<integer>[, <step-position>]?)where <step-position> = jump-start | jump-end | jump-none | jump-both | start | end Examples Cubic-Bezier examples <div class="parent"> <div class="ease">ease</div> <div class="easein">ease-in</div> <div class="easeout">ease-out</div> <div class="easeinout">ease-in-out</div> <div class="linear">linear</div> <div class="cb">cubic-bezier(0.2,-2,0.8,2)</div> </div> .parent > div[class] { animation-name: changeme; animation-duratio...
...And 2 more matches
background-image - CSS: Cascading Style Sheets
the user. The borders of the element are then drawn on top of them, and the background-color is drawn beneath them. How the images are drawn relative to the box and its borders is defined by the background-clip and background-origin CSS properties. If a specified image cannot be drawn (for example, when the file denoted by the specified URI cannot be loaded), browsers handle it as they would a none value. Note: Even if the images are opaque and the color won't be displayed in normal circumstances, web developers should always specify a background-color. If the images cannot be loaded--for instance, when the network is down--the background color will be used as a fallback. Syntax Each background image is specified either as the keyword none or as an <image> value. To specify multiple bac...
... <image> Is an <image> denoting the image to display. There can be several of them, separated by commas, as multiple backgrounds are supported. ...
...ers, as a screen reader will not announce its presence and therefore convey nothing to its users. If the image contains information critical to understanding the page's overall purpose, it is better to describe it semantically in the document. ...
...And 2 more matches
border-block-start - CSS: Cascading Style Sheets
e style of the border. See border-style. <'color'> The color of the border. See color. ...
...ee border-style. <'color'> The color of the border. See color. ...
...'> The color of the border. See color. ...
...And 2 more matches
border-bottom-style - CSS: Cascading Style Sheets
element's bottom border. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Note: The specification doesn't define how borders of different styles connect in the corners. ...
...m-style: double; border-bottom-style: groove; border-bottom-style: ridge; border-bottom-style: inset; border-bottom-style: outset; /* Global values */ border-bottom-style: inherit; border-bottom-style: initial; border-bottom-style: unset; The border-bottom-style property is specified as a single keyword chosen from those available for the border-style property. ...
...: inherit; border-bottom-style: initial; border-bottom-style: unset; The border-bottom-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
...And 2 more matches
border-image - CSS: Cascading Style Sheets
"/images/border.png") 27 space; /* source | slice | width */ border-image: linear-gradient(red, blue) 27 / 35px; /* source | slice | width | outset | repeat */ border-image: url("/images/border.png") 27 23 / 50px 30px / 1rem round space; The border-image property may be specified with anywhere from one to five of the values listed below. Note: If the computed value of border-image-source is none, or if the image cannot be displayed, the border-style will be displayed instead. Values <'border-image-source'> The source image. See border-image-source. <'border-image-slice'> The dimensions for slicing the source image into regions. Up to four values may be specified. See border-image-slice. <'border-image-width'> The width of the border image. Up to four values may be specified. Se...
...chnology cannot parse border images. If the image contains information critical to understanding the page's overall purpose, it is better to describe it semantically in the document. MDN Understanding WCAG, Guideline 1.1 explanations Understanding Success Criterion 1.1.1 | Understanding WCAG 2.0 Formal definition Initial valueas each of the properties of the shorthand:border-image-source: noneborder-image-slice: 100%border-image-width: 1border-image-outset: 0border-image-repeat: stretchApplies toall elements, except internal table elements when border-collapse is collapse. It also applies to ::first-letter.InheritednoPercentagesas 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 bord...
.../ <'border-image-outset'> ]? | <'border-image-repeat'> Examples Bitmap In this example, we will apply a diamond pattern to ...
...And 2 more matches
border-inline-start - CSS: Cascading Style Sheets
e style of the border. See border-style. <'color'> The color of the border. See color. ...
...ee border-style. <'color'> The color of the border. See color. ...
...'> The color of the border. See color. ...
...And 2 more matches
border-left-style - CSS: Cascading Style Sheets
f an element's left border. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Note: The specification doesn't define how borders of different styles connect in the corners. ...
...olid; border-left-style: double; border-left-style: groove; border-left-style: ridge; border-left-style: inset; border-left-style: outset; /* Global values */ border-left-style: inherit; border-left-style: initial; border-left-style: unset; The border-left-style property is specified as a single keyword chosen from those available for the border-style property. ...
...-style: inherit; border-left-style: initial; border-left-style: unset; The border-left-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
...And 2 more matches
border-right-style - CSS: Cascading Style Sheets
an element's right border. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Note: The specification doesn't define how borders of different styles connect in the corners. ...
...der-right-style: double; border-right-style: groove; border-right-style: ridge; border-right-style: inset; border-right-style: outset; /* Global values */ border-right-style: inherit; border-right-style: initial; border-right-style: unset; The border-right-style property is specified as a single keyword chosen from those available for the border-style property. ...
...yle: inherit; border-right-style: initial; border-right-style: unset; The border-right-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
...And 2 more matches
font-size-adjust - CSS: Cascading Style Sheets
The font-size-adjust CSS property sets the size of lower-case letters relative to the current font size (which defines the size of upper-case letters). /* Use the specified font size */ font-size-adjust: none; /* Use a font size that makes lowercase letters half the specified font size */ font-size-adjust: 0.5; /* Global values */ font-size-adjust: inherit; font-size-adjust: initial; font-size-adjust: unset; The property is useful since the legibility of fonts, especially at small sizes, is determined more by the size of lowercase letters than by the size of capital letters. Legibility can become an issue when the first-choice font-family is unavailable and its replacement has a significantly different aspect ratio (the ratio of the size of lowercase letters to the size of the ...
...roperty should generally be the aspect ratio of the first choice font. For example, a style sheet that specifies: font-size: 14px; font-size-adjust: 0.5; ... is really specifying that the lowercase letters of the font should be 7px high (0.5 x 14px). This will still produce reasonable results in browsers that do not support font-size-adjust, where a 14px font will be used. Syntax Values none Choose the size of the font based only on the font-size property. <number> Choose the size of the font so that its lowercase letters (as determined by the x-height of the font) are the specified number times the font-size. The number specified should generally be the aspect ratio (ratio of x-height to font size) of the first choice font-family. This means that the first-choice font, when a...
... font) are the specified number times the font-size. The number specified should generally be the aspect ratio (ratio of x-height to font size) of the first choice font-family. This means that the first-choice font, when available, will appear the same size in browsers, whether or not they support font-size-adjust. 0 yields text of zero height (hidden text). ...
...And 2 more matches
font-variant-ligatures - CSS: Cascading Style Sheets
the elements it applies to. This leads to more harmonized forms in the resulting text. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
... font-variant-ligatures: initial; font-variant-ligatures: unset; The font-variant-ligatures property is specified as one of the keyword values listed below. Values normal This keyword leads to the activation of the usual ligatures and contextual forms needed for correct rendering. The ligatures and forms activated depend on the font, language and kind of script. This is the default value. none This keyword specifies that all ligatures and contextual forms are disabled, even common ones. <common-lig-values> These values control the most common ligatures, like for fi, ffi, th or similar. They correspond to the OpenType values liga and clig. Two values are possible: common-ligatures activating these ligatures. Note that the keyword normal activates these ligatures. no-common-liga...
...lues are possible: contextual specifies that the contextual alternates are to be used. Note that the keyword normal usually activates these ligatures too. no-contextual prevents their use. Formal definition Initial valuenormalApplies toall elements. ...
...And 2 more matches
grid-template-rows - CSS: Cascading Style Sheets
The grid-template-rows CSS property defines the line names and track sizing functions of the grid rows. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...Any rows will be implicitly generated and their size will be determined by the grid-auto-rows property. <length> Is a non-negative length. <percentage> Is a non-negative <percentage> value, relative to the block size of the grid container. If the size of the grid con...
...0px) 100px; grid-template-rows: [linename1 linename2] 100px repeat(auto-fit, [linename1] 300px) [linename3]; /* Global values */ grid-template-rows: inherit; grid-template-rows: initial; grid-template-rows: unset; This property may be specified as: either the keyword value none or a <track-list> value or an <auto-track-list> value. Values none Is a keyword meaning that there is no explicit grid. Any rows will be implicitly generated and their size will be determined by the grid-auto-rows property. <length> Is a non-negative length. <percentage> Is a non-negative <percentage> 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 percentage must be trea...
...And 2 more matches
list-style-image - CSS: Cascading Style Sheets
roject, please clone https://github.com/mdn/interactive-examples and send us a pull request. Note: This property is applied to list items, i.e. elements with display: list-item; by default this includes <li> elements. Because this property is inherited, it can be set on the parent element (normally <ol> or <ul>) to let it apply to all list items. ...
...e this property is inherited, it can be set on the parent element (normally <ol> or <ul>) to let it apply to all list items. Syntax /* Keyword values */ list-style-image: none; /* <url> values */ list-style-image: url('starsolid.gif'); /* Global values */ list-style-image: inherit; list-style-image: initial; list-style-image: unset; Values <url> Location of image to use as the marker. none Specifies that no image is used as the marker. If this value is set, the marker defined in list-style-type will be used instead. ...
...age: none; /* <url> values */ list-style-image: url('starsolid.gif'); /* Global values */ list-style-image: inherit; list-style-image: initial; list-style-image: unset; Values <url> Location of image to use as the marker. none Specifies that no image is used as the marker. If this value is set, the marker defined in list-style-type will be used instead. ...
...And 2 more matches
list-style-type - CSS: Cascading Style Sheets
Note that: Some types require a suitable font installed to display as expected. The cjk-ideographic is identical to trad-chinese-informal; it exists for...
... Note that: Some types require a suitable font installed to display as expected. The cjk-ideographic is identical to trad-chinese-informal; it exists for legacy reasons. ...
...: Some types require a suitable font installed to display as expected. The cjk-ideographic is identical to trad-chinese-informal; it exists for legacy reasons. Values <custom-ident> A identifier matching the value of a @counter-style or one of the predefined styles: symbols() Defines an anonymous style of the list. <string> The specified string will be used as the item's marker. none No item marker is shown. disc A filled circle (default value) circle A hollow circle square A filled square decimal Decimal numbers Beginning with 1 cjk-decimal Han decimal numbers E.g. ?, ?, ?, ..., ??, ??, ??? decimal-leading-zero Decimal numbers Padded by initial zeros E.g. 01, 02, 03, ... 98, 99 lower-roman ...
...And 2 more matches
offset-path - CSS: Cascading Style Sheets
The offset-path CSS property specifies a motion path for an element to follow and defines the element's positioning within the parent container or SVG coordinate system. ...
...l gradient size values from closest-side to farthest-corner, and the keyterm contain. url() References the ID of an SVG shape -- circle, ellipse, line, path, polygon, polyline, or rect -- using the shape's geometry as the path. <basic-shape> Specifies a CSS shape including circle(), ellipse(), inset(), polygon(), or path(). path() A path string defined with SVG coordinate syntax. none Specifies no motion path at all. Description This property defines a path an animated element can follow. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. The element's exact position on the offset path is determined by the offset-distance property. Each shape or path must define an initial position for the computed value o...
...et-distance property. Each shape or path must define an initial position for the computed value of 0 for offset-distance and an initial direction which specifies the rotation of the object to the initial position. Early versions of the spec called this property motion-path. It was changed to offset-path because the property describes static positions, not motion. ...
...And 2 more matches
perspective - CSS: Cascading Style Sheets
CSS property determines the distance between the z=0 plane and the user in order to give a 3D-positioned element some perspective. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* Keyword value */ perspective: none; /* <length> values */ perspective: 20px; perspective: 3.5em; /* Global values */ perspective: inherit; perspective: initial; perspective: unset; Values none Indicates that no perspective transform is to be applied. <length> A <length> giving the distance from the user to the z=0 plane. It is used to apply a perspective transform to the element and its content. If the value is 0 or a ne...
...mined by the value of this property. The parts of the 3D elements that are behind the user -- i.e. their z-axis coordinates are greater than the value of the perspective CSS property -- are not drawn. The vanishing point is by default placed at the center of the element, but its position can be changed using the perspective-origin property. ...
...erty -- are not drawn. The vanishing point is by default placed at the center of the element, but its position can be changed using the perspective-origin property. Using this property with a value different than 0 and none creates a new stacking context. Also, in that case, the object will act as a containing block for position: fixed elements that it contains. Formal definition Initial valuenoneApplies totransformable elementsInheritednoComputed valuethe absolute length or noneAnimation typea lengthCreates stacking contextyes Formal syntax none | <length> Examples Setting perspective This example shows a cube with the perspective set at different positions. How quick the cube shrinks is defined by the perspective property. The smaller its value is, the deeper the perspective is. HT...
...And 2 more matches
scroll-snap-type - CSS: Cascading Style Sheets
this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Specifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent. ...
... x The scroll container snaps to snap positions in its horizontal axis only. y The scroll container snaps to snap positions in its vertical axis only. block The scroll container snaps to snap positions in its block axis only. ...
...oll offset will be adjusted to maintain the resting on that snap point. proximity The visual viewport of this scroll container may come to rest on a snap point if it isn't currently scrolled considering the user agent's scroll parameters. If content is added, moved, deleted or resized the scroll offset may be adjusted to maintain the resting on that snap point. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | [ x | y | block | inline | both ] [ mandatory | proximity ]? Examples Snapping in different axes HTML <div class="holster"> <div class="container x mandatory-scroll-snapping" dir="ltr"> <div>X Mand. LTR</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> </div> <div class="...
...And 2 more matches
text-decoration-line - CSS: Cascading Style Sheets
his interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. When setting multiple line-decoration properties at once, it may be more convenient to use the text-decoration shorthand property instead. ...
... underline Each line of text has a decorative line beneath it. overline Each line of text has a decorative line above it. line-through Each line of text has a decorative line going through its middle. blink The text blinks (alternates between visible and invisible). Conforming user a...
...tion-line: underline overline; /* Two decoration lines */ text-decoration-line: overline underline line-through; /* Multiple decoration lines */ /* Global values */ text-decoration-line: inherit; text-decoration-line: initial; text-decoration-line: unset; The text-decoration-line property is specified as none, or one or more space-separated values from the list below. Values none Produces no text decoration. underline Each line of text has a decorative line beneath it. overline Each line of text has a decorative line above it. line-through Each line of text has a decorative line going through its middle. blink The text blinks (alternates between visible and invisible). Conforming user agents may simply not blink the text. This value is deprecated in favor of CS...
...And 2 more matches
text-transform - CSS: Cascading Style Sheets
e cases, a hyphen is also removed upon uppercasing: an t-uisce transforms to AN tUISCE (and the hyphen is correctly reinserted by text-transform: lowercase). The language is defined by the lang HTML attribute or the xml:lang XML attribute. Note: Support for language-specific cases varies between browsers, so check the browser compatibility table. Syntax /* Keyword values */ text-transform: none; text-transform: capitalize; text-transform: uppercase; text-transform: lowercase; text-transform: full-width; text-transform: full-size-kana; /* Global values */ text-transform: inherit; text-transform: initial; text-transform: unset; capitalize Is a keyword that converts the first letter of each word to uppercase. Other characters remain unchanged (they retain their original case as wri...
... with some weird cases.) By precisely defining the correct behavior, CSS Text Level 3 cleans this mess up. The capitalize line in the browser compatibility table contains the version the different engines started to support this now precisely-defined behavior. uppercase Is a keyword that converts all characters to uppercase. lowercase Is a keyword that converts all characters to lowercase. none Is a keyword that prevents the case of all characters from being changed. full-width Is a keyword that forces the writing of a character -- mainly ideograms and Latin scripts -- inside a square, allowing them to be aligned in the usual East Asian scripts (like Chinese or Japanese). full-size-kana Generally used for <ruby> annotation text, the keyword converts all small Kana characters to the...
... equivalent full-size Kana, to compensate for legibility issues at the small font sizes typically used in ruby. Accessibility concerns Large sections of text set with a text-transform value of uppercase may be difficult for people with cognitive concerns such as Dyslexia to read. ...
...And 2 more matches
touch-action - CSS: Cascading Style Sheets
The touch-action CSS property sets how an element's region can be manipulated by a touchscreen user (for example, by zooming features built into the browser). /* Keyword values */ touch-action: auto; touch-action: none; touch-action: pan-x; touch-action: pan-left; touch-action: pan-right; touch-action: pan-y; touch-action: pan-up; touch-action: pan-down; touch-action: pinch-zoom; touch-action: manipulation; /* Global values */ touch-action: inherit; touch-action: initial; touch-action: unset; By default, panning (scrolling) and pinching gestures are handled exclusively by the browser. An application using Pointer events will receive a pointercancel event when the browser starts handling a touch gesture. By explicitly specifying which gestures should be handled by the browser, an applicati...
...ractice, touch-action is typically applied only to top-level elements which have some custom behavior, without needing to specify touch-action explicitly on any of that element's descendants. After a gesture starts, changes to touch-action will not have any impact on the behavior of the current gesture. Syntax The touch-action property may be specified as either: One of the keywords auto, none, manipulation, or One of the keywords pan-x, pan-left, pan-right, and/or one of the keywords pan-y, pan-up, pan-down, plus optionally the keyword pinch-zoom. Values auto Enable browser handling of all panning and zooming gestures. none Disable browser handling of all panning and zooming gestures. pan-x Enable single-finger horizontal panning gestures. May be combined with pan-y, pan-up...
...s dragging their finger to the right. Multiple directions may be combined except when there is a simpler representation (for example, "pan-left pan-right" is invalid since "pan-x" is simpler, but "pan-left pan-down" is valid). pinch-zoom Enable multi-finger panning and zooming of the page. This may be combined with any of the pan- values. Accessibility concerns A declaration of touch-action: none; may inhibit operating a browser's zooming capabilities. This will prevent people experiencing low vision conditions from being able to read and understand page content. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.4 | Understanding WCAG 2.0 Formal definition Initial valueautoApplies toall elements except: non-replaced inline elements, table rows, ...
...And 2 more matches
transform - CSS: Cascading Style Sheets
Web › CSS › transform
erty lets you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual formatting model. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. If the property has a value different than none, a stacking context will be created. In that case, the element will act as a containing block for any position: fixed; or position: absolute; elements that it contains. Only transformable elements can be transformed. That is, all elements whose layout is governed by the CSS box model except for: non-replaced inline boxes, table-column boxes, and table-column-group boxes. Syntax /* Keyword va...
...t will be created. In that case, the element will act as a containing block for any position: fixed; or position: absolute; elements that it contains. Only transformable elements can be transformed. That is, all elements whose layout is governed by the CSS box model except for: non-replaced inline boxes, table-column boxes, and table-column-group boxes. ...
...(0.3); transform: skew(30deg, 20deg); transform: skewX(30deg); transform: skewY(1.07rad); /* Multiple function values */ transform: translateX(10px) rotate(10deg) translateY(5px); transform: perspective(500px) translate(10px, 0, 20px) rotateY(3deg); /* Global values */ transform: inherit; transform: initial; transform: unset; The transform property may be specified as either the keyword value none or as one or more <transform-function> values. If perspective() is one of multiple function values, it must be listed first. Values <transform-function> One or more of the CSS transform functions to be applied. The transform functions are multiplied in order from left to right, meaning that composite transforms are effectively applied in order from right to left. none Specifies that no tr...
...And 2 more matches
transition-timing-function - CSS: Cascading Style Sheets
nction: linear; transition-timing-function: step-start; transition-timing-function: step-end; /* Function values */ transition-timing-function: steps(4, jump-end); transition-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1); /* Steps Function keywords */ transition-timing-function: steps(4, jump-start); transition-timing-function: steps(10, jump-end); transition-timing-function: steps(20, jump-none); transition-timing-function: steps(5, jump-both); transition-timing-function: steps(6, start); transition-timing-function: steps(8, end); /* Multiple timing functions */ transition-timing-function: ease, step-start, cubic-bezier(0.1, 0.7, 1.0, 0.1); /* Global values */ transition-timing-function: inherit; transition-timing-function: initial; transition-timing-function: unset; Values <timin...
...Instead, holding at both the 0% mark and the 100% mark, each for 1/n of the duration jump-both Includes pauses at both the 0% and 100% marks, effectively adding a step during the transition time. start Same as jump-start. end Same as jump-end. step-start Equal to steps(1, jump-start) step-end Equal to steps(1, jump-end) Acce...
...multipliers to transform them as a single component">[0,1]>, <number>, <number <a href="/docs/CSS/Value_definition_syntax#Brackets" title="Brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[0,1]>, <number>)<step-timing-function> = step-start | step-end | steps(<integer>[, <step-position>]?)where <step-position> = jump-start | jump-end | jump-none | jump-both | start | end Examples Cubic-Bezier examples <div class="parent"> <div class="ease">ease</div> <div class="easein">ease-in</div> <div class="easeout">ease-out</div> <div class="easeinout">ease-in-out</div> <div class="linear">linear</div> <div class="cb">cubic-bezier(0.2,-2,0.8,2)</div> </div> .parent {} .parent > div[class] { width: 12em; min-width: 12em; ...
...And 2 more matches
translate - CSS: Cascading Style Sheets
Web › CSS › translate
The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value. 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-percentage> value A <length> or <percentage> that specifies a 2D translation, with the same translation along both the X and Y axes. Equivalent to a translate() (2D translation) function with a single value specified. Two <length-percentage> values Two <length> or <percentage>...
...gth> or <percentage> that specify the X and Y axis translation values (respectively) of a 2D translation. Equivalent to a translate() (2D translation) function with two values specified. Three values Two <length-percentage> and single <length> values that specify the X, Y, and Z axis translation values (respectively) of a 3D translation. Equivalent to a translate3d() (3D translation) function. ...
... 2D translation. Equivalent to a translate() (2D translation) function with two values specified. Three values Two <length-percentage> and single <length> values that specify the X, Y, and Z axis translation values (respectively) of a 3D translation. Equivalent to a translate3d() (3D translation) function. none Specifies that no translation should be applied. ...
...And 2 more matches
Adding captions and subtitles to HTML5 video - Developer guides
It also sets up the required event listeners on the button to toggle the relevant subtitle set on or off. This is done by simply setting the required subtlte's mode attribute to showing, and setting the...
...setting the others to hidden. Once the menu is built, it is then inserted into the DOM at the bottom of the videoContainer. ...
...n by default, so an event listener needs to be added to our subtitles button to toggle it: subtitles.addEventListener('click', function(e) { if (subtitlesMenu) { subtitlesMenu.style.display = (subtitlesMenu.style.display == 'block' ? ...
...And 2 more matches
Creating a cross-browser video player - Developer guides
entire video file. This provides the player with data such as video duration and format. Note: IE9 behaves differently than most other browsers when a poster attribute is set. Most browsers interpret the presence of a poster attribute to mean that the specified image is to be displayed until the user chooses to play the video. IE9 will only use the specified poster image in this way if preload="none" is set; otherwise, it will take the first still of the video and display that instead. Three different video sources are provided for the player: MP4, WebM, and Ogg. Using these different source formats gives the best chance of being supported across all browsers that support HTML5 video. For further information on video formats and browser compatibility, see supported media formats. For brow...
... which will be used to control the video. The control set Most browser's default video controls have the following functionality: Play/pause Mute Volume control Progress bar Skip ahead Go fullscreen The custom control set will also support this functionality, with the addition of a stop button. Once again the HTML is quite straightforward, using an unordered list with list-style-type:none set to enclose the controls, each of which is a list item with float:left. For the progress bar, the progress element is taken advantage of, with a fallback provided for browsers that don't support it (e.g. IE8 and IE9). This list is inserted after the <video> element, but inside the <figure> element (this is important for the fullscreen functionality, which is explained later on). <ul id="video...
... id="fs" type="button">Fullscreen</button></li> </ul> Each button is given an id so it can be easily accessed with JavaScript. The span within the <progress> element is for browsers that do not support the progress element and will be updated at the same time as progress (this span element won't be visible on browsers that support progress). The controls are initially hidden with a CSS display:none and will be enabled with JavaScript. Again if a user has JavaScript disabled, the custom control set will not appear and they can use the browser's default control set unhindered. Of course this custom control set is currently useless and doesn't do a thing: Let's improve the situation with JavaScript. Using the Media API HTML5 comes with a JavaScript Media API that allows developers access to...
...And 2 more matches
<details>: The Details disclosure element - HTML: Hypertext Markup Language
Web › HTML › Element › details
ntations automatically apply the CSS display: list-item to the <summary> element. You can use this to customize its appearance further. See Customizing the disclosure widget for further details. Content categories Flow content, sectioning root, interactive content, palpable content. Permitted content One <summary> element followed by flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role group Permitted ARIA roles No role permitted DOM interface HTMLDetailsElement Attributes This element includes the global attributes. open This Boolean attribute indicates whether or not the details -- that is, the...
...erm storage. An input device as well as some form of output device is recommended.</p> </details> This results in: Customizing the appearance Now let's apply some CSS to customize the appearance of the disclosure box. CSS details { font: 16px "Open Sans", Calibri, sans-serif; width: 620px; } details > summary { padding: 2px 6px; width: 15em; background-color: #ddd; border: none; box-shadow: 3px 3px 4px black; cursor: pointer; } details > p { border-radius: 0 0 10px 10px; background-color: #ddd; padding: 2px 6px; margin: 0; box-shadow: 3px 3px 4px black; } This CSS creates a look similar to a tabbed interface, where clicking the tab opens it to reveal its contents. HTML <details> <summary>System Requirements</summary> <p>Requires a computer running...
...erimental implementations as the element was standardized, so we'll have to use multiple approaches for a while. The <summary> element supports the list-style shorthand property and its longhand properties, such as list-style-type, to change the disclosure triangle to whatever you choose (usually with list-style-image). For example, we can remove the disclosure widget icon by setting list-style: none. ...
...And 2 more matches
<input type="radio"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › radio
w to note here except for the addition of <fieldset> and <legend> elements, which help to group the functionality nicely and in a semantic way. ...
... the addition of <fieldset> and <legend> elements, which help to group the functionality nicely and in a semantic way. ...
...eldset> and <legend> elements, which help to group the functionality nicely and in a semantic way. ...
...And 2 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
Web › HTML › Element › input
be unique in the whole document. Its purpose is to identify the element when linking. The value is used as the value of the <label>'s for attribute to link the label with the form control. See <label>. inputmode Global value valid for all elements, it provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Values include none, text, tel, url, email, numeric, decimal, and search. list The value given to the list attribute should be. the id of a <datalist> element located in the same document. The <datalist> provides a list of predefined values to suggest to the user for this input. Any values in the list that are not compatible with the type are not included in the suggested options. The values provided are sugge...
...abbing into a series of same-named group of radio buttons, if one is checked, that one will receive focus. If they aren't grouped together in source order, if one of the group is checked, tabbing into the group starts when the first one in the group is encountered, skipping all those that aren't checked. In other words, if one is checked, tabbing skips the unchecked radio buttons in the group. If none are checked, the radio button group receives focus when the first button in the same name group is reached. Once one of the radio buttons in a group has focus, using the arrow keys will navigate through all the radio buttons of the same name, even if the radio buttons are not grouped together in the source order. HTMLFormElement.elements When an input element is given a name, that name beco...
...S properties. ::placeholder { color: blue; } Only the subset of CSS properties that apply to the ::first-line pseudo-element can be used in a rule using ::placeholder in its selector. appearance The appearance property enables the displaying of (almost) any element as a platform-native style based on the operating system's theme as well as the removal of any platform-native styling with the none value. You could make a <div> look like a radio button with div {appearance: radio;} or a radio look like a checkbox with [type="checkbox] {appearance: checkbox;}, but don't. Setting appearance: none removes platform native borders, but not functionality. caret-color A property specific to text entry-related elements is the CSS caret-color property, which lets you set the color used to draw t...
...And 2 more matches
<textarea> - HTML: Hypertext Markup Language
Web › HTML › Element › textarea
udes the global attributes. autocapitalize This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are: none: Completely disables automatic capitalization. sentences: Automatically capitalize the first letter of sentences. words: Automatically capitalize the first letter of words. characters: Automatically capitalize all characters. on: Deprecated since iOS 5. off: Deprecated since iOS 5. autocomplete This attribute indicates whether the value of the control can be automatically comp...
... baseline on it; the behavior is unpredictable. Controlling whether a textarea is resizable In most browsers, <textarea>s are resizable -- you'll notice the drag handle in the right hand corner, which can be used to alter the size of the element on the page. This is controlled by the resize CSS property -- resizing is enabled by default, but you can explicitly disable it using a resize value of none: textarea { resize: none; } Styling valid and invalid values Valid and invalid values of a <textarea> element (e.g. those within, and outside the bounds set by minlength, maxlength, or required) can be highlighted using the :valid and :invalid pseudo-classes. For example, to give your textarea a different border depending on whether it is valid or invalid: textarea:invalid { border: 2px ...
...ws="5" cols="30" disabled>I am a disabled textarea</textarea> <textarea name="textarea" rows="5" cols="30" readonly>I am a readonly textarea</textarea> Technical summary Content categories Flow content, phrasing content, Interactive content, listed, labelable, resettable, and submittable form-associated element. Permitted content Text Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role textbox Permitted ARIA roles No role permitted DOM interface HTMLTextAreaElement Specifications Specification Status Comment HTML Living StandardThe definition of '<textarea>' in that sp...
...And 2 more matches
CSP: form-action - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
... be propagated to all the scripts loaded by that root script. At the same time, any allow-list or source expressions such as 'self' or 'unsafe-inline' are ignored. See script-src for an example. 'report-sample' Requires a sample of the violating code to be included in the violation report. ...
...expressions such as 'self' or 'unsafe-inline' are ignored. See script-src for an example. 'report-sample' Requires a sample of the violating code to be included in the violation report. ...
...And 2 more matches
Content-Security-Policy - HTTP
elements. object-src Specifies valid sources for the <object>, <embed>, and <applet> elements. Elements controlled by object-src are perhaps coincidentally considered legacy HTML elements and are not receiving new standardized features (such as the security attributes sandbox or allow for <iframe>). Therefore it is recommended to restrict this fetch-directive (e.g., explicitly set object-src 'none' if possible). prefetch-src Specifies valid sources to be prefetched or prerendered. script-src Specifies valid sources for JavaScript. script-src-elem Specifies valid sources for JavaScript <script> elements. script-src-attr Specifies valid sources for JavaScript inline event handlers. style-src Specifies valid sources for stylesheets. style-src-elem Specifies valid sources fo...
...icies being specified for a resource, including via the Content-Security-Policy header, the Content-Security-Policy-Report-Only header and a <meta> element. You can use the Content-Security-Policy header more than once, as in the example below. Pay special attention to the connect-src directive here. ...
...ader more than once, as in the example below. Pay special attention to the connect-src directive here. Even though the second policy would allow the connection, the first policy contains connect-src 'none'. Adding additional policies can only further restrict the capabilities of the protected resource, which means that there will be no connection allowed and, as the strictest policy, connect-src 'none' is enforced. ...
...And 2 more matches
y - SVG: Scalable Vector Graphics
Web › SVG › Attribute › y
http://www.w3.org/2000/svg"> <rect y="20" x="20" width="60" height="60" /> <rect y="120" x="20" width="60" height="60" /> <rect y="220" x="20" width="60" height="60" /> </svg> altGlyph Warning: As of SVG2 <altGlyph> is deprecated and shouldn't be used. For <altGlyph>, y defines the y-axis coordinate of the alternate glyph. Value List of <length> Default value none Animatable Yes feBlend For <feBlend>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0% Animatable Yes feColorMatrix For <feColorMatrix>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> ...
...percentage> Default value 0 Animatable Yes Note: Starting with SVG2, y is a Geometry Property meaning this attribute can also be used as a CSS property for <foreignObject>. glyphRef Warning: As of SVG2 <glyphRef> is deprecated and shouldn't be used. For <glyphRef>, y defines the y-axis coordinate of the glyph. Value <number> Default value none Animatable Yes image For <image>, y defines the y coordinate of the uper left corner of the image. Value <length> | <percentage> Default value 0 Animatable Yes Note: Starting with SVG2, y is a Geometry Property meaning this attribute can also be used as a CSS property for images. mask For <mask>, y defines the y coordinate of the u...
... For <tref>, if it contain a single value, y defines the y coordinate on where the content text position must be placed. The content text position is usualy a point on the baseline of the first line of text. The exact content text position is influenced by some...
...And 2 more matches
<a> - SVG: Scalable Vector Graphics
Web › SVG › Element › a
ed 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. Try the @namespace rule to distinguish the two. Attributes download Instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. ...
...Selector may apply to the wrong kind of element. Try the @namespace rule to distinguish the two. Attributes download Instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. Value type: <string> ; Default value: none; Animatable: no href The URL or URL fragment the hyperlink points to. Value type: <URL> ; Default value: none; Animatable: yes hreflang The human language of the URL or URL fragment that the hyperlink points to. Value type: <string> ; Default value: none; Animatable: yes ping A space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. For a more widely-supported feature addre...
...s to. Value type: <string> ; Default value: none; Animatable: yes ping A space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. For a more widely-supported feature addressing the same use cases, see Navigator.sendBeacon(). Value type: <list-of-URLs> ; Default value: none; Animatable: no referrerpolicy Which referrer to send when fetching the URL. Value type: no-referrer|no-referrer-when-downgrade|same-origin|origin|strict-origin|origin-when-cross-origin|strict-origin-when-cross-origin|unsafe-url ; Default value: none; Animatable: no rel The relationship of the target object to the link object. ...
...And 2 more matches
<pattern> - SVG: Scalable Vector Graphics
Web › SVG › Element › pattern
ose elements with the referenced pattern. ...
... Value type: userSpaceOnUse|objectBoundingBox; Default value: userSpaceOnUse; Animatable: yes Note: This attribute has no effect if a viewBox attribute is specified on the <pattern> element. ...
...pe: userSpaceOnUse|objectBoundingBox; Default value: userSpaceOnUse; Animatable: yes Note: This attribute has no effect if a viewBox attribute is specified on the <pattern> element. patternTransform This attribute contains the definition of an optional additional transformation from the pattern coordinate system onto the target coordinate system. ...
...And 2 more matches
crop - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › crop
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
... and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...h so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
caption - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is empty or left out, no image appears. ...
...If this attribute is empty or left out, no image appears. The position of the image is determined by the dir and orient attributes. label Type: string The label that will appear on the element. If this is left out, no text appears. ...
checkbox - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the command event will not fire. ...
description - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the command event will not fire. ...
dialogheader - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
... title Type: string The text to appear in the title bar of the window. ...
... title Type: string The text to appear in the title bar of the window. ...
label - Archive of obsolete content
Archive › Mozilla › XUL › label
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the command event will not fire. ...
listcell - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the command event will not fire. ...
listitem - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...This is typically used by a theme to customize the focus ring. ...
...This is typically used by a theme to customize the focus ring. To change the currently selected item in a listbox, use the listbox property selectedItem. ...
menulist - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
... and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: menupopup > menuitem, menupopup > menu { max-width: none; } disableautoselect Type: boolean If this attribute is true or omitted, the selected item on the menu will update to match what the user entered in the textbox. If the text does not match any of the items in the list, the menu selection is cleared. If this attribute is false, the selection is never updated to match the ...
...efwindow. More information is available in the Preferences System article. readonly Type: boolean If set to true, then the user cannot change the value of the element. However, the value may still be modified by a script. sizetopopup Type: one of the values below Indicates how the menu width and the menupopup width are determined. If the sizetopopup attribute is left out or set to none, the menu will be its preferred width and the popup may extend outside of this width, unaffected by the maximum width of the menu itself. Otherwise, the menu will size itself to at least the size of the popup. If the menu has a maximum width, the popup will also be this width. none The width of the popup will not be constrained to the size of the menu. pref The preferred width of the ...
menuseparator - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the command event will not fire. ...
radio - Archive of obsolete content
Archive › Mozilla › XUL › radio
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the command event will not fire. ...
<statusbarpanel> - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is empty or left out, no image appears. ...
...If this attribute is empty or left out, no image appears. The position of the image is determined by the dir and orient attributes. label Type: string The label that will appear on the element. If this is left out, no text appears. ...
tab - Archive of obsolete content
Archive › Mozilla › XUL › tab
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. ...
...If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the command event will not fire. ...
tooltip - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
... label Type: string The label that will appear on the element. ...
... label Type: string The label that will appear on the element. If this is left out, no text appears. ...
Beginner's guide to media queries - Learn web development
hover. @media (hover: hover) { body { color: rebeccapurple; } } Open this example in the browser, or view the source. If we know the user cannot hover, we could display some interactive features by default. For users who can hover, we might choose to make them available when a link is hovered over. Also in Level 4 is the pointer media feature. This takes three possible values, none, fine and coarse. A fine pointer is something like a mouse or trackpad. It enables the user to precisely target a small area. A coarse pointer is your finger on a touchscreen. The value none means the user has no pointing device; perhaps they are navigating with the keyboard only or with voice commands. Using pointer can help you to design better interfaces that respond to the type of interactio...
...would be exactly the same. Walkthrough: a simple mobile-first layout Our starting point is an HTML document with some CSS applied to add background colors to the various parts of the layout. ...
... various parts of the layout. ...
... With the example open in your browser, make the screen wider and narrower to see the number of column tracks change. The nice thing about...
Styling web forms - Learn web development
Now we can start working on the form elements themselves. First, let's ensure that the <label>s are given the right font: label { font : .8em "typewriter", sans-serif; } The text fields require some common rules. ...
...sure that the <label>s are given the right font: label { font : .8em "typewriter", sans-serif; } The text fields require some common rules. ...
...so choose. The overflow property is used to make the field render more consistently across browsers. Some browsers default to the value auto, while some default to the value scroll. ...
...; width : 100%; height : 90%; border-right: 1px solid; /* resize : none; */ overflow: auto; } Styling the submit button The <button> element is really convenient to style with CSS; you can do whatever you want, even using pseudo-elements: button { padding : 5px; font : bold .6em sans-serif; border : 2px solid #333; border-radius: 5px; background : none; cursor : pointer; transform : rotate(-1.5deg); } button:after { content : " >>>"; } button:hover, button:focus { outline : none; background : #000; color : #FFF; } The final result And voila! Your form should now look like this: Note: If your example does not work quite like you expected and you want to check it against our version, you can find it on...
Styling Vue components with CSS - Learn web development
ll not be using such tools, it's good to know that when including such code in the assets folder it will be processed automatically. ...
...know that when including such code in the assets folder it will be processed automatically. ...
...x dashed #228bec; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { /* 1 */ overflow: visible; } input[type="text"] { border-radius: 0; } body { width: 100%; max-width: 68rem; margin: 0 auto; font: 1.6rem/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif; backgroun...
....custom-checkbox > .checkbox { font-family: Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 400; font-size: 16px; font-size: 1rem; line-height: 1.25; box-sizing: border-box; width: 100%; height: 40px; height: 2.5rem; margin-top: 0; padding: 5px; border: 2px solid #0b0c0c; border-radius: 0; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .custom-checkbox > input:focus { outline: 3px dashed #fd0; outline-offset: 0; box-shadow: inset 0 0 0 2px; } .custom-checkbox { font-family: Arial, sans-serif; -webkit-font-smoothing: antialiased; font-weight: 400; font-size: 1.6rem; line-height: 1.25; display: block; position: relative; min-height: 40px; margin-bottom: 10px;...
Handling common accessibility problems - Learn web development
Browser compatibility for these features is fairly good, but if you want to provide text alternatives for audio or support older browsers, a simple text transcript presented somewhere on the page or on a separate page might be a good idea. Element relationships and context There are certain features and best practices in HTML designed to provide context and relationships between elements where none otherwise exists. The three most common examples are links, form labels, and data tables. The key to accessible link text is that people using screen readers will often use a common feature whereby they pull up a list of all the links on the page. In this case, the link text needs to make sense out of context. For example, a list of links labeled "click here", "click here", etc. is really bad fo...
...er users don't care about any of this -- they are happy with the content as long as the source order makes sense, and they can get to it all. Absolute positioning (as used in this example) is generally seen as one of the best mechanisms of hiding content for visual effect, because it doesn't stop screen readers from getting to it. On the other hand, you shouldn't use visibility:hidden or display:none, because they do hide content from screenreaders. Unless of course, there is a good reason why you want this content to be hidden from screenreaders. Note: Invisible Content Just for Screen Reader Users has a lot more useful detail surrounding this topic. JavaScript JavaScript has the same kind of problems as CSS with respect to accessibility -- it can be disastrous for accessibility if used...
...Screenreader testing Now you've gotten used to using a screenreader, we'd like you to use it to do some quick accessibility tests, to get an idea of how screenreaders deal with good and bad webpage features: Look at good-semantics.html, and note how the headers are found by the screenreader and available to use for navigation. Now look at bad-semantics.html, and note how the screenreader gets none of this information. Imagine how annoying this would be when trying to navigate a really long page of text. Look at good-links.html, and note how they make sense when viewed out of context. This is not the case with bad-links.html -- they are all just "click here". Look at good-form.html, and note how the form inputs are described using their labels because we've used <label> elements properly.
...l, and note how the form inputs are described using their labels because we've used <label> elements properly. In bad-form.html, they get an unhelpful label along the lines of "blank". Look at our punk-bands-complete.html example, and see how the screenreader is able to associate columns and rows of content and read them out all together because we've defined headers properly. In bad-table.html, none of the cells can be associated at all. Note that NVDA seems to behave slightly stragely when you've only got a single table on a page; you could try WebAIM's table test page instead. Have a look at the WAI-ARIA live regions example we saw earlier, and note how the screen reader will keep reading out the constantly updating section as it updates. User testing As mentioned above, you can't rely...
Adding a new CSS property
e shorthand parser to be able to reuse the longhand parser. ...
... If you add a shorthand property, you'll need to use the CSS_PROP_SHORTHAND macro. You'll need to use CSS_PROPERTY_PARSE_FUNCTION as described above; you can't use the other options for shorthands. ...
...the VARIANT_* flags), you should use VARIANT_KEYWORD and add a keyword table to the nsCSSProps class. The name of this keyword table needs to go in the nsCSSPropList entry; otherwise that keyword table should be null. If you need a keyword table, you should include auto, normal, or none (if needed) in that table rather than combining VARIANT_KEYWORD with VARIANT_AUTO, VARIANT_NORMAL, or VARIANT_NONE. If you add a shorthand property, you'll need to use the CSS_PROP_SHORTHAND macro. You'll need to use CSS_PROPERTY_PARSE_FUNCTION as described above; you can't use the other options for shorthands. And for shorthands you also need to include a subproperty table in nsCSSProps, whose name must match the "method" argument in the CSS_PROP_SHORTHAND macro. When writing the custom parsing code for...
...operty to a shorthand, but only conditionally on that property's preference), call nsCSSProps::IsEnabled(), which is faster than calling into the preferences code For further understanding of how the parsing code works, you should read and understand the code in nsCSSParser.cpp. Computed Style When adding a new longhand property, you also need to implement the computed style side of things. (None of this applies to shorthand properties.) Start by reading and understanding the "Computed Value:" line in the specification's definition of the property, and any associated prose. This line describes the conceptual representation (but not syntax) of the computed value of the property. The data structures in Gecko that store the computed value must correspond to this concept, or inheritance wo...
Python binding for NSS
objects. Most people will probablby just print the string representation of the returned CertVerifyLog object. Cert validation logging is handled by the Certificate.verify() method. Support has also been added for the various key usage and cert type entities which feature prominently during cert validation. Certificate() constructor signature changed from Certificate(data=None, der_is_signed=True) to Certificate(data, certdb=cert_get_default_certdb(), perm=False, nickname=None) This change was necessary because all certs should be added to the NSS temporary database when they are loaded, but earlier code failed to to that. It's is not likely that an previous code was failing to pass initialization data or the der_is_signed flag so this change shoul...
... der_is_signed flag so this change should be backwards compatible. Fix bug #922247, PKCS12Decoder.database_import() method. Importing into a NSS database would sometimes fail or segfault. Error codes and descriptions were updated from upstream NSPR & NSS. The password callback did not allow for breaking out of a password prompting loop, now if None is returned from the password callback the password prompting is terminated. nss.nss_shutdown_context now called from InitContext destructor, this assures the context is shutdown even if the programmer forgot to. It's still best to explicitly shut it down, this is just failsafe. Support was added for shutdown callbacks. cert_dump.py extended t...
...nd centralize logic. Add repr_kind parameter to cert_trust_flags_str() Add support for repr_kind AsEnumName to bitstring table lookup. Add cert_type_bitstr_to_tuple() lookup function Add PRTimeConvert(), used to convert Python time values to PRTime, centralizes conversion logic, reduces duplication Add UTF8OrNoneConvert to better handle unicode parameters which are optional. Add Certificate_summary_format_lines() utility to generate concise certificate identification info for output. Certificate_new_from_CERTCertificate now takes add_reference parameter to properly reference count certs, should fix shutdown busy problems. Add print_traceback(), print_c...
...preferred_cipher() nss.nss.token_exists() nss.ssl.config_mp_server_sid_cache() nss.ssl.config_server_session_id_cache_with_opt() nss.ssl.get_max_server_cache_locks() nss.ssl.set_max_server_cache_locks() nss.ssl.shutdown_server_session_id_cache() The following constants were added nss.nss.int.PK11_DIS_COULD_NOT_INIT_TOKEN nss.nss.int.PK11_DIS_NONE nss.nss.int.PK11_DIS_TOKEN_NOT_PRESENT nss.nss.int.PK11_DIS_TOKEN_VERIFY_FAILED nss.nss.int.PK11_DIS_USER_SELECTED nss.nss.int.PKCS12_DES_56 nss.nss.int.PKCS12_DES_EDE3_168 nss.nss.int.PKCS12_RC2_CBC_128 nss.nss.int.PKCS12_RC2_CBC_40 nss.nss.int.PKCS12_RC4_128 nss.nss.int.PKCS12_RC4_40 The following files were added test/run_tests ...
nsIAppShell
eter array. DispatchNativeEvent() Obsolete since Gecko 1.9 (Firefox 3) After event dispatch execute app specific code. void DispatchNativeEvent( in PRBool aRealEvent, in voidPtr aEvent ); Parameters aRealEvent Event is real or a null placeholder (Macintosh). aEvent Void pointer to native event structure. exit() Exit the handle event loop. void exit(); Parameters None. favorPerformanceHint() Give hint to native event queue notification mechanism. If the native platform needs to tradeoff performance vs. native event starvation this hint tells the native dispatch code which to favor. The default is to prevent native event starvation. Calls to this function may be nested. When the number of calls that pass PR_TRUE is subtracted from the number of calls that pass ...
... ); Parameters aQueue The queue in question. aListen PR_TRUE for a new queue wanting hooking up. PR_FALSE for a queue wanting to be unhooked. resumeNative() Resumes the use of additional platform-specific methods to run() Gecko events on the main application thread. Calls to suspendNative() and resumeNative may be nested. On some platforms this will be a no-op. void resumeNative(); Parameters None. run() Enter an event loop. Do not leave until exit() is called. void run(); Parameters None. runInStableState() Allows running of a "synchronous section", in the form of an nsIRunnable once the event loop has reached a "stable state". A stable state is reached when the currently executing task/event has finished, (see: webappapis.html#synchronous-section). In practice this runs aRunnable once t...
...rrently executing event finishes. If called multiple times per task/event, all the runnables will be executed, in the order in which runInStableState was called. void runInStableState( in nsIRunnable aRunnable ); Parameters aRunnable An nsIRunnable to run. Spindown() Obsolete since Gecko 1.9 (Firefox 3) Prepare to stop processing events. void Spindown(); Parameters None. Spinup() Obsolete since Gecko 1.9 (Firefox 3) Prepare to process events. void Spinup(); Parameters None. suspendNative() Suspends the use of additional platform-specific methods (besides the nsIAppShell->run() event loop) to run Gecko events on the main application thread. Under some circumstances these "additional methods" can cause Gecko event handlers to be re-enter...
... ...
nsIAppShellService
pixels, of the window. Height of window at creation. Can be overridden by the "height" tag in the XUL. Set to NS_SIZETOCONTENT to force the window to wrap to its contents. aAppShell A widget "appshell" (event processor) to associate with the new window. Return value Returns the newly created window. destroyHiddenWindow() Destroys a hidden window. void destroyHiddenWindow(); Parameters None. doProfileStartup() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Starts up the profile manager with the given arguments. void doProfileStartup( in nsICmdLineService aCmdLineService, in boolean canInteract ); Parameters aCmdLineService The arguments given to the program. canInteract If false and UI is needed, will fail. ...
...emporarily encounter a situation where all application windows will be closed but we do not want to take this as a signal to quit the application. Bracket the code where the last window could close with these. (And at application startup, on platforms that do not normally quit when the last window has closed, call Enter once, but not Exit) void enterLastWindowClosingSurvivalArea(); Parameters None. exitLastWindowClosingSurvivalArea() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void exitLastWindowClosingSurvivalArea(); Parameters None. Native code only!getHiddenWindowAndJSContext Return the (singleton) application hidden window as an nsIDOMWindow, and, the corresponding JavaScript context pointer. This is useful if you'd like to ...
...); Parameters aHiddenDOMWindow The hidden window QueryInterface'd to type nsIDOMWindow. aJSContext The corresponding JavaScript context. hideSplashScreen() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Remove the splash screen (if visible). This need be called only once per application session. void hideSplashScreen(); Parameters None. initialize() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Required initialization routine. void initialize( in nsICmdLineService aCmdLineService, in nsISupports nativeAppSupportOrSplashScreen ); Parameters aCmdLineService Is stored and passed to appshell components as they are initialized. nativeAppSupportOrSplashScreen Is an o...
... the global notification "xul-window-registered" void registerTopLevelWindow( in nsIXULWindow aWindow ); Parameters aWindow The window to register. run() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Runs an application event loop: normally the main event pump which defines the lifetime of the application. void run(); Parameters None. topLevelWindowIsModal() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) The appshell service needs to be informed of modal XUL windows currently open. Call this method as a window becomes modal or as it becomes nonmodal. void topLevelWindowIsModal( in nsIXULWindow aWindow, in boolean aModal ); Parameters aWindow The window to regi...
nsISelectionController
caretVisible boolean This is true if the caret is enabled, visible, and currently blinking. This is still true when the caret is enabled, visible, but in its "off" blink cycle. Read only. ...
... SCROLL_CENTER_VERTICALLY 1<<4 If set, the specified location will be scrolled to the center of the view. Methods Native code only!characterExtendForBackspace Will extend the selection one character cell backward in the document. This method is used internally for handling backspace key only when we're after UTF-16 surrogates. void characterExtendForBackspace(); Parameters None. Native code only!characterExtendForDelete Will extend the selection one character cell forward in the document. This method is used internally for handling delete key. void characterExtendForDelete(); Parameters None. characterMove() Will move the selection one character forward/backward in the document. This will also have the effect of collapsing the selection if the extend = PR_FALSE the "p...
...kward if PR_FALSE. extend Should it collapse the selection or extend it? completeScroll() Will move page view to the top or bottom of the document. void completeScroll( in boolean forward ); Parameters forward Forward or backward if PR_FALSE. getCaretEnabled() Gets the current state of the caret, as set by setCaretEnabled(). boolean getCaretEnabled(); Parameters None. Return value If aOutEnabled==null, returns NS_ERROR_INVALID_ARG else NS_OK. getDisplaySelection() Will get the display mode for the selection. short getDisplaySelection(); Parameters None. Return value OFF, ON, DISABLED. getSelection() Will return the selection that the presentation shell may implement. nsISelection getSelection( in short type ); Parameters type Will hold the ...
...rt region, in short flags ); Parameters type The selection to scroll into view. (SelectionType) region The region inside the selection to scroll into view. (SelectionRegion) flags One of the SCROLL_* constants. Exceptions thrown Missing Exception Missing Description selectAll() Will select the whole page. void selectAll(); Parameters None. setCaretEnabled() Set the caret as enabled or disabled. An enabled caret will draw or blink when made visible. A disabled caret will never show up. Can be called any time. void setCaretEnabled( in boolean enabled ); Parameters enabled PR_TRUE to enable caret. PR_FALSE to disable. setCaretReadOnly() Set the caret readonly or not. An readonly caret will draw but not blink when m...
nsIWebNavigation
g URI , in unsigned long loadFlags , in nsIURI referrer , in nsIInputStream postData, in nsIInputStream headers) void reload(in unsigned long reloadFlags) void stop(in unsigned long stopFlags) Constants Load Flags Constant Value Description LOAD_FLAGS_MASK 65535 This flag defines the range of bits that may be specified. LOAD_FLAGS_NONE 0 This is the default value for the load flags parameter. LOAD_FLAGS_IS_REFRESH 16 This flag specifies that the load should have the semantics of an HTML Meta-refresh tag (That is, that the cache should be bypassed). This flag is only applicable to loadURI. XXX the meaning of this flag is poorly defined. XXX no one uses this, so we should probably deprecate and remove it. ...
... Read only. canGoForward PRBool Indicates if the object can go forward. If true this indicates that there is forward session history available for navigation. Read only. currentURI nsIURI The currently loaded URI or null. Read only. document nsIDOMDocument Retrieves the current DOM document for the frame, or lazily creates a blank document if there is none. This attribute never returns null except for unexpected error situations. Read only. referringURI nsIURI The referring URI for the currently loaded URI or null. Read only. sessionHistory nsISHistory The session history object used by this web navigation instance. Methods goBack() Tells the object to navigate to the previous session history item. When a page...
...am headers ); Parameters URI The URI string to load. For HTTP and FTP URLs and possibly others, characters above U+007F will be converted to UTF-8 and then URL- escaped per the rules of RFC 2396. loadFlags Flags modifying load behaviour. This parameter is a bitwise combination of the load flags defined above. (Undefined bits are reserved for future use.) Generally you will pass LOAD_FLAGS_NONE for this parameter. referrer The referring URI. If this argument is null, then the referring URI will be inferred internally. postData If the URI corresponds to a HTTP request, then this stream is appended directly to the HTTP request headers. It may be prefixed with additional HTTP headers. This stream must contain a \r\n sequence separating any HTTP headers from the HTTP request body. This ...
...re may be cases where the user will be asked to confirm the reload (for example, when it is determined that the request is non-idempotent). void reload( unsigned long reloadFlags ); Parameters reloadFlags Flags modifying load behaviour. This parameter is a bitwise combination of the load flags defined above. (Undefined bits are reserved for future use.) Generally you will pass LOAD_FLAGS_NONE for this parameter. stop() Stops a load of a URI. void stop( unsigned long stopFlags ); Parameters stopFlags This parameter is one of the stop flags defined above. ...
nsIWindowsRegKey
icted to using only these value types. There is no method that is directly equivalent to RegQueryValueEx or RegSetValueEx. In particular, this interface does not support the REG_MULTI_SZ and REG_EXPAND_SZ value types. It is still possible to enumerate values that have other types (that is, getValueType() may return a type not defined below). Constant Value Description TYPE_NONE 0 REG_NONE TYPE_STRING 1 REG_SZ TYPE_BINARY 3 REG_BINARY TYPE_INT 4 REG_DWORD TYPE_INT64 11 REG_QWORD Methods close() This method closes the key. If the key is already closed, then this method does nothing. void close(); Parameters None. create() This method opens an existing key or creates a new key. Note: On 32-bit Windows...
...ex ); Parameters index The index of the requested value. Return value The name of the n'th value under this key. getValueType() This method returns the type of the value with the given name. unsigned long getValueType( in AString name ); Parameters name The name of the value to query. Return value One of the "TYPE_" constants. hasChanged() boolean hasChanged(); Parameters None. Return value This method returns true if the key has changed and false otherwise. This method will always return false if startWatching() was not called. hasChild() This method checks to see if the key has a child by the given name. boolean hasChild( in AString name ); Parameters name The name of the requested child key. Return value true if the key has a child by the given name. ha...
...n name. hasValue() This method checks to see if the key has a value by the given name. boolean hasValue( in AString name ); Parameters name The name of the requested value. Return value true if the key has a value by the given name. isWatching() This method returns true if the key is being watched for changes (that is, if startWatching() was called). boolean isWatching(); Parameters None. Return value true if the key is being watched for changes. open() This method opens an existing key. This method fails if the key does not exist. Note: On 32-bit Windows, it is valid to pass any HKEY as the rootKey parameter of this function. However, for compatibility with 64-bit Windows, that usage should probably be avoided in favor of openChild(). void open( in unsigned long rootKey, in ...
...s key and any of its descendant keys are watched. Otherwise, only this key is watched. void startWatching( in boolean recurse ); Parameters recurse Indicates whether or not to also watch child keys. stopWatching() This method stops any watching of the key initiated by a call to startWatching(). This method does nothing if the key is not being watched. void stopWatching(); Parameters None. writeBinaryValue() This method writes the binary contents of the named value. The value will be created if it does not already exist. JavaScript callers should take care with the value passed to this method since it will be truncated from a JS string (unicode) to a ISO-Latin-1 string. (The binary data will be treated as an ISO-Latin-1 character string, which it is not). So, JavaScript callers sh...
CDATASection - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polylin...
...link:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polyline points="396,25 406,20 406,30 396,25" stroke="#D4DDE4" fill="none"/><line x1="406" y1="25" x2="436" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Text" target="_top"><rect x="436" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="473.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Text</text></a><polyline points="511,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Text" target="_top"><rect x="436" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="473.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Text</text></a><polyline points="511,25 521,20 521,30 511,25" stroke="#D4DDE4" fill="none"/><line x1="521" y1="25" x2="529" y2="25" stroke="#D4DDE4"/><line x1="529" y1="25" x2="529" y2="90" stroke="#D4DDE4"/><line x1="529" y1="90" x2="512" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CDATASection" target="_top"><rect x="391" y="65" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="451" y="94" font-size="12px" font-family="Consolas,Monaco,...
CanvasRenderingContext2D.filter - Web APIs
url() A CSS <url>. ...
... url() A CSS <url>. ...
... to the drawing. A value of 0% means completely transparent. A value of 100% leaves the drawing unchanged. saturate() A CSS <percentage>. Saturates the drawing. A value of 0% means completely un-saturated. A value of 100% leaves the drawing unchanged. sepia() A CSS <percentage>. Converts the drawing to sepia. A value of 100% means completely sepia. A value of 0% leaves the drawing unchanged. none No filter is applied. Initial value. Examples To view these examples, make sure to use a browser that supports this feature; see the compatibility table below. Applying a blur This example blurs a piece of text using the filter property. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.filter = 'bl...
...anvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.filter = 'blur(4px)'; ctx.font = '48px serif'; ctx.fillText('Hello world', 50, 100); Result Applying multiple filters You can combine as many filters as you like. This example applies the contrast, sepia, and drop-shadow filters to a photo of a gecko. ...
Using files from web applications - Web APIs
ment.getElementById("uploadInput").addEventListener("change", updateSize, false); </script> </body> </html> Using hidden file input elements using the click() method You can hide the admittedly ugly file <input> element and present your own interface for opening the file picker and displaying which file or files the user has selected. ...
...lick() method You can hide the admittedly ugly file <input> element and present your own interface for opening the file picker and displaying which file or files the user has selected. You can do this by styling the input element with display:none and calling the click() method on the <input> element. ...
..."click", function (e) { if (fileElem) { fileElem.click(); } }, false); You can style the new button for opening the file picker as you wish. Using a label element to trigger a hidden file input element To allow opening the file picker without using JavaScript (the click() method), a <label> element can be used. Note that in this case the input element must not be hidden using display: none (nor visibility: hidden), otherwise the label would not be keyboard-accessible. Use the visually-hidden technique instead. Consider this HTML: <input type="file" id="fileElem" multiple accept="image/*" class="visually-hidden"> <label for="fileElem">Select some files</label> and this CSS: .visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; cli...
...them explicitly by calling URL.revokeObjectURL(): URL.revokeObjectURL(objectURL); Example: Using object URLs to display images This example uses object URLs to display image thumbnails. In addition, it displays other file information including their names and sizes. The HTML that presents the interface looks like this: <input type="file" id="fileElem" multiple accept="image/*" style="display:none"> <a href="#" id="fileSelect">Select some files</a> <div id="fileList"> <p>No files selected!</p> </div> This establishes our file <input> element as well as a link that invokes the file picker (since we keep the file input hidden to prevent that less-than-attractive user interface from being displayed). This is explained in the section Using hidden file input elements using the click() metho...
HTMLAnchorElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLAnchorElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLAreaElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLAreaElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLBRElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLBRElement" target="_top"><rect x="361" y="65" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="426" y="94" font-size="12px" font-family="Consolas,Monaco...
HTMLBaseElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLBaseElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLBodyElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLBodyElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLCanvasElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLCanvasElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLDListElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLDListElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLDataElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLDataElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLDataListElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLDataListElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,...
HTMLDivElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLDivElement" target="_top"><rect x="351" y="65" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="Consolas,Monac...
HTMLEmbedElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLEmbedElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLFormElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLFormElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLHRElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLHRElement" target="_top"><rect x="361" y="65" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="426" y="94" font-size="12px" font-family="Consolas,Monaco...
HTMLHeadElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLHeadElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLHeadingElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLHeadingElement" target="_top"><rect x="311" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,M...
HTMLHtmlElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLHtmlElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLIFrameElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLIFrameElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLImageElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLImageElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLLIElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLLIElement" target="_top"><rect x="361" y="65" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="426" y="94" font-size="12px" font-family="Consolas,Monaco...
HTMLLabelElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLLabelElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLLegendElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLLegendElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLMapElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMapElement" target="_top"><rect x="351" y="65" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="Consolas,Monac...
HTMLMediaElement.onencrypted - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMediaElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLMediaElement.onwaitingforkey - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMediaElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLMenuElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMenuElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLMenuItemElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMenuItemElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,...
HTMLMetaElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMetaElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLMeterElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMeterElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLModElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLModElement" target="_top"><rect x="351" y="65" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="Consolas,Monac...
HTMLOListElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLOListElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLObjectElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLObjectElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLOptGroupElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLOptGroupElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,...
HTMLOutputElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLOutputElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLParagraphElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLParagraphElement" target="_top"><rect x="291" y="65" width="200" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas...
HTMLParamElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLParamElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLPictureElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLPictureElement" target="_top"><rect x="311" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,M...
HTMLPreElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLPreElement" target="_top"><rect x="351" y="65" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="Consolas,Monac...
HTMLProgressElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLProgressElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,...
HTMLQuoteElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLQuoteElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLScriptElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLScriptElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLSelectElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLSelectElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLShadowElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLShadowElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLSourceElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLSourceElement" target="_top"><rect x="321" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mo...
HTMLSpanElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLSpanElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLTableCaptionElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTableCaptionElement" target="_top"><rect x="261" y="65" width="230" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="Conso...
HTMLTableCellElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTableCellElement" target="_top"><rect x="291" y="65" width="200" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas...
HTMLTableColElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTableColElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,...
HTMLTableRowElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTableRowElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,...
HTMLTableSectionElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTableSectionElement" target="_top"><rect x="261" y="65" width="230" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="Conso...
HTMLTemplateElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTemplateElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,...
HTMLTimeElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTimeElement" target="_top"><rect x="341" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Mona...
HTMLTitleElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLTitleElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLUListElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLUListElement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Mon...
HTMLUnknownElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline po...
...<a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLUnknownElement" target="_top"><rect x="311" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,M...
Drag Operations - Web APIs
ed to indicate that some form of relationship or connection will be created between the source and drop locations. You can specify which of the three operations are allowed for a drag source by setting the effectAllowed property within a dragstart event listener. event.dataTransfer.effectAllowed = "copy"; In this example, only a copy is allowed. You can combine the values in various ways: none no operation is permitted copy copy only move move only link link only copyMove copy or move only copyLink copy or link only linkMove link or move only all copy, move, or link uninitialized The default value is all. Note that these values must be used exactly as listed above. For example, setting the effectAllowed property to copyMove allows a copy or move operation but prevent...
...lue. So you don't need to adjust this property unless you want to exclude specific types. During a drag operation, a listener for the dragenter or dragover events can check the effectAllowed property to see which operations are permitted. A related property, dropEffect, should be set within one of these events to specify which single operation should be performed. Valid values for dropEffect are none, copy, move, or link. The combination values are not used for this property. With the dragenter and dragover event, the dropEffect property is initialized to the effect that the user is requesting. The user can modify the desired effect by pressing modifier keys. Although the exact keys used vary by platform, typically the Shift and Control keys would be used to switch between copying, moving, a...
...s certain operations. You can modify the dropEffect property to override the user effect, and enforce a specific drop operation to occur. Note that this effect must be one listed within the effectAllowed property. Otherwise, it will be set to an alternate value that is allowed. event.dataTransfer.dropEffect = "copy"; In this example, copy is the effect that is performed. You can use the value none to indicate that no drop is allowed at this location, although it is preferred not to cancel the event in this case. Within the drop and dragend events, you can check the dropEffect property to determine which effect was ultimately chosen. If the chosen effect were "move", then the original data should be removed from the source of the drag within the dragend event. Specifying Drop Targets A ...
...ypes[0]); } event.preventDefault(); } Finishing a Drag Once the drag is complete, a dragend event is fired at the source of the drag (the same element that received the dragstart event). This event will fire if the drag was successful[1] or if it was cancelled. However, you can use the dropEffect property to determine which drop operation occurred. If the dropEffect property has the value none during a dragend, then the drag was cancelled. Otherwise, the effect specifies which operation was performed. The source can use this information after a move operation to remove the dragged item from the old location. The mozUserCancelled property will be set to true if the user cancelled the drag (by pressing Escape), and false if the drag was cancelled for other reasons such as an invalid drop...
RTCPeerConnection - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/RTCPeerConnection" target="_top"><rect x="151" y="1" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="236" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">RTCPeerConnection</text><...
...However, browsers are not required to provide any default ICE servers at all.iceConnectionState Read only The read-only property RTCPeerConnection.iceConnectionState returns an enum of type RTCIceConnectionState which state of the ICE agent associated with the RTCPeerConnection.iceGatheringState Read only The read-only property RTCP...
...ay be. These values are returned by the connectionState property. This state essentially represents the aggregate state of all ICE transports (which are of type RTCIceTransport or RTCDtlsTransport) being used by the connection. Constant Description "new" At least one of the connection's ICE transports (RTCIceTransports or RTCDtlsTransports) are in the "new" state, and none of them are in one of the following states: "connecting", "checking", "failed", or "disconnected", or all of the connection's transports are in the "closed" state. "connecting" One or more of the ICE transports are currently in the process of establishing a connection; that is, their RTCIceConnectionState is either "checking" or "connected", and no transports are in the "failed" state...
... Make this a link once I know where that will be documented "connected" Every ICE transport used by the connection is either in use (state "connected" or "completed") or is closed (state "closed"); in addition, at least one transport is either "connected" or "completed". "disconnected" At least one of the ICE transports for the connection is in the "disconnected" state and none of the other transports are in the state "failed", "connecting", or "checking". "failed" One or more of the ICE transports on the connection is in the "failed" state. "closed" The RTCPeerConnection is closed. This value was in the RTCSignalingState enum (and therefore found by reading the value of the signalingState) property until the May 13, 2016 draft of the s...
SVGAnimationElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGAnimationElement" target="_top"><rect x="291" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="386" y="94" font-size="12px" font-family="Consolas,...
SVGClipPathElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGClipPathElement" target="_top"><rect x="301" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas,M...
SVGComponentTransferFunctionElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGComponentTransferFunctionElement" target="_top"><rect x="131" y="65" width="350" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="306" y="94" font-size="12px" font-f...
SVGCursorElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGCursorElement" target="_top"><rect x="321" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,Mon...
SVGDescElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGDescElement" target="_top"><rect x="341" y="65" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Monac...
SVGFEBlendElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEBlendElement" target="_top"><rect x="311" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,Mo...
SVGFEColorMatrixElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEColorMatrixElement" target="_top"><rect x="251" y="65" width="230" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="366" y="94" font-size="12px" font-family="Conso...
SVGFEComponentTransferElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEComponentTransferElement" target="_top"><rect x="191" y="65" width="290" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="336" y="94" font-size="12px" font-family=...
SVGFECompositeElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFECompositeElement" target="_top"><rect x="271" y="65" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="Consola...
SVGFEDiffuseLightingElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEDiffuseLightingElement" target="_top"><rect x="211" y="65" width="270" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="346" y="94" font-size="12px" font-family="C...
SVGFEDisplacementMapElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEDisplacementMapElement" target="_top"><rect x="211" y="65" width="270" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="346" y="94" font-size="12px" font-family="C...
SVGFEDistantLightElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEDistantLightElement" target="_top"><rect x="241" y="65" width="240" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="361" y="94" font-size="12px" font-family="Cons...
SVGFEDropShadowElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEDropShadowElement" target="_top"><rect x="261" y="65" width="220" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="Consol...
SVGFEFloodElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEFloodElement" target="_top"><rect x="311" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,Mo...
SVGFEImageElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEImageElement" target="_top"><rect x="311" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,Mo...
SVGFEMergeElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEMergeElement" target="_top"><rect x="311" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,Mo...
SVGFEMergeNodeElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEMergeNodeElement" target="_top"><rect x="271" y="65" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="Consola...
SVGFEMorphologyElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEMorphologyElement" target="_top"><rect x="261" y="65" width="220" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="Consol...
SVGFEOffsetElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEOffsetElement" target="_top"><rect x="301" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas,M...
SVGFEPointLightElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEPointLightElement" target="_top"><rect x="261" y="65" width="220" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="Consol...
SVGFESpecularLightingElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFESpecularLightingElement" target="_top"><rect x="201" y="65" width="280" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="341" y="94" font-size="12px" font-family="...
SVGFESpotLightElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFESpotLightElement" target="_top"><rect x="271" y="65" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="Consola...
SVGFETileElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFETileElement" target="_top"><rect x="321" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,Mon...
SVGFETurbulenceElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFETurbulenceElement" target="_top"><rect x="261" y="65" width="220" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="Consol...
SVGFilterElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFilterElement" target="_top"><rect x="321" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,Mon...
SVGGradientElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGGradientElement" target="_top"><rect x="301" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas,M...
SVGGraphicsElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGGraphicsElement" target="_top"><rect x="301" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas,M...
SVGMPathElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGMPathElement" target="_top"><rect x="331" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mona...
SVGMaskElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGMaskElement" target="_top"><rect x="341" y="65" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Monac...
SVGMetadataElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGMetadataElement" target="_top"><rect x="301" y="65" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas,M...
SVGPatternElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGPatternElement" target="_top"><rect x="311" y="65" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,Mo...
SVGPreserveAspectRatio - Web APIs
SVG preserveAspectRatio interface The SVGPreserveAspectRatio interface corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. An SVGPreserveAspectRatio object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
... SVG preserveAspectRatio interface The SVGPreserveAspectRatio interface corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. An SVGPreserveAspectRatio object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
...object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
...E_SLICE = 2 Normative document SVG 1.1 (2nd Edition) Constants Name Value Description SVG_PRESERVEASPECTRATIO_UNKNOWN 0 The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. SVG_PRESERVEASPECTRATIO_NONE 1 Corresponds to value none for attribute preserveAspectRatio. SVG_PRESERVEASPECTRATIO_XMINYMIN 2 Corresponds to value xMinYMin for attribute preserveAspectRatio. SVG_PRESERVEASPECTRATIO_XMIDYMIN 3 Corresponds to value xMidYMin for attribute preserveAspectRatio. SVG_PRESERVEASPECTRATIO_XMAXYMIN 4 Corresponds to value xMaxYMin for attribute preser...
SVGScriptElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGScriptElement" target="_top"><rect x="321" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,Mon...
SVGStopElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGStopElement" target="_top"><rect x="341" y="65" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="Consolas,Monac...
SVGStyleElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGStyleElement" target="_top"><rect x="331" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mona...
SVGSymbolElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGSymbolElement" target="_top"><rect x="321" y="65" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="Consolas,Mon...
SVGTitleElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGTitleElement" target="_top"><rect x="331" y="65" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Mona...
Using the aria-hidden attribute - Accessibility
ren, it should not be added onto the parent or ancestor of a focusable element. Using aria-hidden="false" will not re-expose the element to assistive technology if any of its parents specify aria-hidden="true". WAI-ARIA Authoring Practices 1.1 notes that aria-hidden="false" currently behaves inconsistently across browsers. Deciding between aria-hidden="true", role="presentation", and role="none" On the surface, the aria-hidden="true", role="presentation", and role="none" attributes seem similar because they: hide content from assistive technology cannot be used on a focusable element cannot be used on the parent of an interactive element Despite these similarities, the intent behind each attribute is different. aria-hidden="true" will remove the entire element from the acces...
... Values false (default) The element is exposed to the accessibility API. true The element is not exposed to the accessibility API. undefined (default) The user agent determines if the element is exposed to or hidden from the accessibility API. ...
...ader). <p aria-hidden="true"> Some things are better left unsaid. ...
...t be added when: the HTML hidden attribute is present the element or the element's ancestor is hidden with display: none The element or the element's ancestor is hidden with visibility: hidden In all three scenarios, the attribute is unnecessary to add because the element has already been removed from the accessibility tree. Specifications See also Using the presentation role role="none" ...
pointer - CSS: Cascading Style Sheets
Web › CSS › @media › pointer
The pointer CSS media feature tests whether the user has a pointing device (such as a mouse), and if so, how accurate the primary pointing device is. Note: If you want to test the accuracy of any pointing device, use any-pointer instead. Syntax The pointer feature is specified as a keyword value chosen from the list below. none The primary input mechanism does not include a pointing device. coarse The primary input mechanism includes a pointing device of limited accuracy. fine The primary input mechanism includes an accurate pointing device. Examples This example creates a small checkbox for users with fine primary pointers and a large checkbox for users with coarse primary pointers. HTML <input id="test" type="checkbox" /> <label for="test">Look at me!</label> CSS input[t...
...includes a pointing device of limited accuracy. fine The primary input mechanism includes an accurate pointing device. Examples This example creates a small checkbox for users with fine primary pointers and a large checkbox for users with coarse primary pointers. ...
...f limited accuracy. fine The primary input mechanism includes an accurate pointing device. Examples This example creates a small checkbox for users with fine primary pointers and a large checkbox for users with coarse primary pointers. ...
... fine The primary input mechanism includes an accurate pointing device. Examples This example creates a small checkbox for users with fine primary pointers and a large checkbox for users with coarse primary pointers. ...
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
{box-sizing: border-box;} .wrapper { border: 2px solid #f76707; border-radius: 5px; background-color: #fff4e6; max-width: 600px; margin: 0 auto; } .wrapper li { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } .wrapper ul { overflow: hidden; margin: 0 -10px; padding: 0; list-style: none; } .wrapper li { float: left; width: calc(33.333333% - 20px); margin: 0 10px 20px 10px; } <div class="wrapper"> <ul> <li class="card"><h2>One</h2> <p>We can use CSS Grid to overwrite older methods.</p> </li> <li class="card"><h2>Two</h2> <p>We can use CSS Grid to overwrite older methods.</p> </li> <li class="card"><...
...{box-sizing: border-box;} .wrapper { border: 2px solid #f76707; border-radius: 5px; background-color: #fff4e6; max-width: 600px; margin: 0 auto; } .wrapper li { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } .wrapper ul { overflow: hidden; margin: 0 -10px; padding: 0; list-style: none; } .wrapper li { float: left; width: calc(33.333333% - 20px); margin: 0 10px 20px 10px; } @supports (display: grid) { .wrapper ul { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; margin: 0; } .wrapper li { width: auto; min-height: auto; margin: 0; } } <div class="wrapper"> <ul> ...
...es a grid item: * {box-sizing: border-box;} .wrapper { border: 2px solid #f76707; border-radius: 5px; background-color: #fff4e6; max-width: 600px; margin: 0 auto; } .wrapper li { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } .wrapper ul { margin: 0 -10px; padding: 0; list-style: none; } .wrapper li { display: inline-block; vertical-align: top; width: calc(33.333333% - 20px); margin: 0 10px 20px 10px; } @supports (display: grid) { .wrapper ul { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; margin: 0; } .wrapper li { width: auto; margin: 0; } } <div class="wrapper"> <u...
...item set to display: table-cell, and then in a feature query change the parent to display: grid, this anonymous box creation will not happen. This means you can overwrite display: table based layouts, without having additional anonymous boxes. Floated elements As we have already seen, float and also clear have no effect on a grid item. Therefore you do not need to explicitly set items to float: none. Vertical alignment The alignment property vertical-align has no effect on a grid item. In layouts using display: inline-block or display: table, you might use the vertical-align property to perform basic alignment. In your grid layout you then have the far more powerful box alignment properties. Multiple-column layout You can also use multiple column layout as your legacy browser plan, as th...
border-bottom - CSS: Cascading Style Sheets
amples and send us a pull request. As with all shorthand properties, border-bottom always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their default values. This means that ... border-bottom-style: dotted; border-bottom: thick green; ... is actually the same as ... border-bottom-style: dotted; border-bottom: none thick green; ... and the value of border-bottom-style given before border-bottom is ignored. Since the default value of border-bottom-style is none, not specifying the border-style part results in no border. Constituent properties This property is a shorthand for the following CSS properties: border-bottom-color border-bottom-style border-bottom-width Syntax border-bottom: 1px; border...
...ed; border-bottom: medium dashed blue; The three values of the shorthand property can be specified in any order, and one or two of them may be omitted. Values <br-width> See border-bottom-width. <br-style> See border-bottom-style. <color> See border-bottom-color. ...
...yle. <color> See border-bottom-color. Formal definition Initial valueas each of the properties of the shorthand:border-bottom-width: mediumborder-bottom-style: noneborder-bottom-color: currentcolorApplies toall elements. ...
...) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ...
border-image-source - CSS: Cascading Style Sheets
s interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. The border-image-slice property is used to divide the source image into regions, which are then dynamically applied to the final border image. Syntax /* Keyword value */ border-image-source: none; /* <image> values */ border-image-source: url(image.jpg); border-image-source: linear-gradient(to top, red, yellow); /* Global values */ border-image-source: inherit; border-image-source: initial; border-image-source: unset; Values none No border image is used. The appearance defined by border-style is displayed instead. <image> Image reference to use for the border. Formal definitio...
...lues */ border-image-source: url(image.jpg); border-image-source: linear-gradient(to top, red, yellow); /* Global values */ border-image-source: inherit; border-image-source: initial; border-image-source: unset; Values none No border image is used. The appearance defined by border-style is displayed instead. <image> Image reference to use for the border. Formal definition Initial valuenoneApplies toall elements, except internal table elements when border-collapse is collapse. ...
...t; border-image-source: initial; border-image-source: unset; Values none No border image is used. The appearance defined by border-style is displayed instead. <image> Image reference to use for the border. Formal definition Initial valuenoneApplies toall elements, except internal table elements when border-collapse is collapse. ...
...order image is used. The appearance defined by border-style is displayed instead. <image> Image reference to use for the border. Formal definition Initial valuenoneApplies toall elements, except internal table elements when border-collapse is collapse. ...
border-inline - CSS: Cascading Style Sheets
n. It corresponds to the border-top and border-bottom or border-right, and border-left properties, depending on the values defined for writing-mode, direction, and text-orientation. The borders in the other dimension can be set with border-block, which sets border-block-start, and border-block-end. ...
...ders in the other dimension can be set with border-block, which sets border-block-start, and border-block-end. Initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolorApplies toall elementsInheritednoComputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed colorAnimation typediscrete Constituent properties This property is a shorthand for the following CSS properties: border-inline-color border-inline-style border-inline-width Syntax Values The border-inline is specified with one or more of the following, in any order: <'border-width'> The width of the border. See bord...
...dth Syntax Values The border-inline is specified with one or more of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. ...
...ine style of the border. See border-style. <'color'> The color of the border. See color. ...
border-left - CSS: Cascading Style Sheets
ractive-examples and send us a pull request. As with all shorthand properties, border-left always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their default values. This means that ... border-left-style: dotted; border-left: thick green; ... is actually the same as ... border-left-style: dotted; border-left: none thick green; ... and the value of border-left-style given before border-left is ignored. Since the default value of border-left-style is none, not specifying the border-style part results in no border. Constituent properties This property is a shorthand for the following CSS properties: border-left-color border-left-style border-left-width Syntax border-left: 1px; border-left: 2px dot...
...t: 2px dotted; border-left: medium dashed green; The three values of the shorthand property can be specified in any order, and one or two of them may be omitted. Values <br-width> See border-left-width. <br-style> See border-left-style. <color> See border-left-color. ...
...rder-left-style. <color> See border-left-color. Formal definition Initial valueas each of the properties of the shorthand:border-left-width: mediumborder-left-style: noneborder-left-color: currentcolorApplies toall elements. ...
...) | rgb( <number>{3} [ / <alpha-value> ]? ...
border-right - CSS: Cascading Style Sheets
ve-examples and send us a pull request. As with all shorthand properties, border-right always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their default values. This means that ... border-right-style: dotted; border-right: thick green; ... is actually the same as ... border-right-style: dotted; border-right: none thick green; ... and the value of border-right-style given before border-right is ignored. Since the default value of border-right-style is none, not specifying the border-style part results in no border. Constituent properties This property is a shorthand for the following CSS properties: border-right-color border-right-style border-right-width Syntax border-right: 1px; border-right:...
... dotted; border-right: medium dashed green; The three values of the shorthand property can be specified in any order, and one or two of them may be omitted. Values <br-width> See border-right-width. <br-style> See border-right-style. <color> See border-right-color. ...
...ght-style. <color> See border-right-color. Formal definition Initial valueas each of the properties of the shorthand:border-right-width: mediumborder-right-style: noneborder-right-color: currentcolorApplies toall elements. ...
...) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ...
border-top - CSS: Cascading Style Sheets
/interactive-examples and send us a pull request. As with all shorthand properties, border-top always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their default values. This means that ... border-top-style: dotted; border-top: thick green; ... is actually the same as ... border-top-style: dotted; border-top: none thick green; ... and the value of border-top-style given before border-top is ignored. Since the default value of border-top-style is none, not specifying the border-style part results in no border. Constituent properties This property is a shorthand for the following CSS properties: border-top-color border-top-style border-top-width Syntax border-top: 1px; border-top: 2px dotted; bor...
...der-top: 2px dotted; border-top: medium dashed green; The three values of the shorthand property can be specified in any order, and one or two of them may be omitted. Values <br-width> See border-top-width. <br-style> See border-top-style. <color> See border-top-color. ...
... See border-top-style. <color> See border-top-color. Formal definition Initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolorApplies toall elements. ...
...) | rgb( <number>{3} [ / <alpha-value> ]? ...
border-width - CSS: Cascading Style Sheets
a single document. Formal definition Initial valueas each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumApplies toall elements. ...
... of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumApplies toall elements. ...
...dth: mediumborder-left-width: mediumApplies toall elements. ...
...:first-letter.InheritednoComputed valueas each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenAnimation typeas each of the properties of the shorthand:border-bottom-width: a lengthborder-left-width: a lengthborder-right-width: a lengthborder-top-width: a length Formal syntax <line-width>{1,4}where <line-width> = <length> | thin | medium | thick Examples A mix of values and lengths HTML <p id="sval"> one value: 6px wide border on all 4 sides</p> <p id="bival"> two di...
box-shadow - CSS: Cascading Style Sheets
dow from the frame of almost any element. If a border-radius is specified on the element with a box shadow, the box shadow takes on the same rounded corners. The z-ordering of multiple box shadows is the same as multiple text shadows (the first specified shadow is on top). Box-shadow generator is an interactive tool allowing you to generate a box-shadow. ...
...ius> This is a fourth <length> value. Positive values will cause the shadow to expand and grow bigger, negative values will cause the shadow to shrink. If not specified, it will be 0 (the shadow will be the same size as the element). <color> See <color> values for possible keywords and notations. If not specified, it defaults to currentcolor. Interpolation Each shadow in the list (treating none as a 0-length list) is interpolated via the color (as color) component, and x, y, blur, and (when appropriate) spread (as length) components. For each shadow, if both input shadows are or are not inset, then the interpolated shadow must match the input shadows in that regard. If any pair of input shadows has one inset and the other not inset, the entire shadow list is uninterpolable. If the lists...
...ted shadow must match the input shadows in that regard. If any pair of input shadows has one inset and the other not inset, the entire shadow list is uninterpolable. If the lists of shadows have different lengths, then the shorter list is padded at the end with shadows whose color is transparent, all lengths are 0, and whose inset (or not) matches the longer list. ...
...ths, then the shorter list is padded at the end with shadows whose color is transparent, all lengths are 0, and whose inset (or not) matches the longer list. Formal definition Initial valuenoneApplies toall elements. ...
contain - CSS: Cascading Style Sheets
Web › CSS › contain
pendent, as it can be used to prevent each widget's internals from having side effects outside of the widget's bounding-box. Note: If applied (with value: paint, strict or content), this property creates: A new containing block (for the descendants whose position property is absolute or fixed). A new stacking context. A new block formatting context. Syntax /* Keyword values */ contain: none; contain: strict; contain: content; contain: size; contain: layout; contain: style; contain: paint; /* Multiple keywords */ contain: size paint; contain: size layout paint; /* Global values */ contain: inherit; contain: initial; contain: unset; The contain property is specified as either one of the following: Using a single none, strict, or content keyword. Using one or more of the size, l...
...: layout; contain: style; contain: paint; /* Multiple keywords */ contain: size paint; contain: size layout paint; /* Global values */ contain: inherit; contain: initial; contain: unset; The contain property is specified as either one of the following: Using a single none, strict, or content keyword. Using one or more of the size, layout, style, and paint keywords in any order. Values none Indicates the element renders as normal, with no containment applied. strict Indicates that all containment rules except style are applied to the element. This is equivalent to contain: size layout paint. content Indicates that all containment rules except size and style are applied to the element. This is equivalent to contain: layout paint. size Indicates that the element can be sized wi...
...ants of the element don't display outside its bounds. If the containing box is offscreen, the browser does not need to paint its contained elements -- these must also be offscreen as they are contained completely by that box. And if a descendant overflows the containing element's bounds, then that descendant will be clipped to the containing element's border-box. ...
...does not need to paint its contained elements -- these must also be offscreen as they are contained completely by that box. And if a descendant overflows the containing element's bounds, then that descendant will be clipped to the containing element's border-box. ...
counter-increment - CSS: Cascading Style Sheets
trary number using the counter-reset CSS property. ...
... none; /* Global values */ counter-increment: inherit; counter-increment: initial; counter-increment: unset; The counter-increment property is specified as either one of the following: A <custom-ident> naming the counter, followed optionally by an <integer>. You may specify as many counters to increment as you want, with each name or name-number pair separated by a space. The keyword value none. Values <custom-ident> The name of the counter to increment. <integer> The value to add to the counter. Defaults to 1 if not specified. none No counter must be incremented. This is used as the default value, or to cancel an increment in more specific rules. ...
...ent as you want, with each name or name-number pair separated by a space. The keyword value none. Values <custom-ident> The name of the counter to increment. <integer> The value to add to the counter. Defaults to 1 if not specified. none No counter must be incremented. This is used as the default value, or to cancel an increment in more specific rules. ...
... of the counter to increment. <integer> The value to add to the counter. Defaults to 1 if not specified. none No counter must be incremented. This is used as the default value, or to cancel an increment in more specific rules. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ <custom-ident> <integer>? ]+ | none Examples Incrementing named counters h1 { counter-increment: chapter section 2 page; /* Increases the value of the chapter and page counters by 1, and the section counter by 2 */ } Specifications Specification Status Comment CSS Lists Module Level 3The definition of 'counter-increment' in that specification. Working Draft No change. CSS Le...
counter-reset - CSS: Cascading Style Sheets
. Note: The counter's value can be increased or decreased using the counter-increment CSS property. Syntax /* Set "my-counter" to 0 */ counter-reset: my-counter; /* Set "my-counter" to -1 */ counter-reset: my-counter -1; /* Set "counter1" to 1, and "counter2" to 4 */ counter-reset: counter1 1 counter2 4; /* Cancel any reset that could have been set in less specific rules */ counter-reset: none; /* Global values */ counter-reset: inherit; counter-reset: initial; counter-reset: unset; The counter-reset property is specified as either one of the following: A <custom-ident> naming the counter, followed optionally by an <integer>. You may specify as many counters to reset as you want, with each name or name-number pair separated by a space. The keyword value none. Values <custom...
...ollowing: A <custom-ident> naming the counter, followed optionally by an <integer>. You may specify as many counters to reset as you want, with each name or name-number pair separated by a space. The keyword value none. Values <custom-ident> The name of the counter to reset. <integer> The value to reset the counter to on each occurrence of the element. Defaults to 0 if not specified. none No counter reset is to be performed. This can be used to override a counter-reset defined in a less specific rule. ...
...e or name-number pair separated by a space. The keyword value none. Values <custom-ident> The name of the counter to reset. <integer> The value to reset the counter to on each occurrence of the element. Defaults to 0 if not specified. none No counter reset is to be performed. This can be used to override a counter-reset defined in a less specific rule. ...
...teger> The value to reset the counter to on each occurrence of the element. Defaults to 0 if not specified. none No counter reset is to be performed. This can be used to override a counter-reset defined in a less specific rule. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ <custom-ident> <integer>? ]+ | none Examples Resetting named counters h1 { counter-reset: chapter section 1 page; /* Sets the chapter and page counters to 0, and the section counter to 1 */ } Specifications Specification Status Comment CSS Lists Module Level 3The definition of 'counter-reset' in that specification. Working Draft No change. CSS Level 2 (Revision 1)The definiti...
counter-set - CSS: Cascading Style Sheets
nt. Note: The counter's value can be incremented or decremented using the counter-increment CSS property. Syntax /* Set "my-counter" to 0 */ counter-set: my-counter; /* Set "my-counter" to -1 */ counter-set: my-counter -1; /* Set "counter1" to 1, and "counter2" to 4 */ counter-set: counter1 1 counter2 4; /* Cancel any counter that could have been set in less specific rules */ counter-set: none; /* Global values */ counter-set: inherit; counter-set: initial; counter-set: unset; The counter-set property is specified as either one of the following: A <custom-ident> naming the counter, followed optionally by an <integer>. You may specify as many counters to reset as you want, with each name or name-number pair separated by a space. The keyword value none. Values <custom-ident> ...
... <custom-ident> The name of the counter to set. <integer> The value to set the counter to on each occurrence of the element. Defaults to 0 if not specified. If there isn't currently a counter of the given name on the element, the element will create a new counter of the given name with a starting value of 0 (though it may then immediately set or increment that value to something different). ...
...specified. If there isn't currently a counter of the given name on the element, the element will create a new counter of the given name with a starting value of 0 (though it may then immediately set or increment that value to something different). none No counter set is to be performed. This can be used to override a counter-set defined in a less specific rule. ...
... with a starting value of 0 (though it may then immediately set or increment that value to something different). none No counter set is to be performed. This can be used to override a counter-set defined in a less specific rule. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ <custom-ident> <integer>? ]+ | none Examples Setting named counters h1 { counter-set: chapter section 1 page; /* Sets the chapter and page counters to 0, and the section counter to 1 */ } Specifications Specification Status Comment CSS Lists Module Level 3The definition of 'counter-set' in that specification. Working Draft Initial definition. ...
grid-template-columns - CSS: Cascading Style Sheets
The grid-template-columns CSS property defines the line names and track sizing functions of the grid columns. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...Any columns will be implicitly generated and their size will be determined by the grid-auto-columns property. <length> A non-negative length, giving the width of the column. <percentage> Is a non-negative <percentage> 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...
...subgrid The subgrid value indicates that the grid will adopt the spanned portion of its parent grid in that axis. Rather than being specified explicitly, the sizes of the grid rows/columns will be taken from the parent grid's definition. The subgrid value is from Level 2 of the Grid specification and currently only has implementation in Firefox 71 and onwards. ...
...[ <track-size> | <track-repeat> ] ]+ <line-names>?<auto-track-list> = [ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat> [ <line-names>? ...
image-orientation - CSS: Cascading Style Sheets
tation adjustments; instead, the transform property should be used with the rotate <transform-function>. Warning: This property is deprecated in the specification. Its functionality may be moved into properties on the <img> and/or <picture> elements, with the possible exception of from-image. The flip and <angle> values were made obsolete in Firefox 63. /* keyword values */ image-orientation: none; image-orientation: from-image; /* Use EXIF data from the image */ /* Global values */ image-orientation: inherit; image-orientation: initial; image-orientation: unset; /* Obsolete Values. Obsolete since Gecko 63 */ image-orientation: 90deg; /* Rotate 90deg */ image-orientation: 90deg flip; /* Rotate 90deg, and flip it horizontally */ image-orientation: flip; /* No rotation, only applies a hori...
... Use EXIF data from the image */ /* Global values */ image-orientation: inherit; image-orientation: initial; image-orientation: unset; /* Obsolete Values. Obsolete since Gecko 63 */ image-orientation: 90deg; /* Rotate 90deg */ image-orientation: 90deg flip; /* Rotate 90deg, and flip it horizontally */ image-orientation: flip; /* No rotation, only applies a horizontal flip */ Syntax Values none Default initial value. Will not apply any additional image rotation; the image is oriented as encoded or as other CSS property values dictate. from-image The EXIF information contained in the image will be used to rotate the image appropriately. <angle> Obsolete since Gecko 63 The <angle> of rotation to apply to the image. It is rounded to the nearest 90deg (0.25turn). flip Obsolete since...
...om-image | <angle> | [ <angle>? ...
...ge | <angle> | [ <angle>? ...
mask-border-source - CSS: Cascading Style Sheets
The mask-border-source CSS property sets the source image used to create an element's mask border. The mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border. ...
... is used to divide the source image into regions, which are then dynamically applied to the final mask border. Syntax /* Keyword value */ mask-border-source: none; /* <image> values */ mask-border-source: url(image.jpg); mask-border-source: linear-gradient(to top, red, yellow); /* Global values */ mask-border-source: inherit; mask-border-source: initial; mask-border-source: unset; Values none No mask border is used. <image> Image reference to use for the mask border. ...
... /* Keyword value */ mask-border-source: none; /* <image> values */ mask-border-source: url(image.jpg); mask-border-source: linear-gradient(to top, red, yellow); /* Global values */ mask-border-source: inherit; mask-border-source: initial; mask-border-source: unset; Values none No mask border is used. <image> Image reference to use for the mask border. ...
...initial; mask-border-source: unset; Values none No mask border is used. <image> Image reference to use for the mask border. ...
max-width - CSS: Cascading Style Sheets
Web › CSS › max-width
for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. max-width overrides width, but min-width overrides max-width. ...
... max-content The intrinsic preferred max-width. min-content The intrinsic minimum max-width. fit-content(<length-percentage>) Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)). ...
...the specified argument, i.e. min(max-content, max(min-content, argument)). Accessibility concerns Ensure that elements set with a max-width are not truncated and/or do not obscure other content when the page is zoomed to increase text size. ...
...d to increase text size. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.4 | W3C Understanding WCAG 2.0 Formal definition Initial valuenoneApplies toall elements but non-replaced inline elements, table rows, and row groupsInheritednoPercentagesrefer to the width of the containing blockComputed valuethe percentage as specified or the absolute length or noneAnimation typea length, percentage or calc(); Formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> Examples Setting max width in pixels In this example, the "child" will be either 150 pixels wide or the width of the "parent," whichever is smaller. HTML <div id="parent"> <div id="chil...
outline - CSS: Cascading Style Sheets
Web › CSS › outline
: inset thick; /* color | style | width */ outline: green solid 3px; /* Global values */ outline: inherit; outline: initial; outline: unset; The outline property may be specified using one, two, or three of the values listed below. The order of the values does not matter. Note: The outline will be invisible for many elements if its style is not defined. This is because the style defaults to none. A notable exception is input elements, which are given default styling by browsers. Values <'outline-color'> Sets the color of the outline. Defaults to currentcolor if absent. See outline-color. <'outline-style'> Sets the style of the outline. Defaults to none if absent. See outline-style. <'outline-width'> Sets the thickness of the outline. Defaults to medium if absent. See outline-wi...
...y similar. However, outlines differ from borders in the following ways: Outlines never take up space, as they are drawn outside of an element's content. According to the spec, outlines don't have to be rectangular, although they usually are. As with all shorthand properties, any omitted sub-values will be set to their initial value. Accessibility concerns Assigning outline a value of 0 or none will remove the browser's default focus style. If an element can be interacted with it must have a visible focus indicator. Provide obvious focus styling if the default focus style is removed. How to Design Useful and Usable Focus Indicators WCAG 2.1: Understanding Success Criterion 2.4.7: Focus Visible Formal definition Initial valueas each of the properties of the shorthand:outline-...
... it must have a visible focus indicator. Provide obvious focus styling if the default focus style is removed. How to Design Useful and Usable Focus Indicators WCAG 2.1: Understanding Success Criterion 2.4.7: Focus Visible Formal definition Initial valueas each of the properties of the shorthand:outline-color: invert, for browsers supporting it, currentColor for the otheroutline-style: noneoutline-width: mediumApplies toall elementsInheritednoComputed valueas each of the properties of the shorthand:outline-color: For the keyword invert, the computed value is invert. For the color value, if the value is translucent, the computed value will be the rgba() corresponding one. If it isn't, it will be the rgb() corresponding one. The transparent keyword maps to rgba(0,0,0,0).outline-width:...
...lementsInheritednoComputed valueas each of the properties of the shorthand:outline-color: For the keyword invert, the computed value is invert. For the color value, if the value is translucent, the computed value will be the rgba() corresponding one. If it isn't, it will be the rgb() corresponding one. ...
overflow-anchor - CSS: Cascading Style Sheets
sts scroll position to minimize content shifts. Scroll anchoring behavior is enabled by default in any browser that supports it. Therefore, changing the value of this property is typically only required if you are experiencing problems with scroll anchoring in a document or part of a document and need to turn the behavior off. ...
...y required if you are experiencing problems with scroll anchoring in a document or part of a document and need to turn the behavior off. Syntax /* Keyword values */ overflow-anchor: auto; overflow-anchor: none; /* Global values */ overflow-anchor: inherit; overflow-anchor: initial; overflow-anchor: unset; Values auto The element becomes a potential anchor when adjusting scroll position. none The element won't be selected as a potential anchor. ...
... Editor's Draft Initial definition. ...
...a potential anchor when adjusting scroll position. none The element won't be selected as a potential anchor. Formal definition Initial valueautoApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | none Examples Prevent scroll anchoring To prevent scroll anchoring in a document, use the overflow-anchor property. body { overflow-anchor: none; } Specifications Specification Status Comment CSS Scroll Anchoring Module Level 1The definition of 'overflow-anchor' in that specification. Editor's Draft Initial definition. ...
overscroll-behavior - CSS: Cascading Style Sheets
The overscroll-behavior CSS property sets what a browser does when reaching the boundary of a scrolling area. It's a shorthand for overscroll-behavior-x and overscroll-behavior-y. /* Keyword values */ overscroll-behavior: auto; /* default */ overscroll-behavior: contain; overscroll-behavior: none; /* Two values */ overscroll-behavior: auto contain; /* Global values */ overscroll-behavior: inherit; overscroll-behavior: initial; overscroll-behavior: unset; By default, mobile browsers tend to provide a "bounce" effect or even a page refresh when the top or bottom of a page (or other scroll area) is reached. You may also have noticed that when you have a dialog box with scrolling content on top of a page of scrolling content, once the dialog box's scroll boundary is reached, the underlying p...
...tively. If only one value is specified, both x and y are assumed to have the same value. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. ...
...to neighbouring scrolling areas, e.g. underlying elements will not scroll. none No scroll chaining occurs to neighbouring scrolling areas, and default scroll overflow behavior is prevented. Formal definition Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ contain | none | auto ]{1,2} Examples Preventing an underlying element from scrolling In our overscroll-behavior example (see the source code also), we present a full-page list of fake contacts, and a dialog box containing a chat window. Both of these areas scroll; normally if you scrolled the chat window until you hit a scroll boundary, the underlying contacts window would start to scroll too, which is n...
...scroll-behavior would also work) on the chat window, like this: .messages { height: 220px; overflow: auto; overscroll-behavior-y: contain; } We also wanted to get rid of the standard overscroll effects when the contacts are scrolled to the top or bottom (e.g. Chrome on Android refreshes the page when you scroll past the top boundary). This can be prevented by setting overscroll-behavior: none on the <body> element: body { margin: 0; overscroll-behavior: none; } Specifications Specification Status Comment CSS Overscroll Behavior Module Level 1The definition of 'overscroll-behavior' in that specification. Working Draft ...
rotate - CSS: Cascading Style Sheets
Web › CSS › rotate
The rotate CSS property allows you to specify rotation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform property. Syntax /* Keyword values */ rotate: none; /* Angle value */ rotate: 90deg; rotate: 0.25turn; rotate: 1.57rad; /* x, y, or z axis name plus angle */ rotate: x 90deg; rotate: y 0.25turn; rotate: z 1.57rad; /* Vector plus angle value */ rotate: 1 1 1 90deg; Values angle value An <angle> specifying the angle to rotate the affected element through, around the Z axis. Equivalent to a rotate() (2D rotation) function. x, y, or z axis name plus angle value The name of the axis you want to rotate the affected elemen...
... an <angle> specifying the angle to rotate the element through. Equivalent to a rotateX()/rotateY()/rotateZ() (3D rotation) function. vector plus angle value Three <number>s representing an origin-centered vector that defines a line around which you want to rotate the element, plus an <angle> specifying the angle to rotate the element through. Equivalent to a rotate3d() (3D rotation) function. ...
...X()/rotateY()/rotateZ() (3D rotation) function. vector plus angle value Three <number>s representing an origin-centered vector that defines a line around which you want to rotate the element, plus an <angle> specifying the angle to rotate the element through. Equivalent to a rotate3d() (3D rotation) function. none Specifies that no rotation should be applied. ...
...a line around which you want to rotate the element, plus an <angle> specifying the angle to rotate the element through. Equivalent to a rotate3d() (3D rotation) function. none Specifies that no rotation should be applied. ...
scale - CSS: Cascading Style Sheets
Web › CSS › scale
The scale CSS property allows you to specify scale transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value. Syntax /* Keyword values */ scale: none; /* Single values */ /* values of more than 1 make the element grow */ scale: 2; /* values of less than 1 make the element shrink */ scale: 0.5; /* Two values */ scale: 2 0.5; /* Three values */ scale: 2 0.5 2; Values Single number value A <number> specifying a scale factor to make the affected element scale by the same factor along both the X and Y axes. Equivalent to a scale() (2D scaling) function with a single value specified. Two length/percentage values Two <number>s ...
...th a single value specified. Two length/percentage values Two <number>s that specify the X and Y axis scaling values (respectively) of a 2D scale. Equivalent to a scale() (2D scaling) function with two values specified. Three length/percentage values Three <number>s that specify the X, Y, and Z axis scaling values (respectively) of a 3D scale. Equivalent to a scale3d() (3D scaling) function. ...
...y the X and Y axis scaling values (respectively) of a 2D scale. Equivalent to a scale() (2D scaling) function with two values specified. Three length/percentage values Three <number>s that specify the X, Y, and Z axis scaling values (respectively) of a 3D scale. Equivalent to a scale3d() (3D scaling) function. none Specifies that no scaling should be applied. ...
...e length/percentage values Three <number>s that specify the X, Y, and Z axis scaling values (respectively) of a 3D scale. Equivalent to a scale3d() (3D scaling) function. none Specifies that no scaling should be applied. ...
scroll-snap-coordinate - CSS: Cascading Style Sheets
The scroll-snap-coordinate CSS property defines the x and y coordinate positions within an element that will align with its nearest ancestor scroll container's scroll-snap-destination for each respective axis. ...
... /* Single coordinate */ scroll-snap-coordinate: 100px 100px, 100px bottom; /* Multiple coordinates */ /* Global values */ scroll-snap-coordinate: inherit; scroll-snap-coordinate: initial; scroll-snap-coordinate: unset; If the element has been transformed, the snap coordinates are likewise transformed, thus aligning the snap points with the element as it is displayed. ...
... the snap points with the element as it is displayed. Syntax Values none Specifies that the element does not contribute to a snap point. <position> Specifies the offset of the snap coordinates from the start edge of the element's border box. For each pairing, the first value gives the x coordinate of the snap coordinate, the second value its y coordinate. ...
...he start edge of the element's border box. For each pairing, the first value gives the x coordinate of the snap coordinate, the second value its y coordinate. ...
scroll-snap-points-x - CSS: Cascading Style Sheets
Elements within the scroll container may still define snap points on behalf of the scroll container. ...
...Elements within the scroll container may still define snap points on behalf of the scroll container. ...
...ll container does not define any snap points. Elements within the scroll container may still define snap points on behalf of the scroll container. repeat(<length-percentage>) Defines an interval at which snap points are defined, starting from the container's relevant start edge. Only positive lengths are allowed. Percentages refer to the width of the container. ...
...rom the container's relevant start edge. Only positive lengths are allowed. Percentages refer to the width of the container. ...
scroll-snap-points-y - CSS: Cascading Style Sheets
Elements within the scroll container may still define snap points on behalf of the scroll container. ...
...Elements within the scroll container may still define snap points on behalf of the scroll container. ...
...ll container does not define any snap points. Elements within the scroll container may still define snap points on behalf of the scroll container. repeat(<length-percentage>) Defines an interval at which snap points are defined, starting from the container's relevant start edge. Only positive lengths are allowed. Percentages refer to the width of the container. ...
...rom the container's relevant start edge. Only positive lengths are allowed. Percentages refer to the width of the container. ...
text-emphasis-style - CSS: Cascading Style Sheets
The text-emphasis-style CSS property sets the appearance of emphasis marks. It can also be set, and reset, using the text-emphasis shorthand. /* Initial value */ text-emphasis-style: none; /* No emphasis marks */ /* <string> values */ text-emphasis-style: 'x'; text-emphasis-style: '?'; text-emphasis-style: '\25B2'; text-emphasis-style: '*'; text-emphasis-style: 'foo'; /* Should NOT be used. It may be computed to or rendered as 'f' only */ /* Keyword values */ text-emphasis-style: filled; text-emphasis-style: open; text-emphasis-style: dot; text-emphasis-style: circle; text-emphasis-style: double-circle; text-emphasis-style: triangle; text-emphasis-style: filled sesame; text-emphasis-style: open sesame; /* Global values */ text-emphasis-style: inherit; text-emphasis-style: initial; text-em...
... filled The shape is filled with solid color. If neither filled nor open is present, this is the default. open The shape is hollow. dot Display small circles as marks. The filled dot is 'o' (U+2022), and the open dot is 'o' (U+25E6). circle Display large circles as marks. The filled circle is '?' (U+25CF), and the open circle is '?' (U+25CB). double-circle Display dou...
...triangle is '?' (U+25B2), and the open triangle is '?' (U+25B3). sesame Display sesames as marks. The filled sesame is '?' (U+FE45), and the open sesame is '?' (U+FE46). <string> Display the given string as marks. Authors should not specify more than one character in <string>. The UA may truncate or ignore strings consisting of more than one grapheme cluster. ...
...e filled sesame is '?' (U+FE45), and the open sesame is '?' (U+FE46). <string> Display the given string as marks. Authors should not specify more than one character in <string>. The UA may truncate or ignore strings consisting of more than one grapheme cluster. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | [ [ filled | open ] | [ dot | circle | double-circle | triangle | sesame ] ] | <string> Examples h2 { text-emphasis-style: sesame; } Specifications Specification Status Comment CSS Text Decoration Module Level 3The definition of 'text-emphasis' in that specification. Candidate Recommendation Initial definition ...
text-justify - CSS: Cascading Style Sheets
This has the same effect as not setting text-align at all, although it is useful if you need to turn justification on and off for some reason. ...
...This has the same effect as not setting text-align at all, although it is useful if you need to turn justification on and off for some reason. ...
...fectively varying letter-spacing), which is most appropriate for languages like Japanese. distribute Exhibits the same behaviour as inter-character; this value is kept for backwards compatibility. Formal definition Initial valueautoApplies toinline-level and table-cell elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | inter-character | inter-word | none Examples <p class="none"><code>text-justify: none</code> --<br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ornare maximus vehicula. Duis nisi velit, dictum id mauris vitae, lobortis pretium quam. Quisque sed nisi pulvinar, consequat justo id, feugiat leo. Cras eu elementum dui.</p> <p class="auto"><code>text-justify: auto</code> --<br>Lorem ipsum dolor sit amet, consectetur a...
... inter-character</code> --<br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ornare maximus vehicula. Duis nisi velit, dictum id mauris vitae, lobortis pretium quam. Quisque sed nisi pulvinar, consequat justo id, feugiat leo. Cras eu elementum dui.</p> p { font-size: 1.5em; border: 1px solid black; padding: 10px; width: 95%; margin: 10px auto; text-align: justify; } .none { text-justify: none; } .auto { text-justify: auto; } .dist { text-justify: distribute; } .word { text-justify: inter-word; } .char { text-justify: inter-character; } Specifications Specification Status Comment CSS Text Module Level 3The definition of 'text-justify' in that specification. Working Draft ...
Cross-browser audio basics - Developer guides
lume), add the muted attribute. <audio muted> ... </audio> Note: This value is often ignored on mobile platforms. preload The preload attribute allows you to specify a preference for how the browser preloads the audio, in other words, which part of the file it downloads when the <audio> element is initialized, and before the play button is pressed. preload can take 3 different values: none: Don't download anything before the play button is pressed. metadata: Download the audio metadata; this is usually the best option, as it allows you to access and display information such as audio length, and allow the browser to work out which audio file it should use. auto: Download the whole audio file as soon as possible. This is generally not a good option unless you can guarantee your use...
...source src="https://udn.realityripple.com/samples/6c/d385042de2.mp3" type="audio/mpeg"> <source src="https://udn.realityripple.com/samples/28/191a7bd2a5.ogg" type="audio/ogg"> <!-- place fallback here as <audio> supporting browsers will ignore it --> <a href="audiofile.mp3">audiofile.mp3</a> </audio> <div id="controls"> <span id="loading">loading</span> <button id="play" style="display:none">play</button> <button id="pause" style="display:none" >pause</button> </div> <div id="progress"> <div id="bar"></div> </div> Styled like so: #controls { width: 80px; float: left; } #progress { margin-left: 80px; border: 1px solid black; } #bar { height: 20px; background-color: green; width: 0; } Now let's wire this thing up with JavaScript: window.onload = function...
...idth: 0; } Now let's wire this thing up with JavaScript: window.onload = function(){ var myAudio = document.getElementById('my-audio'); var play = document.getElementById('play'); var pause = document.getElementById('pause'); var loading = document.getElementById('loading'); var bar = document.getElementById('bar'); function displayControls() { loading.style.display = "none"; play.style.display = "block"; } // check that the media is ready before displaying the controls if (myAudio.paused) { displayControls(); } else { // not ready yet - wait for canplay event myAudio.addEventListener('canplay', function() { displayControls(); }); } play.addEventListener('click', function() { myAudio.play(); play...
...e.display = "block"; } // check that the media is ready before displaying the controls if (myAudio.paused) { displayControls(); } else { // not ready yet - wait for canplay event myAudio.addEventListener('canplay', function() { displayControls(); }); } 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 percentage bar.style.width = parseInt(((myAudio.currentTime / myAudio.duration) * 100), 10) + "%"; ...
Video player styling basics - Developer guides
ure> element (this was worked out with experimentation based on the required button height). Its position is also specifically set to relative, which is required for its responsiveness (more on that later). ...
... requires some specific settings; it is set to be much wider than the other child elements and its cursor value is set to be pointer: .controls .progress { cursor:pointer; width:75.390625%; } Buttons The first major styling task to tackle is to make the video control's buttons actually look like and act like real buttons. Each button has some basic styling: .controls button { border:none; cursor:pointer; background:transparent; background-size:contain; background-repeat:no-repeat; } By default, all <button> elements have a border, so this is removed. Since background images will be used to display appropriate icons, the background colour of the button is set to be transparent, non-repeated, and the element should fully contain the image. Simple :hover and :focus sta...
...] { background-image: url('data:image/png;base64,iVBORw0KGgoAAA ... '); } When the data-state of the button is changed, the appropriate image will also be changed. All the other buttons are treated in a similar way. Progress bar The <progress> element has the following basic style set up: .controls progress { display:block; width:100%; height:81%; margin-top:0.125rem; border:none; color:#0095dd; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } Like the <button> elements, <progress> also has a default border, which is removed here. It is also given a slight rounded corner for aesthetic reasons. The color property is also defined here as Internet Explorer uses this defined colour for styling the progress bar's background colour as it incr...
...to. The definitions for the elements within the .controls element now also need to changed: @media screen and (max-width:42.5em) { .controls { height:auto; } .controls > * { display:block; width:16.6667%; margin-left:0; height:2.5rem; margin-top:2.5rem; } .controls .progress { position:absolute; top:0; width:100%; float:none; margin-top:0; } .controls .progress progress { width:98%; margin:0 auto; } .controls button { background-position:center center; } } The .progress container is now moved to the top of the control set via position:absolute, so it and all the buttons need to be wider. In addition, the buttons need to be pushed below the progress container so that they are ...
<input type="number"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › number
or the height in meters accepts decimals to two places. The HTML looks like this: <form> <div class="metersInputGroup"> <label for="meters">Enter your height -- meters:</label> <input id="meters" type="number" name="meters" step="0.01" min="0" placeholder="e.g. ...
...="Submit form"> </div> </form> You'll see that we are using many of the attributes we've already looked at in the article earlier on. Since we want to accept a meter value in centimeters, we've set the step value to 0.01, so that values like 1.78 are not seen as invalid. We've also provided a placeholder for that input. We've hidden the feet and inches inputs initially using style="display: none;", so that meters is the default entry type. Now, onto the CSS. This looks very similar to the validation styling we saw before; nothing remarkable here. div { margin-bottom: 10px; position: relative; } input[type="number"] { width: 100px; } input + span { padding-right: 30px; } input:invalid+span:after { position: absolute; content: '?'; padding-left: 5px; } input:valid+span:...
...et feetInput = document.querySelector('#feet'); let inchesInput = document.querySelector('#inches'); let switchBtn = document.querySelector('input[type="button"]'); switchBtn.addEventListener('click', function() { if(switchBtn.getAttribute('class') === 'meters') { switchBtn.setAttribute('class', 'feet'); switchBtn.value = 'Enter height in meters'; metersInputGroup.style.display = 'none'; feetInputGroup.style.display = 'block'; feetInput.setAttribute('required', ''); inchesInput.setAttribute('required', ''); metersInput.removeAttribute('required'); metersInput.value = ''; } else { switchBtn.setAttribute('class', 'meters'); switchBtn.value = 'Enter height in feet and inches'; metersInputGroup.style.display = 'block'; feetInputGroup.style.d...
...This is pretty simple, mostly involving changing over the button's class and <label>, an...
CSP: style-src - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
...f="https://not-example.com/styles/main.css" rel="stylesheet" type="text/css" /> <style> #inline-style { background: red; } </style> <style> @import url("https://not-example.com/styles/print.css") print; </style> as well as styles loaded using the Link header: Link: <https://not-example.com/styles/stylesheet.css>;rel=stylesheet Inline style attributes are also blocked: <div style="display:none">Foo</div> As well as styles that are applied in JavaScript by setting the style attribute directly, or by setting cssText: document.querySelector('div').setAttribute('style', 'display:none;'); document.querySelector('div').style.cssText = 'display:none;'; However, styles properties that are set directly on the element's style property will not be blocked, allowing users to safely manipulate s...
... Unsafe inline styles Note: Disallowing inline styles and inline scripts is one of the biggest security wins CSP provides. ...
... that will allow them. To allow inline styles, 'unsafe-inline', a nonce-source or a hash-source that matches the inline block can be specified. Content-Security-Policy: style-src 'unsafe-inline'; The above Content Security Policy will allow inline styles like the <style> element, and the style attribute on any element: <style> #inline-style { background: red; } </style> <div style="display:none">Foo</div> You can use a nonce-source to only allow specific inline style blocks: Content-Security-Policy: style-src 'nonce-2726c7f26c' You will have to set the same nonce on the <style> element: <style nonce="2726c7f26c"> #inline-style { background: red; } </style> Alternatively, you can create hashes from your inline styles. CSP supports sha256, sha384 and sha512. Content-Security-Policy...
Feature-Policy - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Directives accelerometer Controls whether the current document is allowed to gather information about the acceleration of the device through the Accelerometer interface. ambient-light-sensor Controls whether the current document is allowed to gather information about the amount of light in the environment around the dev...
...wn. encrypted-media Controls whether the current document is allowed to use the Encrypted Media Extensions API (EME). When this policy is disabled, the Promise returned by Navigator.requestMediaKeySystemAccess() will reject with a DOMException. execution-while-not-rendered Controls whether tasks should execute in frames while they're not being rendered (e.g. if an iframe is hidden or display: none). execution-while-out-of-viewport Controls whether tasks should execute in frames while they're outside of the visible viewport. fullscreen Controls whether the current document is allowed to use Element.requestFullScreen(). When this policy is disabled, the returned Promise rejects with a TypeError. geolocation Controls whether the current document is allowed to use the Geolocation Inte...
...tiations of user's choice, e.g. mobile apps. xr-spatial-tracking Controls whether or not the current document is allowed to use the WebXR Device API to interact with a WebXR session. Example SecureCorp Inc. wants to disable Microphone and Geolocation APIs in its application. It can do so by delivering the following HTTP response header to define a feature policy: Feature-Policy: microphone 'none'; geolocation 'none' By specifying the 'none' keyword for the origin list, the specified features will be disabled for all browsing contexts (this includes all iframes), regardless of their origin. Specifications Specification Permissions Policy ...
SameSite cookies - HTTP
-party or same-site context. Values The SameSite attribute accepts three values: Lax Cookies are allowed to be sent with top-level navigations and will be sent along with GET request initiated by third party website. This is the default value in modern browsers. Strict Cookies will only be sent in a first-party context and not be sent along with requests initiated by third party websites. None Cookies will be sent in all contexts, i.e sending cross-origin is allowed. None used to be the default value, but recent browser versions made Lax the default value to have reasonably robust defense against some classes of cross-site request forgery (CSRF) attacks. None requires the Secure attribute in latest browser versions. See below for more information. Fixing common warnings SameSite=N...
... classes of cross-site request forgery (CSRF) attacks. None requires the Secure attribute in latest browser versions. See below for more information. Fixing common warnings SameSite=None requires Secure The following warning might appear in your console: Some cookies are misusing the "sameSite" attribute, so it won't work as expected. Cookie "myCookie" rejected because it has the "sameSite=none" attribute but is missing the "secure" attribute. The warning appears because any cookie that requests SameSite=None but is not marked Secure will be rejected. Set-Cookie: flavor=choco; SameSite=None To fix this, you will have to add the Secure attribute to your SameSite=None cookies. Set-Cookie: flavor=choco; SameSite=None; Secure A Secure cookie is only sent to the server with an encrypte...
...ience across browsers as not all of them default to Lax yet. ...
...RewriteBase "/" RewriteCond "%{HTTP_HOST}" "^example\.org$" [NC] RewriteRule "^(.*)" "https://www.example.org/index.html" [R=301,L,QSA] RewriteRule "^(.*)\.ht$" "index.php?nav=$1 [NC,L,QSA,CO=RewriteRule;01;https://www.example.org;30/;SameSite=None;Secure] RewriteRule "^(.*)\.htm$" "index.php?nav=$1 [NC,L,QSA,CO=RewriteRule;02;https://www.example.org;30/;SameSite=None;Secure] RewriteRule "^(.*)\.html$" "index.php?nav=$1 [NC,L,QSA,CO=RewriteRule;03;https://www.example.org;30/;SameSite=None;Secure] [...] RewriteRule "^admin/(.*)\.html$" "admin/index.php?nav=$1 [NC,L,QSA,CO=RewriteRule;09;https://www.example.org:30/;SameSite=Strict;Secure] Specifications Specification Title RFC 6265, section 4.1: Set-Cookie HTTP State Manageme...
HTTP Index - HTTP
Web › HTTP › Index
send back the requested resource, with a 200 status, only if it has been last modified after the given date. If the request has not been modified since, the response will be a 304 without any body; the Last-Modified response header of a previous request will contain the date of last modification. Unlike If-Unmodified-Since, If-Modified-Since can only be used with a GET or HEAD. 158 If-None-Match Conditional Requests, HTTP, HTTP Header, Reference, Request header The If-None-Match HTTP request header makes the request conditional. For GET and HEAD methods, the server will send back the requested resource, with a 200 status, only if it doesn't have an ETag matching the given ones. For other methods, the request will be processed only if the eventually existing resource's ETa...
...server has responded with a 407 Proxy Authentication Required status and the Proxy-Authenticate header. 171 Public-Key-Pins HPKP, HTTP, Reference, Security, header The HTTP Public-Key-Pins response header associates a specific cryptographic public key with a certain web server to decrease the risk of MITM attacks with forged certificates. If one or several keys are pinned and none of them are used by the server, the browser will not accept the response as legitimate, and will not display it. 172 Public-Key-Pins-Report-Only HPKP, HTTP, Security, header The HTTP Public-Key-Pins-Report-Only response header sends reports of pinning violation to the report-uri specified in the header but, unlike Public-Key-Pins still allows browsers to connect to the server...
...ays GET. 232 304 Not Modified HTTP, Redirection, Reference, Status code The HTTP 304 Not Modified client redirection response code indicates that there is no need to retransmit the requested resources. It is an implicit redirection to a cached resource. This happens when the request method is safe, like a GET or a HEAD request, or when the request is conditional and uses a If-None-Match or a If-Modified-Since header. 233 307 Temporary Redirect HTTP, HTTP Status Code, Reference, redirects The method and the body of the original request are reused to perform the redirected request. In the cases where you want the method used to be changed to GET, use 303 See Other instead. This is useful when you want to give an answer to a PUT method that is not the upl...
...efined Content-Length header. 247 412 Precondition Failed Error, HTTP, Reference, Status code The HyperText Transfer Protocol (HTTP) 412 Precondition Failed client error response code indicates that access to the target resource has been denied. This happens with conditional requests on methods other than GET or HEAD when the condition defined by the If-Unmodified-Since or If-None-Match headers is not fulfilled. In that case, the request, usually an upload or a modification of a resource, cannot be made and this error response is sent back. 248 413 Payload Too Large Client error, HTTP, HTTP Status Code, Reference, Status code The HTTP 413 Payload Too Large response status code indicates that the request entity is larger than limits defined by server; t...
Object.getOwnPropertyNames() - JavaScript
; console.log( Object.getOwnPropertyNames( new ChildClass() // ["prop", "method"] ) ); Get non-enumerable properties only This uses the Array.prototype.filter() function to remove the enumerable keys (obtained with Object.keys()) from a list of all keys (obtained with Object.getOwnPropertyNames()) thus giving only the non-enumerable keys as output. ...
...] ) ); Get non-enumerable properties only This uses the Array.prototype.filter() function to remove the enumerable keys (obtained with Object.keys()) from a list of all keys (obtained with Object.getOwnPropertyNames()) thus giving only the non-enumerable keys as output. ...
...rable properties only This uses the Array.prototype.filter() function to remove the enumerable keys (obtained with Object.keys()) from a list of all keys (obtained with Object.getOwnPropertyNames()) thus giving only the non-enumerable keys as output. ...
... ...
Mobile first - Progressive web apps (PWAs)
d="bottom" href="#top">Back to top</a> The first one is to jump down from the top of the article to the navigation menu, and the second one is to jump back up to the top of the article again. ...
... of the absolutely positioned elements (you don't want them to be positioned relative to the <body> element.) Adding a mobile first layout The above layout is fine for narrower layouts, but it doesn't work very well when you get wider than about 480px. ...
...work very well when you get wider than about 480px. ...
...media queries: @media (min-width: 480px) { #bottom, #top { display: none; } article, nav { display: block; } nav ul { text-align: center; } nav li { display: inline; } nav li a { border-right: 1px solid #AD66D5; border-bottom: none; display: inline-block; padding: 0 5px; font-size: 1.6em; } nav li:last-child a { border-right: none; } } @media (min-width: 600px) { html { background: #eee; height: 100%; } body { width: 600px; height: inherit; margin: 0 auto; background: url(../img/firefox-os.png) bottom left no-repeat, linear-gradient(to bottom, #fff, #eee); } .main > p { background: rgba(255,255,255,0.3); } nav li a { padding: 0 10px; font-size: 2em; } } The fir...
dx - SVG: Scalable Vector Graphics
Web › SVG › Attribute › dx
le value, dx defines a shift along the x-axis for all alternate glyph. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphs, the remaining glyphs use a value of 0. If there are more values than glyphs, extra values are ignored. Value List of <length> Default value none Animatable Yes feDropShadow For <feDropShadow>, dx defines the x offset of the droped shadow. The unit used to resolve the value of the attribute is set by the primitiveUnits attribute of the <filter> element. Value <number> Default value 2 Animatable Yes feOffset For <feOffset>, dx defines the x offset of the filter input graphic. ...
...ns a single value, dx defines a shift along the x-axis for all glyphs. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphs, the remaining glyphs use a value of 0. If there are more values than glyphs, extra values are ignored. ...
...a single value, dx defines a shift along the x-axis for all glyphs. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. Value List of <length> Default value none Animatable Yes tspan For <tspan>, if it contains a single value, dx defines a shift along the x-axis for all alternate glyph. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphs, the remaining glyphs use a value of 0. If there are more values than glyphs, extra values...
...le value, dx defines a shift along the x-axis for all alternate glyph. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphs, the remaining glyphs use a value of 0. If there are more values than glyphs, extra values are ignored. Value List of <length> Default value none Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'dx' in that specification. Working Draft Initial definition for <feDropShadow> Filter Effects Module Level 1The definition of 'dx' in that specification. Working Draft Definition for <feOffset> Scalable Vector Grap...
dy - SVG: Scalable Vector Graphics
Web › SVG › Attribute › dy
value, dy defines a shift along the y-axis for all alternate glyph. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. Value List of <length> Default value none Animatable Yes feDropShadow For <feDropShadow>, dy defines the y offset of the dropped shadow. The unit used to resolve the value of the attribute is set by the primitiveUnits attribute of the <filter> element. Value <number> Default value 2 Animatable Yes feOffset For <feOffset>, dy defines the y offset of the filter input graphic.
...a single value, dy defines a shift along the y-axis for all glyphs. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. ...
...a single value, dy defines a shift along the y-axis for all glyphs. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. Value List of <length> Default value none Animatable Yes tspan For <tspan>, if it contains a single value, dy defines a shift along the y-axis for all alternate glyph. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra val...
...value, dy defines a shift along the y-axis for all alternate glyph. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. Value List of <length> Default value none Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'dy' in that specification. Working Draft Initial definition for <feDropShadow> Filter Effects Module Level 1The definition of 'dy' in that specification. Working Draft Definition for <feOffset> Scalable Vector Grap...
edgeMode - SVG: Scalable Vector Graphics
ed at or near the edge of the input image. Two elements are using this attribute: <feConvolveMatrix> and <feGaussianBlur> feConvolveMatrix For <feConvolveMatrix>, edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image. ...
... duplicate | wrap | none Default value duplicate Animatable Yes duplicate This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image. wrap This value indicates that the input image is extended by taking the color values from the opposite edge of the image. none This value indicates that the input image is extended with pixel values of zero for R, G, B and A. feGaussianBlur For <feGaussianBlur>, edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image. ...
... edge of the image. none This value indicates that the input image is extended with pixel values of zero for R, G, B and A. feGaussianBlur For <feGaussianBlur>, edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image. Value duplicate | wrap | none Default value none Animatable Yes duplicate This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image. wrap This value indicates that the input image is extended by taking the color values from the opposite edge of the image. ...
... Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'edgeMode for <feGaussianBlur>' in that specification. ...
marker-end - SVG: Scalable Vector Graphics
For <path> elements, for each closed subpath, the last vertex is the same as the first vertex. ...
... <marker-ref> This value is a reference to a <marker> element, which will be drawn at the final vertex. If ...
... <marker-ref> This value is a reference to a <marker> element, which will be drawn at the final vertex. If the reference is not valid, then no marker will be drawn. Specifications Specification Status Comment Sc...
... refX="1" refY="5" markerUnits="strokeWidth" markerWidth="10" markerHeight="10" orient="auto"> <path d="M 0 0 L 10 5 L 0 10 z" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-end="url(#triangle)"/> </svg> Usage notes Value none | <marker-ref> Default value none Animatable Yes none Indicates that no marker symbol shall be drawn at the final vertex. <marker-ref> This value is a reference to a <marker> element, which will be drawn at the final vertex. If the reference is not valid, then no marker will be drawn. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition o...
marker-start - SVG: Scalable Vector Graphics
For <path> elements, for each closed subpath, the last vertex is the same as the first vertex. ...
... <marker-ref> This value is a reference to a <marker> element, which will be drawn at the first vertex. I...
... <marker-ref> This value is a reference to a <marker> element, which will be drawn at the first vertex. If the reference is not valid, then no marker will be drawn. Specifications Specification Status Comment Sc...
...efX="1" refY="5" markerUnits="strokeWidth" markerWidth="10" markerHeight="10" orient="auto"> <path d="M 0 0 L 10 5 L 0 10 z" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-start="url(#triangle)"/> </svg> Usage notes Value none | <marker-ref> Default value none Animatable Yes none Indicates that no marker symbol shall be drawn at the first vertex. <marker-ref> This value is a reference to a <marker> element, which will be drawn at the first vertex. If the reference is not valid, then no marker will be drawn. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition o...
points - SVG: Scalable Vector Graphics
Web › SVG › Attribute › points
f number representing a X and a Y coordinate in the user coordinate system. If the attribute contains an odd number of coordinates, the last one will be ignored. Two elements are using this attribute: <polyline>, and <polygon> html,body,svg { height:100% } <svg viewBox="-10 -10 220 120" xmlns="http://www.w3.org/2000/svg"> <!-- polyline is an open shape --> <polyline stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90"/> <!-- polygon is a closed shape --> <polygon stroke="black" fill="none" transform="translate(100,0)" points="50,0 21,90 98,35 2,35 79,90"/> <!-- It is usualy considered best practices to separate a X and Y coordinate with a comma and a group of coordinates by a space. It makes things more readable for human beings. --> </svg> polyli...
... things more readable for human beings. --> </svg> polyline For <polyline>, points defines a list of points, each representing a vertex of the line to be drawn. Each point is define by a X and Y coordinate in the user coordinate system. Note: A polyline is an open shape, meaning the last point is not connected to the first point. Value [ <number>+ ]# Default value none Animatable Yes Example html,body,svg { height:100% } <svg viewBox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg"> <!-- polyline is an open shape --> <polyline stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90"/> </svg> polygon For <polygon>, points defines a list of points, each representing a vertex of the shape to be drawn. Each point is defi...
...ll="none" points="50,0 21,90 98,35 2,35 79,90"/> </svg> polygon For <polygon>, points defines a list of points, each representing a vertex of the shape to be drawn. Each point is define by a X and Y coordinate in the user coordinate system. Note: A polygon is a closed shape, meaning the last point is connected to the first point. ...
...n the user coordinate system. Note: A polygon is a closed shape, meaning the last point is connected to the first point. Value [ <number>+ ]# Default value none Animatable Yes Example html,body,svg { height:100% } <svg viewBox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg"> <!-- polygon is an closed shape --> <polygon stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90" /> </svg> Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'points' in that specification. Candidate Recommendation Definition for <polygon> Scalable Vector Graphics (SVG) 2The definition of 'points' in that specification. Candidate Recommendation Definition f...
type - SVG: Scalable Vector Graphics
Web › SVG › Attribute › type
r the <feFuncR>, <feFuncG>, <feFuncB>, and <feFuncA> elements, it Indicates the type of component transfer function. For the <feTurbulence> element, it indicates whether the filter primitive should perform a noise or turbulence function. For the <style> and <script> elements, it defines the content type of the element. ...
... noise or turbulence function. For the <style> and <script> elements, it defines the content type of the element. ...
...wX | skewY Animatable No Normative document SVG 1.1 (2nd Edition) For the <feColorMatrix> element Categories None Value matrix | saturate | hueRotate | luminanceToAlpha Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <feFuncR>, <feFuncG>, <feFuncB>, and <feFuncA> elements Categories None Value identity | table | discrete | linear | gamma Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <feTurbulence> element Categories None Value fractalNoise | turbulence Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <style> and <script> elements Categories...
... Value identity | table | discrete | linear | gamma Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <feTurbulence> element Categories None Value fractalNoise | turbulence Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <style> and <script> elements Categories None Value <content-type> Animatable No Normative document SVG 1.1 (2nd Edition) : script SVG 1.1 (2nd Edition) : style Example Elements The following elements can use the values attribute <animateTransform> <feColorMatrix> <feFuncA> <feFuncB> <feFuncG> <feFuncR> <feTurbulence> <script> <style> ...
x - SVG: Scalable Vector Graphics
Web › SVG › Attribute › x
http://www.w3.org/2000/svg"> <rect x="20" y="20" width="60" height="60" /> <rect x="120" y="20" width="60" height="60" /> <rect x="220" y="20" width="60" height="60" /> </svg> altGlyph Warning: As of SVG2 <altGlyph> is deprecated and shouldn't be used. For <altGlyph>, x defines the x-axis coordinate of the alternate glyph. Value List of <length> Default value none Animatable Yes feBlend For <feBlend>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0% Animatable Yes feColorMatrix For <feColorMatrix>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> ...
... For <tref>, if it contain a single value, x defines the x coordinate on where the content text position must be placed. The content text position is usualy a point on the baseline of the first line of text. The exact content text position is influenced by some...
...rties like text-anchor, or direction. If there are multiple values, x defines the x coordinate of each individual glyph from the text. If there are less values than glyphes, the remaining glyphes are placed in the continuity of the last positioned glyph. If there are more values than glyphes, extra values are ignored. ...
... Value <length> | <percentage> Default value 0 Animatable Yes Note: Starting with SVG2, x is a Geometry Property meaning this attribute can also be used as a CSS property for used elements. Sp...
<marker> - SVG: Scalable Vector Graphics
Web › SVG › Element › marker
Value type: <length> ; Def...
... Value type: <length> ; Default value: 3; Animatable: yes markerUnits This attribute defines the coordinate system for the attributes markerWidth, markerHeight and the contents of the <marker>. Value type: ...
...lue type: <length> ; Default value: 3; Animatable: yes orient This attribute defines the orientation of the marker relative to the shape it is attached to. Value type: auto|auto-start-reverse|<angle> ; Default value: 0; 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: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Default value: xMidYMid meet; Animatable: yes refX This attribute defines the x coordinate for the reference point of the marker. Value type: left|center|right|<coordinate> ; Default value: 0; Animatable: yes refY This attribute defines the y coordinate for the reference point of the ma...
... the marker. Value type: left|center|right|<coordinate> ; Default value: 0; Animatable: yes refY This attribute defines the y coordinate for the reference point of the marker. Value type: top|center|bottom|<coordinate> ; Default value: 0; Animatable: yes viewBox This attribute defines the bound of the SVG viewport for the current SVG fragment. ...
Style System Overview - Archive of obsolete content
in the style context tree. This happens when properties are inherited or when percentage units are used in a way that is handled by the style code (rather than reflow). If the data are exactly the same as those of the parent, we copy the struct to the child style context and set a bit saying that it doesn't own the struct. (The context tree can be deep.) Each rule node has a per-struct set of "none bits" that say that the rule node's set of rules (the rules on the path to the root) specify nothing non-inherited for the struct. 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; percentages and ems when computed), we can cache it in the rule tree. When we compute a data struct, we cache it as high a...
... used by nsCSSDeclaration) Style data computation Get*Data calls nsRuleNode::WalkRuleTree, which walks from the style context's rule node towards the root rule node. To fill in the data, we call nsIStyleRule::MapRuleInfoInto on the rules. MapRuleInfoInto implementations must check that the property is not filled in before filling it in. WalkRuleTree stops walking up when it finds either a none bit, a cached struct, a dependent bit, or all the properties have been filled in. WalkRuleTree also remembers the first rule that contributed non-empty data. Style data computation After WalkRuleTree stops walking up, it calls nsRuleNode::Compute*Data to turn the specified values into the mostly-computed style data in the style struct. Compute*Data use either a default or a start struct as...
...o create. Parent style context determines inheritance; it should always be the content parent. [design flaw in frame/SC relationship] Three functions for creating style contexts on nsIStyleSet, wrapped by similarly named ones on nsIPresContext: ResolveStyleContextFor: For elements. ResolvePseudoStyleContextFor: for pseudo-elements (:first-letter, :before, etc.) ResolveStyleContextForNonElement: skips rule matching and uses root rule node (text frame optimization) Managing style contexts Style context resolving functions will walk the rule processors in StyleSetImpl::FileRules, find the correct rule node, and find a current child of the parent ("sibling sharing") or create a new child. Style context doesn't hold pointer to content, just rule node. Dynamic changes to c...
popupanchor - Archive of obsolete content
If omitted, no anchoring occurs. Instead the popup content comes up...
...If omitted, no anchoring occurs. Instead the popup content comes up...
...ners) is called the originating point.By default the popup content appears with its top left point located directly underneath the point at which the user's mouse goes down (on tooltips the content is displaced by the height of the mouse cursor). popupanchor works in conjunction with popupalign to position the popup content on the element. The default value for both popupanchor and popupalign is "none." ...
button - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
... and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: menupopup > menuitem, menupopup > menu { max-width: none; } dir Type: one of the values below The direction in which the child elements of the element are placed. normal For scales, the scale's values are ordered from left to right (for horizontal scales) or from top to bottom (for vertical scales) For other elements, the elements are placed left to right or top to bot...
toolbarbutton - Archive of obsolete content
n its right side in left-to-right text locales, and the right side in right-to-left locales. left The text will be cropped on its left side. right The text will be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. ...
... start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. ...
... and theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: menupopup > menuitem, menupopup > menu { max-width: none; } dir Type: one of the values below The direction in which the child elements of the element are placed. normal For scales, the scale's values are ordered from left to right (for horizontal scales) or from top to bottom (for vertical scales) For other elements, the elements are placed left to right or top to bott...
2006-11-03 - Archive of obsolete content
...
... ...
... ...
2006-11-10 - Archive of obsolete content
...
... ...
... ...
2006-11-17 - Archive of obsolete content
...
... ...
... ...
2006-11-24 - Archive of obsolete content
...
... ...
... ...
2006-12-01 - Archive of obsolete content
...
... ...
... ...
2006-12-08 - Archive of obsolete content
...
... ...
... ...
2006-09-29 - Archive of obsolete content
...
... ...
... ...
2006-10-06 - Archive of obsolete content
...
... ...
... ...
2006-10-13 - Archive of obsolete content
...
... ...
... ...
2006-10-27 - Archive of obsolete content
...
... ...
... ...
2006-11-03 - Archive of obsolete content
...
... ...
... ...
2006-11-10 - Archive of obsolete content
...
... ...
... ...
2006-11-24 - Archive of obsolete content
...
... ...
... ...
2006-12-01 - Archive of obsolete content
...
... ...
... ...
Atomic RSS - Archive of obsolete content
Archive › RSS › Module › Atom
ntation Selected Articles Atomic RSS Tim Bray talks about using Atom 1.0 as a micro format and extension module for RSS 2.0; keeping RSS 2.0 as your sydication format but bringing in and using selected Atom 1.0 elements. ...
... Tim Bray talks about using Atom 1.0 as a micro format and extension module for RSS 2.0; keeping RSS 2.0 as your sydication format but bringing in and using selected Atom 1.0 elements. ...
...extension module for RSS 2.0; keeping RSS 2.0 as your sydication format but bringing in and using selected Atom 1.0 elements. ...
Content - Archive of obsolete content
Selected Articles Why RSS Content Module is Popular - Including HTML Contents Charles Iliya Krempeaux talks about the RSS Content Module, why it is popular among some, and how it is used to include HTML contents. ...
...lar - Including HTML Contents Charles Iliya Krempeaux talks about the RSS Content Module, why it is popular among some, and how it is used to include HTML contents. ...
...mpeaux talks about the RSS Content Module, why it is popular among some, and how it is used to include HTML contents. ...
Slash - Archive of obsolete content
Archive › RSS › Module › Slash
famous Slashdot. ...
...es UP TO 10 Why RSS Slash is Popular: Counting Your Comments Charles Iliya Krempeaux talks about the RSS Slash Module, why it is popular among some, and how it is used to give a count for your comments (2005-08-22). ...
...ng Your Comments Charles Iliya Krempeaux talks about the RSS Slash Module, why it is popular among some, and how it is used to give a count for your comments (2005-08-22). ...
Well-Formed Web - Archive of obsolete content
ts. ...
... Why Well-Formed Web RSS Module is Popular - Syndicating Your Comments Charles Iliya Krempeaux talks about the RSS Well-Formed Web Module, why it is popular among some, and how it is used to link to your comments (2005-08-22). ...
...g Your Comments Charles Iliya Krempeaux talks about the RSS Well-Formed Web Module, why it is popular among some, and how it is used to link to your comments (2005-08-22). ...
-moz-border-bottom-colors - Archive of obsolete content
ttom-colors: initial; -moz-border-bottom-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. ...
...aluenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the bottom border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
... apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the bottom border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
-moz-border-left-colors - Archive of obsolete content
r-left-colors: initial; -moz-border-left-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. ...
... valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the left border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
...ot apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the left border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
-moz-border-right-colors - Archive of obsolete content
right-colors: initial; -moz-border-right-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. ...
...valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the right border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
...t apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the right border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
-moz-border-top-colors - Archive of obsolete content
der-top-colors: initial; -moz-border-top-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. ...
...l valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the top border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
...not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the top border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used, if specified. ...
-moz-window-shadow - Archive of obsolete content
hadow property is specified as one of the keyword values listed below. ...
... The window will have a shadow with the default window shadow style. menu The window will have the shadow style that's appropriate for menus. ...
...ndow shadow style. menu The window will have the shadow style that's appropriate for menus. ...
-ms-content-zoom-snap-type - Archive of obsolete content
Indicates that zooming is unaffected by any defined snap-points. After the contact is picked up, the content will continue to move with inertia. ...
...Indicates that zooming is unaffected by any defined snap-points. After the contact is picked up, the content will continue to move with inertia. ...
..."close enough" to a snap-point. This implies that it is possible for the content zoom factor to end up between snap-points. mandatory Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point. The snap-point that is selected is the one that is closest to where the content zoom factor would normally stop. Formal syntax none | proximity | mandatory Specifications Not part of any specification. Remarks This property has no effect on non-zoomable elements. See -ms-content-zooming for details on zoomable elements. When a user pans or scrolls and then lifts his or her contact (for instance, a finger), the content can continue to move with inertia. Snap-points can change the animation that runs when the user lifts h...
-ms-scroll-chaining - Archive of obsolete content
er hits the scroll limit during a manipulation. Initial valuechainedApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values chained Initial value. The nearest scrollable parent element begins scrolling when the user hits a scroll limit during any manipulation. No bounce effect is shown. none A bounce effect is shown when the user hits a scroll limit during any manipulation. Formal syntax chained | none Examples The following example illustrates the -ms-scroll-chaining property in use. In this case the image container has its -ms-scroll-chaining property set to chained, which means that when a user is scrolling through a nested scrollable element and it hits its boundary ...
... Examples The following example illustrates the -ms-scroll-chaining property in use. In this case the image container has its -ms-scroll-chaining property set to chained, which means that when a user is scrolling through a nested scrollable element and it hits its boundary the parent scrollable element will begin to scroll in the same direction. ...
...ement will begin to scroll in the same direction. Had the -ms-scroll-chaining property been set to none, the user would observe a bounce effect when the nested element reaches its boundary. For more information, see HTML scrolling, panning and zooming sample or Internet Explorer 10 Scrolling, panning, and zooming with touch. .imageContainer { -ms-scroll-chaining: chained; -ms-overflow-style: none; -ms-content-zooming: zoom; -ms-scroll-rails: none; -ms-content-zoom-limit-min: 100%; -ms-content-zoom-limit-max: 500%; -ms-scroll-snap-type: proximity; -ms-scroll-snap-points-x: snapList(100%, 200%, 300%, 400%, 500%); -ms-overflow-style: none; width: 480px; height: 270px; overflow: auto; } Specifications Not part of any specification. Remarks This property only applies t...
Fundamental text and font styling - Learn web development
by commas, e.g. p { font-family: "Trebuchet MS", Verdana, sans-serif; } In such a case, the browser starts at the beginning of the list and looks to see if that font is available on the machine. If it is, it applies that font to the selected elements. If not, it moves on to the next font, and so on. It is a good idea to provide a suitable generic font name at the end of the stack so that if none of the listed fonts are available, the browser can at least provide something approximately suitable. To emphasise this point, paragraphs are given the browser's default serif font if no other option is available -- which is usually Times New Roman -- this is no good for a sans-serif font! Note: Font names that have more than one word -- like Trebuchet MS -- need to be surrounded by quotes, for...
...xcept for normal and bold: normal, bold: Normal and bold font weight lighter, bolder: Sets the current element's boldness to be one step lighter or heavier than its parent element's boldness. 100-900: Numeric boldness values that provide finer grained control than the above keywords, if needed. text-transform: Allows you to set your font to be transformed. Values include: none: Prevents any transformation. uppercase: Transforms all text to capitals. lowercase: Transforms all text to lower case. capitalize: Transforms all words to have the first letter capitalized. full-width: Transforms all glyphs to be written inside a fixed-width square, similar to a monospace font, allowing aligning of e.g. Latin characters along with Asian language glyphs (like Chinese,...
...alized. full-width: Transforms all glyphs to be written inside a fixed-width square, similar to a monospace font, allowing aligning of e.g. Latin characters along with Asian language glyphs (like Chinese, Japanese, Korean). text-decoration: Sets/unsets text decorations on fonts (you'll mainly use this to unset the default underline on links when styling them.) Available values are: none: Unsets any text decorations already present. underline: Underlines the text. overline: Gives the text an overline. line-through: Puts a strikethrough over the text. You should note that text-decoration can accept multiple values at once, if you want to add multiple decorations simultaneously, for example text-decoration: underline overline. Also note that text-decoration is a short...
Styling lists - Learn web development
property is a bit limited in terms of controlling the position, size, etc. of the bullets. You are better off using the background family of properties, which you've learned in the Backgrounds and borders article. For now, here's a taster! In our finished example, we have styled the unordered list like so (on top of what you've already seen above): ul { padding-left: 2rem; list-style-type: none; } ul li { padding-left: 2rem; background-image: url(star.svg); background-position: 0 0; background-size: 1.6rem 1.6rem; background-repeat: no-repeat; } Here we've done the following: Set the padding-left of the <ul> down from the default 40px to 20px, then set the same amount on the list items. This is so that overall the list items are still lined up with the order list items an...
...fault 40px to 20px, then set the same amount on the list items. This is so that overall the list items are still lined up with the order list items and the description list descriptions, but the list items have some padding for the background images to sit inside. If we didn't do this, the background images would overlap with the list item text, which would look messy. Set the list-style-type to none, so that no bullet appears by default. We're going to use background properties to handle the bullets instead. Inserted a bullet onto each unordered list item. The relevant properties are as follows: background-image: This references the path to the image file you want to use as the bullet. background-position: This defines where in the background of the selected element the image will ...
...thand property, list-style. For example, the following CSS: ul { list-style-type: square; list-style-image: url(example.png); list-style-position: inside; } Could be replaced by this: ul { list-style: square url(example.png) inside; } The values can be listed in any order, and you can use one, two or all three (the default values used for the properties that are not included are disc, none, and outside). If both a type and an image are specified, the type is used as a fallback if the image can't be loaded for some reason. Controlling list counting Sometimes you might want to count differently on an ordered list -- e.g. starting from a number other than 1, or counting backwards, or counting in steps of more than 1. HTML and CSS have some tools to help you here. start The start a...
HTML forms in legacy browsers - Learn web development
*/ border: revert; } See the global CSS revert value for more information. <button> The <button> element suffered from two issues that are now...
...and text, but not color or range. If you alter a property, that may impact the appearance of the widget in unexpected ways. For example, [value] { background-color: #ccc; } may have been used to target every <input> with a value attribute, but changing the background-color or border radius on a <meter> will lead to likely unexpected results that differ across browsers. You can declare appearance: none; to remove the browser styles, but that generally defeats the purpose: as you lose all styling, removing the default look and feel your visitors are used to. To summarize, when it comes to styling form control widgets, the side effects of styling them with CSS can be unpredictable. So don't. As you can see from the complexity of the Property compatibility table for form widgets article, it's ve...
...and JavaScript are awesome technologies, but it's important to ensure you don't break legacy browsers. Before using features that aren't fully supported in the browsers your targeting, you should feature detect: CSS feature detection Before styling a replaced form control widget, you can check to see if the browser supports the features you plan on using using @supports: @supports (appearance: none) { input[type="search"] { appearance: none; /* restyle the search input */ } Theappearance property can be used to display an element using platform-native styling, or, as is done with the value of none, remove default platform-native based styling. Unobtrusive JavaScript One of the biggest problems is the availability of APIs. For that reason, it's considered best practice to work wit...
How to build custom form controls - Learn web development
will make our control become part of the text flow and sizable at the same time */ display : inline-block; } We need an extra class active to define the look and feel of our control when it is in its active state. Because our control is focusable, we double this custom style with the :focus pseudo-class in order to be sure they will behave the same. .select .active, .select:focus { outline: none; /* This box-shadow property is not exactly required, however it's imperative to ensure active state is visible, especially to keyboard users, that we use it as a default value. */ box-shadow: 0 0 3px 1px #227755; } Now, let's handle the list of options: /* The .select selector here helps to make we only select element inside our control. */ .select .optList { /* This will make s...
...: 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 list of options: .select .optList { z-index : 2; /* We explicitly said the list of options will always be on top of the down arrow */ /* this will reset the default style of the ul element */ list-style: none; margin : 0; padding: 0; box-sizing : border-box; /* If the values are smaller than the control, the list of options will be as wide as the control itself */ min-width : 100%; /* In case the list is too long, its content will overflow vertically (which will add a vertical scrollbar automatically) but never horizontally (because we haven't set a width, the list will a...
... <li><input type="radio" name="fruit" value="Apple" id="fruitApple"><label for="fruitApple">Apple</label></li> </ul> </fieldset> We'll do a little styling of the radio button list (not the legend/fieldset) to make it look somewhat like the earlier example, just to show that it can be done: .styledSelect { display: inline-block; padding: 0; } .styledSelect li { list-style-type: none; padding: 0; display: flex; } .styledSelect [type=radio] { position: absolute; left: -100vw; top: -100vh; } .styledSelect label { margin: 0; line-height: 2; padding: 0 0 0 4px; } .styledSelect:not(:focus-within) input:not(:checked) + label { height: 0; outline: none; overflow: hidden; } .styledSelect:not(:focus-within) input:checked + label { border: .2em solid #000; bor...
Introduction to client-side frameworks - Learn web development
dedicated just to the UI - just to the step of rendering something in the DOM - and at no point do we add classes that we could use later to style our list-items! Working directly with the DOM, as in this example, requires understanding many things about how the DOM works: how to make elements; how to change their properties; how to put elements inside of each other; how to get them on the page. None of this code actually handles user interactions, or addresses adding or deleting a task. If we add those features, we have to remember to update our UI in the right time and in the right way. JavaScript frameworks were created to make this kind of work a little easier -- they exist to provide a better developer experience. They don't bring brand-new powers to JavaScript; they give you easier acc...
...lanceable summary of the current browser support offered by each framework, as well as the domain-specific languages with which it can be used. Broadly, domain-specific languages (DSLs) are programming languages relevant in specific areas of software development. In the context of frameworks, DSLs are variations on JavaScript or HTML that make it easier to develop with that framework. Crucially, none of the frameworks require a developer to use a specific DSL, but they have almost all been designed with a specific DSL in mind. Choosing not to employ a framework's preferred DSL will mean you miss out on features that would otherwise improve your developer experience. You should seriously consider the support matrix and DSLs of a framework when making a choice for any new project. Mismatched b...
...overs many topics related to JavaScript, including data about both the use of frameworks and developer sentiment toward them. Currently, there are several years of data available, allowing you to get a sense of a framework's popularity. The Vue team has exhaustively compared Vue to other popular frameworks. There may be some bias in this comparison (which they note), but it's a valuable resource nonetheless. Alternatives to client-side frameworks If you're looking for tools to expedite the web development process, and you know your project isn't going to require intensive client-side JavaScript, you could reach for one of a handful of other solutions for building the web: A content management system Server-side rendering A static site generator Content management systems Content-man...
Beginning our React todo list - Learn web development
ed is not a true boolean attribute in the way checked is. ...
... way checked is. ...
...utline-offset: 0; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } input[type="text"] { border-radius: 0; } body { width: 100%; max-width: 68rem; margin: 0 auto; font: 1.6rem/1.25 Arial, sans-serif; background-color: #f5f5f5; color: #4d4d4d; } @...
Starting our Svelte Todo list app - Learn web development
of each rule by clicking on its link. Styling our markup Let's make the todo list look a little better. ...
...yling our markup Let's make the todo list look a little better. ...
...utline-offset: 0; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } input[type="text"] { border-radius: 0; } body { width: 100%; max-width: 68rem; margin: 0 auto; font: 1.6rem/1.25 Arial, sans-serif; background-color: #f5f5f5; color: #4d4d4d; } @...
Performance best practices for Firefox front-end engineers
been an easy way of doing this - however, bug 1434376 has recently landed some ChromeOnly helpers to the window binding to make this simpler. If you want to queue up some JavaScript to run after the next "natural" style and layout flush, try: // Suppose we want to get the computed "display" style of some node without // causing a style flush. ...
...: // Suppose we want to get the computed "display" style of some node without // causing a style flush. We could do it this way: async function nodeIsDisplayNone(node) { let display = await window.promiseDocumentFlushed(() => { // Do _not_ under any circumstances write to the DOM in one of these // callbacks! return window.getComputedStyle(node).display; }); return display == "none"; } See Detecting and avoiding synchronous reflow for a more advanced example of getting layout information, and then setting it safely, without causing flushes. promiseDocumentFlushed is only available to priviledged script, and should be called on the inner window of a top-level frame. Calling it on the outer window of a subframe is not supported, and calling it from within the inner windo...
...nd not chrome UI, the rest of this section is offered only as context. When an interruptible reflow is interrupted, what really happens is that certain layout operations can be skipped in order to paint and process user events sooner. When an interruptible reflow is interrupted, the best-case scenario is that all layout is skipped, and the layout operation ends. The worst-case scenario is that none of the layout can be skipped despite being interrupted, and the entire layout calculation occurs. Reflows that are triggered "naturally" by the 16ms tick are all considered interruptible. Despite not actually being interuptible when laying out chrome UI, striving for interruptible layout is always good practice because uninterruptible layout has the potential to be much worse (see next section).
IME handling guide
Then, it sends the events and the event target to IMEStateManager. mozilla::IMEStateManager IMEStateManager looks for a TextComposition instance whose native IME context is same as the...
...Then, it sends the events and the event target to IMEStateManager. mozilla::IMEStateManager IMEStateManager looks for a TextComposition instance whose native IME context is same as the widget' which dispatches the widget event. If there is no proper TextComposition instance, it ...
...line ui.IMESelectedRawTextBackground ui.IMESelectedRawTextForeground ui.IMESelectedRawTextUnderline ui.IMEConvertedTextBackground ui.IMEConvertedTextForeground ui.IMEConvertedTextUnderline ui.IMESelectedConvertedTextBackground ui.IMESelectedConvertedTextForeground ui.IMESelectedConvertedTextUnderline Underline style can be specified with the following prefs. The values are integer, 0: none, 1: dotted, 2: dashed, 3: solid, 4: double, 5: wavy (The values same as NS_STYLE_TEXT_DECORATION_STYLE_* defined in nsStyleConsts.h. ui.IMERawInputUnderlineStyle ui.IMESelectedRawTextUnderlineStyle ui.IMEConvertedTextUnderlineStyle ui.IMESelectedConvertedTextUnderlineStyle Underline width can be specified with "ui.IMEUnderlineRelativeSize" pref. This affects all types of clauses. The valu...
Creating localizable web applications
e_3#test'));?> </div> Notice that the icon has been moved to CSS, so that it doesn't sit in a <img/> element. This is generally considered a good practice for decorative graphics. Don't use images as buttons Instead, use <button/> and style it with CSS. Image 1. Bad: Snippet 1. ...
... Notice that the icon has been moved to CSS, so that it doesn't sit in a <img/> element. This is generally considered a good practice for decorative graphics. Don't use images as buttons Instead, use <button/> and style it with CSS. Image 1. Bad: Snippet 1. ...
... considered a good practice for decorative graphics. Don't use images as buttons Instead, use <button/> and style it with CSS. Image 1. Bad: Snippet 1. ...
JSS Provider Notes
...
... DSAPriv...
...supported for private keys. KeyGenerator Supported Algorithms Notes AES DES DESede (DES3 ) RC4 The SecureRandom argument passed to init() is ignored, because NSS does not support specifying an external source of randomness. None of the key generation algorithms accepts an AlgorithmParameterSpec. KeyPairGenerator Supported Algorithms Notes DSA RSA The SecureRandom argument passed to initialize() is ignored, because NSS does not support specifying an external source of randomness. ...
Mozilla-JSS JCA Provider notes
DSAPrivateKey getX() is not supported because NSS does not support extracting data from private keys. KeyFactory Sup...
... DSAPrivateKey getX() is not supported because NSS does not support extracting data from private keys. KeyFactory Supported Algor...
... key and then tries to import it by calling generatePublic() or generatePrivate(). Only X509EncodedKeySpec is supported for public keys, and only PKCS8EncodedKeySpec is supported for private keys. KeyGenerator Supported Algorithms Notes AES DES DESede (DES3) RC4 The SecureRandom argument passed to init() is ignored, because NSS does not support specifying an external source of randomness. None of the key generation algorithms accepts an AlgorithmParameterSpec. KeyPairGenerator Supported Algorithms Notes DSA RSA The SecureRandom argument passed to initialize() is ignored, because NSS does not support specifying an external source of randomness. Mac Supported Algorithms Notes HmacSHA1 (Hmac-SHA1) Any secret key type (AES, DES, etc.) can be used as the MAC key, but it must be...
NSS tools : modutil
tool can also create certificate, key, and module security database files. The tasks associated with security module database management are part of a process that typically also involves managing key databases and certificate databases. Options Running modutil always requires one (and only one) option to specify the type of module operation. Each option may take arguments, anywhere from none to multiple arguments. Options -add modulename Add the named PKCS #11 module to the database. Use this option with the -libfile, -ciphers, and -mechanisms arguments. -changepw tokenname Change the password on the named token. If the token has not been initialized, this option initializes the password. Use this option with the -pwfile and -newpwfile arguments. A password is equivalent to ...
...he token it is loaded on. ...
...11 Firmware Version: 0.0 Status: Enabled Token Name: NSS Generic Crypto Services Token Manufacturer: Mozilla Foundation Token Model: NSS 3 Token Serial Number: 0000000000000000 Token Version: 4.0 Token Firmware Version: 0.0 Access: Write Protected Login Type: Public (no login required) User Pin: NOT Initialized Slot: NSS User Private Key and Certificate Services Slot Mechanism Flags: None Manufacturer: Mozilla Foundation Type: Software Version Number: 3.11 Firmware Version: 0.0 Status: Enabled Token Name: NSS Certificate DB Token Manufacturer: Mozilla Foundation Token Model: NSS 3 Token Serial Number: 0000000000000000 Token Version: 8.3 Token Firmware Version: 0.0 Access: NOT Write Protected Login Type: Login required User Pin: Initialized A related command, -rawlis...
NSS tools : modutil
Mozilla › Projects › NSS › tools › modutil
reate certificate, key, and module security database files. The tasks associated with security module database management are part of a process that typically also involves managing key databases and certificate databases. Options Running modutil always requires one (and only one) option to specify the type of module operation. Each option may take arguments, anywhere from none to multiple arguments. Options -add modulename Add the named PKCS #11 module to the database. Use this option with the -libfile, -ciphers, and -mechanisms arguments. -changepw tokenname Change the password on the named token. If the token has not been initialized, this option initializes the password. Use this option with the -p...
... token it is loaded on. ...
... Status: Enabled Token Name: NSS Generic Crypto Services Token Manufacturer: Mozilla Foundation Token Model: NSS 3 Token Serial Number: 0000000000000000 Token Version: 4.0 Token Firmware Version: 0.0 Access: Write Protected Login Type: Public (no login required) User Pin: NOT Initialized Slot: NSS User Private Key and Certificate Services Slot Mechanism Flags: None Manufacturer: Mozilla Foundation Type: Software Version Number: 3.11 Firmware Version: 0.0 Status: Enabled Token Name: NSS Certificate DB Token Manufacturer: Mozilla Foundation Token Model: NSS 3 Token Serial Number: 0000000000000000 Token Version: 8.3 Token Firmware Version: 0.0 Access: NOT Write Protected Login Type: Login required User Pin: Initialized...
Querying Places
wQueryOptions() to retrieve empty objects. The defaults for these objects will result in a query that returns all of your browser history in a flat list: ChromeUtils.defineModuleGetter(this, "PlacesUtils", "resource://gre/modules/PlacesUtils.jsm"); // No query options set will get all history, sorted in database order, // which is nsINavHistoryQueryOptions.SORT_BY_NONE. let options = PlacesUtils.history.getNewQueryOptions(); // No query parameters will return everything let query = PlacesUtils.history.getNewQuery(); // execute the query let result = PlacesUtils.history.executeQuery(query, options); Result types nsINavHistoryQueryOptions has a resultType property that allows configuration of the grouping and level of detail to be returned in the results. T...
...lean hasUri attribute boolean annotationIsNot attribute AUTF8String annotation readonly attribute boolean hasAnnotation readonly attribute unsigned long folderCount Basic Query Configuration Options const unsigned short GROUP_BY_DAY = 0 const unsigned short GROUP_BY_HOST = 1 const unsigned short GROUP_BY_DOMAIN = 2 const unsigned short GROUP_BY_FOLDER = 3 const unsigned short SORT_BY_NONE = 0 const unsigned short SORT_BY_TITLE_ASCENDING = 1 const unsigned short SORT_BY_TITLE_DESCENDING = 2 const unsigned short SORT_BY_DATE_ASCENDING = 3 const unsigned short SORT_BY_DATE_DESCENDING = 4 const unsigned short SORT_BY_URI_ASCENDING = 5 const unsigned short SORT_BY_URI_DESCENDING = 6 const unsigned short SORT_BY_VISITCOUNT_ASCENDING = 7 const unsigned short SORT_BY_VISITCOUNT_DE...
...bookmark folders can be retrieved by setting the "folders" member in the query object. This item is an array of folder IDs from the bookmark service. Typically, you will only have one folder ID in this list, which will given you the contents of that folder. You can set multiple folders and the result will be the intersection of all the folders. For sorting, you will generally want to use SORT_BY_NONE (the default) since this will return items in their "natural" order as specified by the user in the bookmarks manager. Other sortings will work, however. For bookmark queries you will generally want no query parameters to retrieve all items from the requested folder(s). When you specify exactly one folder and no query parameters, the system will be more efficient querying and keeping the results...
XPCOM hashtable guide
ant time can be larger than an array lookup Sorting: sorted: stored sorted; iterated over in a sorted fashion. unsorted: stored unsorted; cannot be iterated over in a sorted manner. Inserting/Removing: O(n): adding and removing items from a large array can be time-consuming O(1): adding and removing items from hashtables is a quick operation Wasted space: none: Arrays are packed structures, so there is no wasted space. some: hashtables are not packed structures; depending on the implementation, there may be significant wasted memory. In their implementation, hashtables take the key and apply a mathematical hash function to randomize the key and then use the hash to find the location in the hashtable. Good hashtable implementations will automa...
...ets (less than 12-16 items); Data that does not need random access. In these situations, an array, a linked-list, or various tree data structures are more efficient. Which Hashtable Should I Use? The appropriate hashtable class to use depends solely on the data type. The template specialization to use depends on the data type and the key type. ...
... A few examples: A hashtable that maps UTF-8 origin names to a DOM Window - nsInterfaceHashtable<nsCStringHashKey, nsIDOMWindow> A hashtable that maps 32 bit integers to floats - nsDataHashtable<nsUint32H...
IAccessibleTable
ildren ); Parameters maxChildren This parameter is ignored. Refer to @ref _arrayConsideration "Special Consideration when using Arrays" for more details. children An array of cell indexes of selected cells (each index is 0 based), allocated by the server. Free it with CoTaskMemFree. nChildren The number of cell indexes returned; the size of the returned array. Return value S_FALSE if there are none, [out] values are null and 0 respectively. S_OK. selectedColumns() Returns a list of column indexes currently selected (0 based). [propget] HRESULT selectedColumns( [in] long maxColumns, [out, size_is(,maxColumns), length_is(, nColumns)] long columns, [out] long nColumns ); Parameters maxColumns This parameter is ignored. Refer to @ref _arrayConsideration "Special Consideration when using...
...mns ); Parameters maxColumns This parameter is ignored. Refer to @ref _arrayConsideration "Special Consideration when using Arrays" for more details. columns An array of column indexes of selected columns (each index is 0 based), allocated by the server. Free it with CoTaskMemFree. nColumns The number of column indexes returned; the size of the returned array. Return value S_FALSE if there are none, [out] values are null and 0 respectively. S_OK. selectedRows() Returns a list of row indexes currently selected (0 based). [propget] HRESULT selectedRows( [in] long maxRows, [out, size_is(,maxRows), length_is(, nRows)] long rows, [out] long nRows ); Parameters maxRows This parameter is ignored. Refer to @ref _arrayConsideration "Special Consideration when using Arrays" for more details. ...
...s, [out] long nRows ); Parameters maxRows This parameter is ignored. Refer to @ref _arrayConsideration "Special Consideration when using Arrays" for more details. rows An array of row indexes of selected rows (each index is 0 based), allocated by the server. Free it with CoTaskMemFree. nRows The number of row indexes returned; the size of the returned array. Return value S_FALSE if there are none, [out] values are null and 0 respectively. S_OK. selectRow() Selects a row and unselects all previously selected rows. HRESULT selectRow( [in] long row ); Parameters row 0 based index of the row to be selected. Return value E_INVALIDARG if bad [in] passed. S_OK. summary() Returns the summary description of the table. The returned object could be an IAccessible or an IAccessible2. [propget] H...
IAccessibleTable2
s currently selected. [propget] HRESULT selectedCells( [out, size_is(, nSelectedCells,)] IUnknown cells, [out] long nSelectedCells ); Parameters cells Pointer to an array of references to selected accessibles. The array is allocated by the server. Free it with CoTaskMemFree. nSelectedCells The number of accessibles returned; the size of the returned array. Return value S_FALSE if there are none, [out] values are null and 0 respectively. S_OK. selectedColumns() Returns a list of column indexes currently selected (0 based). [propget] HRESULT selectedColumns( [out, size_is(, nColumns)] long selectedColumns, [out] long nColumns ); Parameters selectedColumns A pointer to an array of column indexes of selected columns (each index is 0 based). The array is allocated by the server. Free i...
...et] HRESULT selectedColumns( [out, size_is(, nColumns)] long selectedColumns, [out] long nColumns ); Parameters selectedColumns A pointer to an array of column indexes of selected columns (each index is 0 based). The array is allocated by the server. Free it with CoTaskMemFree. nColumns The number of column indexes returned; the size of the returned array. Return value S_FALSE if there are none, [out] values are null and 0 respectively. S_OK. selectedRows() Returns a list of row indexes currently selected (0 based). [propget] HRESULT selectedRows( [out, size_is(, nRows)] long selectedRows, [out] long nRows ); Parameters selectedRows An array of row indexes of selected rows (each index is 0 based), allocated by the server. Free it with CoTaskMemFree. nRows The number of row indexes...
...t of row indexes currently selected (0 based). [propget] HRESULT selectedRows( [out, size_is(, nRows)] long selectedRows, [out] long nRows ); Parameters selectedRows An array of row indexes of selected rows (each index is 0 based), allocated by the server. Free it with CoTaskMemFree. nRows The number of row indexes returned; the size of the returned array. Return value S_FALSE if there are none, [out] values are null and 0 respectively. S_OK. selectRow() Selects a row and unselects all previously selected rows. The behavior should mimic that of the application, but for those applications which do not have a means in the GUI to select a full row of cells the behavior should be as follows: First any selected rows in the table are unselected. Then the entire row of cells for the specified ...
imgIEncoder
ut is host-endian ARGB: On big-endian machines each pixel is therefore ARGB, and for little-endian machiens (Intel) each pixel is BGRA (This is used by canvas to match it's internal representation) PRE-MULTIPLIED alpha is used (That is, 50% transparent red is 0x80800000, not 0x80ff0000) Possible values for outputOptions. Multiple values are semicolon-separated. PNG: ---- transparency=[yes|no|none] -- default: "yes" Overrides default from input format. "no" and "none" are equivalent. APNG: ----- The following options can be used with startImageEncode(): transparency=[yes|no|none] -- default: "yes" Overrides default from input format. "no" and "none" are equivalent. skipfirstframe=[yes|no] -- default: "no" Controls display of the first frame in animations. PNG-only clien...
...only clients always display the first frame (and only that frame). frames=# -- default: "1" Total number of frames in the image. The first frame, even if skipped, is always included in the count. plays=# -- default: "0" Number of times to play the animation sequence. "0" will repeat forever. The following options can be used for each frame, with addImageFrame(): transparency=[yes|no|none] -- default: "yes" Overrides default from input format. "no" and "none" are equivalent. delay=# -- default: "500" Number of milliseconds to display the frame, before moving to the next frame. dispose=[none|background|previous] -- default: "none" What to do with the image's canvas before rendering the next frame. See APNG spec. blend=[source|over] -- default: "source" How t...
...ich would be extra. frameFormat Missing Description frameOptions Missing Description encodeClipboardImage() Obsolete since Gecko 1.9 (Firefox 3) void encodeClipboardImage( in nsIClipboardImage aClipboardImage, out nsIFile aImageFile ); Parameters aClipboardImage Missing Description aImageFile Missing Description endImageEncode() void endImageEncode(); Parameters None. initFromData() void initFromData( [array, size_is(length), const] in PRUint8 data, in unsigned long length, in PRUint32 width, in PRUint32 height, in PRUint32 stride, in PRUint32 inputFormat, in AString outputOptions ); Parameters data List of bytes in the format specified by inputFormat. length Missing Description width Width in pixels. height Height in pixels. stride The number...
mozIPersonalDictionary
ently unused. check() Checks a Unicode string. boolean check( in wstring word, in wstring lang ); Parameters word The word to check. lang The language of the word. Note that this parameter is currently ignored. Return value true if the word is in either the dictionary or the ignore list, false if it is not in either list. endSession() Clears the ignore list. void endSession(); Parameters None. getCorrection() Gets a list of previous corrections for the word. void getCorrection( in wstring word, [array, size_is(count)] out wstring words, out PRUint32 count ); Parameters word The word to get the list of corrections for. words The list of corrections. count The number of corrections in the list. ignoreWord() Adds a word to the ignore all list. void ignoreWord( in wstring word ...
...ray, size_is(count)] out wstring words, out PRUint32 count ); Parameters word The word to get the list of corrections for. words The list of corrections. count The number of corrections in the list. ignoreWord() Adds a word to the ignore all list. void ignoreWord( in wstring word ); Parameters word The word to add to the ignore list. load() Loads the dictionary. void load(); Parameters None. removeCorrection() Removes a misspelling from the list of corrections. This removes a single misspelling and correction pair from the list. void removeCorrection( in wstring word, in wstring correction, in wstring lang ); Parameters word The incorrect spelling of the word to remove from the list of corrections. correction The correct spelling of the word. lang The language of the word. ...
...of the word. Notes Only an entry matching both word and correction will be removed from the list of corrections. removeWord() Removes a word from the personal dictionary. void removeWord( in wstring word, in wstring lang ); Parameters word The word to remove. lang The language of the word. Note that this parameter is currently ignored. save() Saves the dictionary. void save(); Parameters None. ...
nsICacheEntryDescriptor
7. securityInfo nsISupports Get or set security info on the cache entry for this descriptor. This fails if the storage policy is not STORE_IN_MEMORY. storagePolicy nsCacheStoragePolicy Get or set the storage policy of the cache entry. See nsICache for the definitions of the storage policies. Methods close() This method explicitly closes the descriptor (optional). void close(); Parameters None. doom() This method dooms the cache entry this descriptor references in order to slate it for removal. Once doomed a cache entry cannot be undoomed. A descriptor with WRITE access can doom the cache entry and choose to fail pending requests. This means that pending requests will not get a cache descriptor. This is meant as a tool for clients that wish to instruct pending requests to skip the cach...
...he cache entry this descriptor references in order to slate it for removal. Once doomed a cache entry cannot be undoomed. A descriptor with WRITE access can doom the cache entry and choose to fail pending requests. This means that pending requests will not get a cache descriptor. This is meant as a tool for clients that wish to instruct pending requests to skip the cache. void doom(); Parameters None. doomAndFailPendingRequests() This method with the WRITE access can doom the cache entry and choose to fail pending requests. This means that pending requests will not get a cache descriptor. This is meant as a tool for clients that wish to instruct pending requests to skip the cache. void doomAndFailPendingRequests( in nsresult status ); Parameters status The access status. getMetaDataEleme...
...icular charset, but they must be null terminated. string getMetaDataElement( in string key ); Parameters key The key for retrieving the meta data. Return value Returns the string value containing the meta data for the provided key. markValid() This method means that a writer must validate this cache object before any readers are given a descriptor to the object. void markValid(); Parameters None. openInputStream() This method opens blocking input stream to cache data. This will fail if the cache entry is not stream based. Use the stream transport service to asynchronously read this stream on a background thread. The returned stream may implement nsISeekableStream. nsIInputStream openInputStream( in unsigned long offset ); Parameters offset Read starting from this offset into the cach...
nsICycleCollectorListener
.3 / SeaMonkey 2.1) The order of calls will be call to begin(); then for every node in the graph a call to noteObject() and calls to noteEdge() for every edge starting at that node; then a call to beginDescriptions(); then for every black node in the cycle collector graph a call to either describeRefcountedObject() or to describeGCedObject(); and then a call to end(). If begin() returns an error none of the other functions will be called. Method overview void begin(); void beginDescriptions(); void describeGCedObject(in unsigned long long aAddress, in boolean aMarked); void describeRefcountedObject(in unsigned long long aAddress, in unsigned long aKnownEdges, in unsigned long aTotalEdges); void end(); void noteEdge(in unsigned long long aFromAddress, in unsigned long long aToAddr...
...ress, in boolean aMarked); void describeRefcountedObject(in unsigned long long aAddress, in unsigned long aKnownEdges, in unsigned long aTotalEdges); void end(); void noteEdge(in unsigned long long aFromAddress, in unsigned long long aToAddress, in string aEdgeName); void noteObject(in unsigned long long aAddress, in string aObjectDescription); Methods begin() void begin(); Parameters None. beginDescriptions() void beginDescriptions(); Parameters None. describeGCedObject() void describeGCedObject( in unsigned long long aAddress, in boolean aMarked ); Parameters aAddress aMarked describeRefcountedObject() void describeRefcountedObject( in unsigned long long aAddress, in unsigned long aKnownEdges, in unsigned long aTotalEdges ); Parameters aAddress aKnownEdges aTo...
...ons(); Parameters None. describeGCedObject() void describeGCedObject( in unsigned long long aAddress, in boolean aMarked ); Parameters aAddress aMarked describeRefcountedObject() void describeRefcountedObject( in unsigned long long aAddress, in unsigned long aKnownEdges, in unsigned long aTotalEdges ); Parameters aAddress aKnownEdges aTotalEdges end() void end(); Parameters None. noteEdge() void noteEdge( in unsigned long long aFromAddress, in unsigned long long aToAddress, in string aEdgeName ); Parameters aFromAddress aToAddress aEdgeName noteObject() void noteObject( in unsigned long long aAddress, in string aObjectDescription ); Parameters aAddress aObjectDescription ...
nsIDOMChromeWindow
method tells the window manager to start dragging the window. This method will fail unless called while the left mouse button is held down, callers must check this. void beginWindowMove( in nsIDOMEvent mouseDownEvent ); Parameters mouseDownEvent Exceptions thrown NS_ERROR_NOT_IMPLEMENTED If the operating system does not support this method. getAttention() void getAttention(); Parameters None. getAttentionWithCycleCount() Same as getAttention method excepting that this can specify the maximum number of times to animate the window per system conventions. void getAttentionWithCycleCount( in long aCycleCount ); Parameters aCycleCount The maximum number of times to animate the window per system conventions. If set to -1, cycles indefinitely until window is brought into the foreground.
...of times to animate the window per system conventions. void getAttentionWithCycleCount( in long aCycleCount ); Parameters aCycleCount The maximum number of times to animate the window per system conventions. If set to -1, cycles indefinitely until window is brought into the foreground. This behavior is same as getAttention method. maximize() Maximizes the window. void maximize(); Parameters None. minimize() Minimizes the window. void minimize(); Parameters None. notifyDefaultButtonLoaded() When a document has been loaded, the document can notify the default button of the document to the window by using this method. When this method is called on Windows, Gecko moves the mouse cursor to center of the button if the auto cursor snap setting is enabled on the system. However, when the window...
... a default button but it's not created by the dialog/wizard element, the applications should call this method for the accessibility and the usability on Windows at onload event. void notifyDefaultButtonLoaded( in nsIDOMElement defaultButton ); Parameters defaultButton The default button element of the window. restore() Restores the size and position of the window. void restore(); Parameters None. setCursor() Sets the mouse cursor to the specified cursor. The mouse cursor is locked to the specified cursor if it's not "auto". At that time, the cursor has been never changed by cursor moving. After you call this method with "auto", the cursor will be unlocked. void setCursor( in DOMString cursor ); Parameters cursor You can specify same values of CSS cursor property (including -moz- pref...
nsIDownloadManager
ID ); Parameters aID The unique ID of the download. Exceptions thrown NS_ERROR_FAILURE The download is not in progress. cleanUp() Removes completed, failed, and canceled downloads from the list. Also notifies observers of the "download-manager-remove-download" topic with a null subject to allow any Download Manager consumers to react to the removals. void cleanUp(); Parameters None. endBatchUpdate() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Indicate that a batch update is ending. void endBatchUpdate(); Parameters None. flush() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Flush the download datasource to disk. void flush(); Parameters None. getDownloa...
... onClose() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Called when the download manager front end is closed. Useful for third party managers to let us know when they've closed. void onClose(); Parameters None. open() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Opens the Download Manager front end. void open( in nsIDOMWindow aParent, in nsIDownload aDownload ); Parameters aParent The parent, or opener, of the front end. aDownload A download to pass to the manager window. Useful if, for example, you want the window to select a certa...
... aID The unique ID of the download. Exceptions thrown NS_ERROR_FAILURE If the download is not in the following states: DOWNLOAD_CANCELED or DOWNLOAD_FAILED. NS_ERROR_NOT_AVAILALE If the download id is not known. saveState() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Update the download datasource. void saveState(); Parameters None. startBatchUpdate() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Indicate that a batch update (For example mass removal) is about to start. void startBatchUpdate(); Parameters None. See also nsIDownload nsIDownloadManagerUI nsIDownloadProgressListener The Download Manager schema ...
nsIDragService
DRAGDROP_ACTION_COPY 1 The drag and drop operation should copy the object. DRAGDROP_ACTION_MOVE 2 The drag and drop operation should move the object. DRAGDROP_ACTION_LINK 4 The drag and drop operation should link the object. DRAGDROP_ACTION_UNINITIALIZED 64 The action is not initialized. Methods Native code on...
...rag. This is available only from native code since Gecko 43. [noscript] void fireDragEventAtSource( in mozilla::EventMessage aEventMessage ); Parameters aEventMessage One of the event messages between eDragDropEventFirst and eDragDropEventLast defined in widget/EventMessageList.h getCurrentSession() Returns the current nsIDragSession. nsIDragSession getCurrentSession(); Parameters None. Return value The current drag session, or null if no drag is in progress. invokeDragSession() Starts a modal drag session with an array of transferables void invokeDragSession( in nsIDOMNode aDOMNode, in nsISupportsArray aTransferables, in nsIScriptableRegion aRegion, in unsigned long aActionType ); Parameters aDOMNode The source node on which the drag gesture was started. aT...
...array of transferables to be dragged. aActionType Specified which of copy/move/link are allowed aDragEvent The drag gesture event that initiated the drag. aDataTransfer A data transfer object that is available on the current drag session. startDragSession() Tells the Drag Service to start a drag session. This is called when an external drag occurs void startDragSession(); Parameters None. suppress() Increase dragging suppress level by one. This disables dragging if it is not already disabled. void suppress(); Parameters None. unsuppress() Decrease dragging suppress level by one. If level is zero, dragging is re-enabled. void unsuppress(); Parameters None. ...
nsILivemarkService
er. boolean isLivemark( in long long folder ); Parameters folder A folder ID. Return value true if the given folder is a livemark folder, otherwise it returns false. Exceptions thrown NS_ERROR_INVALID_ARG If the folder ID isn't known. reloadAllLivemarks() This method reloads all livemark subscriptions, whether or not they have expired. void reloadAllLivemarks(); Parameters None. reloadLivemarkFolder() This method reloads the livemark with this folder ID, whether or not it's expired. void reloadLivemarkFolder( in long long folderID ); Parameters folderID The ID of the folder to be reloaded. setFeedURI() This method sets the URI of the feed associated with a livemark container. Note: The caller is responsible for reloading the livemark after changing its fe...
... See also Places Livemark Service nsINavBookmarksService ...
...livemark container; also if the siteURI argument isn't a valid nsIURI object (or null) start() This method starts the livemark refresh timer. Being able to manually control this allows activity such as bookmarks import to occur without kicking off HTTP traffic. void start(); Parameters None. stopUpdateLivemarks() Stop the livemark refresh timer. void stopUpdateLivemarks(); Parameters None. See also Places Livemark Service nsINavBookmarksService ...
nsILocalFileMac
with SetFileType() to specify the signature of current process. Obsolete since Gecko 2.0 Methods Native code only!getCFURL Note: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is true, returns the target of the alias. If followLinks is false, returns the unresolved alias file. Note: Supported only for XP_MACOSX. CFURLRef getCFURL(); Parameters None. Return value The CFURLRef of the file object. The caller is responsible for calling CFRelease() on it. Native code only!getFSRef Note: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is true, returns the target of the alias. If followLinks is false, returns the unresolved alias file. Note: Supported only for XP_MACOSX. FSRef getFSRef(); Parameters...
... Return value The CFURLRef of the file object. The caller is responsible for calling CFRelease() on it. Native code only!getFSRef Note: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is true, returns the target of the alias. If followLinks is false, returns the unresolved alias file. Note: Supported only for XP_MACOSX. FSRef getFSRef(); Parameters None. Return value The FSRef of the file object. Native code only!getFSSpec Note: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is true, returns the target of the alias. If followLinks is false, returns the unresolved alias file. FSSpec getFSSpec(); Parameters None. Return value The FSSpec of the file object. Native code only!initToAppWithCreatorCode ...
...bird 3.1 / Fennec 1.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Init this object with an FSSpec Legacy method - leaving in place for now. void initWithFSSpec( [const] in FSSpecPtr aFileSpec ); Parameters aFileSpec The native file spec. isPackage() boolean isPackage(); Parameters None. Return value true if a directory is determined to be a package under Mac OS 9/X. launchWithDoc() Launch the application that this file points to with a document. void launchWithDoc( in nsILocalFile aDocToLoad, in boolean aLaunchInBackground ); Parameters aDocToLoad Must not be null. If no document, use nsILocalFile::launch. aLaunchInBackground true if the application should not come to the...
nsIOutputStream
m(in nsIInputStream aFromStream, in unsigned long aCount); unsigned long writeSegments(in nsReadSegmentFun aReader, in voidPtr aClosure, in unsigned long aCount); Native code only! Methods close() Close the stream. Forces the output stream to flush() any buffered data. Note: This method may be called more than once, but subsequent calls are ignored. void close(); Parameters None. Exceptions thrown NS_BASE_STREAM_WOULD_BLOCK Indicates that closing the output stream would block the calling thread for an indeterminate amount of time. This exception may only be thrown if isNonBlocking() returns true. flush() This method may be called to instruct the output stream to write out the contents of any internal buffers to a low-level data sink, such as a file on disk. Howev...
...r an indeterminate amount of time. This exception may only be thrown if isNonBlocking() returns true. flush() This method may be called to instruct the output stream to write out the contents of any internal buffers to a low-level data sink, such as a file on disk. However, the flush method may simply do nothing depending on the implementation of the output stream. void flush(); Parameters None. Exceptions thrown NS_BASE_STREAM_WOULD_BLOCK Indicates that flushing the output stream would block the calling thread for an indeterminate amount of time. This exception may only be thrown if isNonBlocking() returns true. isNonBlocking() Note: Writing to a blocking output stream will block the calling thread until all given data can be consumed by the stream. Note: A non-blocking output...
... isNonBlocking() Note: Writing to a blocking output stream will block the calling thread until all given data can be consumed by the stream. Note: A non-blocking output stream may implement nsIAsyncOutputStream to provide consumers with a way to wait for the stream to accept more data once its write() method is unable to accept any data without blocking. boolean isNonBlocking(); Parameters None. Return value true if stream is non-blocking. Exceptions thrown NS_BASE_STREAM_WOULD_BLOCK A non-blocking stream may throw this exception when written to if space for the data is not immediately available. write() This method copies data from a buffer into the stream. Note: Though this method is scriptable, JavaScript code must only pass an ASCII character string as the aBuf parameter.
nsIPlacesView
playing Places information using views for examples. selectedNode nsINavHistoryResultNode The selected node in the view. If there are multiple selected nodes, this is null. Read only. Methods getDragableSelection() Returns an array of selected nsINavHistoryResultNode objects that can be dragged from the view. nsINavHistoryResultNode[] getDragableSelection(); Parameters None. Return value An array of nsINavHistoryResultNode objects. getRemovableSelectionRanges() Returns an array whose elements are themselves arrays of nsINavHistoryResultNode objects that can be removed from the view. Each inner array represents a contiguous range of nodes that can be removed. nsINavHistoryResultNode[][] getRemovableSelectionRanges(); Parameters None. Return value An array o...
...Node objects that can be removed from the view. Each inner array represents a contiguous range of nodes that can be removed. nsINavHistoryResultNode[][] getRemovableSelectionRanges(); Parameters None. Return value An array of arrays of nsINavHistoryResultNode objects. getResult() Returns the nsINavHistoryResult object that the view displays. nsINavHistoryResult getResult(); Parameters None. Return value The nsINavHistoryResult object that the view displays. getResultNode() Returns the root node, an nsINavHistoryContainerResultNode object, of the view's result. nsINavHistoryContainerResultNode getResultNode(); Paramters None. Return value The root nsINavHistoryContainerResultNode of the view's result. getSelectionNodes() Returns an array of all currently selected nsINavH...
...one. Return value The root nsINavHistoryContainerResultNode of the view's result. getSelectionNodes() Returns an array of all currently selected nsINavHistoryResultNode objects of the view. The nodes are not necessarily returned in the same order in which they occur in the model, or in the same container, or from the same provider. nsINavHistoryResultNode[] getSelectionNodes(); Parameters None. Return value An array of nsINavHistoryResultNode objects that are selected. selectAll() Selects all the nodes displayed in the view. void selectAll(); Parameters None. See also Displaying Places information using views ...
nsIPluginHost
string aPostDataURL, out string aTmpFileName ); Parameters aPostDataURL aTmpFileName Native code only!deletePluginNativeWindow Deletes plugin native window object created by NewPluginNativeWindow(). void deletePluginNativeWindow( in nsPluginNativeWindowPtr aPluginNativeWindow ); Parameters aPluginNativeWindow Native code only!destroy void destroy(); Parameters None. Native code only!findProxyForURL Fetches a URL. (Corresponds to NPN_GetURL and NPN_GetURLNotify.) Posts to a URL with post data and/or post headers. (Corresponds to NPN_PostURL and NPN_PostURLNotify.) Returns the proxy info for a given URL. The caller is required to free the resulting memory with nsIMalloc.Free(). The result will be in the following format. "DIRECT" -- no proxy "PROX...
...oid getPluginTags( out unsigned long aPluginCount, Optional [retval, array, size_is(aPluginCount)] out nsIPluginTag aResults ); Parameters aPluginCount Optional aResults Native code only!handleBadPlugin void handleBadPlugin( in PRLibraryPtr aLibrary, in nsIPluginInstance instance ); Parameters aLibrary instance Native code only!init void init(); Parameters None. Native code only!instantiateDummyJavaPlugin Instantiate a "dummy" java plugin if a java plugin that supports NPRuntime is installed. This plugin is used for exposing window.java and window.Packages. If the java plugin supports NPRuntime and instantiation was successful, aOwners instance will be non-null, if not, it will be null. void instantiateDummyJavaPlugin( in nsIPluginInstanceOwner a...
...ner Return value Native code only!isPluginEnabledForExtension void isPluginEnabledForExtension( in string aExtension, in constCharStarRef aMimeType ); Parameters aExtension aMimeType Native code only!isPluginEnabledForType void isPluginEnabledForType( in string aMimeType ); Parameters aMimeType Native code only!loadPlugins void loadPlugins(); Parameters None. Native code only!newPluginNativeWindow Creates a new plugin native window object. void newPluginNativeWindow( out nsPluginNativeWindowPtr aPluginNativeWindow ); Parameters aPluginNativeWindow Native code only!parsePostBufferToFixHeaders This method parses post buffer to find out case insensitive "Content-length" string and CR or LF some where after that, then it assumes there...
nsISessionStore
ClosedWindow() nsIDOMNode forgetClosedWindow( in unsigned long aIndex ); Parameters aIndex Is the index of the closed window to be removed (FIFO ordered). Return value Exceptions thrown NS_ERROR_INVALID_ARG When aIndex does not map to a closed window. getBrowserState() Returns the current state of all of windows and all of their tabs. AString getBrowserState(); Parameters None. Return value A JSON string representing the current state of all windows in the web browser. getClosedTabCount() Returns the number of restorable tabs for a given window. unsigned long getClosedTabCount( in nsIDOMWindow aWindow ); Parameters aWindow The window whose restorable tab count should be returned. Return value The number of restorable tabs in the window. getClosedTabDat...
...The browser window whose closed tab list is to be retrieved. Return value A JSON string representing the list of closed tabs for the window specified by aWindow. The list is in last in/first out (LIFO) order, so that the first item in the list is the last tab that was closed. getClosedWindowCount() Returns the number of restorable windows. unsigned long getClosedWindowCount(); Parameters None. Return value The number of restorable windows. getClosedWindowData() Returns a list of closed windows. AString getClosedWindowData(); Parameters None. Return value A JSON string representing the list of closed windows. The list is in last in/first out (LIFO) order, so that the first item in the list is the last window that was closed. getTabState() Returns the state of the specified ...
... the current session. Instead the previous session will be merged into the current session. Current windows will be reused if they were windows that pinned tabs were previously restored into. New windows will be opened as needed. Note: This will throw if there is no previous state to restore. Check with canRestoreLastSession first to avoid thrown errors. void restoreLastSession(); Parameters None. setBrowserState() Sets the current browsing state. Note: Calling setBrowserState immediately replaces the current session, restoring the state of the entire application to the state passed in the aState parameter. void setBrowserState( in AString aState ); Parameters aState A JSON string representing the session state to use. setTabState() Sets the state of the specified tab. voi...
nsITreeColumns
eColumn getColumnAt( in long index ); Parameters index Index of the column Return value A nsITreeColumn for this index. getColumnFor() Get the column for a given element. nsITreeColumn getColumnFor( in nsIDOMElement element ); Parameters element A DOM element Return value A nsITreeColumn for this element. getFirstColumn() Get the first column. nsITreeColumn getFirstColumn(); Parameters None. Return value The first nsITreeColumn. getKeyColumn() Get the key column. nsITreeColumn getKeyColumn(); Parameters None. Return value The key nsITreeColumn. getLastColumn() Get the last column. nsITreeColumn getLastColumn(); Parameters None. Return value The last nsITreeColumn. getNamedColumn() Get a column for a given name. nsITreeColumn getNamedColumn( in AString id ); Parameters id A col...
...ey nsITreeColumn. getLastColumn() Get the last column. nsITreeColumn getLastColumn(); Parameters None. Return value The last nsITreeColumn. getNamedColumn() Get a column for a given name. nsITreeColumn getNamedColumn( in AString id ); Parameters id A column id Return value The nsITreeColumn for this id. getPrimaryColumn() Get the primary column. nsITreeColumn getPrimaryColumn(); Parameters None. Return value The primary nsITreeColumn. getSortedColumn() nsITreeColumn getSortedColumn(); Parameters None. Return value A nsITreeColumn. invalidateColumns() This method is called whenever a treecol is added or removed and the column cache needs to be rebuilt. void invalidateColumns(); Parameters None. restoreNaturalOrder() Restore the original order of the columns before the user moved them. ...
.... getSortedColumn() nsITreeColumn getSortedColumn(); Parameters None. Return value A nsITreeColumn. invalidateColumns() This method is called whenever a treecol is added or removed and the column cache needs to be rebuilt. void invalidateColumns(); Parameters None. restoreNaturalOrder() Restore the original order of the columns before the user moved them. void restoreNaturalOrder(); Parameters None. See also nsITreeColumn ...
nsITreeSelection
tSelection( in long index, in long count ); Parameters index Index of the change. count Number of rows changed. clearRange() Clears the range. void clearRange( in long startIndex, in long endIndex ); Parameters startIndex Index to clearing at. endIndex Index to stop clearing at. clearSelection() Clears the selection. void clearSelection(); Parameters None. getRangeAt() Returns two objects whose value properties represent the minimum and maximum indices of the given selection range. See the Tree Selection tutorial. void getRangeAt( in long i, out long min, out long max ); Parameters i Index of range to get (0 <= i < getRangeCount()) min Index of first object in range. max Index of last object in this range. Fo...
...e. See the Tree Selection tutorial. void getRangeAt( in long i, out long min, out long max ); Parameters i Index of range to get (0 <= i < getRangeCount()) min Index of first object in range. max Index of last object in this range. For single selections, min == max. getRangeCount() Returns a count of selection ranges. long getRangeCount(); Parameters None. Return value long - number of selection ranges invalidateSelection() Can be used to invalidate the selection. void invalidateSelection(); Parameters None. invertSelection() Inverts the selection. void invertSelection(); Parameters None. isSelected() Indicates whether or not the row at the specified index is part of the selection. boolean isSelected( in long index ); Parameters index ...
...ndex == startIndex. augment If true, the range is added to the selection without clearing out anything else. If false, everything is cleared except for the specified range. select() Deselect all rows and select the row at the specified index. void select( in long index ); Parameters index Index of the row to select. selectAll() Selects all rows. void selectAll(); Parameters None. timedSelect() Perform a timed select. void timedSelect( in long index, in long delay ); Parameters index Index of the row to select. delay Time in miliseconds to delay selection. toggleSelect() Toggle the selection state of the row at the specified index. void toggleSelect( in long index ); Parameters index Row to toggle. ...
nsIXPConnect
der Root JS objects held by aHolder. void addJSHolder( in voidPtr aHolder, in nsScriptObjectTracerPtr aTracer ); Parameters aHolder The object that hold the JS objects that should be rooted. aTracer Missing Description Exceptions thrown Missing Exception Missing Description clearAllWrappedNativeSecurityPolicies() void clearAllWrappedNativeSecurityPolicies(); Parameters None. Exceptions thrown Missing Exception Missing Description Native code only!createSandbox Create a sandbox for evaluating code in isolation using evalInSandboxObject(). nsIXPConnectJSObjectHolder createSandbox( in JSContextPtr cx, in nsIPrincipal principal ); Parameters cx A context to use when creating the sandbox object. principal The principal (or null to use the null prin...
...veWrappers ); Parameters aFilenamePrefix The UTF-8 filename prefix to match, which should end with a slash (/) character. aWantNativeWrappers Whether XPConnect should produce native wrappers for scripts whose paths begin with this prefix. Exceptions thrown Missing Exception Missing Description GarbageCollect() Trigger a JS garbage collection. void GarbageCollect(); Parameters None. Exceptions thrown Missing Exception Missing Description getCaller() Return the caller object of the current call from JS. [noscript,notxpcom] void getCaller( out JSContextPtr aJSContext, out JSObjectPtr aObject ); Parameters aJSContext Missing Description aObject Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Descript...
...rJSContext() void setSecurityManagerForJSContext( in JSContextPtr aJSContext, in nsIXPCSecurityManager aManager, in PRUint16 flags ); Parameters aJSContext Missing Description aManager Missing Description flags Missing Description Exceptions thrown Missing Exception Missing Description syncJSContexts() Deprecated do-nothing function. void syncJSContexts(); Parameters None. Exceptions thrown Missing Exception Missing Description Native code only!updateXOWs Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Performs an operation over all of |object|'s XOWs such as clearing their sc...
CData
row a TypeError exception if the value can't be converted. Methods available on all CData objects address() Returns a CData object of the pointer type ctypes.PointerType(dataObject.constructor) whose value points to the C object referred to by the object. This provides a way to get a pointer to the actual data of the C value represented by the CData object. CData address() Parameters None. Return value A CData object of the pointer type ctypes.PointerType(dataObject.constructor) whose value points to the C object referred to by the object. toSource() Returns the string "t(arg)", where t and arg are implementation-defined JavaScript expressions intended to represent the type of the CData object and its value, respectively. String toSource() Parameters None. Return value A...
...oduce a new CData object containing a copy of the original object. However, this only works if the object's type happens to be bound to an appropriate name in scope. In theory, in other words, the following JavaScript expression should return a copy of the original CData object: eval(dataObject.toSource()); toString() Returns a string identifying the data. String toString(); Parameters None. Return value A string identifying the data. Methods available on string objects These methods must be called on objects that are arrays or pointers to 8-bit or 16-bit character or integer types, terminated by a null character. readString() Converts a character array to a JavaScript string. 8-bit strings are assumed to be encoded as UTF-8. If the 8-bit string contains invalid encoded char...
... objects These methods must be called on objects that are arrays or pointers to 8-bit or 16-bit character or integer types, terminated by a null character. readString() Converts a character array to a JavaScript string. 8-bit strings are assumed to be encoded as UTF-8. If the 8-bit string contains invalid encoded character, a TypeError exception is thrown. String readString(); Parameters None. Return value A new String object that is a copy of the original string contents. readStringReplaceMalformed() Converts a character array to a JavaScript string. 8-bit strings are assumed to be encoded as UTF-8. If the 8-bit string contains invalid encoded character, no exception is thrown. String readStringReplaceMalformed(); Parameters None. Return value A new String object that is ...
AudioBufferSourceNode - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="151" y="1" width="90" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a><polyline points=...
...E4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="151" y="1" width="90" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a><polyline points="241,25 251,20 251,30 241,25" stroke="#D4DDE4" fill="none"/><line x1="251" y1="25" x2="281" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioScheduledSourceNode" target="_top"><rect x="281" y="1" width="240" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioScheduledSourceN...
...PI/AudioScheduledSourceNode" target="_top"><rect x="281" y="1" width="240" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="401" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioScheduledSourceNode</text></a><polyline points="521,25 531,20 531,30 521,25" stroke="#D4DDE4" fill="none"/><line x1="531" y1="25" x2="561" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioBufferSourceNode" target="_top"><rect x="561" y="1" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="666" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioBufferSourceNode...
CSSValueList - Web APIs
The items in the CSSValueList are accessible via an integral index, starting from 0. ...
... The items in the CSSValueList are accessible via an integral index, starting from 0. ...
...MinYMin meet"><a xlink:href="/docs/Web/API/CSSValue" target="_top"><rect x="1" y="1" width="80" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="41" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CSSValue</text></a><polyline points="81,25 91,20 91,30 81,25" stroke="#D4DDE4" fill="none"/><line x1="91" y1="25" x2="121" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CSSValueList" target="_top"><rect x="121" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="181" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CSSValueList</text></a></svg></...
Pixel manipulation with canvas - Web APIs
e color. ...
...grayscalebtn" value="Grayscale" type="button"> <input id="invertbtn" value="Invert" type="button"> </div> var img = new Image(); img.src = 'https://mdn.mozillademos.org/files/5397/rhino.jpg'; img.onload = function() { draw(this); }; function draw(img) { var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); ctx.drawImage(img, 0, 0); img.style.display = 'none'; var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height); var data = imageData.data; var invert = function() { for (var i = 0; i < data.length; i += 4) { data[i] = 255 - data[i]; // red data[i + 1] = 255 - data[i + 1]; // green data[i + 2] = 255 - data[i + 2]; // blue } ctx.putImageData(imageData, 0, 0); }; var grayscale = function() ...
...type="checkbox" name="smoothbtn" checked="checked" id="smoothbtn"> Enable image smoothing </label> </div> var img = new Image(); img.src = 'https://mdn.mozillademos.org/files/5397/rhino.jpg'; img.onload = function() { draw(this); }; function draw(img) { var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); ctx.drawImage(img, 0, 0); img.style.display = 'none'; var zoomctx = document.getElementById('zoom').getContext('2d'); var smoothbtn = document.getElementById('smoothbtn'); var toggleSmoothing = function(event) { zoomctx.imageSmoothingEnabled = this.checked; zoomctx.mozImageSmoothingEnabled = this.checked; zoomctx.webkitImageSmoothingEnabled = this.checked; zoomctx.msImageSmoothingEnabled = this.checked; }; smoothbtn.addE...
Using images - Web APIs
s head and composite it into a picture frame. The picture frame image is a 24-bit PNG which includes a drop shadow. Because 24-bit PNG images include a full 8-bit alpha channel, unlike GIF and 8-bit PNG images, it can be placed onto any background without worrying about a matte color. ...
...4, 124, 21, 20, 87, 104); // Draw frame ctx.drawImage(document.getElementById('frame'), 0, 0); } We took a different approach to loading the images this time. Instead of loading them by creating new HTMLImageElement objects, we included them as <img> tags directly in our HTML source and retrieved the images from those. The images are hidden from output by setting the CSS property display to none for those images. ScreenshotLive sample The script itself is very simple. Each <img> is assigned an ID attribute, which makes them easy to select using document.getElementById(). We then simply use drawImage() to slice the rhino out of the first image and scale him onto the canvas, then draw the frame on top using a second drawImage() call. Art gallery example In the final example of this cha...
...udn.realityripple.com/samples/b7/86ecdc3e8d.jpg"></td> </tr> </table> <img id="frame" src="https://udn.realityripple.com/samples/57/952c634159.png" width="132" height="150"> </body> </html> And here's some CSS to make things look nice: body { background: 0 -100px repeat-x url(https://mdn.mozillademos.org/files/5415/bg_gallery.png) #4F191A; margin: 10px; } img { display: none; } table { margin: 0 auto; } td { padding: 15px; } Tying it all together is the JavaScript to draw our framed images: function draw() { // Loop through all images for (var i = 0; i < document.images.length; i++) { // Don't add a canvas for the frame image if (document.images[i].getAttribute('id') != 'frame') { // Create canvas element canvas = document.createEl...
Comment - Web APIs
Web › API › Comment
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polylin...
...link:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polyline points="396,25 406,20 406,30 396,25" stroke="#D4DDE4" fill="none"/><line x1="406" y1="25" x2="436" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Comment" target="_top"><rect x="436" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="473.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Comment</text></a></svg></div> ...
Document - Web APIs
Web › API › Document
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Document" target="_top"><rect x="266" y="1" width="80" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Document</text></a></svg></div> ...
... Returns the number of children of this ParentNode which are elements. ParentNode.children Read only Returns a live HTMLCollection containing all of the Element objects that are children of this ParentNode, omitting all of its non-element nodes. ParentNode.firstElementChild Read only Returns the first node which is both a child of this ParentNode and is also an Element, or null if there is none. ParentNode.lastElementChild Read only Returns the last node which is both a child of this ParentNode and is an Element, or null if there is none. Extensions for HTMLDocument The Document interface for HTML documents inherits from the HTMLDocument interface or, since HTML5, is extended for such documents. Document.cookie Returns a semicolon-separated list of the cookies for that documen...
DocumentFragment - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/DocumentFragment" target="_top"><rect x="266" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="346" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">DocumentFragment</text></a...
...fic properties, but inherits those of its parent, Node, and implements those of the ParentNode interface. ParentNode.children Read only Returns a live HTMLCollection containing all objects of type Element that are children of the DocumentFragment object. ParentNode.firstElementChild Read only Returns the Element that is the first child of the DocumentFragment object, or null if there is none. ParentNode.lastElementChild Read only Returns the Element that is the last child of the DocumentFragment object, or null if there is none. ParentNode.childElementCount Read only Returns an unsigned long giving the amount of children that the DocumentFragment has. Methods This interface inherits the methods of its parent, Node, and implements those of the ParentNode interface. Docum...
DocumentType - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/DocumentType" target="_top"><rect x="266" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">DocumentType</text></a></svg><...
... a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits properties from its parent, Node, and implements the ChildNode interface. DocumentType.entities Read only A NamedNodeMap of entities declared in the DTD. Every node in this map implements the Entity interface. DocumentType.internalSubset Read only A DOMString of the internal subset, or null if there is none. Eg "<!ELEMENT foo (bar)>". DocumentType.name Read only A DOMString, eg "html" for <!DOCTYPE HTML>. DocumentType.notations Read only A NamedNodeMap with notations declared in the DTD. Every node in this map implements the Notation interface. DocumentType.publicId Read only A DOMString, eg "-//W3C//DTD HTML 4.01//EN", empty string for HTML5. DocumentType.systemId Read only A DOMStrin...
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
enu items. Because they are blocks, many people expect that they will behave as such, but really they don't. If there is formatting whitespace between adjacent inline elements, this will result in space in the layout, just like the spaces between words in text. ...
...e marked so they are visible): .people-list { list-style-type: none; margin: 0; padding: 0; } .people-list li { display: inline-block; width: 2em; height: 2em; background: #f06; border: 1px solid; } <ul class="people-list">? oo<li></li>? oo<li></li>? oo<li></li>? oo<li></li>? oo<li></li>? ...
...re taking up -- useful if you are wondering what is causing the problem, and are maybe thinking you've got some extra margin in there or something! There are a few ways of getting around this problem: Use Flexbox to create the horizontal list of items instead of trying an inline-block solution. This handles everything for you, and is definitely the preferred solution: ul { list-style-type: none; margin: 0; padding: 0; display: flex; } If you need to rely on inline-block, you could set the font-size of the list to 0. This only works if your blocks are not sized with ems (based on the font-size, so the block size would also end up being 0). rems would be a good choice here: ul { font-size: 0; ... } li { display: inline-block; width: 2rem; height: 2rem; ... } Or you ...
GlobalEventHandlers.ontransitioncancel - Web APIs
The transition is stopped before it has run to completion, e.g. ...
...he delay period ends and the animation begins. Example In this example, we use the transitionrun and transitionend events to detect when the transition begins and ends, to cause a text update to occur during the transition. This could also be used to trigger animations or other effects, to allow chaining of reactions. In addition, we also use a click event to make the box dissappear (display: none;), showing how it triggers the transitioncancel event to fire. HTML This simply creates a <div> which we'll style with CSS below to make into a box that resizes and changes color and such. <div class="box"></div> CSS The CSS below styles the box and applies a transition effect which makes the box's color and size change, and causes the box to rotate, while the mouse cursor hovers over it. ...
...ransform: rotate(180deg); } JavaScript Next, we need to establish our event handlers to change the text content of the box when the transition begins and ends. let box = document.querySelector(".box"); box.ontransitionrun = function(event) { box.innerHTML = "Zooming..."; } box.ontransitionend = function(event) { box.innerHTML = "Done!"; } box.onclick = function() { box.style.display = 'none'; timeout = window.setTimeout(appear, 2000); function appear() { box.style.display = 'block'; } } box.ontransitioncancel = function(event) { console.log('transitioncancel fired after ' + event.elapsedTime + ' seconds.'); } Result The resulting content looks like this: Notice what happens when you hover your mouse cursor over the box, then move it away. Also note the log that ap...
HTMLCanvasElement.toDataURL() - Web APIs
ataURL('image/jpeg', 0.1); Example: Dynamically change images You can use this technique in coordination with mouse events in order to dynamically change images (gray-scale vs. ...
...nge images (gray-scale vs. ...
... Living Standard No change since the latest snapshot, HTML5 HTML 5.1The definition of 'HTMLCanvasElement.toDataURL' in that specification. Recommendation...
HTMLDocument - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Document" target="_top"><rect x="266" y="1" width="80" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Document</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Document" target="_top"><rect x="266" y="1" width="80" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Document</text></a><polyline points="346,25 356,20 356,30 346,25" stroke="#D4DDE4" fill="none"/><line x1="356" y1="25" x2="386" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLDocument" target="_top"><rect x="386" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="446" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLDocument</text></a></svg><...
HTMLElement: animationcancel event - Web APIs
t can be added by setting the onanimationcancel property, or using addEventListener(). Bubbles Yes Cancelable No Interface AnimationEvent Event handler property onanimationcancel Examples This code gets an element that's currently being animated and adds a listener to the animationcancel event. ...
... Examples This code gets an element that's currently being animated and adds a listener to the animationcancel event. It then sets the element's display property to none, which will trigger the animationcancel event. ...
....querySelector('.animated'); animated.addEventListener('animationcancel', () => { console.log('Animation canceled'); }); animated.style.display = 'none'; The same, but using the onanimationcancel property instead of addEventListener(): const animated = document.querySelector('.animated'); animated.onanimationcancel = () => { console.log('Animation canceled'); }; animated.style.display = 'none'; Live example HTML <div class="animation-example"> <div class="container"> <p class="animation">You chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">Activate animation</button> <div class="event-log"></div> </div> CSS .container { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; mar...
HTMLElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a></svg></d...
MouseEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="19...
...DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MouseEvent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MouseEvent</text></a></svg></div...
... Working Draft Redefines MouseEvent from long to double. This means that ...
Using the Payment Request API - Web APIs
.show() method on it to initiate the payment request. This returns a promise that fulfills with a PaymentResponse object if the payment is successful: request.show().then(function(paymentResponse) { // Here we would process the payment. For this demo, simulate immediate success: paymentResponse.complete('success') .then(function() { // For demo purposes: introPanel.style.display = 'none'; successPanel.style.display = 'block'; }); }) This object provides the developer with access to details they can use to complete the logical steps required after the payment completes, such as an email address to contact the customer, a shipping address for mailing goods out to them, etc. In the code above, you'll see that we've called the PaymentResponse.complete() method to signal that ...
...er('click', function() { var request = new PaymentRequest(buildSupportedPaymentMethodData(), buildShoppingCartDetails()); request.show().then(function(paymentResponse) { // Here we would process the payment. ...
...emo purposes: introPanel.style.display = 'none'; successPanel.style.display = 'block'; }); }).catch(function(error) { if (error.code == DOMException.NOT_SUPPORTED_ERR) { window.location.href = 'https://bobpay.xyz/#download'; } else { // Other kinds of errors; cancelled or failed payment. For demo purposes: introPanel.style.display = 'none'; legacyPanel.style.display = 'block'; } }); }); Note: See our Recommending a payment app when user has no apps demo for the full code. Showing additional user interface after successful payments If the merchant desires to collect additional information not part of the API (e.g., additional delivery instructions), the merchant can show a page with additional <input type="text"> f...
ProcessingInstruction - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polylin...
...link:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polyline points="396,25 406,20 406,30 396,25" stroke="#D4DDE4" fill="none"/><line x1="406" y1="25" x2="436" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ProcessingInstruction" target="_top"><rect x="436" y="1" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="541" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ProcessingInstruction...
RTCDTMFSender: tonechange event - Web APIs
Interface RTCDTMFToneChangeEvent Event handler property ontonechange To determine what tone started playing, or if a tone stopped playing, check the value of the event's tone property. ...
...heck the value of the event's tone property. Examples This example establishes a handler for the tonechange event which updates an element to display the currently playing tone in its content, or, if all tones have played, the string "<none>". ...
... Candidate Recommendation Definition for the WebRTC API ...
SVGElement - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGElement" target="_top"><rect x="381" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="431" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a></svg></div...
SyncEvent - Web APIs
Web › API › SyncEvent
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="150" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a><poly...
...:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="150" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a><polyline points="266,25 276,20 276,30 266,25" stroke="#D4DDE4" fill="none"/><line x1="276" y1="25" x2="306" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SyncEvent" target="_top"><rect x="306" y="1" width="90" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="351" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SyncEvent</text></a></svg></div> ...
... ...
Text - Web APIs
Web › API › Text
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polylin...
...link:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a><polyline points="396,25 406,20 406,30 396,25" stroke="#D4DDE4" fill="none"/><line x1="406" y1="25" x2="436" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Text" target="_top"><rect x="436" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="473.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Text</text></a></svg></div> a:hov...
WheelEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="19...
...DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MouseEvent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MouseEvent</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/MouseEvent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MouseEvent</text></a><polyline points="331,25 341,20 341,30 331,25" stroke="#D4DDE4" fill="none"/><line x1="341" y1="25" x2="371" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/WheelEvent" target="_top"><rect x="371" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="421" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">WheelEvent</text></a></svg></div...
XMLDocument - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Document" target="_top"><rect x="266" y="1" width="80" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Document</text></a><polyline points="3...
...DDE4"/><a xlink:href="/docs/Web/API/Document" target="_top"><rect x="266" y="1" width="80" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Document</text></a><polyline points="346,25 356,20 356,30 346,25" stroke="#D4DDE4" fill="none"/><line x1="356" y1="25" x2="386" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/XMLDocument" target="_top"><rect x="386" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="441" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">XMLDocument</text></a></svg></d...
ARIA: alert role - Accessibility
st important thing to know about the alert role is that it is for dynamic content. It is perfect for situations such as when a user fills out a form and JavaScript is used to add an error message - the alert would immediately read out the message. It should not be used on HTML where the user hasn't interacted with it. ...
...to add an error message - the alert would immediately read out the message. It should not be used on HTML where the user hasn't interacted with it. For example, if a page loads with multiple visible alerts scattered throughout, none would be read because they are not dynamically triggered. Examples The most basic way to trigger an alert is by adding role="alert" to an element that has display: none; by default. When the display value is changed with CSS or JavaScript, it would automatically trigger the screen reader to read out the content. ...
...ultiple visible alerts scattered throughout, none would be read because they are not dynamically triggered. Examples The most basic way to trigger an alert is by adding role="alert" to an element that has display: none; by default. When the display value is changed with CSS or JavaScript, it would automatically trigger the screen reader to read out the content. <p role="alert" style="display: none;">The alert will trigger when the element becomes visible.</p> While triggering an alert via CSS alone is possible, it is better to rely on JavaScript because it has more browser/screen reader support and is often more appropriate as part of a larger user interaction such as inside an event handler or form validation. With JavaScript, developers control the adding and removing of alerts as appro...
ARIA: switch role - Accessibility
s that are descendants of an element with the switch role applied to it are automatically assigned role presentation. This prevents elements that are used to construct the switch from being interacted with individually by assistive technologies. Text in these elements remains visible to the user agent and may be read or otherwise delivered to the user, unless it's expressly hidden using display: none or aria-hidden="true". The assistive technology, if it supports the switch role, responds by doing the following: Screen readers should announce the element as a switch, optionally providing instructions as to how to activate the switch. There are varying opinions on how assistive technologies should handle this role; the above is a suggested practice and may differ from other sources. ...
...look and feel for the switch that's reminiscent of the power switch paradigm. ...
...ding: 0 4px; pointer-events: none; } [role="switch"][aria-checked="false"] :first-child, [role="switch"][aria-checked="true"] :last-child { background: #262; color: #eef; } [role="switch"][aria-checked="false"] :last-child, [role="switch"][aria-checked="true"] :first-child { color: #bbd; } label.switch { font: 16px "Open Sans", "Arial", sans-serif; line-height: 20px; user-select: none; vertical-align: middle; -moz-user-select: none; -ms-user-select: none; -webkit-user-select: none; -o-user-select: none; } The most interesting part is probably the use of attribute selectors and the :first-child and :last-child pseudo-classes to do all the heavy lifting of changing the appearance of the switch based on whether it's on or off. Result The result looks like this: Sp...
-moz-user-focus - CSS: Cascading Style Sheets
element can have the focus. /* Keyword values */ -moz-user-focus: normal; -moz-user-focus: ignore; /* Global values */ -moz-user-focus: inherit; -moz-user-focus: initial; -moz-user-focus: unset; By setting its value to ignore, you can disable focusing the element, which means that the user will not be able to activate the element. The element will be skipped in the tab sequence. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Note: This property doesn't work for XUL <xul:textbox> elements, because the textbox itself never takes focus. Instead, XBL creates an anonymous HTML <input> element inside the textbox, and that element is what receives focus. You can stop the textbox from taking keyboard focus by setting its tab index to -1, and fr...
...the textbox from taking keyboard focus by setting its tab index to -1, and from taking mouse focus by preventing the default action of mousedown events. Syntax Values ignore The element does not accept the keyboard focus and will be skipped in the tab order. normal The element can accept the keyboard focus. ...
...setting its tab index to -1, and from taking mouse focus by preventing the default action of mousedown events. Syntax Values ignore The element does not accept the keyboard focus and will be skipped in the tab order. normal The element can accept the keyboard focus. select-after ? select-before ? select-menu ? select-same ? select-all ? none ? Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax ignore | normal | select-after | select-before | select-menu | select-same | select-all | none Examples HTML <input class="ignored" value="The user cannot focus on this element."> CSS .ignored { -moz-user-focus: ignore; } Specifications Not part of any standard. A similar property, user-focu...
-moz-user-input - CSS: Cascading Style Sheets
In Mozilla applications, -moz-user-input determines if an element will accept user input. /* Keyword values */ -moz-user-input: none; -moz-user-input: enabled; -moz-user-input: disabled; /* Global values */ -moz-user-input: inherit; -moz-user-input: initial; -moz-user-input: unset; For elements that normally take user input, such as a <textarea>, the initial value of -moz-user-input is enabled. Note: -moz-user-input was one of the proposals leading to the proposed CSS 3 user-input property, which has not yet reached Candidate Recommendation (call for implementations). ...
...ea>, the initial value of -moz-user-input is enabled. Note: -moz-user-input was one of the proposals leading to the proposed CSS 3 user-input property, which has not yet reached Candidate Recommendation (call for implementations). A similar property, user-focus, was proposed in early drafts of a predecessor of the CSS3 UI specification, but was rejected by the working group. Syntax Values none The element does not respond to user input, and it does not become :active. enabled The element accepts user input. For textboxes, this is the default behavior. Please note that this value is no longer supported in Firefox 60 onwards (bug 1405087). disabled The element does not accept user input. However, this is not the same as setting disabled to true, in that the element is drawn normally...
...rds (bug 1405087). disabled The element does not accept user input. However, this is not the same as setting disabled to true, in that the element is drawn normally. Please note that this value is no longer supported in Firefox 60 onwards (bug 1405087). Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | none | enabled | disabled Examples Disabling user input for an element input.example { /* The user will be able to select the text, but not change it. */ -moz-user-input: disabled; } Specifications Not part of any standard. ...
::-webkit-meter-bar - CSS: Cascading Style Sheets
The ::-webkit-meter-bar CSS pseudo-class is a WebKit extension that represents the meter bar in a <meter> element. ...
... The ::-webkit-meter-bar CSS pseudo-class is a WebKit extension that represents the meter bar in a <meter> element. ...
... The ::-webkit-meter-bar CSS pseudo-class is a WebKit extension that represents the meter bar in a <meter> element. ...
::-webkit-meter-inner-element - CSS: Cascading Style Sheets
al markup to render the meter element as read-only. Syntax ::-webkit-meter-inner-element Specifications Not part of any standard. ...
...eter element as read-only. Syntax ::-webkit-meter-inner-element Specifications Not part of any standard. ...
...-only. Syntax ::-webkit-meter-inner-element Specifications Not part of any standard. ...
height - CSS: Cascading Style Sheets
Web › CSS › @viewport › height
he other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively. Must be non-negative. Formal definition Related at-rule@viewportInitial valueas each of the properties of the shorthand:min-height: automax-height: nonePercentagesas each of the properties of the shorthand:min-height: The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as 0.max-height: The percentage is calculated with res...
... on content height), and this element is not absolutely positioned, the percentage value is treated as 0.max-height: The percentage is calculated with respect to the height of the generated box's containing block. ...
...box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as none.Computed valueas each of the properties of the shorthand:min-height: the percentage as specified or the absolute lengthmax-height: the percentage as specified or the absolute length or none Formal syntax <viewport-length>{1,2}where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> Examples Setting minimum and maximum height @viewport { height: 500px; } Specifications Specification Status Comment CSS Device AdaptationThe definition of '"height" descriptor' in that specification. Working Draft I...
Using CSS transforms - CSS: Cascading Style Sheets
and the cube itself, as well as each of its faces. ...
...ive: 650px; } /* Define the container div, the cube div, and a generic face */ .container { width: 200px; height: 200px; margin: 75px 0 0 75px; border: none; } .cube { width: 100%; height: 100%; backface-visibility: visible; perspective-origin: 150% 150%; transform-style: preserve-3d; } .face { display: block; position: absolute; width: 100px; height: 100px; border: none; line-height: 100px; font-family: sans-serif; font-size: 60px; color: white; text-align: center; } /* Define each face based on direction */ .front { background: rgba(0, 0, 0, 0.3); transform: translateZ(50px); } .back { background: rgba(0, 255, 0, 1); color: black; transform: rotateY(180deg) translateZ(50px); } .right { background: rgba(196, 0, 0, 0.7); transform: rota...
...ve-origin: bottom left; } .pobm { perspective-origin: bottom; } .pobr { perspective-origin: bottom right; } .po200200neg { perspective-origin: -200% -200%; } .po200200pos { perspective-origin: 200% 200%; } .po200200 { perspective-origin: 200% -200%; } /* Define the container div, the cube div, and a generic face */ .container { width: 100px; height: 100px; margin: 24px; border: none; } .cube { width: 100%; height: 100%; backface-visibility: visible; perspective: 300px; transform-style: preserve-3d; } .face { display: block; position: absolute; width: 100px; height: 100px; border: none; line-height: 100px; font-family: sans-serif; font-size: 60px; color: white; text-align: center; } /* Define each face based on direction */ .front { backgrou...
animation-name - CSS: Cascading Style Sheets
ply to the element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. It is often convenient to use the shorthand property animation to set all animation properties at once. Syntax /* Single animation */ animation-name: none; animation-name: test_05; animation-name: -specific; animation-name: sliding-vertically; /* Multiple animations */ animation-name: test1, animation4; animation-name: none, -moz-specific, sliding; /* Global values */ animation-name: initial animation-name: inherit animation-name: unset Values none A special keyword denoting no keyframes. It can be used to deactivate an animation without cha...
... identifiers, or to deactivate animations coming from the cascade. <custom-ident> A name identifying the animation. This identifier is composed of a combination of case-sensitive letters a to z, numbers 0 to 9, underscores (_), and/or dashes (-). The first non-dash character must be a letter. Also, two dashes are forbidden at the beginning of the identifier. ...
...ifier. Furthermore, the identifier can't be none, unset, initial, or inherit. Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial valuenoneApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ none | <keyframes-name> ]#where <keyframes-name> = <custom-ident> | <string> Examples See CSS animations for examples. Specifications Specification Status Comment CSS AnimationsThe definition of 'animation-name' in that specificat...
backdrop-filter - CSS: Cascading Style Sheets
The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent. ...
...backdrop-filter: grayscale(30%); backdrop-filter: hue-rotate(120deg); backdrop-filter: invert(70%); backdrop-filter: opacity(20%); backdrop-filter: sepia(90%); backdrop-filter: saturate(80%); /* Multiple filters */ backdrop-filter: url(filters.svg#filter) blur(4px) saturate(150%); /* Global values */ backdrop-filter: inherit; backdrop-filter: initial; backdrop-filter: unset; Syntax Values none No filter is applied to the backdrop. <filter-function-list> A space-separated list of <filter-function>s or an SVG filter that will be applied to the backdrop. Formal definition Initial valuenoneApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoComputed valueas specifiedAnimation typea filter function list Forma...
...r is applied to the backdrop. <filter-function-list> A space-separated list of <filter-function>s or an SVG filter that will be applied to the backdrop. ...
cursor - CSS: Cascading Style Sheets
Web › CSS › cursor
alues */ cursor: inherit; cursor: initial; cursor: unset; The cursor property is specified as zero or more <url> values, separated by commas, followed by a single mandatory keyword value. Each <url> should point to an image file. The browser will try to load the first image specified, falling back to the next if it can't, and falling back to the keyword value if no images could be loaded (or if none were specified). Each <url> may be optionally followed by a pair of space-separated numbers, which represent <x><y> coordinates. These will set the cursor's hotspot, relative to the top-left corner of the image. For example, this specifies two images using <url> values, providing <x><y> coordinates for the second one, and falling back to the progress keyword value if neither image can be loaded...
...ve your mouse over values to see their live appearance in your browser: Category CSS value Example Description General auto The UA will determine the cursor to display based on the current context. E.g., equivalent to text when hovering text. default The platform-dependent default cursor. Typically an arrow. none No cursor is rendered. Links & status context-menu A context menu is available. help Help information is available. pointer The cursor is a pointer that indicates a link. Typically an image of a pointing hand. progress The program is busy in the background, but the user can still interact with the int...
... using images which are outside the size range supported by the browser will generally just be ignored. Check the Browser compatibility table for any notes on cursor size limits. ...
float - CSS: Cascading Style Sheets
Web › CSS › float
ormal flow of the page, though still remaining a part of the flow (in contrast to absolute positioning). The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. A floating element is one where the computed value of float is not none. As float implies the use of the block layout, it modifies the computed value of the display values, in some cases: Specified value Computed value inline block inline-block block inline-table table table-row block table-row-group block table-column block table-column-group block table-ce...
...nternet Explorer versions 8 and older using styleFloat. This was an exception to the rule, that the name of the DOM member is the camel-case name of the dash-separated CSS name (due to the fact that "float" is a reserved word in JavaScript, as seen in the need to escape "class" as "className" and escape <label>'s "for" as "htmlFor"). Syntax /* Keyword values */ float: left; float: right; float: none; float: inline-start; float: inline-end; /* Global values */ float: inherit; float: initial; float: unset; The float property is specified as a single keyword, chosen from the list of values below. Values left The element must float on the left side of its containing block. right The element must float on the right side of its containing block. none The element must not float. inline...
... containing block. none The element must not float. inline-start The element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts. inline-end The element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts. Formal definition Initial valuenoneApplies toall elements, but has no effect if the value of display is none.InheritednoComputed valueas specifiedAnimation typediscrete Formal syntax left | right | none | inline-start | inline-end Examples How floated elements are positioned As mentioned above, when an element is floated, it is taken out of the normal flow of the document (though still remaining part of it). It is shifted to th...
font-optical-sizing - CSS: Cascading Style Sheets
The font-optical-sizing CSS property sets whether text rendering is optimized for viewing at different sizes. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* keyword values */ font-optical-sizing: none; font-optical-sizing: auto; /* default */ /* Global values */ font-optical-sizing: inherit; font-optical-sizing: initial; font-optical-sizing: unset; Values none The browser will not modify the shape of glyphs for optimal viewing. auto The browser will modify the shape of glyphs for optimal viewing. Description Optical sizing is enabled by default for fonts that have an optical size variation ax...
...l sizing is used, small text sizes are often rendered with thicker strokes and larger serifs, whereas larger text is often rendered more delicately with more contrast between thicker and thinner strokes. Formal definition Initial valueautoApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | none Examples Disabling optical sizing <p class="optical-sizing">This paragraph is optically sized. This is the default across browsers.</p> <p class="no-optical-sizing">This paragraph is not optically sized. You should see a difference in supporting browsers.</p> @font-face { src: url('AmstelvarAlpha-VF.ttf'); font-family:'Amstelvar'; font-style: normal; } p { font-size: 36px; ...
...agraph is optically sized. This is the default across browsers.</p> <p class="no-optical-sizing">This paragraph is not optically sized. You should see a difference in supporting browsers.</p> @font-face { src: url('AmstelvarAlpha-VF.ttf'); font-family:'Amstelvar'; font-style: normal; } p { font-size: 36px; font-family: Amstelvar; } .no-optical-sizing { font-optical-sizing: none; } Note: The font referenced above -- which includes optical sizing and is freely-licensed -- is good for testing. You can download it on GitHub. Specifications Specification Status Comment CSS Fonts Module Level 4The definition of 'font-optical-sizing' in that specification. Working Draft ...
font-synthesis - CSS: Cascading Style Sheets
ty controls which missing typefaces, bold or italic, may be synthesized by the browser. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax This property can take any one of the following forms: The keyword value none. Either of the keyword values weight and style. Both the keyword values weight and style. Values none Indicates that neither bold nor italic typeface may be synthesized. weight Indicates that a bold typeface may be synthesized if needed. style Indicates that an italic typeface may be synthesized if needed. Description Most standard Western fonts include italic and bold variants, bu...
...gographic scripts tend not to include these variants, and synthesizing them may impede the legibility of the text. In these cases, it may be desirable to switch off the browser's default font-synthesis. Formal definition Initial valueweight styleApplies toall elements. ...
...ts. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | [ weight | style ] Examples Disabling font synthesis HTML <em class="syn">Synthesize me! ???</em> <br/> <em class="no-syn">Don't synthesize me! ???</em> CSS em { font-weight: bold; } .syn { font-synthesis: style weight; } .no-syn { font-synthesis: none; } Result Specifications Specification Status Comment CSS Fonts Module Level 3The definition of 'font-synthesis' in that specification. Candidate Recommendation Initial definition ...
grid-template-areas - CSS: Cascading Style Sheets
e examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Those areas are not associated with any particular grid item, but can be referenced from the grid-placement properties grid-row-start, grid-row-end, grid-column-start, grid-column-end, and their shorthands grid-row, grid-column, and grid-area. Syntax /* Keyword value */ grid-template-areas: none; /* <string> values */ grid-template-areas: "a b"; grid-template-areas: "a b b" "a c d"; /* Global values */ grid-template-areas: inherit; grid-template-areas: initial; grid-template-areas: unset; Values none The grid container doesn't define any named grid areas. <string>+ A row is created for every separate string listed, and a column is created for each cell in t...
...one The grid container doesn't define any named grid areas. <string>+ A row is created for every separate string listed, and a column is created for each cell in the string. Multiple named cell tokens within and between rows create a single named grid area that spans the corresponding grid cells. Unless those cells form a rectangle, the declaration is invalid. ...
...ate string listed, and a column is created for each cell in the string. Multiple named cell tokens within and between rows create a single named grid area that spans the corresponding grid cells. Unless those cells form a rectangle, the declaration is invalid. ...
hanging-punctuation - CSS: Cascading Style Sheets
The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box. ...
... or three values. One-value syntax uses any one of the keyword values in the list below. Two-value syntax uses one of the following: first together with any one of last, allow-end, or force-end last together with any one of first, allow-end, or force-end Three-value syntax uses one of the following: first, allow-end, and last first, force-end, and last Values none No character hangs. first An opening bracket or quote at the start of the first formatted line of an element hangs. last A closing bracket or quote at the end of the last formatted line of an element hangs. force-end A stop or comma at the end of a line hangs. allow-end A stop or comma at the end of a line hangs if it does not otherwise fit prior to justification. Formal definition In...
...ter hangs. first An opening bracket or quote at the start of the first formatted line of an element hangs. last A closing bracket or quote at the end of the last formatted line of an element hangs. force-end A stop or comma at the end of a line hangs. allow-end A stop or comma at the end of a line hangs if it does not otherwise fit prior to justification. Formal definition Initial valuenoneApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | [ first | [ force-end | allow-end ] | last ] Examples Setting opening and closing quotes to hang HTML <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur dignissim nunc mauris, et sollicitudin est scelerisque sed. Praesent laoreet tortor massa, sit amet vulputate nulla p...
mask-image - CSS: Cascading Style Sheets
The mask-image CSS property sets the image that is used as mask layer for an element. /* Keyword value */ mask-image: none; /* <mask-source> value */ mask-image: url(masks.svg#mask1); /* <image> values */ mask-image: linear-gradient(rgba(0, 0, 0, 1.0), transparent); mask-image: image(url(mask.png), skyblue); /* Multiple values */ mask-image: image(url(mask.png), skyblue), linear-gradient(rgba(0, 0, 0, 1.0), transparent); /* Global values */ mask-image: inherit; mask-image: initial; mask-image: unset; Syntax Values none This keyword is interpreted as a transparent black image layer. <mask-source> A <url> reference to a <mask> or to a CSS image. ...
...ge(url(mask.png), skyblue), linear-gradient(rgba(0, 0, 0, 1.0), transparent); /* Global values */ mask-image: inherit; mask-image: initial; mask-image: unset; Syntax Values none This keyword is interpreted as a transparent black image layer. <mask-source> A <url> reference to a <mask> or to a CSS image. <image> An image value used as mask image layer. ...
...ference to a <mask> or to a CSS image. <image> An image value used as mask image layer. ...
mask - CSS: Cascading Style Sheets
Web › CSS › mask
individual properties to override any mask settings earlier in the cascade. This will ensure that mask-border has also been reset to allow the new styles to take effect. ...
...clip. If two <geometry-box> values are present, then the first sets mask-origin and the second sets mask-clip. <geometry-box> | no-clip Sets the area that is affected by the mask image. See mask-clip. <compositing-operator> Sets the compositing operation used on the current mask layer. See mask-composite. ...
... or calcmask-clip: discretemask-origin: discretemask-size: repeatable list of simple list of length, percentage, or calcmask-composite: discreteCreates stacking contextyes Formal syntax <mask-layer>#where <mask-layer> = <mask-reference> | <position> [ / <bg-size> ]? | <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-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]<bg-size> = [ <length-percentage> | auto ]{1,2} | cover | contain<repeat-style> = repeat-x | repeat-y | [ repeat | spa...
outline-style - CSS: Cascading Style Sheets
he source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. It is often more convenient to use the shorthand property outline when defining the appearance of an outline. Syntax /* Keyword values */ outline-style: auto; outline-style: none; outline-style: dotted; outline-style: dashed; outline-style: solid; outline-style: double; outline-style: groove; outline-style: ridge; outline-style: inset; outline-style: outset; /* Global values */ outline-style: inherit; outline-style: initial; outline-style: unset; The outline-style property is specified as any one of the values listed below. Values auto Permits the user agent t...
...le: dashed; outline-style: solid; outline-style: double; outline-style: groove; outline-style: ridge; outline-style: inset; outline-style: outset; /* Global values */ outline-style: inherit; outline-style: initial; outline-style: unset; The outline-style property is specified as any one of the values listed below. Values auto Permits the user agent to render a custom outline style. none No outline is used. The outline-width is 0. dotted The outline is a series of dots. dashed The outline is a series of short line segments. solid The outline is a single line. double The outline is two single lines. The outline-width is the sum of the two lines and the space between them. groove The outline looks as though it were carved into the page. ridge ...
... them. groove The outline looks as though it were carved into the page. ridge The opposite of groove: the outline looks as though it were extruded from the page. inset The outline makes the box look as though it were embedded in the page. outset The opposite of inset: the outline makes the box look as though it were coming out of the page. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | <'border-style'> Examples Setting outline style to auto The auto value indicates a custom outline style -- typically a style [that] is either a user interface default for the platform, or perhaps a style that is richer than can be described in detail in CSS, e.g. a rounded edge outline with ...
Guide to scroll anchoring - CSS: Cascading Style Sheets
of the anchor node. If one node doesn't seem appropriate to be an anchor, you can exclude it using overflow-anchor, as described below. What if I need to disable it? The specification provides a new property, overflow-anchor, which can be used to disable scroll anchoring on all or part of the document. It's essentially a way to opt out of the new behavior. ...
...t? ...
...y possible values are auto or none: auto is the initial value; as long as the user has a supported browser the scroll anchoring behavior will happen, and they should see fewer content jumps. none means that you have explicitly opted the document, or part of the document, out of scroll anchoring. To opt out the entire document, you can set it on the <body> element: body { overflow-anchor: none; } To opt out a certain part of the document use overflow-anchor: none on its container element: .container { overflow-anchor: none; } Note: The specification details that once scroll anchoring has been opted out of, you cannot opt back into it from a child element. For example, if you opt out for the entire document, you will not be able to set overflow-anchor: auto elsewhere in the docume...
overscroll-behavior-block - CSS: Cascading Style Sheets
The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached. See overscroll-behavior for a full explanation. /* Keyword values */ overscroll-behavior-block: auto; /* default */ overscroll-behavior-block: contain; overscroll-behavior-block: none; /* Global values */ overscroll-behavior-block: inherit; overscroll-behavior-block: initial; overscroll-behavior-block: unset; Syntax The overscroll-behavior-block property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to n...
...-behavior-block property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. ...
...The outer box has a large height set on it so the page will scroll vertically. ...
overscroll-behavior-inline - CSS: Cascading Style Sheets
The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached. See overscroll-behavior for a full explanation. /* Keyword values */ overscroll-behavior-inline: auto; /* default */ overscroll-behavior-inline: contain; overscroll-behavior-inline: none; /* Global values */ overscroll-behavior-inline: inherit; overscroll-behavior-inline: initial; overscroll-behavior-inline: unset; Syntax The overscroll-behavior-inline property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining oc...
...behavior-inline property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. ...
...The outer box has a large width set on it so the page will scroll horizontally. ...
overscroll-behavior-x - CSS: Cascading Style Sheets
The overscroll-behavior-x CSS property sets the browser's behavior when the horizontal boundary of a scrolling area is reached. See overscroll-behavior for a full explanation. /* Keyword values */ overscroll-behavior-x: auto; /* default */ overscroll-behavior-x: contain; overscroll-behavior-x: none; /* Global values */ overscroll-behavior-x: inherit; overscroll-behavior-x: initial; overscroll-behavior-x: unset; Syntax The overscroll-behavior-x property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. und...
...roll-behavior-x property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. ...
...The outer box has a large width set on it so the page will scroll horizontally. ...
overscroll-behavior-y - CSS: Cascading Style Sheets
The overscroll-behavior-y CSS property sets the browser's behavior when the vertical boundary of a scrolling area is reached. See overscroll-behavior for a full explanation. /* Keyword values */ overscroll-behavior-y: auto; /* default */ overscroll-behavior-y: contain; overscroll-behavior-y: none; /* Global values */ overscroll-behavior-y: inherit; overscroll-behavior-y: initial; overscroll-behavior-y: unset; Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax The overscroll-behavior-y property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is ...
...roll-behavior-y property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. ...
...s to neighbouring scrolling areas, e.g. underlying elements will not scroll. none No scroll chaining occurs to neighbouring scrolling areas, and default scroll overflow behavior is prevented. Formal definition Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax contain | none | auto Examples Preventing an underlying element from scrolling vertically .messages { height: 220px; overflow: auto; overscroll-behavior-y: contain; } See overscroll-behavior for a full example and explanation. Specifications Specification Status Comment CSS Overscroll Behavior Module Level 1The definition of 'overscroll-behavior-y' in that specification.
resize - CSS: Cascading Style Sheets
Web › CSS › resize
The resize CSS property sets whether an element is resizable, and if so, in which directions. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* Keyword values */ resize: none; resize: both; resize: horizontal; resize: vertical; resize: block; resize: inline; /* Global values */ resize: inherit; resize: initial; resize: unset; The resize property is specified as a single keyword value from the list below. Values none The element offers no user-controllable method for resizing it. both The element displays a mechanism for allowing the user to resize it, which may be resized both horizontally and ve...
...nding on the writing-mode and direction value). inline The element displays a mechanism for allowing the user to resize it in the inline direction (either horizontally or vertically, depending on the writing-mode and direction value). resize does not apply to the following: Inline elements Block elements for which the overflow property is set to visible Formal definition Initial valuenoneApplies toelements with overflow other than visible, and optionally replaced elements representing images or videos, and iframesInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | both | horizontal | vertical | block | inline Examples Disabling resizability of textareas In many browsers, <textarea> elements are resizable by default. You may override this behavior ...
...In the example below, a resizable <div> contains a resizable paragraph (<p> element). ...
scrollbar-width - CSS: Cascading Style Sheets
The scrollbar-width property allows the author to set the maximum thickness of an element's scrollbars when they are shown. ...
...ar-width: initial; scrollbar-width: unset; Values <scrollbar-width> Defines the width of the scrollbar as a keyword. It must be one of the following values: auto The default scrollbar width for the platform. thin A thin scrollbar width variant on platforms that provide that option, or a thinner scrollbar than the default platform scrollbar width. none No scrollbar shown, however the element will still be scrollable. Note: User Agents must apply any scrollbar-width value set on the root element to the viewport. Accessibility concerns Use this property with caution -- setting scrollbar-width to thin or none can make content hard or impossible to scroll if the author does not provide an alternative scrolling mechanism. Whi...
...ed). MDN Understanding WCAG, Guideline 2.1 explanations MDN Understanding WCAG, Guideline 2.5 explanations Understanding Success Criterion 2.1.1 | W3C Understanding WCAG 2.1 Understanding Success Criterion 2.5.5 | W3C Understanding WCAG 2.1 Formal definition Initial valueautoApplies toscrolling boxesInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | thin | none Examples Sizing overflow scrollbars CSS .scroller { width: 300px; height: 100px; overflow-y: scroll; scrollbar-width: thin; } HTML <div class="scroller">Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic. Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava...
text-combine-upright - CSS: Cascading Style Sheets
aracter. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes. This is used to produce an effect that is known as tate-chu-yoko (???) in Japanese, or as ???? in Chinese. ...
... all Attempts to typeset all consecutive characters within the box horizontally, such that they take up the space of a single character within the vertical line of the box. ...
...the vertical line of the box. digits <integer>? Attempts to display a sequence of consecutive ASCII digits (U+0030-U+0039) that has as many or fewer characters than the specified integer, such that it takes up the space of a single character within the vertical line box. If the integer is omitted, it computes to 2. Integers outside the range of 2-4 are invalid. Formal definition Initial valuenoneApplies tonon-replaced inline elementsInheritedyesComputed valuespecified keyword, plus integer if 'digits'Animation typediscrete Formal syntax none | all | [ digits <integer>? ] Examples Digits The digits value requires less markup than the all value when digits are being combined, but it is currently not very widely supported by browsers. HTML <p lang="ja" class="exampleText">??20?4?16??<...
text-decoration-skip-ink - CSS: Cascading Style Sheets
ey pass over glyph ascenders and descenders. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. text-decoration-skip-ink is not part of the text-decoration shorthand. Syntax /* Single keyword */ text-decoration-skip-ink: none; text-decoration-skip-ink: auto; text-decoration-skip-ink: all; /* Global keywords */ text-decoration-skip: inherit; text-decoration-skip: initial; text-decoration-skip: unset; Values none Underlines and overlines are drawn across the full length of the text content, including parts that cross over glyph descenders and ascenders. auto The default -- the browser may interrupt underlines a...
...ph. all The browser must interrupt underlines and overlines so that they do not touch or closely approach a glyph. This can be helpful with certain Chinese, Japanese, or Korean (CJK) fonts, where the auto behavior might not create interruptions. ...
... Working Draft Initial definition ...
text-decoration-skip - CSS: Cascading Style Sheets
text-decoration-skip CSS property sets what parts of an element's content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors. Note: Most other browsers are converging on supporting the simpler text-decoration-skip-ink property. ...
...Thus, text decoration is drawn for all text content and across atomic inline-level boxes. objects The entire margin box of the element is skipped if it is an atomic inline such as an image or inline-block. spaces All spacing is skipped: all Unicode white space characters and all word separators, plus any adjacent letter-spacing or word-spacing. leading-spaces The same a...
...underlining is a form of punctuation.) box-decoration The text decoration is skipped over the box's margin, border, and padding areas. This only has an effect on decorations imposed by an ancestor; a decorating box never draws over its own box decoration. ...
text-decoration - CSS: Cascading Style Sheets
uest. Text decorations are drawn across descendant text elements. This means that if an element specifies a text decoration, then a child element can't remove the decoration. For example, in the markup <p>This text has <em>some emphasized words</em> in it.</p>, the style rule p { text-decoration: underline; } would cause the entire paragraph to be underlined. The style rule em { text-decoration: none; } would not cause any change; the entire paragraph would still be underlined. However, the rule em { text-decoration: overline; } would cause a second decoration to appear on "some emphasized words". Constituent properties This property is a shorthand for the following CSS properties: text-decoration-color text-decoration-line text-decoration-style text-decoration-thickness Syntax The...
...tion-color Sets the color of the decoration. text-decoration-style Sets the style of the line used for the decoration, such as solid, wavy, or dashed. text-decoration-thickness Sets the thickness of the line used for the decoration. Formal definition Initial valueas each of the properties of the shorthand:text-decoration-color: currentcolortext-decoration-style: solidtext-decoration-line: noneApplies toall elements. It also applies to ::first-letter and ::first-line.InheritednoComputed valueas each of the properties of the shorthand:text-decoration-line: as specifiedtext-decoration-style: as specifiedtext-decoration-color: computed colortext-decoration-thickness: as specifiedAnimation typeas each of the properties of the shorthand:text-decoration-color: a colortext-decoration-style: di...
...le: discretetext-decoration-line: discretetext-decoration-thickness: by computed value type Formal syntax <'text-decoration-line'> | <'text-decoration-style'> | <'text-decoration-color'> | <'text-decoration-thickness'> Examples .under { text-decoration: underline red; } .over { text-decoration: wavy overline lime; } .line { text-decoration: line-through; } .plain { text-decoration: none; } .underover { text-decoration: dashed underline overline; } .thick { text-decoration: solid underline purple 4px; } .blink { text-decoration: blink; } <p class="under">This text has a line underneath it.</p> <p class="over">This text has a line over it.</p> <p class="line">This text has a line going through it.</p> <p>This <a class="plain" href="#">link will not be underlined</a>, ...
text-emphasis - CSS: Cascading Style Sheets
osition. This is because if the style and the color of emphasis marks may vary in a text, it is extremely unlikely that their position will. In the very rare cases when this is needed, the property text-emphasis-position. Constituent properties This property is a shorthand for the following CSS properties: text-emphasis-color text-emphasis-style Syntax /* Initial value */ text-emphasis: none; /* No emphasis marks */ /* <string> value */ text-emphasis: 'x'; text-emphasis: '?'; text-emphasis: '\25B2'; text-emphasis: '*' #555; text-emphasis: 'foo'; /* Should NOT use. It may be computed to or rendered as 'f' only */ /* Keywords value */ text-emphasis: filled; text-emphasis: open; text-emphasis: filled sesame; text-emphasis: open sesame; /* Keywords value combined with a color */ text-...
...55; text-emphasis: 'foo'; /* Should NOT use. It may be computed to or rendered as 'f' only */ /* Keywords value */ text-emphasis: filled; text-emphasis: open; text-emphasis: filled sesame; text-emphasis: open sesame; /* Keywords value combined with a color */ text-emphasis: filled sesame #555; /* Global values */ text-emphasis: inherit; text-emphasis: initial; text-emphasis: unset; Values none No emphasis marks. filled The shape is filled with solid color. If neither filled nor open is present, this is the default. open The shape is hollow. dot Display small circles as marks. The filled dot is 'o' (U+2022), and the open dot is 'o' (U+25E6). circle Display large circles as marks. The filled circle is '?' (U+25CF), and the open circle is '?' (U+25CB). This is the default shape i...
...ape is given. <string> Display the given string as marks. Authors should not specify more than one character in <string>. The UA may truncate or ignore strings consisting of more than one grapheme cluster. <color> Defines the color of the mark. If no color is present, it defaults to currentcolor. ...
transition - CSS: Cascading Style Sheets
color 1s; /* Apply to all changed properties */ transition: all 0.5s ease-out; /* Global values */ transition: inherit; transition: initial; transition: unset; The transition property is specified as one or more single-property transitions, separated by commas. Each single-property transition describes the transition that should be applied to a single property (or the special values all and none). It includes: zero or one value representing the property to which the transition should apply. This may be any one of: the keyword none the keyword all a <custom-ident> naming a CSS property. zero or one <single-transition-timing-function> value representing the timing function to use zero, one, or two <time> values. The first value that can be parsed as a time is assigned...
...n-property: alltransition-timing-function: easeApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas each of the properties of the shorthand:transition-delay: as specifiedtransition-duration: as specifiedtransition-property: as specifiedtransition-timing-function: as specifiedAnimation typediscrete Formal syntax <single-transition>#where <single-transition> = [ none | <single-transition-property> ] | <time> | <timing-function> | <time>where <single-transition-property> = all | <custom-ident><timing-function> = linear | <cubic-bezier-timing-function> | <step-timing-function>where <cubic-bezier-timing-function> = ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number <a href="/docs/CSS/Value_definition_syntax#Brackets" title="Brackets: enclose several ...
... Specifications Specification Status Comment CSS TransitionsThe definition of 'transition' in that specification. Working Draft Initial definition ...
<img>: The Image Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › img
Image loading erro...
...e user, present it inline using one of the methods mentioned above instead of using title. Using the HTML title attribute - updated | The Paciello Group Technical summary Content categories Flow content, phrasing content, embedded content, palpable content. If the element has a usemap attribute, it also is a part of the interactive content category. Permitted content None, it is an empty element. Tag omission Must have a start tag and must not have an end tag. Permitted parents Any element that accepts embedded content. Implicit ARIA role with non-empty alt attribute or no alt attribute: img with empty alt attribute: no corresponding role Permitted ARIA roles with non-empty alt attribute...
... Candidate Recommendation Added the referrerpolicy attribute. HTML Living StandardThe definition of '<img>' in that ...
Content Security Policy (CSP) - HTTP
Web › HTTP › CSP
ure your web server to return the Content-Security-Policy HTTP header. (Sometimes you may see mentions of the X-Content-Security-Policy header, but that's an older version and you don't need to specify it anymore.) Alternatively, the <meta> element can be used to configure a policy, for example: <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';"> Threats Mitigating cross site scripting A primary goal of CSP is to mitigate and report XSS attacks. XSS attacks exploit the browser's trust of the content received from the server. Malicious scripts are executed by the victim's browser because the browser trusts the source of the content, even when it's not coming from where it seems to be coming from. CSP makes it possible for server ad...
...iolation. status-code The HTTP status code of the resource on which the global object was instantiated. violated-directive The name of the policy section that was violated. Sample violation report Let's consider a page located at http://example.com/signup.html. It uses the following policy, disallowing everything but stylesheets from cdn.example.com. Content-Security-Policy: default-src 'none'; style-src cdn.example.com; report-uri /_/csp-reports The HTML of signup.html looks like this: <!DOCTYPE html> <html> <head> <title>Sign Up</title> <link rel="stylesheet" href="css/style.css"> </head> <body> ... Content ... </body> </html> Can you spot the mistake? Stylesheets are allowed to be loaded only from cdn.example.com, yet the website tries to load one from its o...
...This is not always the case. For example, if the signup.html attempted to load CSS from http://anothercdn.example.com/stylesheet.css, the browser would not include the full path, but only the origin (http://anothercdn.example.com). The CSP spec...
Using HTTP cookies - HTTP
Web › HTTP › Cookies
For example, if Path=/docs is set, these paths match: /docs /docs/Web/ /docs/Web/HTTP SameSite attribute The SameSite attribute lets servers require that a cookie shouldn't be sent with cross-origin requests (where Site is defined by the registrable domain), which provides some protection against cross-site request forgery attacks (CSRF). It takes three possible values: Strict, Lax, and None. With Strict, the cookie is sent only to the same site as the one that originated it; Lax is similar, with an exception for when the user navigates to a URL from an external site, such as by following a link; None has no restrictions on cross-site requests. Here is an example: Set-Cookie: mykey=myvalue; SameSite=Strict The values of SameSite attribute are case-insensitive. Browsers are migra...
... Cookie prefixes The design of the cookie mechanism is such that a server is unable to confirm that a cookie was set on a secure origin or even to tell where a cookie was originally set. ...
... Cookie prefixes The design of the cookie mechanism is such that a server is unable to confirm that a cookie was set on a secure origin or even to tell where a cookie was originally set. ...
CSP: navigate-to - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
... be propagated to all the scripts loaded by that root script. At the same time, any allow-list or source expressions such as 'self' or 'unsafe-inline' are ignored. See script-src for an example. 'report-sample' Requires a sample of the violating code to be included in the violation report. ...
...xample. 'report-sample' Requires a sample of the violating code to be included in the violation report. 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. <meta http-equiv="Content-Security-Policy" content="navigate-to 'none'"> <form action="javascript:alert('Foo')" id="form1" method="post"> <input type="text" name="fieldName" value="fieldValue"> <input type="submit" id="submit" value="submit"> </form> Specifications Specification Status Comment Content Security Policy Level 3The definition of 'navigate-to' in that specification. Working Draft Initial definition. ...
HTTP range requests - HTTP
You can check this by issuing a HEAD request with cURL, for example. ...
...m/z4d4kWk.jpg HTTP/1.1 200 OK ... Accept-Ranges: bytes Content-Length: 146515 In this response, Accept-Ranges: bytes indicates that bytes can be used as unit to define a range. Here the Content-Length header is also useful as it indicates the full size of the image to retrieve. If sites omit the Accept-Ranges header, they likely don't support partial requests. Some sites also explicitly send "none" as a value, indicating no support. In some apps, download managers disable their pause buttons in that case. curl -I https://www.youtube.com/watch?v=EwTZ2xpQwpA HTTP/1.1 200 OK ... Accept-Ranges: none Requesting a specific range from a server If the server supports range requests, you can issue such a request by using the Range header. It indicates the part(s) of a document that the server ...
...K status. This header can be used either with a Last-Modified validator, or with an ETag, but not with both. If-Range: Wed, 21 Oct 2015 07:28:00 GMT Partial request responses There are three relevant statuses, when working with range requests: In case of a successful range request, the 206 Partial Content status is sent back from a server. In case of a range request that is out of bounds (none of the range values overlap the extent of the resource, i.e first-byte-pos of all ranges is greater than the resource length), the server responds with a 416 Requested Range Not Satisfiable status. In case of no support of range requests, the 200 OK status is sent back from a server. Comparison to chunked Transfer-Encoding The Transfer-Encoding header allows chunked encoding, which is useful ...
Details of the object model - JavaScript
; Now, the mark object has a bonus property, but no other WorkerBee has this property. If you add a new property to an object that is being used as the prototype for a constructor function, you add that property to all objects that inherit properties from the prototype. For example, you can add a specialty property to all employees with the following statement: Employee.prototype.specialty = 'none'; As soon as JavaScript executes this statement, the mark object also has the specialty property with the value of "none". The following figure shows the effect of adding this property to the Employee prototype and then overriding it for the Engineer prototype. Adding properties More flexible constructors The constructor functions shown so far do not let you specify property values when yo...
...to the Employee or WorkerBee prototypes, those properties are not inherited by the Engineer object. For example, assume you have the following statements: function Engineer(name, projs, mach) { this.base = WorkerBee; this.base(name, 'engineering', projs); this.machine = mach || ''; } var jane = new Engineer('Doe, Jane', ['navigator', 'javascript'], 'belau'); Employee.prototype.specialty = 'none'; The jane object does not inherit the specialty property. You still need to explicitly set up the prototype to ensure dynamic inheritance. Assume instead you have these statements: function Engineer(name, projs, mach) { this.base = WorkerBee; this.base(name, 'engineering', projs); this.machine = mach || ''; } Engineer.prototype = new WorkerBee; var jane = new Engineer('Doe, Jane', ['nav...
...still need to explicitly set up the prototype to ensure dynamic inheritance. Assume instead you have these statements: function Engineer(name, projs, mach) { this.base = WorkerBee; this.base(name, 'engineering', projs); this.machine = mach || ''; } Engineer.prototype = new WorkerBee; var jane = new Engineer('Doe, Jane', ['navigator', 'javascript'], 'belau'); Employee.prototype.specialty = 'none'; Now the value of the jane object's specialty property is "none". Another way of inheriting is by using the call() / apply() methods. Below are equivalent: function Engineer(name, projs, mach) { this.base = WorkerBee; this.base(name, 'engineering', projs); this.machine = mach || ''; } function Engineer(name, projs, mach) { WorkerBee.call(this, name, 'engineering', projs); this.ma...
Object.preventExtensions() - JavaScript
eing made non-extensible. var obj = {}; var obj2 = Object.preventExtensions(obj); obj === obj2; // true // Objects are extensible by default. var empty = {}; Object.isExtensible(empty); // === true // ...but that can be changed. Object.preventExtensions(empty); Object.isExtensible(empty); // === false // Object.defineProperty throws when adding // a new property to a non-extensible object. ...
...entExtensions(obj); obj === obj2; // true // Objects are extensible by default. var empty = {}; Object.isExtensible(empty); // === true // ...but that can be changed. Object.preventExtensions(empty); Object.isExtensible(empty); // === false // Object.defineProperty throws when adding // a new property to a non-extensible object. ...
...rue // Objects are extensible by default. var empty = {}; Object.isExtensible(empty); // === true // ...but that can be changed. Object.preventExtensions(empty); Object.isExtensible(empty); // === false // Object.defineProperty throws when adding // a new property to a non-extensible object. var nonExtensible = { removable: true }; Object.preventExtensions(nonExtensible); Object.defineProperty(nonExtensible, 'new', { value: 8675309 }); // throws a TypeError // In strict mode, attempting to add new properties // to a non-extensible object throws a TypeError. function fail() { 'use strict'; // throws a TypeError nonExtensible.newProperty = 'FAIL'; } fail(); A non-extensible object's prototype is immutable: var fixed = Object.preventExtensions({}); // throws a 'TypeError'. fixed.__...
<mtable> - MathML
Web › MathML › Element › mtable
ylesheets. columnalign Specifies the horizontal alignment of the cells. Multiple values separated by space are allowed and apply to the corresponding columns (e.g. columnalign="left right center"). Possible values are: left, center (default) and right. columnlines Specifies column borders. Multiple values separated by space are allowed and apply to the corresponding columns (e.g. columnlines="none none solid"). Possible values are: none (default), solid and dashed. columnspacing Specifies the space between table columns. Unimplemented columnwidth Specifies the width of table columns. displaystyle A Boolean value specifying whether more vertical space is used for displayed equations or, if set to false, a more compact layout is used to display formulas. The main effect is that larger ...
...ersions of operators are displayed, when displaystyle is set to true. Unimplemented equalcolumns A Boolean value indicating whether to force all columns to have the same total height. false is default. Unimplemented equalrows A Boolean value indicating whether to force all rows to have the same total height. false is default. frame Specifies borders of the entire table. Possible values are: none (default), solid and dashed. framespacing Specifies additional space added between the table and frame. groupalign Unimplemented href Used to set a hyperlink to a specified URI. mathbackground The background color. You can use #rgb, #rrggbb and HTML color names. mathcolor The text color. You can use #rgb, #rrggbb and HTML color names. Unimplemented minlabelspacing A length value speci...
...nt cell in the row. rowalign Specifies the vertical alignment of the cells. Multiple values separated by space are allowed and apply to the corresponding rows (e.g. rowalign="top bottom axis"). Possible values are: axis, baseline (default), bottom, center and top. rowlines Specifies row borders. Multiple values separated by space are allowed and apply to the corresponding rows (e.g. rowlines="none none solid"). Possible values are: none (default), solid and dashed. Unimplemented rowspacing Specifies the space between table rows. Unimplemented side Specifies the position where <mlabeledtr> label elements should be placed. Possible values are: left, right (default), leftoverlap and rightoverlap. width Specifies the width of the entire table. Accepts length values. Examples Alignment...
Autoplay guide for media and Web Audio APIs - Web media technologies
n also express its willingness to allow autoplay to function. The HTTP Feature-Policy header's autoplay directive is used to control which domains, if any, can be used to autoplay media. By default, the autoplay feature policy is set to 'self' (including the single quote characters), indicating that autoplay is permitted as they're hosted on the same domain as the document. You can also specify 'none' to disable autoplay entirely, '*' to allow autoplay from all domains, or one or more specific origins from which media can be automatically played. These origins are separated by space characters. Note: The specified feature policy applies to the document and every <iframe> nested within it, unless those frames include an allow, which sets a new feature policy for that frame and all frames nes...
... Handling autoplay failure wi...
... be applied to itself and any child frames would be written thusly: <iframe width="300" height="200" src="mediaplayer.html" allow="autoplay 'src' https://example.media"> </iframe> Example: Disabling autoplay Setting the autoplay feature policy to 'none' disables autoplay entirely for the document or <iframe> and all nested frames. The HTTP header is: Feature-Policy: autoplay 'none' Using the <iframe>'s allow attribute: <iframe src="mediaplayer.html" allow="autoplay 'none'"> </iframe> Best practices Tips and recommended best practices to help you make the most of working with autoplay are offered here. Handling autoplay failure with media controls A common use case for autoplay is to automatically begin to play a video clip that goes along with an article, an...
Add to Home screen - Progressive web apps (PWAs)
d to home screen</button> We then gave it some simple styling: .add-button { position: absolute; top: 1px; left: 1px; } JavaScript for handling the install At the bottom of our index.js file, we added some JavaScript to handle the installation. First of all, we declare a deferredPrompt variable (which we'll explain later on), get a reference to our install button, and set it to display: none initially: let deferredPrompt; const addBtn = document.querySelector('.add-button'); addBtn.style.display = 'none'; We hide the button initially because the PWA will not be available for install until it follows the A2HS criteria. When this happens, supporting browsers will fire a beforeinstallprompt event. We can then use a handler like the one below to handle the installation: window.addEven...
...=> { // Prevent Chrome 67 and earlier from automatically showing the prompt e.preventDefault(); // Stash the event so it can be triggered later. ...
...ing the install prompt automatically (this behavior changed in Chrome 68). Store the event object in the deferredPrompt variable so it can be used later on to perform the actual installation. Set the button to display: block so it appears in the UI for the user to click. Set a click handler for the button. The click handler contains the following steps: Hide the button again with display: none -- it is no longer needed once the app is installed. Use the prompt() method available on the beforeinstallprompt event object (stored in deferredPrompt) to trigger showing the install prompt. Respond to the user's interaction with the prompt using the userChoice property, again available on the beforeinstallprompt event object. Set deferredPrompt to null since it is no longer needed. So whe...
The building blocks of responsive design - Progressive web apps (PWAs)
yout We then have a narrow screen layout, designed to fit the bill for a mobile app/open Web app experience. This is created in multiple parts. First of all, as expected, there is a media query in our main CSS, which is quite weighty, so we'll go through it in parts: @media all and (max-width: 480px) { x-card:nth-child(1), x-card:nth-child(2), x-card:nth-child(3) { width: 100%; float: none; padding: 0; } button { margin-top: 0; border-radius: 0; } x-card:nth-child(1) video, x-card:nth-child(2) img { border-radius: 0px; border: none; padding: 0; background-color: 0; } This first block resets a number of different things from the widescreen layouts that were't required for the mobile app. x-card:nth-child(1) video, x-card:nth-child(2) img, ...
... Next up, the font-size of the buttons is set to 6.8vw. Why? Because the top-margin of the x-cards was set to 17vw earlier ...
...er can use to work out which image is most suitable to display given its viewport size, resolution, etc. These are not intended to be mutually exclusive. This all sounds good. But those solutions are definitely not ready for production yet -- both are in a very early stage of standardization, and have no support across browsers. Currently we have to rely on various polyfills and other solutions, none of which are perfect for all situations, so you need to decide which one is right for your particular situation. Some available solutions are as follows: HiSRC A jQuery plugin that allows you to create small, medium, and large versions of an image, and then serves the appropriate one according to the browser's resolution and available network speed. Mobify.js capturing A very clever techniq...
end - SVG: Scalable Vector Graphics
Web › SVG › Attribute › end
The end attribute defines an end value for the animation that can constrain the active duration. Five elements are using this attribute: <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set> Usage notes Default value None Value <end-value-list> Animatable No The <end-value-list> is a semicolon-separated list of values. Each value can be one of the following: <offset-value> This value defines a clock-value that represents a point in time relative to the beginning of the SVG document (usually the load or DOMContentLoaded event). Negative values are valid. <syncbase-value> This value defines a syncbase and an optional offset from that syncbase. The element's animation end time is defined relative to the begin or active end o...
...0" begin="0s" end="endButton.click" dur="8s" repeatCount="indefinite" fill="freeze" /> </rect> <!-- trigger --> <rect id="endButton" style="cursor:pointer;" x="19.5" y="62.5" rx="5" height="25" width="80" fill="#EFEFEF" stroke="black" stroke-width="1" /> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">Click me.</text> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="55" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="55" ...
...rg/1999/xlink"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributeType="XML" attributeName="width" from="0" to="100" begin="0s" end="accessKey(e)" dur="8s" repeatCount="indefinite" fill="freeze" /> </rect> <!-- trigger --> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">Hit the "s" key</text> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="55" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2...
marker-mid - SVG: Scalable Vector Graphics
<marker-ref> This value is a reference to a ...
... <marker-ref> This value is a reference to a <marker> element, which will be drawn at the given vertices. I...
...t: 100%; } <svg viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="circle" markerWidth="8" markerHeight="8" refX="4" refY="4"> <circle cx="4" cy="4" r="4" stroke="none" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-mid="url(#circle)"/> </svg> Usage notes Value none | <marker-ref> Default value none Animatable Yes none Indicates that no marker symbol shall be drawn at the given vertices. <marker-ref> This value is a reference to a <marker> element, which will be drawn at the given vertices. If the reference is not valid, then no marker will be drawn. Specifications Specification Status Comment ...
preserveAspectRatio - SVG: Scalable Vector Graphics
serveAspectRatio="xMinYMid slice" x="120" y="0" viewBox="0 0 100 100" width="10" height="25"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMidYMid slice" x="135" y="0" viewBox="0 0 100 100" width="10" height="25"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMaxYMid slice" x="150" y="0" viewBox="0 0 100 100" width="10" height="25"><use href="#smiley" /></svg> <!-- none --> <svg preserveAspectRatio="none" x="0" y="30" viewBox="0 0 100 100" width="160" height="60"><use href="#smiley" /></svg> </svg> topExample html,body,svg { height:100% } <svg viewBox="-1 -1 162 92" xmlns="http://www.w3.org/2000/svg"> <defs> <path id="smiley" d="M50,10 A40,40,1,1,1,50,90 A40,40,1,1,1,50,10 M30,40 Q36,35,42,40 M58,40 Q64,35,70,40 M30,60 Q50,75,70,60 Q50,...
.../rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMidYMid slice" x="135" y="0"> <use href="#smiley" /> </svg> <rect x="150" y="0" width="10" height="25"> <title>xMaxYMid slice</title> </rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMaxYMid slice" x="150" y="0"> <use href="#smiley" /> </svg> <!-- none --> <rect x="0" y="30" width="160" height="60"> <title>none</title> </rect> <svg viewBox="0 0 100 100" width="160" height="60" preserveAspectRatio="none" x="0" y="30"> <use href="#smiley" /> </svg> </svg> path { fill: yellow; stroke: black; stroke-width: 8px; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; } rect:hover, rect:active { out...
...alue is made of one or two keywords: A required alignment value and an optional "meet or slice" reference as described below: Alignment value The alignment value indicates whether to force uniform scaling and, if so, the alignment method to use in case the aspect ratio of the viewBox doesn't match the aspect ratio of the viewport. The alignment value must be one of the following keywords: none Do not force uniform scaling. Scale the graphic content of the given element non-uniformly if necessary such that the element's bounding box exactly matches the viewport rectangle. Note that if <align> is none, then the optional <meetOrSlice> value is ignored. xMinYMin - Force uniform scaling. Align the <min-x> of the element's viewBox with the smallest X value of the viewport. Align t...
stroke-miterlimit - SVG: Scalable Vector Graphics
d as a CSS property. ...
...0" xmlns="http://www.w3.org/2000/svg"> <!-- Impact of the default miter limit --> <path stroke="black" fill="none" stroke-linejoin="miter" id="p1" d="M1,9 l7 ,-3 l7 ,3 m2,0 l3.5 ,-3 l3.5 ,3 m2,0 l2 ,-3 l2 ,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5 ,-3 l0.5 ,3" /> <!-- Impact of the smallest miter limit (1) --> <path stroke="black" fill="none" stroke-linejoin="miter" stroke-miterlimit="1" id="p2" d="M1,19 l7 ,-3 l7 ,3 m2, 0 l3.5 ,-3 l3.5 ,3 m2, 0 l2 ,-3 l2 ,3 m2, 0 l0.75,-3 l0.75,3 m2, 0 l0.5 ,-3 l0.5 ,3" /> <!-- Impact of a large miter limit (8) --> <path stroke="black" fill="none" stroke-linejoin="miter" stroke-miterlimit="8" id="p3" d="M1,29 l7...
...imit (8) --> <path stroke="black" fill="none" stroke-linejoin="miter" stroke-miterlimit="8" id="p3" d="M1,29 l7 ,-3 l7 ,3 m2, 0 l3.5 ,-3 l3.5 ,3 m2, 0 l2 ,-3 l2 ,3 m2, 0 l0.75,-3 l0.75,3 m2, 0 l0.5 ,-3 l0.5 ,3" /> <!-- the following pink lines highlight the position of the path for each stroke --> <path stroke="pink" fill="none" stroke-width="0.05" d="M1, 9 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3 M1,19 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3 M1,29 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3" /> </svg> When two line segments meet at a sharp angle ...
vector-effect - SVG: Scalable Vector Graphics
tions, i.e. filters, masks and clips. Note: As a presentation attribute, vector-effect can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following ten elements: <circle>, <ellipse>, <foreignObject>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath> <tspan>, and <use> Usage notes Value none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position Default value none Animatable Yes none This value specifies that no vector effect shall be applied, i.e. the default rendering behaviour is used which is to first fill the geometry of a shape with a specified paint, then stroke the outline with a specified paint. non-scaling-stroke This val...
... host coordinate space. However, it does not specify the suppression of rotation, skew and scaling. When this vector effect and the transform property are defined at the same time, that property is consumed for this effect. ...
...re defined at the same time, that property is consumed for this effect. Example Example: vector-effect="non-scaling-stroke" <svg viewBox="0 0 500 240"> <!-- normal --> <path d="M10,20L40,100L39,200z" stroke="black" stroke-width="2px" fill="none"></path> <!-- scaled --> <path transform="translate(100,0)scale(4,1)" d="M10,20L40,100L39,200z" stroke="black" stroke-width="2px" fill="none"></path> <!-- fixed--> <path vector-effect="non-scaling-stroke" transform="translate(300,0)scale(4,1)" d="M10,20L40,100L39,200z" stroke="black" stroke-width="2px" fill="none"></path> </svg> Result Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'vector-effect' in that specification. Candidate Recommendat...
viewBox - SVG: Scalable Vector Graphics
Web › SVG › Attribute › viewBox
erveAspectRatio attribute. Note: Values for width or height lower or equal to 0 disable rendering of the element. Five elements are using this attribute: <marker>, <pattern>, <svg>, <symbol>, and <view>. marker For <marker>, viewBox defines the position and dimension for the content of the <marker> element. Value <number>?, <number>?, <number>?, <number> Default value none Animatable Yes pattern For <pattern>, viewBox defines the position and dimension for the content of the pattern tile. Value <number>?, <number>?, <number>?, <number> Default value none Animatable Yes svg For <svg>, viewBox defines the position and dimension for the content of the <svg> element. Value <number>?, <number>...
...pattern>, viewBox defines the position and dimension for the content of the pattern tile. Value <number>?, <number>?, <number>?, <number> Default value none Animatable Yes svg For <svg>, viewBox defines the position and dimension for the content of the <svg> element. Value <number>?, <number>?, <number>?, <number> Default value none Animatable Yes symbol For <symbol>, viewBox defines the position and dimension for the content of the <symbol> element. Value <number>?, <number>?, <number>?, <number> Default value none Animatable Yes view For <view>, viewBox defines the position and dimension for the content of the <view> element. Value <number>?, <nu...
...>, viewBox defines the position and dimension for the content of the <symbol> element. Value <number>?, <number>?, <number>?, <number> Default value none Animatable Yes view For <view>, viewBox defines the position and dimension for the content of the <view> element. Value <number>?, <number>?, <number>?, <number> Default value none Animatable Yes Specification Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'viewBox' in that specification. Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'viewBox' in that specification. Recommendation Initial definition ...
<altGlyph> - SVG: Scalable Vector Graphics
Web › SVG › Element › altGlyph
e of ancestor <text> or <tspan>; Animatable: yes dy This attribute indicates a shift along the x-axis on the position of the element. Value type: <list-of-coordinates> ; Default value: Relative y-coordinate of ancestor <text> or <tspan>; Animatable: yes rotate This attribute defines the supplemental rotation that will be applied to the element. ...
...te of ancestor <text> or <tspan>; Animatable: yes rotate This attribute defines the supplemental rotation that will be applied to the element. Value type: <list-of-numbers> ; Default value: none; Animatable: yes (non-additive) glyphRef The glyph identifier, the format of which is dependent on the format defined by the format attribute of the given font. Value type: <string> ; Default value: none; Animatable: no format The format of the given font. Value type: <string> ; Default value: none; Animatable: no xlink:href An <iri> reference either to a <glyph> element in an SVG document or to an <altGlyphDef> element. If the reference is to a <glyph> element and that glyph is available, then that glyph is rendered instead of the character(s) that are inside of the <altGlyph> element. ...
...then that glyph is rendered instead of the character(s) that are inside of the <altGlyph> element. If the reference is to an <altGlyphDef> element, then if an appropriate set of alternate glyphs is located from processing the <altGlyphDef> element, then those alternate glyphs are rendered instead of the character(s) that are inside of the <altGlyph> element. ...
<metadata> - SVG: Scalable Vector Graphics
Web › SVG › Element › metadata
The <metadata> SVG element adds metadata to SVG content. Metadata is structured information about data. The contents of <metadata> should be elements from other XML namespaces such as RDF, FOAF, etc. Usage context CategoriesDescriptive elementPermitted contentAny elements or character data Attributes Global attributes Core attributes Global event attributes Specific attributes None DOM Interface This element implements the SVGMetadataElement interface. Example <svg width="400" viewBox="0 0 400 300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <metadata> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:connect="http://www.w3.org/1999/08/29-svg-connections-in-RDF#"> <rdf:Description about="#CableA"...
...Used by hub symbol --> <symbol id="hubPlug"> <desc>A 10BaseT/100baseTX socket</desc> <path d="M0,10 h5 v-9 h12 v9 h5 v16 h-22 z"/> </symbol> <!-- hub symbol --> <symbol id="hub"> <desc>A typical 10BaseT/100BaseTX network hub</desc> <text x="...
...Used by hub symbol --> <symbol id="hubPlug"> <desc>A 10BaseT/100baseTX socket</desc> <path d="M0,10 h5 v-9 h12 v9 h5 v16 h-22 z"/> </symbol> <!-- hub symbol --> <symbol id="hub"> <desc>A typical 10BaseT/100BaseTX network hub</desc> <text x="0" y="15">Hub</text> ...
<script> - SVG: Scalable Vector Graphics
Web › SVG › Element › script
r('circle').addEventListener('click', (e) => { e.target.style.fill = getColor() }) }) // ]]> </script> <circle cx="5" cy="5" r="4" /> </svg> Attributes crossorigin This attribute defines CORS settings as define for the HTML <script> element. Value type: <string>; Default value: ?; Animatable: yes href The URL to the script to load. ...
.... Value type: <string>; Default value: ?; Animatable: yes href The URL to the script to load. Value type: <URL> ; Default value: none; Animatable: no type This attribute defines type of the script language to use. Value type: <string>; Default value: application/ecmascript; Animatable: no xlink:href Deprecated since SVG 2 The URL to the script to load. ...
...use. Value type: <string>; Default value: application/ecmascript; Animatable: no xlink:href Deprecated since SVG 2 The URL to the script to load. Value type: <URL> ; Default value: none; Animatable: no Global attributes Core Attributes Most notably: id Styling Attributes class, style Event Attributes Global event attributes, Document element event attributes Usage notes CategoriesNonePermitted contentAny elements or character data Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of '<script>' in that specification. Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<script>' in that specification. Recommendation Initial definition ...
<svg> - SVG: Scalable Vector Graphics
Web › SVG › Element › svg
0 0 300 100" xmlns="http://www.w3.org/2000/svg" stroke="red" fill="grey"> <circle cx="50" cy="50" r="40" /> <circle cx="150" cy="50" r="4" /> <svg viewBox="0 0 10 10" x="200" width="100"> <circle cx="5" cy="5" r="4" /> </svg> </svg> Attributes baseProfile Deprecated since SVG 2 The minimum SVG language profile that the document requires. Value type: <string> ; Default value: none; Animatable: no contentScriptType Deprecated since SVG 2 The default scripting language used by the SVG fragment. Value type: <string> ; Default value: application/ecmascript; Animatable: no contentStyleType Deprecated since SVG 2 The default style sheet language used by the SVG fragment. Value type: <string> ; Default value: text/css; Animatable: no height The displayed height of the rec...
... language used by the SVG fragment. Value type: <string> ; Default value: text/css; Animatable: no height The displayed height of the rectangular viewport. (Not the height of its coordinate system.) Value type: <length>|<percentage> ; Default value: auto; Animatable: yes preserveAspectRatio How the svg fragment must be deformed if it is displayed with a different aspect ratio. Value type: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Default value: xMidYMid meet; Animatable: yes version Deprecated since SVG 2 Which version of SVG is used for the inner content of the element. Value type: <number> ; Default value: none; Animatable: no viewBox The SVG viewport coordinates for the current SVG fragment. Value type: <lis...
... xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Default value: xMidYMid meet; Animatable: yes version Deprecated since SVG 2 Which version of SVG is used for the inner content of the element. Value type: <number> ; Default value: none; Animatable: no viewBox The SVG viewport coordinates for the current SVG fragment. Value type: <list-of-numbers> ; Default value: none; Animatable: yes width The displayed width of the rectangular viewport. (Not the width of its coordinate system.) Value type: <length>|<percentage> ; Default value: auto; Animatable: yes x The displayed x coordinate of the svg container. No effect on outermost svg elements. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes y The displayed y coordinate of the svg contai...
<symbol> - SVG: Scalable Vector Graphics
Web › SVG › Element › symbol
ewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Our symbol in its own coordinate system --> <symbol id="myDot" width="10" height="10" viewBox="0 0 2 2"> <circle cx="1" cy="1" r="1" /> </symbol> <!-- A grid to materialize our symbol positioning --> <path d="M0,10 h80 M10,0 v20 M25,0 v20 M40,0 v20 M55,0 v20 M70,0 v20" fill="none" stroke="pink" /> <!-- All instances of our symbol --> <use xlink:href="#myDot" x="5" y="5" style="opacity:1.0" /> <use xlink:href="#myDot" x="20" y="5" style="opacity:0.8" /> <use xlink:href="#myDot" x="35" y="5" style="opacity:0.6" /> <use xlink:href="#myDot" x="50" y="5" style="opacity:0.4" /> <use xlink:href="#myDot" x="65" y="5" style="opacity:0.2" /> </svg> Attributes ...
..."opacity:0.4" /> <use xlink:href="#myDot" x="65" y="5" style="opacity:0.2" /> </svg> Attributes height This attribute determines the height of the symbol. Value type: <length>|<percentage> ; 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: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Default value: xMidYMid meet; Animatable: yes refX This attribute determines the x coordinate of the reference point of the symbol. Value type: <length>|<percentage>|left|center|right ; Default value: 0; Animatable: yes refY This attribute determines the y coordinate of the reference po...
...Value type: <length>|<percentage>|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>|<percentage>|top|center|bottom ; Default value: 0; Animatable: yes viewBox This attribute defines the bound of the SVG viewport for the current symbol. Value type: <list-of-numbers> ; Default value: none; Animatable: yes width This attribute determines the width of the symbol. Value type: <length>|<percentage> ; Default value: auto; Animatable: yes x This attribute determines the x coordinate of the symbol. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes y This attribute determines the y coordinate of the symbol. Value type: <length>|<percentage> ; Default value: 0;...
<text> - SVG: Scalable Vector Graphics
Web › SVG › Element › text
x The x coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes y The y coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes dx Shifts the text position horizontally from a previous text element. ...
...e y coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate glyphs individually. Value type: <list-of-number> ; Default value: none; Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing; Animatable: yes textLength A width that the text sho...
...an rotate glyphs individually. Value type: <list-of-number> ; Default value: none; Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing; Animatable: yes textLength A width that the text should be scaled to fit. ...
<textPath> - SVG: Scalable Vector Graphics
Web › SVG › Element › textPath
To render text along the shape of a <path>, enclose the text in a <textPath> element that has an href attribute with a reference to the <path> element. ...
... d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" /> <!-- </defs> --> <text> <textPath href="#MyPath"> Quick brown fox jumps over the lazy dog. </textPath> </text> </svg> Attributes href The URL to the path or basic shape on which to render the text. If the path attribute is set, href has no effect. Value type: <URL> ; Default value: none; Animatable: yes lengthAdjust Where length adjustment should be applied to the text: the space between glyphs, or both the space and the glyphs themselves. Value type: spacing|spacingAndGlyphs; Default value: spacing; Animatable: yes method Which method to render individual glyphs along the path. Value type: align|stretch ; Default value: align; Animatable: yes path The path on which the ...
...applied to the text: the space between glyphs, or both the space and the glyphs themselves. Value type: spacing|spacingAndGlyphs; Default value: spacing; Animatable: yes method Which method to render individual glyphs along the path. Value type: align|stretch ; Default value: align; Animatable: yes path The path on which the text should be rendered. Value type: <path_data> ; Default value: none; Animatable: yes side Which side of the path the text should be rendered. Value type: left|right ; Default value: left; Animatable: yes spacing How space between glyphs should be handled. Value type: auto|exact ; Default value: exact; Animatable: yes startOffset How far the beginning of the text should be offset from the beginning of the path. Value type: <length>|<percentage>|<number> ;...
<tspan> - SVG: Scalable Vector Graphics
Web › SVG › Element › tspan
"0 0 240 40" xmlns="http://www.w3.org/2000/svg"> <style> text { font: italic 12px serif; } tspan { font: bold 10px sans-serif; fill: red; } </style> <text x="10" y="30" class="small"> You are <tspan>not</tspan> a banana! </text> </svg> Attributes x The x coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: none; Animatable: yes y The y coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: none; Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<pe...
... coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: none; Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate glyphs individually. Value type: <list-of-number> ; Default value: none; Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing; Animatable: yes textLength A width that the text sho...
...an rotate glyphs individually. Value type: <list-of-number> ; Default value: none; Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing; Animatable: yes textLength A width that the text should be scaled to fit. ...
Customizing the download progress bar - Archive of obsolete content
l"> </overlay> In jar.mn, make sure that there is an asterisk in front of the entry for myextension.css so that it will be preprocessed. This is required since it contains platform-specific directives, as we will see. ...
...cific directives, as we will see. The myextension.css file will look something like this: richlistitem progressmeter { %ifdef XP_WIN min-height: 17px !important; %else %ifdef XP_MACOSX -moz-appearance: none !important; background-image: url(chrome://myextension/skin/progress_bg_osx.png) !important; %endif %endif } richlistitem .progress-bar { %ifdef XP_WIN -moz-appearance: none !important; background-image: url(chrome://myextension/skin/progress_fd_win.png) !important; %else %ifdef XP_MACOSX background-image: url(chrome://myextension/skin/progress_fd_osx.gif) !important; %endif %endif } Note: This file only supports Windows and Mac, but it would be straightforward to add support for Linux. This is the product of some tweaking and experimentation, so per...
Preferences - Archive of obsolete content
mponents.interfaces.nsIPrefBranch2) .addObserver("", this, false); Using prefHasUserValue() nsIPrefBranch.prefHasUserValue(preference) checks whether the preference has been changed from the default value. If so, it will return true, otherwise false. In particular, when no default value exists for a preference, prefHasUserValue() indicates whether a preference exists. Attempting to read a nonexistent preference using one of the get*Pref methods will throw an exception. Using prefHasUserValue() lets you check if the preference exists before attempting to read it. For example: if (prefs.prefHasUserValue("mypref")) { alert(prefs.getCharPref("mypref")); } Note that the getCharPref() call may throw error even if the preference exists, for example if it has a different type. As of Fire...
...content/nsUserSettings.js https://wiki.mozilla.org/Labs/JS_Modules How to save preferences To save preferences into the default location: var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefService.savePrefFile(null); Checking for existence of a key If you try to get the value of a nonexistent preference, an error will be thrown: Error: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] To avoid such errors, you should check whether the key exists or not using nsIPrefService.getPrefType(), as shown below: var prefServiceBranch = Components.classes["@mozilla.org/preferences-service;1"] ...
StringView - Archive of obsolete content
ter... */ alert(String.fromCharCode(nChrCode)); } Note: For UTF-16, replace getUTF8CharLength() and loadUTF8CharCode() methods respectively with getUTF16CharLength() and loadUTF16CharCode(). See also: stringView.makeIndex() and its note. valueOf() Syntax stringView.valueOf() Description Converts stringView's content into string and returns it. Arguments none No arguments expected. Examples alert((new StringView("Hello world!")).valueOf() === "Hello world!"); // true JavaScript calls the stringView.valueOf() method to convert an object to a primitive value. You rarely need to invoke the stringView.valueOf() method yourself; JavaScript automatically invokes it when encountering an object where a primitive value is expected. to...
...lls the stringView.valueOf() method to convert an object to a primitive value. You rarely need to invoke the stringView.valueOf() method yourself; JavaScript automatically invokes it when encountering an object where a primitive value is expected. toString() Syntax stringView.toString() Description Converts stringView's content into string and returns it. Arguments none No arguments expected. Examples alert((new StringView("Hello world!")).toString() === "Hello world!"); // true The stringView.toString() method is automatically called when the object is to be represented as a text value or when an object is referred to in a manner in which a string is expected. Appendix: other StringView constructor's methods (utilities) bytesToBase...
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
is the Mozilla Amazon Browser, which helps with shopping at Amazon, and the Presentation Method in XUL, a tool for writing and displaying presentations To try out the code samples in this chapter, save them as text files with .xul extensions and drag and drop them into the Firefox browser window. FIXME: Explain how setting this option and use next listings If we want to run Firefox displaying none of its GUI and only the contents of a certain XUL file, we can launch Firefox and set the option: -chrome file_URL.xul Another way, as shown in Listing 1, is to use the window.openDialog() method, which can be used only within a XUL window. This is used by extensions to open a separate window. window.openDialog('another.xul', '_blank','chrome,all,dialog=no'); Listing 1: Opening a window witho...
...yle attribute, which allows you to set sizes using units other than pixels. <button label="Button" style="min-width: 10em;"/> Listing 7: Setting the size of a button using CSS markup hidden and collapsed The hidden and collapsed attributes act as switches to turn off the display of elements. Setting hidden="true" disables display of that element. This has the same effect as setting display: none in CSS. You would use this to set a hidden or absent state, for example items that aren't displayed in contextual menus. Setting collapsed="true" sets an element's height and width to 0, but the element is treated as being present. This is equivalent to setting visibility: collapse in CSS. Use this to "roll up" sidebars that aren't currently in use. disabled While not appropriate for all eleme...
User Notifications and Alerts - Archive of obsolete content
age, and use the lowest applicable level, to prevent the user from getting used to dismissing high-level notifications. The buttons are represented by simple JS data objects. This is all explained in detail in the notificationbox page. Notification boxes are designed to be easily dismissed. All notifications have an additional close button, so you should take into account that it's possible that none of your custom buttons will be clicked. Also, clicking on any of your custom buttons will cause the notification to be immediately closed, so you should only use notification boxes for single-step processes. The Alerts Service This is a very good option when you want to alert users about events without requiring input from them. Alerts are displayed in an OS-specific way, so their look is nativ...
...n't recommend using this service to show information the user needs to know and can't get in any other way. Custom alerts Creating custom solutions for alerting the user is not complicated, given the advantages of XUL overlays and CSS positioning. However, these solutions are prone to be buggy and have accessibility issues. You should use the 2 alternatives mentioned above whenever possible. If none of those fit your needs then this is an acceptable solution. An easy way to display alerts is to include a hidden box in your overlay, which you can fill with any content you need before removing the hidden attribute so that it is displayed to the user. The best locations for this kind of box are above and below the tab browser. Below is preferrable because it only cuts the bottom part of the cu...
CSS3 - Archive of obsolete content
ce of alternative font faces using the CSS font-stretch, font-variant-alternates, font-variant-caps, font-variant-east-asian, font-variant-ligatures, font-variant-numeric, and font-variant-position properties. It also extends the related CSS font-variant shorthand property and introduces the @font-feature-values at-rule. The control of the automatic generation of an oblique or bold face when none are found via the CSS font-synthesis property. CSS Basic User Interface Module Level 3 Recommendation since June 21st, 2018 Adds: The ability to tweak the box model using the CSS box-sizing property. At risk: due to insufficient browser support, standardization of the padding-box value may be postponed to the next iteration of this mod...
...thors to control if and how elements should be resized. Support for the CSS text-overflow property defining how text overflows, if needed. At risk: due to insufficient browser support, the 2-value syntax of this property as well as the support for <string> values may be postponed to the next iteration of this module. The ability to define the hotspot of a cursor as well as the new none, context-menu, cell, vertical-text, alias, copy, no-drop, not-allowed, nesw-resize, nwse-resize, col-resize, row-resize, all-scroll, zoom-in, zoom-out, extending the cursor property. The ability to specify the sequential navigation order (that is the tabbing order ) using the CSS nav-index, nav-up, nav-right, nav-left, nav-down properties. At risk: due to insufficient browser support, ...
Notes on HTML Reflow - Archive of obsolete content
s case, a frame knows that there is no residual state that can be used to simplify geometry computation. Incremental, when something in the frame tree changes; for example, when more content is read from the network, or some script manipulates the DOM. An incremental reflow is targeted at a single frame in the frame hierarchy. ...
... StyleChange, when the entire frame hierarchy must be traversed to recover from stylistic change; for example, a change in the default font size. ...
Making it into a static overlay - Archive of obsolete content
Its next line is the stylesheet reference we previously added to navigator.xul. After that is a XUL overlay element. This element is the top-level element in a XUL overlay file and serves to identify the file as an overlay. Within tha...
... << PreviousNext >> ...
Nanojit - Archive of obsolete content
kip(sizeof(GuardRecord) + sizeof(SideExit)); GuardRecord *guard = (GuardRecord *) rec_ins->payload(); memset(guard, 0, sizeof(*guard)); SideExit *exit = (SideExit *)(guard + 1); guard->exit = exit; guard->exit->target = f; f->lastIns = out.insGuard(LIR_loop, out.insImm(1), rec_ins); // Compile the fragment. compile(assm, f, *alloc verbose_only(, fragmento->labels)); if (assm->error() != None) { fprintf(stderr, "error compiling fragment\n"); return 1; } printf("Compilation successful.\n"); // Call the compiled function. typedef JS_FASTCALL int32_t (*AddTwoFn)(int32_t); AddTwoFn fn = reinterpret_cast<AddTwoFn>(f->code()); printf("2 + 5 = %d\n", fn(5)); return 0; } Code Explanation Interesting part are the lines 46-50: // Write a few LIR instructions to the buffer: add t...
...vided above is doing is feeding raw LIR into the LIR Buffer, using the LIRWriter's writer object. From an operational point of view, it is creating a function, which takes an integer input, and adds it to two, and outputs the result. The function is created here on lines 57-69: // Compile the fragment. compile(assm, f, *alloc verbose_only(, fragmento->labels)); if (assm->error() != None) { fprintf(stderr, "error compiling fragment\n"); return 1; } printf("Compilation successful.\n"); // Call the compiled function. typedef JS_FASTCALL int32_t (*AddTwoFn)(int32_t); AddTwoFn fn = reinterpret_cast<addtwofn>(f->code()); printf("2 + 5 = %d\n", fn(5)); return 0;</addtwofn> This upper half of this snippet includes code where the raw LIR is first converted into machine co...
Binding Attachment and Detachment - Archive of obsolete content
An individual URL in the set consists of the binding document's URL and the binding's document-unique identifier. In the following example, a binding is referenced that will be attached to all HTML checkbox elements. ...
...nd element as long as the element continues to match the style rule. If at any time a resolution of style on the element determines that a different binding should be attached, the old binding (and all bindings that it explicitly extends in its inheritance chain) will be detached. No bindings will be attached to elements that match the style rule, but are inside an element that has style display:none set. See bug 307098. Whenever an element is removed from a document, any bindings attached via CSS loaded by the document will be detached. Attachment using element.style property None of the XBL inheritance properties of element.style.MozBinding described here are implemented (if ever). Bindings can be attached to elements through the scripting by assigning the element.style.MozBinding pro...
Example Sticky Notes - Archive of obsolete content
The others are only needed if you plan to handle XUL (XML User Inte...
...alert(str); ]]></handler> <handler event="mouseover"><![CDATA[ this.$bg = this.style.backgroundColor || '#FFFF00'; this.style.backgroundColor = '#FFCC00'; ]]></handler> <handler event="mouseout"><![CDATA[ this.style.backgroundColor = this.$bg; ]]></handler> </handlers> </binding> </bindings> notes.css .sticker { position: relative; left: 0px; right: 0px; float: left; clear: none; width: 10em; height: 10em; overflow: visible; margin: 1em 1em; padding: 0.5em 0.5em; border: 2px solid blue; background-color: yellow; font: 1em normal "Times New Roman",serif; font-style: italic; cursor: default; } View this example ...
panel.fade - Archive of obsolete content
...
... ...
popupalign - Archive of obsolete content
<< XUL Reference homepopupalignType: one of the values belowpopupalign is an optional attribute for specifying which side of the popup content should be attached to the popupanchor. noneno aligntopleftalign to the top left cornertoprightalign to the top right cornerbottomleftalign to the bottom left cornerbottomrightalign to the bottom right cornerSyntax<element popupalign="none | topleft | topright | bottomleft | bottomright"/> Example<element id="edit-context" popup="editor-popup" popupanchor="topleft" popupalign="bottomright"/> NotesThe popupalign attribute can be used to specify which corner of the popup content is tied to the originating point. If omitted, the default is topleft. The example below shows how to create the traditional buttons with attached left mouse menus tha...
...nt coordinates. ...
Localization - Archive of obsolete content
uitem label="rdf:http://www.xulplanet.com/rdf/recent#Label" uri="rdf:*"/> </menupopup> </template> </menulist> </groupbox> </tabpanel> <tabpanel id="optionspanel" orient="vertical"> <checkbox id="casecheck" label="&casesensitive;"/> <checkbox id="wordscheck" label="&matchfilename;"/> </tabpanel> </tabpanels> </tabbox> <tree id="results" style="display: none;" flex="1"> <treecols> <treecol id="name" label="&results.filename;" flex="1"/> <treecol id="location" label="&results.location;" flex="2"/> <treecol id="size" label="&results.size;" flex="1"/> </treecols> <treechildren> <treeitem> <treerow> <treecell label="mozilla"/> <treecell label="/usr/local"/> <treecell label="&bytes.before;252...
..." flex="2"/> <treecol id="size" label="&results.size;" flex="1"/> </treecols> <treechildren> <treeitem> <treerow> <treecell label="mozilla"/> <treecell label="/usr/local"/> <treecell label="&bytes.before;2520&bytes.after;"/> </treerow> </treeitem> </treechildren> </tree> <splitter id="splitbar" resizeafter="grow" style="display: none;"/> <spacer class="titlespace"/> <hbox> <progressmeter id="progmeter" value="50%" style="display: none;"/> <spacer flex="1"/> <button id="find-button" label="&button.find;" oncommand="doFind()"/> <button id="cancel-button" label="&button.cancel;" oncommand="window.close();"/> </hbox> </vbox> </window> Each text string has been replaced by an entity refere...
resizer - Archive of obsolete content
="cursor: ne-resize;"/> <resizer dir="right" flex="1" style="cursor: e-resize;"/> <resizer dir="bottomright" height="2" style="cursor: se-resize;"/> </vbox> </hbox> </window> Resizing an element <stack style="border: 1px solid black;"> <button id="button" label="Resizable" left="18" top="18" right="18" bottom="18"/> <resizer dir="topleft" style="background: black; -moz-appearance: none;" element="button" left="0" top="0" width="16" height="16"/> <resizer dir="topright" style="background: black; -moz-appearance: none;" element="button" right="0" top="0" width="16" height="16"/> <resizer dir="bottomleft" style="background: black; -moz-appearance: none;" element="button" left="0" bottom="0" width="16" height="16"/> <resizer dir="bottomright" ...
... left Resized to the left. right Resized to the right. top Resized up. bottom Resized down. ...
Mozprocess - Archive of obsolete content
dows, OS X, and Linux. Mozprocess utilizes and extends subprocess.Popen to these ends. API mozprocess.processhandler:ProcessHandler is the central exposed API for mozprocess. ProcessHandler utilizes a contained subclass of subprocess.Popen, Process, which does the brunt of the process management. ...
...extends subprocess.Popen to these ends. API mozprocess.processhandler:ProcessHandler is the central exposed API for mozprocess. ProcessHandler utilizes a contained subclass of subprocess.Popen, Process, which does the brunt of the process management. ...
2006-10-26 - Archive of obsolete content
Discussions Should be easier to import bookmark backups User asking for thoughts about having Bookmarks Manager's Import Wizard import from backups in the bookmarkbackups folder. No repiles yet. Fx 1.5.0.x (Linux) not building since 20-Oct-2006 17:45 PDT? Tony inquires why tinderbox is showing that the Fx 1.5.0.x (Linux) has failed since October 20. Gavin replies that "[t]he log file shows a "no space left on device" error when trying to link the final executable." Learn the Traffic Magic of Search Engine Cloaking Mark describes the magic of Search Engine Cloaker. ...
...curate layout for firefox being a bug - shaver suggests its a bug with Gecko instead. error building firefox-2.0rc3 on uclinux An error was found about building on uclinux, user googgled the error and suggests that the error found in older versions. No replies yet. Ubuntu Firefox UA string A user questions Ubuntu 6.10 and their Firefox's UA string, the zeros seem to be wrong. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-10-27 - Archive of obsolete content
Discussions Should be easier to import bookmark backups User asking for thoughts about having Bookmarks Manager's Import Wizard import from backups in the bookmarkbackups folder. No repiles yet. Fx 1.5.0.x (Linux) not building since 20-Oct-2006 17:45 PDT? Tony inquires why tinderbox is showing that the Fx 1.5.0.x (Linux) has failed since October 20. Gavin replies that "[t]he log file shows a "no space left on device" error when trying to link the final executable." Learn the Traffic Magic of Search Engine Cloaking Mark describes the magic of Search Engine Cloaker. ...
...curate layout for firefox being a bug - shaver suggests its a bug with Gecko instead. error building firefox-2.0rc3 on uclinux An error was found about building on uclinux, user googgled the error and suggests that the error found in older versions. No replies yet. Ubuntu Firefox UA string A user questions Ubuntu 6.10 and their Firefox's UA string, the zeros seem to be wrong. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-11-03 - Archive of obsolete content
Discussions Google Adsense plugin for firefox A user post a link to a plugin for displaying "Adsense Earning" within the status bar of the browser without logging into Google. Request to add option for removal of Firefox profiles during setup or uninstall A user suggests an option to remove profiles during setup or uninstall. Does Firefox provide any classes/objects or events to Windows WMI ? A user asks if firefox provides any classes/objects or events to Windows WMI. No replies yet. ...
...A user draws attention to what they think is a bug, but the developers say it's proper browser behaviour. What GUI lib was used for developing Firefox 2.0 ? A user inquires about what GUI library is used for developing Firefox 2.0. Event in Firefox similar to OnDownloadComplete event in IE A user asks what even can be used that is similar to the OnDownloadComplete even in IE. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-11-04 - Archive of obsolete content
Discussions Adsense plugin for firefox A user post a link to a plugin for displaying "Adsense Earning" within the status bar of the browser without logging into Google. to add option for removal of Firefox profiles during setup or uninstall A user suggests an option to remove profiles during setup or uninstall. Firefox provide any classes/objects or events to Windows WMI ? A user asks if firefox provides any classes/objects or events to Windows WMI. No replies yet. code for the nsinstall contained in moztools A user asks for advice about building nsinstall on Windows. ...
... Problem A user draws attention to what they think is a bug, but the developers say it's propwer browser behaviour. GUI lib was used for developing Firefox 2.0 ? A user inquires about what GUI library is used for developing Firefox 2.0. in Firefox similar to OnDownloadComplete event in IE A user asks what even can be used that is similar to the OnDownloadComplete even in IE. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-11-10 - Archive of obsolete content
Discussions site-specific search using our search box A discussion surrounding implementing a way to search a current page with the page's embedded search component and how to make this efficient and usable. Event in Firefox similar to OnDownloadComplete event in IE An inquiry about how to change the font of a web page before it is displayed using an extenstion. favicon as microsummary/feed/other stuff indicator Suggestion about making the favicon create a bookmark for the page with a microsummary. ...
...siton about why a user using Firefox 2 RC3 didn't get a prompt for updating to Firefox 2 after the release date. improving the UE for content control Suggestion about how to improve user experience with options controlling the appearance of web content. Popup blockers..window handlers Inquiry of how to implement the pop-up blocker on the mozilla toolbar. No replies as of yet. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-11-17 - Archive of obsolete content
Discussions mozilla access to http? to Snipurl? User is looking for advice how to access HTTP or Snipurl. No replies as of yet. Firefox 2.0 - window.focus() User questions where the change in behaviour in window.focus() is a bug or was intented. Firefox 2.0 JavaScript Popup Issue User seeks advice about a line of JavaScript code that worked in Firefox 1.5.0.x, but not in Firefox 2.0 Balloon Help User inquires if anyone can explain how to disable the balloon help in Firefox 2.0. ...
... Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-11-24 - Archive of obsolete content
Discussions Microsummary w/ Script A user created patch that will allow script to run in a sandbox during the update of a microsummary. They would like to discuss the use of it in bug 361026 rich results for searches A proposal for a search tool that gives users a quicker path to specific information they are looking for. ...
...ing for. Trunk builds + WinXP update = broken? A User questions if there is something broken in a nightly build since the user keeps getting this error from the trunk: "firefox.exe - Application Error: The application failed to initialize properly." Removal of false positives in Firefox 2 Phishing A user inquires how to remove false positives from the Firefox phising filters. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-12-01 - Archive of obsolete content
Discussions Firefox 2.0 should re-implement modal window.open to support Web 2.0 A plea to re-implement the option to show modal windows, using window.open(), from inside an untrusted script. This implementation was removed in 2002 to fight against popups. XML in Firefox is a Major Problem A major debate surrounding the use of xml for customizing RSS feeds. Devs say this is the way its supposed to be, others say its a bug! The debate continues. ...
...k on link Concerns regarding FF 2.0 not responding to button or link clicks until the button or link is clicked a second time. Dual Screen browsing Discussion regarding browsing across dual screens and simplifying the process. Suggestion for Status Bar Suggestion that a new status bar be implemented that would have a hover>appear style of operation similar to the Mac "menu". Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-11-24 - Archive of obsolete content
Summary: mozilla.dev.apps.thunderbird - November 18 - 24, 2006 Announcements None for this week Discussions Issues with 2.0 features There's renewed discussion on why certain features were removed in the 2.0 release, and the addition of support for S/MIME and not PGP/GPG encryption. Additional links: bug 22687 and original newsgroup thread. Thunderbird losing emails TB seems to be deleting mail folders when they reach 4GB in size. ...
...eatures There's renewed discussion on why certain features were removed in the 2.0 release, and the addition of support for S/MIME and not PGP/GPG encryption. Additional links: bug 22687 and original newsgroup thread. Thunderbird losing emails TB seems to be deleting mail folders when they reach 4GB in size. Exact cause is unknown but may be related to multiprocessor platforms. Meetings None for this week ...
2006-12-01 - Archive of obsolete content
A link to the solution is provided. ...
... A link to the solution is provided. ...
2006-11-24 - Archive of obsolete content
Summary: mozilla.dev.quality - November 18-November 24, 2006 Announcements None Discussions Firefox 1.5.0.7 on Linux x86_64 - Someone is having a problem with XHTTPRequest. He needs someone to verify or debunk the problem, or point him to a similar problem that would be helpful. Module owner for mozilla/testing - Tim needs suggestions on who to promote as a moderator (to replace davel). robcee, rhelmer, and bsmedberg are the possible candidates. ...
... someone to verify or debunk the problem, or point him to a similar problem that would be helpful. Module owner for mozilla/testing - Tim needs suggestions on who to promote as a moderator (to replace davel). robcee, rhelmer, and bsmedberg are the possible candidates. Champion for fixing ENABLE_TEST - A champion is needed to replace davel for cleaning up the ENABLE_TEST build target Meetings None Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-10-06 - Archive of obsolete content
Discussions Protocol Handlers Boris Zbarsky posed the question, Should random webpages have access to the following protocols: feed, pcast, moz-bookmark, webcal, swebcal. As well as any protocols that you have implemented and are NOT in the list of protocols nsScriptSecurityManager::CheckLoadURI feed: Consensus is that it should be allowed and treated as an ordinary link. pcast: Similar to feed: just differentiating between different types of feeds and should be allowed access. ...
...lers to define a custom security model (see bug 120373). There is no consensus in the posts as to if this should be allowed. Problem Looping C_OpenSession Problem In Thunderbird Christian Bongiorno has run into a problem developing a PKCS11 module for a new card. Thunderbird is continuously repeating 7 functions including C_OpenSession which accesses the card that he is developing. Meetings None during this week. ...
2006-11-03 - Archive of obsolete content
Discussions Extended Validation Certificates Major discussion this week started by Gervase Markham about security certificates, more specifically Extended Validation Certificates. The aim of the group is to develop a new, higher standard for the validation which is done before certificate issuance, called Extended Validation. The idea was that such certs would be presented differently in the UI, to give the CAs a reason to go to the extra effort, and to give customers a reason to buy them. ...
... ...
2006-10-27 - Archive of obsolete content
Discussions Removal of the NN4.6 table border color quirk Discussion on removing the NN 4.6 table boarder color quirk, which currently causes a specific markup to produce a green boarder instead of a gray one. Help for getting HTML element width info Discussion on retrieving width information on HTML elements when using the Gecko engine. It was determined that the offsetWidth property can be used to get this value. ...
... ...
2006-11-10 - Archive of obsolete content
Discussions How to know the full height and width of a webpage Discussion on how to determine the full height and width of a web page when embedding a browser into an application. Using window.innerHeight and window.scrollMaxY should resolve this issue. Block Images Discussion on how where to change source code so that images could be blocked in Mozilla. This can be defined within the nsIContentPolicy. ...
... ...
2006-11-17 - Archive of obsolete content
Discussions Testing accesskey conflicts Discussion about the complexity of access keys and how to detect conflicts there in the l10n community. Bug #360589 describes this ongoing issue. Site not loading with seamonkey A user built seamonkey in debug mode and is currently receiving a "BAD REQUEST" error on some websites. Reflow branch testing wanted L. David Baron would like users to test the reflow branch as it is coming close to being merged with the trunk. ...
...on the current trunk builds. If bugs are filed, "[reflow branch]" should be placed at the beginning of the summary. Parsing HTML into a document object in Fx3 Discussion if Gecko 1.9 will support parsing HTML into a document object. The possibility of turning the MicrosummaryResource object into a XPCOM component, which accomplishes this task in a "hacky" manner, was also discussed. Meetings None this week. ...
2006-09-06 - Archive of obsolete content
Discussions Windows gecko-SDK and g++ components Discussion on the problems and possible solutions running cygwin/g++ compiled XPCOM components with Windows-based Gecko-SDK/XULRunner DLL/EXEs. Threading in XPCOM Rules on threading in XPCOM or to Firefox extensions. ...
... ...
2006-11-24 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Nov 18-Nov 24, 2006 Announcements None during this week. Discussions Tutorials: non C++ bindings for XPCOM Tutorials on how to interface with Firefox using XPCOM on a similar basis to how a developer can with Internet Explorer through it's COM interface Tutorals and References related to extension development Tutorials on developing extensions which use the third party libraries for firefox References to mozilla API Exposed JavaScript Component + XMLDocument not accessible A discussion on Error: uncaught exception: Permission denied to get property XMLDocument.textContent Creating XPCOM components A good discussion about "Components.classes[cid] has no properties" error Firefox HTTP Explanation about how Firefox handles the HTTP ...
... ...
2006-11-17 - Archive of obsolete content
...
... ...
title - Archive of obsolete content
> <url>http://www.advogato.org/image/tinyadvogato.png</url> </image> <item> <title>Why can I not get any tang?!</title> <link>http://www.advogato.org/article/10101.html</link> <description>Seriously. Why can't I get any tang?</description> </item> </channel> </rss> Attributes none Sub-elements none Parent Elements The table below shows a list of RSS elements that this element can be a child of. <tr> <th>Name</td> <th>Tag</td> <th>0.90</td> <th>N 0.91 R1</td> <th>N 0.91 R3</td> <th>U 0.91</td> <th>0.92</td> <th>0.93</td> <th>0.94</td> <th>1.0</td> <th>2.0</td> </tr> <tr> <td>RSS Channel Element</td> <td><channel></td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td...
...d> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>RSS Item Element</td> <td><item></td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>RSS Text Input Element</td> <td><textinput></td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> </table> </center> See Also none RSS Element</td> <th colspan="9" style="text-align:center">RSS Version ...
-ms-overflow-style - Archive of obsolete content
The -ms-overflow-style CSS property is a Microsoft extension controlling the behavior of scrollbars when the content of an element overflows. Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values auto The initial value. Same as inherit. none Scrollbars are never displayed, although the element can still be scrolled if the element's content overflows. scrollbar "Traditional" scrollbars are displayed if the element's content overflows. "Traditional" scrollbars don't auto-hide and never overlap the element's content. Accordingly, the dimensions of the layout area for the content are reduced by the width (for vertical scrollbars) or height (for horizontal scrollb...
...s) of the scrollbar(s). -ms-autohiding-scrollbar Auto-hiding scrollbars are used if the element's content overflows. Auto-hiding scrollbars are displayed during scrolling or shortly after the pointer interacts with the page, and are hidden shortly after scrolling and pointer interaction stops. When they are visible, auto-hiding scrollbars overlap the element's content. Formal syntax auto | none | scrollbar | -ms-autohiding-scrollbar Specifications Not part of any specification. ...
-ms-scroll-translation - Archive of obsolete content
The -ms-scroll-translation CSS property is a Microsoft extension that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element. Initial valuenoneApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values vertical-to-horizontal Vertical to horizontal translation, as described in Remarks, will take place when appropriate. none No scroll wheel translation takes place. inherit The initial value. The value is inherited from the element's parent element. Formal syntax none | vertical-to-horizontal Specifications Not part of any specification. Remarks This property requires Windows 8 or later. This property has no effect on non-scrollable elements. If your JavaScript is listeni...
...izontal scroll events. This property enables you to change this behavior for vertical scroll events. By setting the -ms-scroll-translation property to vertical-to-horizontal, you are specifying that vertical scroll events should be interpreted as their corresponding horizontal scroll events. This property's initial value is inherit on all elements, except the <html> element, where it defaults to none. This property has no effect on keyboard interaction. The default CSS templates for Windows apps using JavaScript, "ui-light.css" and "ui-dark.css", set this property to vertical-to-horizontal by default on the <html> element. ...
-ms-text-autospace - Archive of obsolete content
This is the default value. ideograph-alpha Creates extra spacing between runs of ideographic and non-ideographic text, such as Latin-based, Cyrillic, Greek, Arabic, or Hebrew text. ideograph-numeric Creates extra spacing between runs of ideographic text and numeric characters. ...
...c text, such as Latin-based, Cyrillic, Greek, Arabic, or Hebrew text. ideograph-numeric Creates extra spacing between runs of ideographic text and numeric characters. ideograph-parenthesis Creates extra spacing between a normal (non-wide) parenthesis and an ideograph. ideograph-space Extends the width of the space character when it is adjacent to ideographs. Formal syntax none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space Specifications Not part of any specification. Remarks This property requires Windows 8 or later. This property is an extension to CSS, and can be used as a synonym for text-autospace in IE8 standards Mode. An ideograph is a character in an Asian writing system that represents a concept or an idea, but not a par...
::-ms-clear - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-clear Example HTML <form> <label for="firstname">First name:</label> <input type="text" id="firstname" n...
... ...
::-ms-fill - Archive of obsolete content
erminate if it has a value attribute set; otherwise it is indeterminate. An indeterminate progress bar can be selected with the :indeterminate pseudo-class.) By default, Internet Explorer and Edge display a moving dots animation for an indeterminate progress bar. By setting animation-name on ::-ms-fill, you can change the animation, as shown in this table: Value Description none Turns off the animation so that no dots are displayed. -ms-bar Shows animated dots that flow in a bar pattern. -ms-ring Shows animated dots that flow in a ring pattern. Allowable Properties Only the following CSS properties can be used in a rule with ::-ms-fill in its selector. Other properties are ignored. animation-name background-clip, background-color, b...
...ow in a ring pattern. Allowable Properties Only the following CSS properties can be used in a rule with ::-ms-fill in its selector. Other properties are ignored. ...
display-outside - Archive of obsolete content
The 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. ...
...er formatting contexts, such as flex formatting contexts, may also work with block-level elements. inline-level The element generates an inline-level box, and participates in an inline formatting context. run-in The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements. contents The element lays out its contents using flex layout. none The element generates no boxes, and does not participate in any formatting context. table-row-group, table-header-group, table-footer-group, table-row, table-cell, table-column-group, table-column, table-caption The element is an internal table element, and participates in a table layout context. table-cell and table-caption are layout-specific leaf types; the rest are layout-specific inter...
jQuery - MDN Web Docs Glossary: Definitions of Web-related terms
t. To explain it in detail, $(selector) will call jQuery to select selector element(s), and assign it to an event API called .action(). ...
... $(document).ready(function(){ alert("Hello World!"); $("#blackBox").hide(); }); The above code carries out the same function as the following code: window.onload = function() { alert("Hello World!"); document.getElementById("blackBox").style.display = "none"; }; Or: window.addEventListener("load", () => { alert("Hello World!"); document.getElementById("blackBox").style.display = "none"; }); Learn more General knowledge jQuery on Wikipedia jQuery Official Website Technical information Offical API reference documentation ...
CSS and JavaScript accessibility best practices - Learn web development
is a dotted underline, and it is unwise to significantly deviate from this. For more on abbreviations, see Abbreviations. Links Hyperlinks -- the way you get to new places on the web: <p>Visit the <a href="https://www.mozilla.org">Mozilla homepage</a>.</p> Some very simple link styling is shown below: a { color: #ff0000; } a:hover, a:visited, a:focus { color: #a60000; text-decoration: none; } a:active { color: #000000; background-color: #a60000; } The standard link conventions are underlined and a different color (default: blue) in their standard state, another color variation when the link has previously been visited (default: purple), and yet another color when the link is activated (default: red). In addition, the mouse pointer changes to a pointer icon when links are mous...
...er users don't care about any of this -- they are happy with the content as long as the source order makes sense, and they can get to it all. Absolute positioning (as used in this example) is generally seen as one of the best mechanisms of hiding content for visual effect, because it doesn't stop screen readers from getting to it. On the other hand, you shouldn't use visibility:hidden or display:none, because they do hide content from screen readers. Unless of course, there is a good reason why you want this content to be hidden from screen readers. Note: Invisible Content Just for Screen Reader Users has a lot more useful detail surrounding this topic. Accept that users can override styles Accept that users can override your styles It is possible for users to override your styles with ...
Practical positioning examples - Learn web development
dant selectors with .info-box at the start of the chain throughout this example -- this is so that we can insert this feature into a page with other content already on it, without fear of interfering with the styles applied to other parts of the page. ...
...ist-style-type is set to none to get rid of the bullets, and their width is set to 150px so they will comfortably fit across the info-box. The <a> elements are set to display inline-block so they will sit in a line but still be stylable, and they are styled appropriately for tab buttons, using a variety of other properties. Add the following CSS: .info-box li { float: left; list-style-type: none; width: 150px; } .info-box li a { display: inline-block; text-decoration: none; width: 100%; line-height: 3; background-color: red; color: black; text-align: center; } Finally for this section we'll set some styles on the link states. First, we'll set the :focus and :hover states of the tabs to look different when they are focused/hovered, providing users with some visual feedba...
Getting started with CSS - Learn web development
retty much the same way. However, you will often want something other than the choice the browser has made. This can be done by simply choosing the HTML element that you want to change, and using a CSS rule to change the way it looks. A good example is our <ul>, an unordered list. It has list bullets, and if I decide I don't want those bullets I can remove them like so: li { list-style-type: none; } Try adding this to your CSS now. The list-style-type property is a good property to look at on MDN to see which values are supported. Take a look at the page for list-style-type and you will find an interactive example at the top of the page to try some different values in, then all allowable values are detailed further down the page. Looking at that page you will discover that in addition ...
... or in the process of being clicked (activated). You can use CSS to target these different states -- the CSS below styles unvisited links pink and visited links green. a:link { color: pink; } a:visited { color: green; } You can change the way the link looks when the user hovers over it, for example removing the underline, which is achieved by in the next rule: a:hover { text-decoration: none; } In the live example below, you can play with different values for the various states of a link. I have added the rules above to it, and now realise that the pink color is quite light and hard to read -- why not change that to a better color? Can you make the links bold? We have removed the underline on our link on hover. You could remove the underline from all states of a link. It is wort...
Example 2 - Learn web development
<li class="option">Apple</li> </ul> </div> <form> CSS Content .widget select, .no-widget .select { position : absolute; left : -5000em; height : 0; overflow : hidden; } /* --------------- */ /* Required Styles */ /* --------------- */ .select { position: relative; display : inline-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; outline: none; } .select .optList { position: absolute; top : 100%; left : 0; } .select .optList.hidden { max-height: 0; visibility: hidden; } /* ------------ */ /* Fancy Styles */ /* ------------ */ .select { font-size : 0.625em; /* 10px */ font-family : Verdana, Arial, sans-serif; -moz-box-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1...
... content : "?"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -moz-box-sizing : border-box; box-sizing : border-box; text-align : center; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #FFF; } .select .optList { z-index : 2; list-style: none; margin : 0; padding: 0; background: #f0f0f0; border: .2em solid #000; border-top-width : .1em; border-radius: 0 0 .4em .4em; box-shadow: 0 .2em .4em rgba(0,0,0,.4); -moz-box-sizing : border-box; box-sizing : border-box; min-width : 100%; max-height: 10em; /* 100px */ overflow-y: auto; overflow-x: hidden; } .select .option { padding: .2em .3em; } .select .highlig...
Example 3 - Learn web development
<li class="option">Apple</li> </ul> </div> </form> CSS Content .widget select, .no-widget .select { position : absolute; left : -5000em; height : 0; overflow : hidden; } /* --------------- */ /* Required Styles */ /* --------------- */ .select { position: relative; display : inline-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; outline: none; } .select .optList { position: absolute; top : 100%; left : 0; } .select .optList.hidden { max-height: 0; visibility: hidden; } /* ------------ */ /* Fancy Styles */ /* ------------ */ .select { font-size : 0.625em; /* 10px */ font-family : Verdana, Arial, sans-serif; -moz-box-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1...
... content : "?"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -moz-box-sizing : border-box; box-sizing : border-box; text-align : center; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #FFF; } .select .optList { z-index : 2; list-style: none; margin : 0; padding: 0; background: #f0f0f0; border: .2em solid #000; border-top-width : .1em; border-radius: 0 0 .4em .4em; box-shadow: 0 .2em .4em rgba(0,0,0,.4); -moz-box-sizing : border-box; box-sizing : border-box; min-width : 100%; max-height: 10em; /* 100px */ overflow-y: auto; overflow-x: hidden; } .select .option { padding: .2em .3em; } .select .highlig...
Example 4 - Learn web development
<li class="option">Apple</li> </ul> </div> </form> CSS Content .widget select, .no-widget .select { position : absolute; left : -5000em; height : 0; overflow : hidden; } /* --------------- */ /* Required Styles */ /* --------------- */ .select { position: relative; display : inline-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; outline: none; } .select .optList { position: absolute; top : 100%; left : 0; } .select .optList.hidden { max-height: 0; visibility: hidden; } /* ------------ */ /* Fancy Styles */ /* ------------ */ .select { font-size : 0.625em; /* 10px */ font-family : Verdana, Arial, sans-serif; -moz-box-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1...
... content : "?"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -moz-box-sizing : border-box; box-sizing : border-box; text-align : center; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #FFF; } .select .optList { z-index : 2; list-style: none; margin : 0; padding: 0; background: #f0f0f0; border: .2em solid #000; border-top-width : .1em; border-radius: 0 0 .4em .4em; box-shadow: 0 .2em .4em rgba(0,0,0,.4); -moz-box-sizing : border-box; box-sizing : border-box; min-width : 100%; max-height: 10em; /* 100px */ overflow-y: auto; overflow-x: hidden; } .select .option { padding: .2em .3em; } .select .highlig...
Example 5 - Learn web development
tion" role="option">Apple</li> </ul> </div> </form> CSS Content .widget select, .no-widget .select { position : absolute; left : -5000em; height : 0; overflow : hidden; } /* --------------- */ /* Required Styles */ /* --------------- */ .select { position: relative; display : inline-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; outline: none; } .select .optList { position: absolute; top : 100%; left : 0; } .select .optList.hidden { max-height: 0; visibility: hidden; } /* ------------ */ /* Fancy Styles */ /* ------------ */ .select { font-size : 0.625em; /* 10px */ font-family : Verdana, Arial, sans-serif; -moz-box-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1...
... content : "?"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -moz-box-sizing : border-box; box-sizing : border-box; text-align : center; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #FFF; } .select .optList { z-index : 2; list-style: none; margin : 0; padding: 0; background: #f0f0f0; border: .2em solid #000; border-top-width : .1em; border-radius: 0 0 .4em .4em; box-shadow: 0 .2em .4em rgba(0,0,0,.4); -moz-box-sizing : border-box; box-sizing : border-box; min-width : 100%; max-height: 10em; /* 100px */ overflow-y: auto; overflow-x: hidden; } .select .option { padding: .2em .3em; } .select .highlig...
Example - Learn web development
ration date:</span> <strong><abbr title="required">*</abbr></strong> <em>formatted as mm/dd/yyyy</em> </label> <input type="date" id="date" name="expiration"> </p> </section> <section> <p> <button type="submit">Validate the payment</button> </p> </section> </form> CSS Content h1 { margin-top: 0; } ul { margin: 0; padding: 0; list-style: none; } form { margin: 0 auto; width: 400px; padding: 1em; border: 1px solid #CCC; border-radius: 1em; } div+div { margin-top: 1em; } label span { display: inline-block; width: 120px; text-align: right; } input, textarea { font: 1em sans-serif; width: 250px; box-sizing: border-box; border: 1px solid #999; } input[type=checkbox], input[type=radio...
... width: 400px; padding: 1em; border: 1px solid #CCC; border-radius: 1em; } div+div { margin-top: 1em; } label span { display: inline-block; width: 120px; text-align: right; } input, textarea { font: 1em sans-serif; width: 250px; box-sizing: border-box; border: 1px solid #999; } input[type=checkbox], input[type=radio] { width: auto; border: none; } input:focus, textarea:focus { border-color: #000; } textarea { vertical-align: top; height: 5em; resize: vertical; } fieldset { width: 250px; box-sizing: border-box; margin-left: 136px; border: 1px solid #999; } button { margin: 20px 0 0 124px; } label { position: relative; } label em { position: absolute; right: 5px; top: 20px; } Result ...
Other form controls - Learn web development
the series (see the source code also). Controlling multi-line rendering <textarea> accepts three attributes to control its rendering across several lines: cols Specifies the visible width (columns) of the text control, measured in average character widths. This is effectively the starting width, as it can be changed by resizing the <textarea>, and overriden using CSS. The default value if none is specified is 20. rows Specifies the number of visible text rows for the control. This is effectively the starting height, as it can be changed by resizing the <textarea>, and overriden using CSS. The default value if none is specified is 2. wrap Specifies how the control wraps text. The values are soft (the default value), which means the text submitted is not wrapped but the text rendered...
...), which means both the submitted and rendered texts are wrapped, and off, which stops wrapping. Controlling textarea resizability The ability to resize a <textarea> is controlled with the CSS resize property. Its possible values are: both: The default -- allows resizing horizontally and vertically. horizontal: Allows resizing only horizontally. vertical: Allows resizing only vertically. none: Allows no resizing. block and inline: Experimental values that allow resizing in the block or inline direction only (this varies depending on the directionality of your text; read Handling different text directions if you want to find out more.) Play with the interactive example at the top of the resize reference page for a demonstration of how these work. Drop-down controls Drop-down contr...
UI pseudo-classes - Learn web development
value="Mr Soft" readonly> </div> If you try the live example, you'll see that the top set of form elements are not focusable, however, the values are submitted when the form is submitted. We've styled the form controls using the :read-only and :read-write pseudo-classes, like so: input:-moz-read-only, textarea:-moz-read-only, input:read-only, textarea:read-only { border: 0; box-shadow: none; background-color: white; } textarea:-moz-read-write, textarea:read-write { box-shadow: inset 1px 1px 3px #ccc; border-radius: 5px; } Firefox only supported these pseudo-classes with a prefix up to version 78; at which point it started to support the unprefixed version. The full example looks like so: Note: :enabled and :read-write are two more pseudo-classes that you'll probably rar...
...ither checked nor unchecked, they are considered indeterminate and will match the :indeterminate pseudo-class. More on what this means below. :checked When checked, they will be matched by the :checked pseudo-class. The most common use of this is to add a different style onto the checkbox/radiobutton when it is checked, in cases where you've removed the system default styling with appearance: none; and want to build the styles back up yourself. We saw examples of this in the previous article when we talked about Using appearence: none on radios/checkboxes. As a recap, the :checked code from our Styled radio buttons example looks like so: input[type="radio"]::before { display: block; content: " "; width: 10px; height: 10px; border-radius: 6px; background-color: red; font-siz...
Responsive images - Learn web development
are saying "when the viewport width is 600 pixels or less". A space The width of the slot the image will fill when the media condition is true (480px) Note: For the slot width, you may provide an absolute length (px, em) or a length relative to the viewport (vw), but not percentages. You may have noticed that the last slot width has no media condition (this is the default that is chosen when none of the media conditions are true). The browser ignores everything after the first matching condition, so be careful how you order the media conditions. So, with these attributes in place, the browser will: Look at its device width. Work out which media condition in the sizes list is the first one to be true. Look at the slot size given to that media query. Load the image referenced in the...
...d, as well as a sizes attribute. So, you could offer multiple images via a <picture> element, but then also offer multiple resolutions of each one. Realistically, you probably won't want to do this kind of thing very often. In all cases, you must provide an <img> element, with src and alt, right before </picture>, otherwise no images will appear. This provides a default case that will apply when none of the media conditions return true (you could actually remove the second <source> element in this example), and a fallback for browsers that don't support the <picture> element. This code allows us to display a suitable image on both wide screen and narrow screen displays, as shown below: Note: You should use the media attribute only in art direction scenarios; when you do use media, don't...
Making decisions in your code — conditionals - Learn web development
<select> element. We then use a conditional statement to show different text inside the paragraph depending on what the value of choice is. Notice how all the conditions are tested in else if() {...} blocks, except for the first one, which is tested in an if() {...} block. The very last choice, inside the else {...} block, is basically a "last resort" option -- the code inside it will be run if none of the conditions are true. In this case, it serves to empty the text out of the paragraph if nothing is selected, for example, if a user decides to re-select the "--Make a choice--" placeholder option shown at the beginning. Note: You can also find this example on GitHub (see it running live on there also.) A note on comparison operators Comparison operators are used to test the conditions...
... moves on to any code that appears below the switch statement. As many other cases (bullets 3-5) as you like. The keyword default, followed by exactly the same code pattern as one of the cases (bullets 3-5), except that default does not have a choice after it, and you don't need to break statement as there is nothing to run after this in the block anyway. This is the default option that runs if none of the choices match. Note: You don't have to include the default section -- you can safely omit it if there is no chance that the expression could end up equaling an unknown value. If there is a chance of this, however, you need to include it to handle unknown cases. A switch example Let's have a look at a real example -- we'll rewrite our weather forecast application to use a switch state...
Client-side storage - Learn web development
e')) { // If it is, display personalized greeting let name = localStorage.getItem('name'); h1.textContent = 'Welcome, ' + name; personalGreeting.textContent = 'Welcome to our website, ' + name + '! ...
...If we don't do this, then the personalized greeting will not persist across page reloads. ...
Getting started with Svelte - Learn web development
Variables declared (or imported) at the top level are 'visible' from the component's markup. Top-level variables is the way Svelte handles the component state, and they are reactive by default. We will explain in detail what this means later on. <script> export let ...
...ync values, respectively. The <style> section If you have experience working with CSS, the following snippet should make sense: <style> main { text-align: center; padding: 1em; max-width: 240px; margin: 0 auto; } h1 { color: #ff3e00; text-transform: uppercase; font-size: 4em; font-weight: 100; } @media (min-width: 640px) { main { max-width: none; } } </style> We are applying a style to our <h1> element. What will happen other components with <h1> elements in them? In Svelte, CSS inside a component's <style> block will be scoped only to that component. This works by adding a class to selected elements, which is based on a hash of the component styles. You can see this in action by opening localhost:5000 in a new browser tab, righ...
The Firefox codebase: CSS Guidelines
s: <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <?xml-stylesheet href="chrome://browser/content/path/module.css" type="text/css"?> <?xml-stylesheet href="chrome://browser/skin/path/module.css" type="text/css"?> [1] -moz-appearance is tricky. Generally, when specifying -moz-appearance: foo; you're giving hints as to how something should act, however -moz-appearance: none; is probably saying 'ignore browser preconceptions - I want a blank sheet', so that's more visual. However -moz-appearance values aren't implemented and don't behave consistently across platforms, so idealism aside -moz-appearance should always be in theme CSS. [2] However there is probably a better way than using absolute positioning. Colors For common areas of the Firefox interface (panels...
...lowing example, -moz-mac-yosemite-theme targets macOS 10.10 and higher, so it should be privileged over the styling for macOS 10.9. Do this: @media (-moz-mac-yosemite-theme: 0) { #placesList { box-shadow: inset -2px 0 0 hsla(0,0%,100%,.2); } } Not this: #placesList { box-shadow: inset -2px 0 0 hsla(0,0%,100%,.2); } @media (-moz-mac-yosemite-theme) { #placesList { box-shadow: none; } } Theme support Firefox comes built-in with 3 themes: default, light and dark. The built-in light/dark themes are a bit special as they load the compacttheme.css stylesheet. In addition to this, Firefox supports a variety of WebExtension themes that can be installed from AMO. For testing purposes, here is an example of a WebExtension theme. Writing theme-friendly CSS Some CSS variab...
How to implement a custom autocomplete search component
}, /** * @return {number} the result code of this result object, either: * RESULT_IGNORED (invalid searchString) * RESULT_FAILURE (failure) * RESULT_NOMATCH (no matches found) * RESULT_SUCCESS (matches found) */ get searchResult() { return this._searchResult; }, /** * @return {number} the index of the default item that should be entered if * none is selected */ get defaultIndex() { return this._defaultIndex; }, /** * @return {string} description of the cause of a search failure */ get errorDescription() { return this._errorDescription; }, /** * @return {number} the number of matches */ get matchCount() { return this._results.length; }, /** * @return {string} the value of the result at the...
...his._searchString; }, /** * The result code of this result object, either: * RESULT_IGNORED (invalid searchString) * RESULT_FAILURE (failure) * RESULT_NOMATCH (no matches found) * RESULT_SUCCESS (matches found) */ get searchResult() { return this._searchResult; }, /** * Index of the default item that should be entered if none is selected */ get defaultIndex() { return this._defaultIndex; }, /** * A string describing the cause of a search failure */ get errorDescription() { return this._errorDescription; }, /** * The number of matches */ get matchCount() { return this._results.length; }, /** * Get the value of the result at the given index */ getValueAt: function(...
AddonManager
Constant Description AUTOUPDATE_DISABLE Indicates that the add-on should not update automatically. AUTOUPDATE_DEFAULT Indicates that the add-on should update automatically only if that's the global default. AUTOUPDATE_ENABLE Indicates that the add-on should update automatically. Pending operations Constant Description PENDING_NONE No operations are pending. PENDING_ENABLE This add-on will be enabled after the application restarts. PENDING_DISABLE This add-on will be disabled after the application restarts. PENDING_UNINSTALL This add-on will be uninstalled after the application restarts. PENDING_INSTALL This add-on will be installed after the application restarts. ...
...ation restarts. Permissions Constant Description PERM_CAN_UNINSTALL This add-on can be uninstalled. PERM_CAN_ENABLE This add-on can be enabled. PERM_CAN_DISABLE This add-on can be disabled. PERM_CAN_UPGRADE This add-on can be upgraded. Operations requiring restart Constant Description OP_NEEDS_RESTART_NONE No operations will require a restart. OP_NEEDS_RESTART_ENABLE Enabling the add-on will require a restart. OP_NEEDS_RESTART_DISABLE Disabling the add-on will require a restart. OP_NEEDS_RESTART_UNINSTALL Uninstalling the add-on will require a restart. OP_NEEDS_RESTART_INSTALL Installing the add-on will require a restart. Installation scopes...
Add-on Repository
earchCallback callback) Properties Property Type Description homepageURL string The URL of the repository site's home page. isSearching boolean true if a search is currently in progress; otherwise false. Methods getRecommendedURL() Returns the URL that can be visited to see recommended add-ons. string getRecommendedURL(); Parameters None. Return value An URL indicating the repository's page of recommended add-ons. getSearchURL() Returns an URL of a web page that can be visited to see search results for the specified search terms. string getSearchURL( in string searchTerms ); Parameters searchTerms Search terms used to search the repository. Return value The URL of the search results page for the specified search te...
...e visited to see search results for the specified search terms. string getSearchURL( in string searchTerms ); Parameters searchTerms Search terms used to search the repository. Return value The URL of the search results page for the specified search terms. cancelSearch() Cancels the search in progress. Does nothing if there is no search in progress. void cancelSearch(); Parameters None. retrieveRecommendedAddons() Begins a search for recommended add-ons in the repository. The list of recommended add-ons frequently changes. Results will be passed to the given SearchCallback callback. void retrieveRecommendedAddons( in integer maxResults, in SearchCallback callback ); Parameters maxResults The maximum number of results to return. callback The SearchCallback callback...
FxAccountsOAuthClient.jsm
authorizationEndpoint Optional Optional authorization endpoint for the OAuth server. Default: /authorization Return value A newly created FxAccountsOAuthClient object implementing the methods described in this article. Methods launchWebFlow() Opens a new tab at the Firefox Accounts OAuth authorization URL. Registers a WebChannel listener and sets up a callback if needed. ...
...ewly created FxAccountsOAuthClient object implementing the methods described in this article. Methods launchWebFlow() Opens a new tab at the Firefox Accounts OAuth authorization URL. Registers a WebChannel listener and sets up a callback if needed. Parameters None tearDown() Call this function to manually release all channels and callbacks that are in use by this client. ...
PerfMeasurement.jsm
alues. OR together all the event types you want to record, and pass that value here. Pass PerfMeasurement.ALL to record all event types. Return value A new PerfMeasurement object configured to record the specified event types. Methods canMeasureSomething() Indicates whether or not the platform on which your code is running supports this code module. static bool canMeasureSomething(); Parameters None. Return value If even one of the event types can be recorded, this will return true. Otherwise, it returns false. reset() Resets all the enabled counters to zero. void reset(); Parameters None. start() Starts measuring the performance indicators that were specified when the PerfMeasurement object was created. void start(); Parameters None. stop() Stops measuring performance data. For each enabl...
...bled counters to zero. void reset(); Parameters None. start() Starts measuring the performance indicators that were specified when the PerfMeasurement object was created. void start(); Parameters None. stop() Stops measuring performance data. For each enabled counter, the number of measured events of that type that occurred are added to the appropriate visible variable. void stop(); Parameters None. ...
MathML Demo: <mmultiscripts> - attach prescripts and tensor indices to a base
A MathML mmultiscripts object allows you to build tensor-like objects. For example M c d a b . The scripts come in pairs, with <mprescripts/> used to indicate prescripts and <none/> used to hold an empty position as in F b a . There are some variations possible: <mmultiscripts> A a b c d , nested <msubsup>s A a b c d , or &InvisibleComma; A a c b d . displays A MathML mmultiscripts objects allows you to build tensor-like objects. ...
... hold an empty position as in F b a . There are some variations possible: <mmultiscripts> A a b c d , nested <msubsup>s A a b c d , or &InvisibleComma; A a c b d . ...
Mozilla Style System Documentation
its pseudo-elements that are not in the CSS specification.) We also create style contexts for some things that are not CSS formatting objects: text nodes and placeholder frames. These three types of style contexts correspond to the three ways of creating a style context: nsIPresContext::ResolveStyleContextFor, nsIPresContext::ResolvePseudoStyleContextFor, and.nsIPresContext::ResolveStyleContextForNonElement There is also a fourth method, nsIPresContext::ProbePseudoStyleContextFor, which creates a style context only if there are style rules that match the pseudo-element. This is useful for the pseudo-elements defined in the CSS specification (:before, :after, :first-line, :first-letter), but few of Mozilla's custom pseudo-elements, many of which are hacks for further formatting objects that we ...
...is that most style rules specify properties in very few structs. As stated above, each style struct contains only features that are inherited by default or those that are set to their initial value ("reset") by default. This leads to (or perhaps three, depending on how you count) two types of sharing. For those structs where all the values are inherited by default, a style context can often (when none of the rules matched by the style context specifies any properties in the struct, or when explicit inherit is used) use the same struct as its parent style context. For the structs where all the properties are reset by default, if no explicit inherit values or em or similar units are used, the style struct can be cached on the rule node rather than the style context and shared between all style c...
Power profiling overview
thing to note about C-states is that they apply both to cores and the entire package -- i.e. if all cores are idle then the entire package can also become idle, which reduces power consumption even further. The fraction of time that a package or core spends in an idle C-state is called the C-state residency. This is a misleading term -- the active state, C0, is also a C-state -- but one that is nonetheless common. Intel processors have model-specific registers (MSRs) containing measurements of how much time is spent in different C-states, and tools such as powermetrics (Mac), powertop and turbostat (Linux) can expose this information. A wakeup occurs when a core or package transitions from an idle state to the active state. This happens when the OS schedules a process to run due to some ki...
...tivity Monitor. Ways to user power-related measurements Low-context measurements Most power-related measurements are global or per-process. Such low-context measurements are typically good for understand if power consumption is good or bad, but in the latter case they often don't provide much insight into why the problem is occurring, which part of the code is at fault, or how it can be fixed. Nonetheless, they can still help improve understanding of a problem by using differential profiling. Compare browsers to see if Firefox is doing better or worse than another browser on a particular workload. Compare different versions of Firefox to see if Firefox has improved or worsened over time on a particular workload. This can identify specific changes that caused regressions, for example. C...
Phishing: a short definition
ntain a link pretending to lead to the original service, but in reality, taking the victim to an attacker-controlled website. The login portal might resemble the trusted website's login page very closely, and convince users to enter their credentials, letting others hijack their account. Past and current countermeasures Various technical, and social approaches, exist to combat phishing attacks. None of these are sufficient by themselves, so we see a mix of these deployed by various services. The following is a non-exhaustive list of the most common approaches. Shifting blame to users Some quick-to-implement, and cost-effective solutions, hold users accountable for their actions instead of restricting what's technically possible. Earlier responses by affected banks, and payment providers, w...
...too, are interested in protecting their users from phishing. After all, the browser plays an essential role in the scheme: a fake website is loaded in a browser and here is the maker's last chance to preventing fraud. Since version 2.0, Firefox has used Google's SafeBrowsing service, to detect known web forgeries, and display an alert instead of the fraudulent website. Two-Factor Authentication None of the above anti-phishing measures address the basic problem: username/password combinations are often enough to impersonate users. Enter the world of second factors. A second factor is something a user possesses to further authenticate with a service. For example, a USB token, Bluetooth device, mobile phone, or simply a key stored on a separate device. The first factor is usually the password ...
Leak And Bloat Tests
ger.accounts", "account1,account2"); user_pref("mail.accountmanager.defaultaccount", "account2"); user_pref("mail.accountmanager.localfoldersserver", "server1"); user_pref("mail.identity.id1.fullName", "Tinderbox"); user_pref("mail.identity.id1.smtpServer", "smtp1"); user_pref("mail.identity.id1.useremail", "tinderbox@invalid.com"); user_pref("mail.identity.id1.valid", true); user_pref("mail.root.none-rel", "[ProfD]Mail"); user_pref("mail.root.pop3-rel", "[ProfD]Mail"); user_pref("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders"); user_pref("mail.server.server1.hostname", "Local Folders"); user_pref("mail.server.server1.name", "Local Folders"); user_pref("mail.server.server1.type", "none"); user_pref("mail.server.server1.userName", "nobody"); user_pref("mail.server.server2.check...
...ail.smtpservers", "smtp1"); user_pref("mail.startup.enabledMailCheckOnce", true); user_pref("mailnews.start_page_override.mstone", "1.9pre"); user_pref("mail.shell.checkDefaultClient", false); // Ensure OS X and Outlook/OE books are disabled user_pref("ldap_2.servers.osx.position", 0); user_pref("ldap_2.servers.oe.position", 0); Preferences in generated profile, but not set: user_pref("mail.root.none", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail"); user_pref("mail.root.pop3", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail"); user_pref("mail.server.server1.directory", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail/Local Folders"); user_pref("mail.server.server2.directory", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail/tinderbox"); user_pref("mail.attachment.store.version", 1); ...
PRExplodedTime
hours past tm_mday. The range is [0, 23]. tm_min: number of minutes past tm_hour. The range is [0, 59]. tm_sec: number of seconds past tm_min. The range is [0, 61]. The values 60 and 61 are for accommodating up to two leap seconds. tm_usec: number of microseconds past tm_sec. The range is [0, 999999]. tm_params: a PRTimeParameters structure representing the local time zone information. The nonessential members of PRExplodedTime are: tm_wday: day of week. The range is [0, 6]. 0 is Sunday, 1 is Monday, and 6 is Saturday. tm_yday: day of year. The range is [0, 365]. 0 is the 1st of January. On input to NSPR functions, only the essential members of PRExplodedTime must be specified. The two nonessential members (day of week and day of year) are ignored by NSPR functions as input. When ...
...ear. The range is [0, 365]. 0 is the 1st of January. On input to NSPR functions, only the essential members of PRExplodedTime must be specified. The two nonessential members (day of week and day of year) are ignored by NSPR functions as input. When an NSPR function returns a PRExplodedTime object or sets a PRExplodedTime object as output, all of the PRExplodedTime members are set, including the nonessential members. You can also use PR_NormalizeTime() to calculate the values of the nonessential members. ...
PR_ReadDir
Do not skip any files. PR_SKIP_DOT. ...
...ccurs, NULL. The reason can be retrieved via PR_GetError. Description PR_ReadDir returns a pointer to a directory entry structure: struct PRDirEntry { const char *name; }; typedef struct PRDirEntry PRDirEntry; The structure has the following field: name Name of entry, relative to directory name. The flags parameter is an enum of type PRDirFlags: typedef enum PRDirFlags { PR_SKIP_NONE = 0x0, PR_SKIP_DOT = 0x1, PR_SKIP_DOT_DOT = 0x2, PR_SKIP_BOTH = 0x3, PR_SKIP_HIDDEN = 0x4 } PRDirFlags; The memory associated with the returned PRDirEntry structure is managed by NSPR. The caller must not free the PRDirEntry structure. Moreover, the PRDirEntry structure returned by each PR_ReadDir call is valid only until the next PR_ReadDir or PR_CloseDir call on the same PR...
NSS 3.15.1 release notes
supported. HMAC-SHA256 cipher suites (RFC 5246 and RFC 5289) are supported, allowing TLS to be used without MD5 and SHA-1. Note the following limitations. The hash function used in the signature for TLS 1.2 client authentication must be the hash function of the TLS 1.2 PRF, which is always SHA-256 in NSS 3.15.1. AES GCM cipher suites are not yet supported. New Functions None. New Types in sslprot.h SSL_LIBRARY_VERSION_TLS_1_2 - The protocol version of TLS 1.2 on the wire, value 0x0303. TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_NULL_SHA256 - New TLS 1.2 only HM...
...A256 cipher suites. in sslerr.h SSL_ERROR_UNSUPPORTED_HASH_ALGORITHM, SSL_ERROR_DIGEST_FAILURE, SSL_ERROR_INCORRECT_SIGNATURE_ALGORITHM - New error codes for TLS 1.2. in sslt.h ssl_hmac_sha256 - A new value in the SSLMACAlgorithm enum type. ssl_signature_algorithms_xtn - A new value in the SSLExtensionType enum type. New PKCS #11 Mechanisms None. Notable Changes in NSS 3.15.1 Bug 856060 - Enforce name constraints on the common name in libpkix when no subjectAltName is present. Bug 875156 - Add const to the function arguments of SEC_CertNicknameConflict. Bug 877798 - Fix ssltap to print the certificate_status handshake message correctly. Bug 882829 - On Windows, NSS initialization fails if NSS cannot call the RtlGenRandom functi...
NSS 3.42 release notes
_3_42_RTM. NSS 3.42 requires NSPR 4.20 or newer. NSS 3.42 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_42_RTM/src/ Other releases are available in NSS Releases. ...
...ilable on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_42_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.42 New Functionality Bug 818686 - Support XDG basedir specification New Functions none Notable Changes in NSS 3.42 The following CA certificates were Added: None The following CA certificates were Removed: None Added support for some of the testcases from the Wycheproof project: Bug 1508666 - Added AES-GCM test cases Bug 1508673 - Added ChaCha20-Poly1305 test cases Bug 1514999 - Added the Curve25519 test cases Thanks to Jonas Allmann for adapting these tests. ...
NSS Sample Code Sample_2_Initialization of NSS
char *oldPwFile, char *newPwFile) { SECStatus rv; secuPWData pwdata; secuPWData newpwdata; char *oldpw = NULL; char *newpw = NULL; if (oldPass) { pwdata.source = PW_PLAINTEXT; pwdata.data = oldPass; } else if (oldPwFile) { pwdata.source = PW_FROMFILE; pwdata.data = oldPwFile; } else { pwdata.source = PW_NONE; pwdata.data = NULL; } if (newPass) { newpwdata.source = PW_PLAINTEXT; newpwdata.data = newPass; } else if (newPwFile) { newpwdata.source = PW_FROMFILE; newpwdata.data = NULL; } else { newpwdata.source = PW_NONE; newpwdata.data = NULL; } if (PK11_NeedUserInit(slot)) { newpw = InitSlotPassword(slot, PR_FALSE,...
... Try again.\n"); } else { PR_fprintf(PR_STDERR, "Invalid password.\n"); PORT_Memset(oldpw, 0, PL_strlen(oldpw)); PORT_Free(oldpw); return SECFailure; } } else { break; } P...
Initialize NSS database - sample 2
, char *oldPwFile, char *newPwFile) { SECStatus rv; secuPWData pwdata; secuPWData newpwdata; char *oldpw = NULL; char *newpw = NULL; if (oldPass) { pwdata.source = PW_PLAINTEXT; pwdata.data = oldPass; } else if (oldPwFile) { pwdata.source = PW_FROMFILE; pwdata.data = oldPwFile; } else { pwdata.source = PW_NONE; pwdata.data = NULL; } if (newPass) { newpwdata.source = PW_PLAINTEXT; newpwdata.data = newPass; } else if (newPwFile) { newpwdata.source = PW_FROMFILE; newpwdata.data = NULL; } else { newpwdata.source = PW_NONE; newpwdata.data = NULL; } if (PK11_NeedUserInit(slot)) { newpw = InitSlotPassword(slot, PR_FALSE,...
... Try again.\n"); } else { PR_fprintf(PR_STDERR, "Invalid password.\n"); PORT_Memset(oldpw, 0, PL_strlen(oldpw)); PORT_Free(oldpw); return SECFailure; } } else { break; } P...
Utilities for nss samples
UTIL_H #include <prlog.h> #include <termios.h> #include <base64.h> #include <unistd.h> #include <sys/stat.h> #include "util.h" #include <prprf.h> #include <prerror.h> #include <nss.h> #include <pk11func.h> /* * These utility functions are adapted from those found in * the sectool library used by the NSS security tools and * other NSS test applications. ...
...en+1]; break; } while (i<nb); phrase = PORT_Strdup((char*)phrase); PORT_Free(phrases); return phrase; } /* * GetModulePassword */ char* GetModulePassword(PK11SlotInfo *slot, int retry, void *arg) { char prompt[255]; secuPWData *pwdata = (secuPWData *)arg; char *pw; if (pwdata == NULL) { return NULL; } if (retry && pwdata->source != PW_NONE) { PR_fprintf(PR_STDERR, "Incorrect password/PIN entered.\n"); return NULL; } switch (pwdata->source) { case PW_NONE: sprintf(prompt, "Enter Password or Pin for \"%s\":", PK11_GetTokenName(slot)); return GetPassword(stdin, stdout, prompt, CheckPassword); case PW_FROMFILE: pw = FilePasswd(slot, retry, pwdata->data); p...
NSS tools : certutil
certificates be created in the key database. This document discusses certificate and key database management. For information on the security module database management, see the modutil manpage. Options and Arguments Running certutil always requires one and only one command option to specify the type of certificate operation. Each option may take arguments, anywhere from none to multiple arguments. The command option -H will list all the command options available and their relevant arguments. Command Options -A Add an existing certificate to a certificate database. The certificate database should already exist; if one is not present, this command option will initialize one by default. -B Run a series of...
...485. -t trustargs Specify the trust attributes to modify in an existing certificate or to apply to a certificate when creating it or adding it to a database. There are three available trust categories for each certificate, expressed in the order SSL, email, object signing for each trust setting. ...
sslerr.html
llback function either was not configured or did not choose to override the error code returned by the certificate authentication callback function. -12283 (unused) SSL_ERROR_BAD_CLIENT -12282 "The server has encountered bad data from the client." This error code should occur only on sockets that are acting as servers. It is a generic error, used when none of the other more specific error codes defined in this file applies. SSL_ERROR_BAD_SERVER -12281 "The client has encountered bad data from the server." This error code should occur only on sockets that are acting as clients. It is a generic error, used when none of the other more specific error codes defined in this file applies. SSL_ERROR_UNSUPPORTED_CE...
... SEC_ERROR_UNSUPPORTED_KEYALG -8144 Unsupported or unknown key algorithm. SEC_ERROR_DECRYPTION_DISALLOWED -8143 Cannot decrypt: encrypted using a disallowed algorithm or key size. XP_SEC_FORTEZZA_BAD_CARD -8142 FORTEZZA card has not been properly initialized. XP_SEC_FORTEZZA_NO_CARD -8141 No FORTEZZA cards found. XP_SEC_FORTEZZA_NONE_SELECTED -8140 No FORTEZZA card selected. XP_SEC_FORTEZZA_MORE_INFO -8139 Please select a personality to get more info on. XP_SEC_FORTEZZA_PERSON_NOT_FOUND -8138 Personality not found XP_SEC_FORTEZZA_NO_MORE_INFO -8137 No more information on that personality. XP_SEC_FORTEZZA_BAD_PIN -8136 Invalid PIN. XP_SEC_FORTEZZA_PERSO...
certutil
erating and managing certificates in the certificate database. This document discusses certificate and key database management. For information security module database management, see the modutil manpages. Options and Arguments Running certutil always requires one (and only one) option to specify the type of certificate operation. Each option may take arguments, anywhere from none to multiple arguments. Run the command option and -H to see the arguments available for each command option. Options Options specify an action and are uppercase. -A Add an existing certificate to a certificate database. The certificate database should already exist; if one is not present, this option will initialize one by default. -B ...
... #1485. -t trustargs Specify the trust attributes to modify in an existing certificate or to apply to a certificate when creating it or adding it to a database. There are three available trust categories for each certificate, expressed in the order SSL, email, object signing for each trust setting. ...
Rhino scopes and contexts
ion's activation object and will end with the top-level scope (see diagram below). The activation object has two properties, 'a' for the argument, and 'v' for the variable. The top-level scope has properties for the variable g and the function f. An example scope chain for a simple script. When the statement x = v + a; is executed, the scope chain is traversed looking for a 'x' property. When none is found, a new property 'x' is created in the top-level scope. Sharing Scopes JavaScript is a language that uses delegation rather than traditional class-based inheritance. This is a large topic in itself, but for our purposes it gives us an easy way to share a set of read-only variables across multiple scopes. To do this we set an object's prototype. When accessing a property of an object in...
... JavaScript is a language that uses delegation rather than traditional class-based inheritance. This is a large topic in itself, but for our purposes it gives us an easy way to share a set of read-only variables across multiple scopes. To do this we set an object's prototype. When accessing a property of an object in JavaScript, the object is first searched for a property with the given name. If none is found, the object's prototype is searched. This continues until either the object is found or the end of the prototype chain is reached. So to share information across multiple scopes, we first create the object we wish to share. Typically this object will have been created with initStandardObjects and may also have additional objects specific to the embedding. Then all we need to do is creat...
Scripting Java
thrown by Java methods can be caught by JavaScript code using try...catch statement. ...
...to define conditional catching of exceptions: function classForName(name) { try { return java.lang.Class.forName(name); } catch (e if e.javaException instanceof java.lang.ClassNotFoundException) { print("Class " + name + " not found"); } catch (e if e.javaException instanceof java.lang.NullPointerException) { print("Class name is null"); } } classForName("NonExistingClass"); classForName(null); ...
Statistics API
If a filename is given, data is appended to that file. ...
...llected by the GC. compartment_count: integer - The number of compartments that were present in the system at the end of the GC. max_pause: number (milliseconds) - Longest duration pause during the GC. nonincremental_reason: string - A string representing the reason that an incremental GC was aborted or forced to finish in a single slice. If the incremental GC completed normally, this will be "none". allocated: integer (MB) - Size of the JavaScript heap in MiB at the start of the GC. slices: array of Objects - A list of objects describing each slice in detail. times: Object - A map from phase names to the total time taken by each phase: the sum of each field of the map from the slices. The last two fields require a bit of elaboration. GC work can be divided into phases, such as marking...
Accessing the Windows Registry Using XPCOM
w to read an existing string value. However, Windows registry values can have several data types, so you need to ensure that you read the correct type. You can check the type of a value using the method getValueType(). This method returns an integer indicating the data type of the value. ...
...the method getValueType(). This method returns an integer indicating the data type of the value. The data types supported by this interface are defined as named constants on the interface as follows: TYPE_NONE -- Probably not useful TYPE_STRING -- A Unicode string value TYPE_BINARY -- Binary data TYPE_INT -- A 32 bit integer TYPE_INT64 -- A 64 bit integer Each of these types (except TYPE_NONE) has a corresponding method to read the value data: readStringValue() readBinaryValue() readIntValue() readInt64Value() Since JavaScript is a dynamically-typed language, you may wish to use the following code to handle all types of data. In this function, wrk is expected to be an already opened nsIWindowsRegKey. function readRegistryValue(wrk, value) { switch (wrk.getValueType(value)) ...
Detailed XPCOM hashtable guide
ant time can be larger than an array lookup Sorting: sorted: stored sorted; iterated over in a sorted fashion. unsorted: stored unsorted; cannot be iterated over in a sorted manner. Inserting/Removing: O(n): adding and removing items from a large array can be time-consuming O(1): adding and removing items from hashtables is a quick operation Wasted space: none: Arrays are packed structures, so there is no wasted space. some: hashtables are not packed structures; depending on the implementation, there may be significant wasted memory. In their implementation, hashtables take the key and apply a mathematical hash function to randomize the key and then use the hash to find the location in the hashtable. Good hashtable implementations will automa...
...o a simple datatype; client does not need to declare or manage an entry class; nsDataHashtable datatype is a scalar such as PRUint32; nsInterfaceHashtable datatype is an interface; nsClassHashtable datatype is a class pointer owned by the hashtable. ...
amIInstallTrigger
nt32 aFlags); Deprecated since Gecko 2.0 boolean updateEnabled(); Deprecated since Gecko 2.0 Constants Retained for backwards compatibility. Constant Value Description SKIN 1 LOCALE 2 CONTENT 4 PACKAGE 7 Methods enabled() Tests if installation is enabled. boolean enabled(); Parameters None. Return value install() Starts a new installation of a set of add-ons. boolean install( in nsIVariant aArgs, in amIInstallCallback aCallback Optional ); Parameters aArgs The add-ons to install. This should be a JS object, each property is the name of an add-on to be installed. The value of the property should either be a string URL, or an object with the following properties: ...
...startSoftwareUpdate Starts installing a new add-on. boolean startSoftwareUpdate( in AString aUrl, in PRInt32 aFlags Optional ); Parameters aUrl The URL of the add-on. aFlags Optional Unused, retained for backwards compatibility. Return value true if the installation was successfully started. updateEnabled Tests if installation is enabled. boolean updateEnabled(); Parameters None. Return value ...
nsIAccessibleSelectable
's selection. If the specified object is already selected, then it does nothing. void addChildToSelection( in long index ); Parameters index The zero-based accessible child index. Exceptions thrown NS_ERROR_FAILURE If the specified object is not selectable. clearSelection() Clears the selection in the object so that no children in the object are selected. void clearSelection(); Parameters None. GetSelectedChildren() Returns an nsIArray of the selected nsIAccessible children. nsIArray GetSelectedChildren(); Parameters None. Return value An nsIArray. isChildSelected() Determines if the current child of this object is selected. boolean isChildSelected( in long index ); Parameters index The zero-based accessible child index. Return value True if the child is selected, false if not. r...
...ves the specified child of the object from the object's selection. If the specified object was not selected, then it does nothing. void removeChildFromSelection( in long index ); Parameters index Zero-based accessible child index. Exceptions thrown NS_ERROR_FAILURE If the specified object is not selectable. selectAllSelection() Select all children. boolean selectAllSelection(); Parameters None. Return value If the object does not accept multiple selection, return false. Otherwise, returns true. ...
nsIApplicationCache
EM_FALLBACK 32 This item was listed as a fallback entry. ITEM_OPPORTUNISTIC 64 This item matched an opportunistic cache namespace and was cached for that reason. Methods activate() Makes this cache the active application cache for this group. Future loads associated with this group will come from this cache. Other caches from this cache group will be deactivated. void activate(); Parameters None. addNamespaces() Add a set of namespace entries to the application cache. void addNamespaces( in nsIArray namespaces ); Parameters namespaces An nsIArray of nsIApplicationCacheNamespace objects describing the namespaces to add to the cache. discard() Discards this application cache. This removes all resources it has cached. If this is the active application cache for the group, the group is ...
...ace entries to the application cache. void addNamespaces( in nsIArray namespaces ); Parameters namespaces An nsIArray of nsIApplicationCacheNamespace objects describing the namespaces to add to the cache. discard() Discards this application cache. This removes all resources it has cached. If this is the active application cache for the group, the group is removed. void discard(); Parameters None. gatherEntries() Returns a list of entries in the cache whose type matches one or more of the specified types. void gatherEntries( in PRUint32 typeBits, out unsigned long count, [array, size_is(count)] out string keys ); Parameters typeBits A bit field indicating the types against which to match. See Constants for a list of types. count On return, indicates how many matching entries were ...
nsIApplicationCacheChannel
The default value is false. This attribute will not be transferred through a redirect. Exceptions thrown NS_ERROR_ALREADY_OPENED If set after calling AsyncOpen() on the channel. inheritApplicationCache boolean true if the channel will ask its notification callbacks for an application cache if one is not explicitly provided. The default value is ...
...his value may be false even if the resource is assigned to an application cache if, for example, it was loaded as a fallback. Read only. Methods markOfflineCacheEntryAsForeign() A shortcut method to mark the cache item of this channel as 'foreign'. See the 'cache selection algorithm' and CACHE_SELECTION_RELOAD action handling in nsContentSink. void markOfflineCacheEntryAsForeign(); Parameters None. See also Offline resources in Firefox nsIApplicationCache nsIApplicationCacheContainer nsIApplicationCacheService nsIApplicationCacheNamespace nsIDOMOfflineResourceList ...
nsIAutoCompleteInput
arch begins. Methods getSearchAt() Returns the name of one of the autocomplete search session objects. ACString getSearchAt( in unsigned long index ); Parameters index The index number of the search session object whose name is to be returned. Return value The name of the specified object. onSearchBegin() Called when the search starts. void onSearchBegin(); Parameters None. onSearchComplete() Called when the search ends successfully. void onSearchComplete(); Parameters None. onTextEntered() Called when the user selects and presses enter on a result item. boolean onTextEntered(); Parameters None. Return value Return true to prevent handling the selection. onTextReverted() Called when the user cancels the autocomplete session. boolean onTextReverted(); Parameters ...
...Return value Return true to prevent the reversion. selectTextRange() Selects a range of text in the autocomplete text field. void selectTextRange( in long startIndex, in long endIndex ); Parameters startIndex The index to the first character in the text field to select. ...
nsICRLManager
ED 2 Methods computeNextAutoUpdateTime() wstring computeNextAutoUpdateTime( in nsICRLInfo info, in unsigned long autoUpdateType, in double noOfDays ); Parameters info autoUpdateType noOfDays Return value deleteCrl() Delete the crl. void deleteCrl( in unsigned long crlIndex ); Parameters crlIndex getCrls() Get a list of Crl entries in the DB. nsIArray getCrls(); Parameters None. Return value importCrl() Import a CRL into the certificate database. void importCrl( [array, size_is(length)] in octet data, in unsigned long length, in nsIURI uri, in unsigned long type, in boolean doSilentDownload, in wstring crlKey ); Parameters data length uri type doSilentDownload crlKey rescheduleCRLAutoUpdate() This would reschedule the autoupdate of crls with auto u...
...ate database. void importCrl( [array, size_is(length)] in octet data, in unsigned long length, in nsIURI uri, in unsigned long type, in boolean doSilentDownload, in wstring crlKey ); Parameters data length uri type doSilentDownload crlKey rescheduleCRLAutoUpdate() This would reschedule the autoupdate of crls with auto update enable. void rescheduleCRLAutoUpdate(); Parameters None. updateCRLFromURL() Update an existing crl from the last fetched url. Needed for the update button in crl manager. boolean updateCRLFromURL( in wstring url, in wstring key ); Parameters url key Return value ...
nsICache
ACCESS_READ 1 ACCESS REQUESTED - I only want to READ, if there isn't an entry just fail. ...
...om this descriptor. ACCESS_WRITE 2 ACCESS REQUESTED - I have something new I want to WRITE into the cache, make me a new entry and doom the old one, if any. ACCESS GRANTED - You must WRITE to this descriptor because the cache entry was just created for you. ACCESS_READ_WRITE 3 ACCESS REQUESTED - I want to READ, but I'm willing to update an existing entry if necessary, or create a new one if none exists. ACCESS GRANTED - You can READ the descriptor to determine if it's valid, you may WRITE if it needs updating. STORE_ANYWHERE 0 The storage policy of a cache entry determines the device(s) to which it belongs. See nsICacheSession and nsICacheEntryDescriptor for more details. Allows the cache entry to be stored in any device. The cache service decides which cache device to use based on "s...
nsIChromeRegistry
Converts a chrome URL into a canonical representation by ensuring that the filename portion of the URL is included, as in chrome://package/provider/f...
...r/package.ext. The extension, ext, is one of: xul For a "content" package. css For a "skin" package. dtd For a "locale" package. void canonify( in nsIURI aChromeURL ); Parameters aChromeURL The URL that is to be canonified. checkForNewChrome() Refreshes the chrome list at runtime, looking for new packages and so forth. void checkForNewChrome(); Parameters None. convertChromeURL() Resolves a chrome URL to an loadable URI using the information in the registry. A new nsIURI is returned; the original is left unmodified. This lets you take a non-canonical chrome URI, such as chrome://package/provider/file, and convert it into a canonical one. This is useful because chrome URLs are allowed to be specified in "shorthand", leaving the "file" portion off. In th...
nsIComponentRegistrar
D The ContractID to be queried. Return value The ClassID corresponding to aContractID if one exists and is registered. enumerateCIDs() This method returns an enumerator over the list of registered ClassIDs. Elements of the enumeration can be QueryInterfaced for the nsISupportsID interface. From the nsISupportsID, you can obtain the actual ClassID. nsISimpleEnumerator enumerateCIDs(); Parameters None. Return value An nsISimpleEnumerator over the list of registered classes. Elements of the enumerator implement nsISupportsID. enumerateContractIDs() This method returns an enumerator over the list of registered ContractIDs. Elements of the enumeration can be QueryInterfaced for the nsISupportsCString interface. From the nsISupportsCString interface, you can obtain the actual ContractID string. ns...
... registered classes. Elements of the enumerator implement nsISupportsID. enumerateContractIDs() This method returns an enumerator over the list of registered ContractIDs. Elements of the enumeration can be QueryInterfaced for the nsISupportsCString interface. From the nsISupportsCString interface, you can obtain the actual ContractID string. nsISimpleEnumerator enumerateContractIDs(); Parameters None. Return value An nsISimpleEnumerator over the list of registered classes. Elements of the enumerator implement nsISupportsCString. isCIDRegistered() This method is used to test for the existence of a specific ClassID. boolean isCIDRegistered( in nsCIDRef aClass ); Parameters aClass The ClassID to be queried. Return value true if a factory is registered for the ClassID, false otherwise. isCon...
nsIDBFolderInfo
getCharacterSetOverride() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void getCharacterSetOverride( out boolean characterSetOverride ); Parameters characterSetOverride Missing Description Exceptions thrown Missing Exception Missing Description getCharPtrCharacterSet() string getCharPtrCharacterSet(); Parameters None. Return value Missing Description Exceptions thrown Missing Exception Missing Description getCharPtrProperty() string getCharPtrProperty( in string propertyName ); Parameters propertyName Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Description Native code only!getLocale Obsolete since Gecko 1...
...xName Missing Description Exceptions thrown Missing Exception Missing Description getProperty() AString getProperty( in string propertyName ); Parameters propertyName Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Description GetTransferInfo() nsIDBFolderInfo GetTransferInfo(); Parameters None. Return value Missing Description Exceptions thrown Missing Exception Missing Description getUint32Property() unsigned long getUint32Property( in string propertyName, in unsigned long defaultValue ); Parameters propertyName Missing Description defaultValue Missing Description Return value Missing Description Exceptions thrown Missing Exce...
nsIDNSService
the listener's onLookupComplete should be called. If this parameter is null, then onLookupComplete will be called on an unspecified thread (possibly recursively). Return value An object that can be used to cancel the host lookup. init() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Called to initialize the DNS service. void init(); Parameters None. resolve() Called to synchronously resolve a host name. Warning this method may block the calling thread for a long period of time. It is extremely unwise to call this function on the User Interface thread of an application. nsIDNSRecord resolve( in AUTF8String aHostName, in unsigned long aFlags ); Parameters aHostName The host name or IP-address-literal to resolve. aFlags A...
...lved. shutdown() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Called to shutdown the DNS service. Any pending asynchronous requests will be canceled, and the local cache of DNS records will be cleared. Note: The operating system may still have its own cache of DNS records, which would be unaffected by this method. void shutdown(); Parameters None. Example let DnsService = Components.classes["@mozilla.org/network/dns-service;1"] .createInstance(Components.interfaces.nsIDNSService); let Thread = Components.classes["@mozilla.org/thread-manager;1"] .getService(Components.interfaces.nsIThreadManager).currentThread; let host = "www.mozilla.org"; let Listener = { onLookupComplete: function(request, record, stat...
nsIDOMMozNetworkStatsManager
of the data. It can specify wifi, mobile, or null. If null, data measurement from both origins are merged. To know in advance which kind of origin is available, the MozNetworkStatsManager.getAvailableNetworks method returns an Array of interfaces. Return Value An nsIDOMDOMRequest object. clearAllStats() Clears all statistics from the statistics database. void clearAllStats(); Parameters None. Return Value An nsIDOMDOMRequest object. getAvailableNetworks() Returns available networks that used to be saved in the database. nsIDOMDOMRequest getAvailableNetworks(); Parameters None. Return Value An nsIDOMDOMRequest object. If successful, the result field of the DOMRequest holds an array of the currently available network interfaces. getAvailableServiceTypes() Returns available s...
... Return Value An nsIDOMDOMRequest object. If successful, the result field of the DOMRequest holds an array of the currently available service types. NetworkStatsAlarmOptions NetworkStatsAlarmOptions is a dictionary object used to filter an alarm request made when calling addAlarm(). ...
nsIDOMNSHTMLDocument
y. Obsolete since Gecko 6.0 Methods captureEvents() Provided for compatibility with Netscape 4.x, but does not actually do anything. void captureEvents( in long eventFlags ); Parameters eventFlags clear() Used to reset a document to blank, but deprecated since Gecko 1.0 and provided for compatibility with Netscape 4.x; use open() and close() instead. void clear(); Parameters None. execCommand() boolean execCommand( in DOMString commandID, in boolean doShowUI, in DOMString value ); Parameters commandID The name of the command to execute. See Rich-Text Editing in Mozilla for a list of supported commands. doShowUI This is not implemented in Gecko. value Some commands require an argument. You can pass null for those commands that do not need an...
...11) This method never did anything but throw an exception, and was removed entirely in Gecko 14.0 (Firefox 14.0 / Thunderbird 14.0 / SeaMonkey 2.11). boolean execCommandShowHelp( in DOMString commandID ); Parameters commandID The name of the command. Return value This method is not supported and always throws an exception. getSelection() DOMString getSelection(); Parameters None. Return value The text of the current selection, the same as window.getSelection.toString(). open() nsIDOMDocument open( in ACString aContentType, in boolean aReplace ); Parameters aContentType The content type of the new document. If the type is not supported by the HTML content sink, trying to write to the document will probably throw. aReplace Whether the document should ...
nsIDOMNode
SSING_INSTRUCTION_NODE 7 COMMENT_NODE 8 DOCUMENT_NODE 9 DOCUMENT_TYPE_NODE 10 DOCUMENT_FRAGMENT_NODE 11 NOTATION_NODE 12 Methods appendChild() nsIDOMNode appendChild( in nsIDOMNode newChild ); Parameters newChild Return value cloneNode() nsIDOMNode cloneNode( in boolean deep ); Parameters deep Return value hasAttributes() boolean hasAttributes(); Parameters None. Return value hasChildNodes() boolean hasChildNodes(); Parameters None. Return value insertBefore() nsIDOMNode insertBefore( in nsIDOMNode newChild, in nsIDOMNode refChild ); Parameters newChild refChild Return value isSupported() boolean isSupported( in DOMString feature, in DOMString version ); Parameters feature version Return value normalize() void normalize(); Paramet...
...turn value hasChildNodes() boolean hasChildNodes(); Parameters None. Return value insertBefore() nsIDOMNode insertBefore( in nsIDOMNode newChild, in nsIDOMNode refChild ); Parameters newChild refChild Return value isSupported() boolean isSupported( in DOMString feature, in DOMString version ); Parameters feature version Return value normalize() void normalize(); Parameters None. removeChild() nsIDOMNode removeChild( in nsIDOMNode oldChild ); Parameters oldChild Return value replaceChild() nsIDOMNode replaceChild( in nsIDOMNode newChild, in nsIDOMNode oldChild ); Parameters newChild oldChild Return value See also Document Object Model (DOM) Level 2 Core SpecificationREC ...
nsIDOMWindow
ods getComputedStyle() See dom-window-getcomputedstyle for details. nsIDOMCSSStyleDeclaration getComputedStyle( in nsIDOMElement elt, in DOMString pseudoElt Optional ); Parameters elt pseudoElt Optional Return value getSelection() Returns the nsISelection object indicating what if any content is currently selected in the window. nsISelection getSelection(); Parameters None. Return value The nsISelection object for the window. scrollBy() Scrolls the window by a given number of pixels relative to the current scroll position. void scrollBy( in long xScrollDif, in long yScrollDif ); Parameters xScrollDif The number of pixels by which to scroll horizontally. yScrollDif The number of pixels by which to scroll vertically. scrollByLines() Scrolls the wi...
... pages by which to scroll. scrollTo() Scrolls the window to an absolute pixel offset. void scrollTo( in long xScroll, in long yScroll ); Parameters xScroll The horizontal position to which to scroll, in pixels. yScroll The vertical position to which to scroll, in pixels. sizeToContent() Makes the window's size fit the contents of the window. void sizeToContent(); Parameters None. See also DOM ...
nsIDOMXULElement
the element. tooltip DOMString Gets/sets the value of the element's tooltip attribute. tooltipText DOMString Gets/sets the value of the element's tooltiptext attribute. top DOMString Gets/sets the value of the element's top attribute. width DOMString Gets/sets the value of the element's width attribute. Methods blur() Attempts to remove focus from the element. void blur(); Parameters None. click() Unless the element is disabled, sends mouse events that simulate the effect of clicking the mouse on the element, then calls the doCommand() method. void click(); Parameters None. doCommand() Generates and dispatches a basic command event, as if the element was clicked with no keyboard modifiers. void doCommand(); Parameters None. focus() Attempts to set focus to the element; will not ...
...getElementsByAttribute() Searches the DOM subtree for elements with the given attribute that are not in a namespace. nsIDOMNodeList getElementsByAttribute( in DOMString name, in DOMString value ); Parameters name The name of the attribute to search for. ...
nsIDocumentLoader
void stop(); Attributes Attribute Type Description container nsISupports Read only. documentChannel nsIChannel Read only. loadGroup nsILoadGroup Read only. Methods clearParentDocLoader() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void clearParentDocLoader(); Parameters None. createDocumentLoader() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void createDocumentLoader( out nsIDocumentLoader anInstance ); Parameters anInstance destroy() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void destroy(); Parameters None. fireOnLocationChange() ...
... its use is discouraged since it could be removed at any time. Try to avoid using it. void getContentViewerContainer( in nsISupports aDocumentID, out nsIContentViewerContainer aResult ); Parameters aDocumentID aResult getLoadGroup() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) nsILoadGroup getLoadGroup(); Parameters None. Return value isBusy() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) boolean isBusy(); Parameters None. Return value stop() void stop(); Parameters None. ...
nsIEditorIMESupport
e is discouraged since it could be removed at any time. Try to avoid using it. Handles the start of inline input composition. void beginComposition( in nsTextEventReplyPtr aReply ); Parameters aReply endComposition() Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Handles the end of inline input composition. void endComposition(); Parameters None. forceCompositionEnd() Force the composition end. void forceCompositionEnd(); Parameters None. Native code only!getPreferredIMEState Get preferred IME status of current widget. void getPreferredIMEState( out unsigned long aState ); Parameters aState Native code only!getQueryCaretRect Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)This feature is obsolete. Alt...
...ring( in nsReconversionEventReplyPtr aReply ); Parameters aReply notifyIMEOnBlur() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Notify for IME when the editor lost focus. void notifyIMEOnBlur(); Parameters None. notifyIMEOnFocus() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Notify for IME when the editor got focus. void notifyIMEOnFocus(); Parameters None. Native code only!queryComposition Obsolete since Gecko 2.0 (...
nsIEditorMailSupport
xt); 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. nsISupportsArray getEmbeddedObjects(); Parameters None. Return value An nsISupportsArray containing the IMG and OBJECT tags of the current document. insertAsCitedQuotation() Insert a string as quoted text (whose representation is dependent on the editor type), replacing the selected text (if any), including, if possible, a "cite" attribute. nsIDOMNode insertAsCitedQuotation( in AString aQuotedText, in AString aCitation, in boolean aInsertHTML )...
...if any). void pasteAsQuotation( in long aSelectionType ); Parameters aSelectionType Text or html? rewrap() Rewrap the selected part of the document, re-quoting if necessary. void rewrap( in boolean aRespectNewlines ); Parameters aRespectNewlines Try to maintain newlines in the original? stripCites() Strip any citations in the selected part of the document. void stripCites(); Parameters None. ...
nsIEventListenerInfo
vent listener is in capture mode. Read only. inSystemEventGroup boolean Indicates whether or not the event listener is in the system event group. Read only. type AString The type of the event for which the listener was added. Read only. Methods getDebugObject() Returns the debugger object if the debug service is active. nsISupports getDebugObject(); Parameters None. Return value If jsdIDebuggerService is active and the listener is implemented in JS, this returns the listener as a jsdIValue. Otherwise null. This is the method you should use if you want to get access to the actual listener, but the debugger service must be already active, which significantly slows down script execution. Accordingly, this should probably only be used by real debuggers. This ap...
...h significantly slows down script execution. Accordingly, this should probably only be used by real debuggers. This approach is necessary because event listeners added with addEventListener won't necessarily be nsIEventListeners; the DOM code will fix up ordinary JavaScript functions to act as listeners. toSource() Tries to serialize the event listener to a string. AString toSource(); Parameters None. Return value Returns a string describing the event listener, or null if serialization isn't possible (for example, if the listener was written in C++). Remarks nsIEventListenerInfo was introduced with bug 448602. See also nsIEventListenerService nsIEventTarget ...
nsIInputStream
ons automatically close() when end-of-file is reached; others do not. Note: This method should not be used to determine the total size of a stream, even if the stream corresponds to a local file. Moreover, since a stream may make available more than 2^32 bytes of data, this method is incapable of expressing the entire size of the underlying data source. unsigned long available(); Parameters None. Return value Number of bytes currently available in the stream, or PR_UINT32_MAX if the size of the stream exceeds PR_UINT32_MAX. Exceptions thrown <other-error> If the stream is closed due to some error condition. NS_BASE_STREAM_CLOSED If the stream is closed normally. close() Close the stream. This method causes subsequent calls to read() and readSegments() to return 0 bytes read t...
...ions thrown <other-error> If the stream is closed due to some error condition. NS_BASE_STREAM_CLOSED If the stream is closed normally. close() Close the stream. This method causes subsequent calls to read() and readSegments() to return 0 bytes read to indicate end-of-file. Note: The close method may be called more than once, but subsequent calls are ignored. void close(); Parameters None. isNonBlocking() boolean isNonBlocking(); Parameters None. Return value true if stream is non-blocking. Native code only!read This method copies data from the stream into a buffer. unsigned long read( in charPtr aBuf, in unsigned long aCount ); Parameters aBuf The buffer into which the data from the stream is copied. aCount The size of the buffer, or the maximum number of by...
nsIJumpListBuilder
r frequent lists should keep document use tracking up to date by calling the SHAddToRecentDocs shell api. JUMPLIST_CATEGORY_CUSTOMLIST 3 Custom lists can be made up of tasks, links, and separators. The title of of the list is passed through the optional string parameter of addBuildList. Methods abortListBuild() Aborts and clears the current jump list build. void abortListBuild(); Parameters None. addListToBuild() Adds a list and if required, a set of items for the list. boolean addListToBuild( in short aCatType, in nsIArray items, Optional in AString catName Optional ); Parameters aCatType The type of list to add. items Optional An array of nsIJumpListItem items to add to the list. catName Optional For custom lists, the title of the list. Return value true if the operation compl...
...value true if the operation completed successfully. Exceptions thrown NS_ERROR_UNEXPECTED On internal errors. NS_ERROR_ILLEGAL_VALUE If an item is added that was removed since the last commit. NS_ERROR_INVALID_ARG If incorrect parameters are passed for a particular category or item type. commitListBuild() Commits the current jump list build to the Taskbar. boolean commitListBuild(); Parameters None. Return value true if the operation completed successfully. deleteActiveList() Deletes any currently applied taskbar jump list for this application. Common uses would be the enabling of a privacy mode and uninstallation. boolean deleteActiveList(); Parameters None. Return value true if the operation completed successfully. Exceptions thrown NS_ERROR_UNEXPECTED On internal errors. initListBuild...
nsILocalFile
g filePath ); Parameters filePath A string that specifies a platform-specific, full path to a file or directory. Exceptions thrown NS_ERROR_FILE_UNRECOGNIZED_PATH Indicates that FilePath is not an absolute file path or that it contains characters that are invalid for the filesystem. launch() Requests that the operating system attempt to open this file. void launch(); Parameters None. Native code only! load Returns the result of PR_LoadLibrary() on the file. The caller is responsible for calling PR_UnloadLibrary() on the result. PRLibraryStar load(); Parameters None. Return value A pointer to a PRLibrary. Example #include "prlink.h" #include "nsError.h" #include "nsILocalFile.h" // Load the DLL corresponding to the given nsILocalFile... nsresult LoadDLL(nsIL...
...sizeof(buf))) > 0) { // Do something with n-byte block of data from file... } if (n < 0) rv = NS_ERROR_UNEXPECTED; PR_Close(fd); return rv; } reveal() Ask the operating system to open the folder which contains this file or folder. This routine only works on platforms which support the ability to open a folder. See the note in the remarks below. void reveal(); Parameters None. setRelativeDescriptor() Initializes the file to the location relative to fromFile using a string returned by getRelativeDescriptor(). void setRelativeDescriptor( in nsILocalFile fromFile, in ACString relativeDesc ); Parameters fromFile The file to which the descriptor is relative. relativeDesc The relative descriptor obtained from getRelativeDescriptor(). Remarks The methods in...
nsILocaleService
LocaleObject(in nsILocaleDefinition localeDefinition); Obsolete since Gecko 1.9 Methods getApplicationLocale() Gets the user preference for locale from the operating system. Note: This has nothing to do with the locale used for localization of the application (UI text strings and so on.). This method returns something similar to getSystemLocale. nsILocale getApplicationLocale(); Parameters None. Return value The user's OS setting for preferred locale. getLocaleComponentForUserAgent() Gets the user preference for locale from the operating system. Note: This has nothing to do with any HTTP User-Agent. This method returns the same as getSystemLocale.getCategory("NSILOCALE_MESSAGES"). AString getLocaleComponentForUserAgent(); Parameters None. Return value The user's OS setting for preferre...
...ale preferences. nsILocale getLocaleFromAcceptLanguage( in string acceptLanguage ); Parameters acceptLanguage Locale preference in the same format as the Accept-Language HTTP header. Return value The most preferred locale according to the acceptLanguage parameter. getSystemLocale() Gets the user preference for locale from the operating system. nsILocale getSystemLocale(); Parameters None. Return value The user's OS setting for preferred locale. newLocale() Create a new nsILocale from a locale string. nsILocale newLocale( in AString aLocale ); Parameters aLocale A locale code as described in nsILocale. Return value A nsILocale representing the given locale. newLocaleObject() Obsolete since Gecko 1.9 (Firefox 3) nsILocale newLocaleObject( in...
nsILoginManagerStorage
se login saving status should be returned. This string will be in the origin URL format, without a pathname. For example, "http://mozilla.com". Return value Return true if login saving is enabled for the specified host; otherwise, return false. init() Implement this method to initialize the component. This is not called automatically; you must call it yourself if needed. void init(); Parameters None. initWithFile() Implement this method to initialize the component, overriding the default filename locations with those specified. This method is primarily used for unit tests and during profile migration. void initWithFile( in nsIFile aInputFile, in nsIFile aOutputFile ); Parameters aInputFile The file from which to read stored logins. aOutputFile The file to which to write stored logins, ...
...lLogins() Implement this method to remove all logins from the login store. This is called by the browser sanitization feature when the user asks to clear all stored passwords. The user interface allows this to be done without getting each login first (which might require knowing the master password). No password should be required in order to remove all logins. void removeAllLogins(); Parameters None. removeLogin() Implement this method to remove the specified login from the login store. Gecko 1.9.1 note The values of any nsILoginMetaInfo properties are ignored. void removeLogin( in nsILoginInfo aLogin ); Parameters aLogin The login to remove from the login store. A login must match completely (except for its nsILoginMetaInfo data) to be removed. searchLogins() Implement this to se...
nsIMsgDBViewCommandUpdater
ater (for the threadpane message window) nsMsgSearchCommandUpdater (for search dialogs) Method overview void updateCommandStatus(); void displayMessageChanged(in nsIMsgFolder aFolder, in AString aSubject, in ACString aKeywords); void updateNextMessageAfterDelete(); Methods updateCommandStatus() Called when the number of selected items changes. void updateCommandStatus(); Parameters None. displayMessageChanged() Called when the displayed message has changed. void displayMessageChanged(in nsIMsgFolder aFolder, in AString aSubject, in ACString aKeywords ); Parameters aFolder The folder containing selected message. aSubject The subject of the selected message. aKeywords Keywords associated with the selected message. updateNextMessageAfterDelete() Allows the backend to te...
... ...
nsIMsgFolder
ly offlineStoreInputStream nsIInputStream readonly retentionSettings nsIMsgRetentionSettings downloadSettings nsIMsgDownloadSettings sortOrder long Used for order in the folder pane, folder pickers, etc. lastMessageLoaded nsMsgKey Unique ID to the folder, it is not a globally unique identifier. Will return nsMsgKey_None if there was no last message loaded. Note: Does not persist across sessions. URI ACString Readonly: Old nsIFolder properties and methods. name AString Old nsIFolder properties and methods. prettyName AString Old nsIFolder properties and methods. abbreviatedName AString Readonly: Old nsIFolder properties and methods. par...
...ct boolean readonly: rootFolder nsIMsgFolder Readonly: The phantom server folder. Constants Constant Value Description nsMsgBiffState_NewMail 0 User has new mail waiting. nsMsgBiffState_NoMail 1 No new mail is waiting. nsMsgBiffState_Unknown 2 We dunno whether there is new mail. nsMsgDispositionState_None -1 nsMsgDispositionState_Replied 0 nsMsgDispositionState_Forwarded 1 allMessageCountNotifications 0 Turn notifications on/off for various notification types. Currently only supporting allMessageCountNotifications which refers to both total and unread message counts. Methods startFolderLoading() void startFolderLoading(); endFolderL...
nsINavBookmarksService
rtain parts of the UI will not get updated and any changes to bookmarks will not get written to disk. From C++ code inside the places component, use nsBookmarksUpdateBatcher defined in nsNavBookmarks.h to scope batches. For JS or from other components, just please be very careful to close the batch, especially when encountering an error and returning early. void beginUpdateBatch(); Parameters None. changeBookmarkURI() This method changes the bookmarked URI for a bookmark. It changes which "place" the bookmark points at, which means all annotations, and so on are carried along. void changeBookmarkURI( in nsIURI oldURI, Obsolete since Gecko 1.9 in long long aItemId, in nsIURI aNewURI ); Parameters oldURI Obsolete since Gecko 1.9 The URI of the item to be changed. aItemId Th...
... The index to insert at, or DEFAULT_INDEX to append to the end of the list. Return value Returns the ID of the newly-inserted folder. endUpdateBatch() Obsolete since Gecko 1.9 (Firefox 3) Causes observers to be notified of an endUpdateBatch when a batch is done changing. Should match beginUpdateBatch() or bad things will happen. void endUpdateBatch(); Parameters None. exportBookmarksHTML() Obsolete since Gecko 1.9 (Firefox 3) Saves the current bookmarks hierarchy to a bookmarks.html file. void exportBookmarksHTML( in nsIFile file ); Parameters file The nsIFile to export the bookmarks to. getBookmarkedURIFor() This method is used to see if the given URI is bookmarked, or any page that redirected to it is bookmarked. For ...
nsINavHistoryObserver
cko 1.9.1 void onBeforeDeleteURI( in nsIURI aURI, in ACString aGUID ); Parameters aURI The URI of the page about to be deleted. aGUID The unique ID associated with the page. onBeginUpdateBatch() Notifies you that a batch of things are about to change. You should avoid doing any heavy-duty processing until onEndUpdateBatch() is called. void onBeginUpdateBatch(); Parameters None. onClearHistory() Called just prior to all of history being cleared. void onClearHistory(); Parameters None. onDeleteURI() The specified page and all its visits has been deleted. Delete notifications are not quite 100% accurate. Batch delete operations take place in two steps; the notifications come first, followed by a bulk delete. If an error occurs in between these two steps (for example, an ...
...roseconds that has been expired. We guarantee that we do not have any visit older than this date. aGUID The unique ID associated with the page. onEndUpdateBatch() Called once a batch of updates is completed. Once this has been called, you can perform processing, user interface updates, and so forth. This is called sometime after onBeginUpdateBatch(). void onEndUpdateBatch(); Parameters None. onPageChanged() Some attribute on the specified page has changed. Note that for TYPED and HIDDEN pages, the page might not actually have been added yet. This needs to be clarified; what are TYPED and HIDDEN? void onPageChanged( in nsIURI aURI, in unsigned long aWhat, in AString aValue ); Parameters aURI The URI of the page on which an attribute changed. aWhat The attribut...
nsINavHistoryQueryOptions
The sorting annotation to use; see Sorting methods for possible values. Constants Sorting methods You can ask for the results to be pre-sorted. Since the DB has indices of many items, it can produce sorted results almost for free. Note: re-sorting is slower, as is sorting by title or when you have a host name. Constant Value Description SORT_BY_NONE 0 For bookmark items, this constant means sort by the natural bookmark order. SORT_BY_TITLE_ASCENDING 1 Sort by the ascending title order. SORT_BY_TITLE_DESCENDING 2 Sort by the descending title order. SORT_BY_DATE_ASCENDING 3 Sort by the ascending date order. SORT_BY_DATE_DESCENDING ...
... REDIRECTS_MODE_SOURCE 1 Include redirected-from pages but not redirected-to pages in the results. REDIRECTS_MODE_TARGET 2 Include redirected-to pages but not redirected-from pages in the results. Methods clone() This method creates a new options item with the same parameters of this one. nsINavHistoryQueryOptions clone(); Parameters None. Return value Returns the newly created cloned options. See also Places Using the Places history service Places query URIs Querying Places nsINavHistoryService ...
nsIRadioInterfaceLayer
er Missing Description Exceptions thrown Missing Exception Missing Description enumerateCalls() Will continue calling callback.enumerateCallState until the callback returns false. void enumerateCalls( in nsIRILTelephonyCallback callback ); Parameters callback Missing Description Exceptions thrown Missing Exception Missing Description getDataCallList() void getDataCallList(); Parameters None. Exceptions thrown Missing Exception Missing Description getNumberOfMessagesForText() Returns the number of multi-part SMS needed for a given text (160 characters for one SMS). unsigned short getNumberOfMessagesForText( in DOMString text ); Parameters text The body text of an SMS. Return value Unsigned short. Number of SMS needed. hangUp() void hangUp( in unsigned long callIndex ); Para...
... Description apn Missing Description user Missing Description passwd Missing Description chappap Missing Description pdptype Missing Description Exceptions thrown Missing Exception Missing Description startTone() void startTone( in DOMString dtmfChar ); Parameters dtmfChar Missing Description Exceptions thrown Missing Exception Missing Description stopTone() void stopTone(); Parameters None. Exceptions thrown Missing Exception Missing Description unregisterCallback() void unregisterCallback( in nsIRILTelephonyCallback callback ); Parameters callback Missing Description Exceptions thrown Missing Exception Missing Description unregisterDataCallCallback() void unregisterDataCallCallback( in nsIRILDataCallback callback ); Parameters callback Missing Description Exceptions ...
nsIRequest
ill make the request no longer be pending. Requests do not necessarily start out pending; in some cases, requests have to be explicitly initiated (for example nsIChannel implementations are only pending once asyncOpen returns successfully). Requests can become pending multiple times during their lifetime. Note: Suspended requests are still considered pending. boolean isPending(); Parameters None. Return value true if the request has yet to reach completion. resume() Resumes the current request. This may have the effect of re-opening any underlying transport and will resume the delivery of data to any open streams. void resume(); Parameters None. suspend() Suspends the current request. This may have the effect of closing any underlying transport (in order to free up resources), ...
...ansport is resumed. Calling cancel() on a suspended request must not send any notifications (such as onstopRequest) until the request is resumed. Note: Some implementations are unable to immediately suspend, and may continue to deliver events already posted to an event queue. In general, callers should be capable of handling events even after suspending a request. void suspend(); Parameters None. ...
nsIScriptableIO
hPath(), or any object implementing the nsIFile interface. nsITransport: A transport object such as a socket. nsIInputStream: A stream returned by a previous call to this method, or any other object that implements nsIInputStream. string: A string from which to read data. aMode A space-delineated string of mode terms controlling the manner in which the stream is accessed. If none of these modes are desired, specify an empty string. text: Read Unicode-converted text. The default character set is UTF-8; to read text in another character set, set the aCharSet argument to the desired character set. buffered: A stream that uses a buffer to hold a block of the next piece of the data to be read. This mode is generally used as a wrapper for other streams. By default, the bu...
...object returned by getFile() or getFileWithPath(), or any object implementing the nsIFile interface. nsITransport: A transport object such as a socket. nsIOutputStream: A stream returned by a previous call to this method, or any other object that implements nsIOutputStream. aMode A space-delineated string of mode terms controlling the manner in which the stream is accessed. If none of these modes are desired, specify an empty string. text: Write Unicode-converted text. The default character set is UTF-8; to write text in another character set, set the aCharSet argument to the desired character set. buffered: A stream that buffers the data being written. This mode is generally used as a wrapper for other streams. By default, the buffer size is 1024 bytes; however, the ...
nsISelection
om,nostdcall] boolean collapsed(); Native code only!collapseNative void collapseNative( in nsINode parentNode, in long offset ); Parameters parentNode offset collapseToEnd() Collapses the whole selection to a single point at the end of the current selection (regardless of direction). If content is focused and editable, the caret will blink there. void collapseToEnd(); Parameters None collapseToStart() Collapses the whole selection to a single point at the start of the current selection (regardless of direction). If content is focused and editable, the caret will blink there. void collapseToStart(); containsNode() Indicates whether the nsIDOMNode is part of the selection. If partlyContained is set to PR_TRUE, the function returns true when some part of the node is part of the...
... "extend()" leaves the start of the selection unchanged, and applies movement direction/granularity to the end of the selection. direction Can be one of { "forward", "backward", "left", "right" } granularity Can be one of { "character", "word", "line", "lineboundary" } removeAllRanges() Removes all nsIDOMRanges from the current selection. void removeAllRanges(); Parameters None removeRange() Removes a range from the current selection. void removeRange( in nsIDOMRange range ); Parameters range selectAllChildren() Adds all children of the specified node to the selection. void selectAllChildren( in nsIDOMNode parentNode ); Parameters parentNode The parent of the children to be added to the selection. selectionLanguageChange() Modifies the cursor Bidi ...
nsIServerSocket
; Parameters aListener The listener to be notified when client connections are accepted. close() This method closes a server socket. This does not affect already connected client sockets (i.e., the nsISocketTransport instances created from this server socket). This will cause the onStopListening event to asynchronously fire with a status of NS_BINDING_ABORTED. void close(); Parameters None. Native code only!getAddress Returns the address to which this server socket is bound. Since a server socket may be bound to multiple network devices, this address may not necessarily be specific to a single network device. In the case of an IP socket, the IP address field would be zeroed out to indicate a server socket bound to all network devices. Therefore, this method cannot be used to det...
...etwork devices, this address may not necessarily be specific to a single network device. In the case of an IP socket, the IP address field would be zeroed out to indicate a server socket bound to all network devices. Therefore, this method cannot be used to determine the IP address of the local system. See nsIDNSService.myHostName() if this is what you need. PRNetAddr getAddress(); Parameters None. Return value The network address to which the socket is bound. init() Initializes a server socket. void init( in long aPort, in boolean aLoopbackOnly, in long aBackLog ); Parameters aPort The port of the server socket. Pass -1 to indicate no preference, and a port will be selected automatically. aLoopbackOnly If true, the server socket will only respond to connections on the l...
nsISimpleEnumerator
verview nsISupports getNext(); boolean hasMoreElements(); Methods getNext() Called to retrieve the next element in the enumerator. The "next" element is the first element upon the first call. Must be preceded by a call to hasMoreElements() which returns PR_TRUE. This method is generally called within a loop to iterate over the elements in the enumerator. nsISupports getNext(); Parameters None. Return value NS_OK if the call succeeded in returning a non-null value through the out parameter. NS_ERROR_FAILURE if there are no more elements to enumerate. hasMoreElements() Called to determine whether or not the enumerator has any elements that can be returned via getNext(). This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, thoug...
...ements to enumerate. hasMoreElements() Called to determine whether or not the enumerator has any elements that can be returned via getNext(). This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, though it can be called without subsequent getNext() calls. Does not affect internal state of enumerator. boolean hasMoreElements(); Parameters None. Return value PR_TRUE if there are remaining elements in the enumerator. PR_FALSE if there are no more elements in the enumerator. Remarks This interface was frozen for Gecko 0.9.6. See bug 154047 for details. From Gecko 2.0 interfaces are no longer frozen. See also Code example of nsISimpleEnumerator ...
nsISocketTransport
ag is set. DISABLE_IPV6 2 When this flag is set, the socket will ignore any IPv6 addresses the host may offer and will only attempt to connect to IPv4 addresses. Methods Native code only!getPeerAddr Returns the IP address of the socket connection peer. This attribute is defined only once a connection has been established. PRNetAddr getPeerAddr(); Parameters None. Return value An PRNetAddr containing the resolved IP address. Native code only!getSelfAddr Returns the IP address of the initiating end. This attribute is defined only once a connection has been established. PRNetAddr getSelfAddr(); Parameters None. Return value An PRNetAddr containing the resolved IP address. getTimeout() Retrieves a Socket timeout. unsigned long getTimeout( in unsigned long...
...n unsigned long aType ); Parameters aType The timeout type, who's associated value should be retrieved. Can be one of the constants TIMEOUT_CONNECT or TIMEOUT_READ_WRITE. Return value Returns the timeout in seconds for the given Type. A value of PR_UINT32_MAX is equivalent to no timeout. isAlive() Test if this socket transport is (still) connected. boolean isAlive(); Parameters None. Return value Returns true if the socket is connected. Otherwise false. setTimeout() Sets a Socket timeout. void setTimeout( in unsigned long aType, in unsigned long aValue ); Parameters aType The timeout type which should be set to aValue. Can be one of the constants TIMEOUT_CONNECT or TIMEOUT_READ_WRITE. aValue Defines the timeout in seconds, pass PR_UINT32_MAX...
nsISocketTransportService
f no proxy should be used. For more details on communicating information about proxies like SOCKS (which are transparent to upper protocols), see nsIProxiedProtocolHandler , nsIProtocolProxyService or Proxies in Necko. Return value An nsISocketTransport containing the SocketTransport. init() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void init(); Parameters None. Native code only! notifyWhenCanAttachSocket If the number of sockets reaches the limit, then consumers can be notified when the number of sockets becomes less than the limit. The notification is asynchronous, delivered via the given nsIRunnable instance on the socket transport thread. Note: This function may only be called from an event dispatch on the socket thread. void notifyWhenCanAtta...
...nce on the socket transport thread. Note: This function may only be called from an event dispatch on the socket thread. void notifyWhenCanAttachSocket( in nsIRunnable aEvent ); Parameters aEvent Event that will receive the notification when a new socket can be attached. shutdown() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void shutdown(); Parameters None. Example // at first, we need a nsISocketTransportService .... var transportService = Components.classes["@mozilla.org/network/socket-transport-service;1"] .getService(Components.interfaces.nsISocketTransportService); // ... then it is time to create the transport. It will connect to ... // ... mozilla.org:2000 with TLS support and default proxy settings var socket = transport...
nsIStringEnumerator
ecko 1.7 Method overview AString getNext(); boolean hasMore(); Methods getNext() Called to retrieve the next string in the enumerator. The "next" element is the first string upon the first call. Must be preceded by a call to hasMoreElements() which returns PR_TRUE. This method is generally called within a loop to iterate over the strings in the enumerator. AString getNext(); Parameters None. Return value The next string in the enumerator. Throws an exception if there are no more strings. hasMore() Called to determine whether or not the enumerator has any strings that can be returned via getNext(). This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, though it can be called without subsequent getNext() calls. Does not affect...
...ception if there are no more strings. hasMore() Called to determine whether or not the enumerator has any strings that can be returned via getNext(). This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, though it can be called without subsequent getNext() calls. Does not affect internal state of enumerator. boolean hasMore(); Parameters None. Return value True if there are remaining strings in the enumerator. False if there are no more strings in the enumerator. ...
nsISupports
efcnt AddRef();Violates the XPCOM interface guidelines void QueryInterface(in nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result); nsrefcnt Release();Violates the XPCOM interface guidelines Methods Violates the XPCOM interface guidelines AddRef() Notifies the object that an interface pointer has been duplicated. nsrefcnt AddRef(); Parameters None. Return value An integer value that is generally ignored. QueryInterface() The QueryInterface method provides runtime type discovery. Note: The interface pointer, aResult, returned by QueryInterface must be released by a call to Release() when it is no longer needed. QueryInterface is a symmetric, transitive, and reflexive operator. void QueryInterface( in nsIIDRef uuid, [iid_is(uuid),ret...
...equested interface result The resulting interface pointer. Exceptions thrown NS_ERROR_NO_INTERFACE The requested interface is not available. Violates the XPCOM interface guidelines Release() Notifies the object that an interface pointer has been destroyed and any resources the object held on behalf of the client can be released. nsrefcnt Release(); Parameters None. Return value An integer value that is generally ignored. Remarks The method descriptions above were taken from Essential COM by Don Box. The point of those descriptions is to highlight the fact that AddRef() and Release() do not necessarily correspond to incrementing and decrementing a counter, respectively, even though that is how they are usually implemented. On Win32 systems, nsISupports is A...
nsITaskbarPreviewController
e backing the drawing context. height The height of the surface backing the drawing context. Note: It's guaranteed that width / height will equal the thumbnailAspectRatio, within the margin of rounding errors. Return value true if you want a frame drawn around the thumbnail, otherwise false. onActivate() Invoked when the user clicks on the tab preview. boolean onActivate(); Parameters None. Return value true if the top level window corresponding to the preview should be activated, false if activation is not accepted. onClick() Invoked when one of the buttons on the window preview's toolbar is clicked by the user. void onClick( in nsITaskbarPreviewButton button ); Parameters button An nsITaskbarPreviewButton object representing the button that was pressed. This can be c...
...dow preview's toolbar is clicked by the user. void onClick( in nsITaskbarPreviewButton button ); Parameters button An nsITaskbarPreviewButton object representing the button that was pressed. This can be compared to the buttons returned by the nsITaskbarWindowPreview.getButton(). onClose() Invoked when the user presses the close button on the tab preview. void onClose(); Parameters None. See also nsITaskbarPreview nsITaskbarTabPreview nsITaskbarWindowPreview nsITaskbarPreviewButton nsIWinTaskbar ...
nsIThread
hod call, events for the current thread may continue to be processed. Warning: This method may not be called from the thread itself. Instead, you must only call it from another thread (usually the thread that created it, or the main application thread). When this function returns, the thread will be shut down and will no longer be available to receive events. void shutdown() Parameters None. Exceptions thrown NS_ERROR_UNEXPECTED shutdown() was erroneously called from within the thread itself, the thread was not created with the Thread Manager's nsIThreadManager.newThread() method, or the thread is already in the process of being shut down. hasPendingEvents() Determines whether or not the thread has events that are ready to be processed. Note: This method must be called from...
...ead itself, the thread was not created with the Thread Manager's nsIThreadManager.newThread() method, or the thread is already in the process of being shut down. hasPendingEvents() Determines whether or not the thread has events that are ready to be processed. Note: This method must be called from within the thread itself, and not from another thread. boolean hasPendingEvents() Parameters None. Return value true if there are pending events at the time the function was called. Since other threads may add events to the current thread, it's possible that by the time this method returns, the event queue may no longer be empty, even if a false result is reported. Exceptions thrown NS_ERROR_UNEXPECTED The method was called when this thread wasn't the current thread. processNextEvent...
nsITransaction
redoTransaction() methods can be called. If the transient state is true, the transaction manager returns immediately after the transaction's doTransaction() method is called, no references to the transaction are maintained. Transient transactions cannot be undone or redone by the transaction manager. Read only. Methods doTransaction() Executes the transaction. void doTransaction(); Parameters None. merge() Attempts to merge a transaction into "this" transaction. Both transactions must be in their undo state, doTransaction() methods already called. The transaction manager calls this method to coalesce a new transaction with the transaction on the top of the undo stack. This method returns a boolean value that indicates the merge result. A true value indicates that the transactions were merg...
...ction aTransaction ); Parameters aTransaction The previously executed transaction to merge. Return value Missing Description redoTransaction() Executes the transaction again. Can only be called on a transaction that was previously undone. In most cases, the redoTransaction method will actually call the doTransaction() method to execute the transaction again. void redoTransaction(); Parameters None. undoTransaction() Restores the state to what it was before the transaction was executed. void undoTransaction(); Parameters None. See also nsITransactionList nsITransactionListener nsITransactionManager ...
nsITransferable
void addDataFlavor( in string aDataFlavor ); Parameters aDataFlavor A string defining a new data flavor that the transferable supports. flavorsTransferableCanExport() Returns a list of flavors (mime types as nsISupportsCString) that the transferable can export, either through intrinsic knowledge or output data converters. nsISupportsArray flavorsTransferableCanExport(); Parameters None. Return value Missing Description flavorsTransferableCanImport() Computes a list of flavors (MIME types as nsISupportsCString) that the transferable can accept into it, either through intrinsic knowledge or input data converters. nsISupportsArray flavorsTransferableCanImport(); Parameters None. Return value Missing Description getAnyTransferData() Returns the best flavor in the transf...
...doc.defaultView.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsILoadContext); In C++ callers, if you have the corresponding document, you can just call nsIDocument.GetLoadContext() to get to the load context object. isLargeDataSet() Returns true if the data is large. boolean isLargeDataSet(); Parameters None. Return value true if the data is large; otherwise, the result is false. removeDataFlavor() Removes the data flavor matching the given one (as determined by a string comparison), along with the corresponding data. void removeDataFlavor( in string aDataFlavor ); Parameters aDataFlavor The data flavor to remove. setTransferData() Sets the data in the transferable with the specified...
nsIUTF8StringEnumerator
anged in Gecko 1.7 Method overview AUTF8String getNext(); boolean hasMore(); Methods getNext() Returns the next string in the enumerator. The "next" element is the first string upon the first call. Must be preceded by a call to hasMore(), which returns PR_TRUE. This method is generally called within a loop to iterate over the strings in the enumerator. AUTF8String getNext(); Parameters None. Return value The next string in the enumerator. Throws an exception if there are no more strings. hasMore() Reports whether or not the enumerator has any strings that can be returned via getNext(). This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, athough it can be called without subsequent getNext() calls. Calling this method doesn'...
... are no more strings. hasMore() Reports whether or not the enumerator has any strings that can be returned via getNext(). This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, athough it can be called without subsequent getNext() calls. Calling this method doesn't affect the internal state of the enumerator. boolean hasMore(); Parameters None. Return value true if there are remaining strings in the enumerator, otherwise false. ...
nsIWebBrowserChrome
ases. CHROME_OPENAS_CHROME 2147483648 Represent special cases. CHROME_ALL 4094 Represent special cases. CHROME_REMOTE_WINDOW 1048576 Whether this window should use remote (out-of-process) tabs. Methods destroyBrowserWindow() Asks the implementer to destroy the window associated with this WebBrowser object. void destroyBrowserWindow(); Parameters None. exitModalEventLoop() Exit a modal event loop if we're in one. The implementation should also exit out of the loop if the window is destroyed. void exitModalEventLoop( in nsresult aStatus ); Parameters aStatus The result code to return from showAsModal(). isWindowModal() Is the window modal (that is, currently executing a modal loop)? boolean isWindowModal(); Parameters None. Return...
...ue if it's a modal window. setStatus() Called when the status text in the chrome needs to be updated. void setStatus( in unsigned long statusType, in wstring status ); Parameters statusType Indicates what is setting the text. status Status string. null is an acceptable value meaning no status. showAsModal() Shows the window as a modal window. void showAsModal(); Parameters None. Return Value Note: The function error code returned by this corresponds to the status value specified in exitModalEventLoop. sizeBrowserTo() Tells the chrome to size itself such that the browser will be the specified size. void sizeBrowserTo( in long aCX, in long aCY ); Parameters aCX New width of the browser. aCY New height of the browser. ...
nsIWebBrowserPersist
progress notifications. The object that the embbedder supplies may also implement nsIInterfaceRequestor and be prepared to return nsIAuthPrompt or other interfaces that may be required to download data. result unsigned long Value indicating the success or failure of the persist operation. Read only. Constants Constant Value Description PERSIST_FLAGS_NONE 0 No special persistence behavior. PERSIST_FLAGS_FROM_CACHE 1 Only use cached data (could result in failure if data is not cached). PERSIST_FLAGS_BYPASS_CACHE 2 Bypass the cached data. PERSIST_FLAGS_IGNORE_REDIRECTED_DATA 4 Ignore any redirected data (usually adverts). PERSIST_FLAGS_IGNORE_IFRAMES 8 Ignore iframe content (usually a...
...NTITIES 32768 Encode HTML4 entities. This includes the basic set, accented letters, Greek letters and certain special markup symbols. Methods cancelSave() Cancels the current operation. The caller is responsible for cleaning up partially written files or directories. This has the same effect as calling cancel with an argument of NS_BINDING_ABORTED. void cancelSave(); Parameters None. saveChannel() Save a channel to a file. It must not be opened yet. void saveChannel( in nsIChannel aChannel, in nsISupports aFile ); Parameters aChannel The nsIChannel to save to a file. aFile Target local file. This may be a nsILocalFile object or an nsIURI object with a file scheme. saveDocument() Save the specified DOM document to file and optionally all linked files (for ex...
nsIXFormsModelElement
stanceDocument( in DOMString instanceID ); Parameters instanceID The ID of the instance element to be returned. Return value An nsIDOMDocument. Exceptions thrown DOMException If there is no matching instance data. rebuild() Signals the XForms Processor to rebuild any internal data structures used to track computational dependencies within the given XForms Model. void rebuild(); Parameters None. recalculate() Signals the XForms Processor to perform a full recalculation of the given XForms Model. Note: Script invocation is not necessarily equivalent to performing the recalculate action handler. Though the script is assumed to have modified instance data prior to invoking recalculate, the DOM mutations are not cached. Thus, a full recalculation is necessary to ensure the proper changes ar...
...tion of the given XForms Model. Note: Script invocation is not necessarily equivalent to performing the recalculate action handler. Though the script is assumed to have modified instance data prior to invoking recalculate, the DOM mutations are not cached. Thus, a full recalculation is necessary to ensure the proper changes are effected throughout the XForms Model. void recalculate(); Parameters None. refresh() Signals the XForms Processor to perform a full refresh of form controls bound to instance nodes for the given XForms Model. void refresh(); Parameters None. revalidate() Signals the XForms Processor to perform a full revalidation of the given XForms Model. void revalidate(); Parameters None. See also XForms 1.1REC ...
nsIXSLTProcessor
, in nsIVariant value); nsIDOMDocument transformToDocument(in nsIDOMNode source); nsIDOMDocumentFragment transformToFragment(in nsIDOMNode source, in nsIDOMDocument output); Methods clearParameters() Removes all set parameters from this nsIXSLTProcessor. This will make the processor use the default-value for all parameters as specified in the stylesheet. void clearParameters(); Parameters None. getParameter() Gets a parameter if previously set by setParameter(). Returns null otherwise. nsIVariant getParameter( in DOMString namespaceURI, in DOMString localName ); Parameters namespaceURI The namespaceURI of the XSLT parameter. localName The local name of the XSLT parameter. Return value An nsIVariant containing the value of the parameter. importStylesheet() Imports the specified s...
...set. This will make the processor use the default-value for the parameter as specified in the stylesheet. void removeParameter( in DOMString namespaceURI, in DOMString localName ); Parameters namespaceURI The namespaceURI of the XSLT parameter. localName The local name of the XSLT parameter. reset() Remove all parameters and stylesheets from this nsIXSLTProcessor. void reset(); Parameters None. setParameter() Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor. If the parameter doesn't exist in the stylesheet the parameter will be ignored. void setParameter( in DOMString namespaceURI, in DOMString localName, in nsIVariant value ); Parameters namespaceURI The namespaceURI of the XSLT parameter. localName The local name of the XSLT parameter. valu...
nsIXULWindow
sIXULWindow aChild ); Parameters aChild The child window being added. Native code only!applyChromeFlags Back-door method to force application of chrome flags at a particular time. Do NOT call this unless you know what you are doing! In particular, calling this when this XUL window does not yet have a document in its docshell could cause problems. void applyChromeFlags(); Parameters None. assumeChromeFlagsAreFrozen() Begin assuming chromeFlags do not change hereafter, and assert if they do change. The state change is one-way and idempotent. void assumeChromeFlagsAreFrozen(); Parameters None. center() Move the window to a centered position. void center( in nsIXULWindow aRelative, in boolean aScreen, in boolean aAlert ); Parameters aRelative If not null, the wi...
...it has lost a child XUL window. Note that XUL windows do not currently track child XUL windows. void removeChildWindow( in nsIXULWindow aChild ); Parameters aChild The child window being removed. showModal() Shows the window as a modal window. That is, ensures that it is visible and runs a local event loop, exiting only once the window has been closed. void showModal(); Parameters None. ...
Memory - Plugins
ount of memory in the browser's memory space. NPN_MemFree deallocates a block of memory allocated using NPN_MemAlloc. The plug-in can call the Plug-in API NPN_MemAlloc function instead of the standard malloc function to allocate dynamic memory. Using NPN_MemAlloc offers several advantages to the plug-in. A call to NPN_MemAlloc is more likely to succeed. The browser may be able to deallocate nonessential memory structures in response to a request. NPN_MemAlloc uses the browser's customized memory-allocation scheme, which is typically faster and causes less fragmentation than the standard OS memory functions. If the plug-in uses NPN_MemAlloc, the browser is able to manage memory more efficiently because it knows how much memory the plug-in is using at any given time. Mac OS The Mac OS...
...ock of memory that was allocated using NPN_MemAlloc only. NPN_MemFree does not free memory allocated by other means. void NPN_MemFree (void *ptr); The ptr parameter represents a block of memory previously allocated using NPN_MemAlloc. Flushing memory (Mac OS only) The NPN_MemFlush method frees a specified amount of memory. Normally, plug-ins should use NPN_MemAlloc, which automatically frees nonessential memory if necessary to fulfill the request. For Communicator 4.0 and later versions, this function is not necessary for the Mac OS platform; NPN_MemAlloc now performs memory flushing internally. You need to use NPN_MemFlush only when it is not possible to call NPN_MemAlloc, for example, when calling system methods that allocate memory indirectly. If NPN_MemAlloc is called, calls to NPN_Me...
Color vision simulation - Firefox Developer Tools
other disorders of the retina; it can be age-related, congenital, or due to an injury. To enable this feature, you must have webrender enabled; it may be enabled by default, depending on your configuration of Firefox. In the Firefox Configuration Editor, make sure the gfx.webrender.all option is set to true. In the Simulate menu, you can choose one option at a time from the following list: None -- choose this to return to normal display Protanomaly (low red) Deuteranomaly (low green) Tritanomaly (low blue) Protanopia (no red) Deuteranopia (no green) Tritanopia (no blue) Contrast loss These simulations are not completely medically accurate. However, they can give you a sense of what your web site looks like to users with vision problems, and therefore help you judge whether you...
...ot completely medically accurate. However, they can give you a sense of what your web site looks like to users with vision problems, and therefore help you judge whether you need to make adjustments in your color or contrast choices. ...
AnalyserNode - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="151" y="1" width="90" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a><polyline points=...
...E4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="151" y="1" width="90" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a><polyline points="241,25 251,20 251,30 241,25" stroke="#D4DDE4" fill="none"/><line x1="251" y1="25" x2="281" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AnalyserNode" target="_top"><rect x="281" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="341" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AnalyserNode</text></a></svg><...
Attr - Web APIs
Web › API › Attr
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Attr" target="_top"><rect x="266" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Attr</text></a></svg></div> a:hov...
CSSPositionValue - Web APIs
the the CSS Typed Object Model API represents values for properties that take a position, for example object-position. Constructor CSSPositionValue.CSSPositionValue() Creates a new CSSPositionValue object. Properties CSSPositionValue.x Returns the item's position along the web page's horizontal axis. CSSPositionValue.y Returns the item's position along the vertical axis. Methods None. Examples The following example positions a container <div> 5 pixels from the top and 10 pixels from the left of the page. let replacedEl = document.getElementById( 'image' ); let position = new CSSPositionValue( CSS.px(35), CSS.px(40) ); replacedEl.attributeStyleMap.set( 'object-position', position ); console.log( position.x.value, position.y.value ); console.log( replacedEl.computedStyleMa...
...lue( CSS.px(35), CSS.px(40) ); replacedEl.attributeStyleMap.set( 'object-position', position ); console.log( position.x.value, position.y.value ); console.log( replacedEl.computedStyleMap().get('object-position') ); We set the object-position property, then check the values returned. #image { width: 300px; height: 300px; border: 1px solid black; background-color: #dededf; object-fit: none; } <p>Check the developer tools to see the log in the console and to inspect the style attribute on the image.</p> <img id="image" src="https://udn.realityripple.com/samples/db/4f9fbd7dfb.svg" alt="MDN Logo"/> ...
CharacterData - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CharacterData" target="_top"><rect x="266" y="1" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CharacterData</text></a></svg...
CompositionEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="19...
...DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CompositionEvent" target="_top"><rect x="231" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="311" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CompositionEvent</text></a...
CredentialsContainer - Web APIs
Methods CredentialsContainer.create()Secure context Returns a Promise that resolves with a new Credential instance based on the provided options, or null if no Credential object can be created. ...
... Methods CredentialsContainer.create()Secure context Returns a Promise that resolves with a new Credential instance based on the provided options, or null if no Credential object can be created. ...
DirectoryEntrySync - Web APIs
ync getDirectory (in DOMString path, in optional Flags options) raises (FileException); void removeRecursively () raises (FileException); Methods createReader() Creates a new DirectoryReaderSync to read entries from this directory. DirectoryReaderSync createReader ( ) raises (FileException); Returns DirectoryReaderSync Represents a directory in a file system. Parameter None Exceptions This method can raise a FileException with the following codes: Exception Description NOT_FOUND_ERR The directory does not exist. SECURITY_ERR The browser determined that it was not safe to look up the metadata. [ todo: Explain why ] getFile() Depending on how you've set the options parameter, the method either creates a file or looks ...
... Deletes a directory and all of its contents. You cannot delete the root directory of a file system. If you delete a directory that contains a file that cannot be removed or if an error occurs while the deletion is in progress, some of the contents might not be deleted. Catch these cases with error callbacks and retry the deletion. void removeRecursively ( ) raises (FileException); Parameter None Returns void Exceptions This method can raise a FileException with the following codes: Exception Description NOT_FOUND_ERR The target directory does not exist. INVALID_STATE_ERR This directory is not longer valid for some reason other than being deleted. [todo: Explain more ] NO_MODIFICATION_ALLOWED_ERR One of the following is not w...
Document: DOMContentLoaded event - Web APIs
The DOMContentLoaded event fires when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading. Bubbles Yes Cancelable Yes (although specified as a simple event that isn't cancelable) Interface Event Event handler property None A different event, load, should be used only to detect a fully-loaded page. It is a common mistake to use load where DOMContentLoaded would be more appropriate. Synchronous JavaScript pauses parsing of the DOM. If you want the DOM to get parsed as fast as possible after the user has requested the page, you can make your JavaScript asynchronous and optimize loading of stylesheets. If loaded as usual, stylesheets slow down DOM parsing ...
...d</button> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> CSS body { display: grid; grid-template-areas: "control log"; } .controls { grid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } #reload { height: 2rem; } JS const log = document.querySelector('.event-log-contents'); const reload = document.querySelector('#reload'); reload.addEventListener('click', () => { log.textContent =''; window.setTimeout(() => { window.location.reload(true); }, 200); }); window.addEventListener('load', (event) => { log.textContent = l...
Document.cookie - Web APIs
Web › API › Document › cookie
expire, which is not necessarily safe. See Date.toUTCString() for help formatting this value. ;secure Cookie to only be transmitted over secure protocol as https. Before Chrome 52, this flag could appear with cookies from http domains. ;samesite SameSite prevents the browser from sending this cookie along with cross-site requests. Possible values are lax, strict or none. The lax value value will send the cookie for all same-site requests and top-level navigation GET requests. This is sufficient for user tracking, but it will prevent many CSRF attacks. This is the default value in modern browsers. The strict value will prevent the cookie from being sent by the browser to the target site in all cross-site browsing contexts, even when following a reg...
...value value will send the cookie for all same-site requests and top-level navigation GET requests. This is sufficient for user tracking, but it will prevent many CSRF attacks. This is the default value in modern browsers. The strict value will prevent the cookie from being sent by the browser to the target site in all cross-site browsing contexts, even when following a regular link. The none value explicitly states no restrictions will be applied. The cookie will be sent in all requests--both cross-site and same-site. The cookie value string can use encodeURIComponent() to ensure that the string does not contain any commas, semicolons, or whitespace (which are disallowed in cookie values). Some user agent implementations support the following cookie prefixes: __...
Element: compositionend event - Web APIs
The compositionend event is fired when a text composition system such as an input method editor completes or cancels the current composition session. For example, this event could be fired after a user finishes entering a Chinese character using a Pinyin IME. ...
..." name="example"> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">Clear</button> </div> CSS body { padding: .2rem; display: grid; grid-template-areas: "control log"; } .control { grid-area: control; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } input[type="text"] { margin: .5rem 0; } kbd { border-radius: 3px; padding: 1px 2px 0; border: 1px solid black; } JS const inputElement = document.querySelector('input[type="text"]'); const log = document.querySelector('.event-log-contents'); const clearLog = document.querySelector('.clear-log'); clearLog.addEventListener('click', () => { ...
Element: compositionstart event - Web APIs
The compositionstart event is fired when a text composition system such as an input method editor starts a new composition session. For example, this event could be fired after a user starts entering a Chinese character using a Pinyin IME. ...
..." name="example"> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">Clear</button> </div> CSS body { padding: .2rem; display: grid; grid-template-areas: "control log"; } .control { grid-area: control; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } input[type="text"] { margin: .5rem 0; } kbd { border-radius: 3px; padding: 1px 2px 0; border: 1px solid black; } JS const inputElement = document.querySelector('input[type="text"]'); const log = document.querySelector('.event-log-contents'); const clearLog = document.querySelector('.clear-log'); clearLog.addEventListener('click', () => { ...
Element: compositionupdate event - Web APIs
onupdate event is fired when a new character is received in the context of a text composition session controlled by a text composition system such as an input method editor. For example, this event could be fired while a user enters a Chinese character using a Pinyin IME. ...
..." name="example"> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">Clear</button> </div> CSS body { padding: .2rem; display: grid; grid-template-areas: "control log"; } .control { grid-area: control; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } input[type="text"] { margin: .5rem 0; } kbd { border-radius: 3px; padding: 1px 2px 0; border: 1px solid black; } JS const inputElement = document.querySelector('input[type="text"]'); const log = document.querySelector('.event-log-contents'); const clearLog = document.querySelector('.clear-log'); clearLog.addEventListener('click', () => { ...
Element.getAttributeNS() - Web APIs
ense. The DOM4 specification now says this method should return null for non-existent attributes. Examples The following SVG document reads the value of the foo attribute in a custom namespace. <svg xmlns="http://www.w3.org/2000/svg" xmlns:test="http://www.example.com/2014/test" width="40" height="40"> <circle id="target" cx="12" cy="12" r="10" stroke="#444" stroke-width="2" fill="none" test:foo="Hello namespaced attribute!"/> <script type="text/javascript"> var ns = 'http://www.example.com/2014/test'; var circle = document.getElementById( 'target' ); console.log( 'attribute test:foo: "' + circle.getAttributeNS( ns, 'foo' ) + '"' ); </script> </svg> In an HTML5 document the attribute has to be accessed with test:foo since namespaces are not supported. <!DOC...
...cle.getAttributeNS( ns, 'foo' ) + '"' ); </script> </svg> In an HTML5 document the attribute has to be accessed with test:foo since namespaces are not supported. <!DOCTYPE html> <html> <body> <svg xmlns="http://www.w3.org/2000/svg" xmlns:test="http://www.example.com/2014/test" width="40" height="40"> <circle id="target" cx="12" cy="12" r="10" stroke="#444" stroke-width="2" fill="none" test:foo="Foo value"/> </svg> <script type="text/javascript"> var ns = 'http://www.example.com/2014/test'; var circle = document.getElementById( 'target' ); console.log('Attribute value: ' + circle.getAttribute('test:foo')); </script> </body> </html> Notes Namespaces are only supported in XML documents. HTML5 documents have to use getAttribute() instead. getAttributeNS() differs from ...
Element.scrollWidth - Web APIs
button { margin-bottom: 2em; } </style> </head> <body> <div id="aDiv"> FooBar-FooBar-FooBar-FooBar </div> <button id="aButton"> Check for overflow </button> <div id="anotherDiv"> FooBar-FooBar-FooBar-FooBar </div> <button id="anotherButton"> Check for overflow </button> </body> <script> var buttonOne = document.getElementById('aButton'), buttonTwo = document.getElementById('anotherButton'), divOne = document.getElementById('aDiv'), divTwo = document.getElementById('anotherDiv'); //check to determine if an overflow is happening function isOverflowing(element) { return (element.scrollWidth > element.offsetWidth); } function alertOverflow(element) { ...
... Working Draft I...
Element - Web APIs
Web › API › Element
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 ...
...e="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a></svg></div> ...
Event.eventPhase - Web APIs
Web › API › Event › eventPhase
low is currently being evaluated. Syntax let phase = event.eventPhase; Value Returns an integer value which specifies the current evaluation phase of the event flow. Possible values are listed in Event phase constants. Constants Event phase constants These values describe which phase the event flow is currently being evaluated. Constant Value Description Event.NONE 0 No event is being processed at this time. Event.CAPTURING_PHASE 1 The event is being propagated through the target's ancestor objects. This process starts with the Window, then Document, then the HTMLHtmlElement, and so on through the elements until the target's parent is reached. Event listeners registered for capture mode when EventTarget.addEventListener() was called are...
...EventListener("click", OnDivClick, true) } else { d.addEventListener("click", OnDivClick, false) d.onmousemove = function () { clear = true } } } } } function OnDivClick(e) { if (clear) { Clear() clear = false } if (e.eventPhase == 2) e.currentTarget.style.backgroundColor = 'red'; let level = e.eventPhase == 0 ? "none" : e.eventPhase == 1 ? "capturing" : e.eventPhase == 2 ? "target" : e.eventPhase == 3 ? "bubbling" : "error"; divInfo.innerHTML += e.currentTarget.id + "; eventPhase: " + level + "<br/>"; } function Clear() { for (let i = 0; i < divs.length; i++) { if (divs[i].id != "divInfo") { divs[i].style.backgroundColor = (i & 1) ? "#f6eedb" : "#cceeff" } } di...
Using Fetch - Web APIs
s your data further */ }) .catch(error => console.error(error)); Guard Since headers can be sent in requests and received in responses, and have various limitations about what information can and should be mutable, headers objects have a guard property. This is not exposed to the Web, but it affects which mutation operations are allowed on the headers object. Possible guard values are: none: default. request: guard for a headers object obtained from a request (Request.headers). request-no-cors: guard for a headers object obtained from a request created with Request.mode no-cors. response: guard for a Headers obtained from a response (Response.headers). immutable: Mostly used for ServiceWorkers; renders a headers object read-only. Note: You may not append or set a request guar...
...data much easier than it was with XHR. Request bodies can be set by passing body parameters: const form = new FormData(document.getElementById('login-form')); fetch('/login', { method: 'POST', body: form }); Both request and response (and by extension the fetch() function), will try to intelligently determine the content type. A request will also automatically set a Content-Type header if none is set in the dictionary. Feature detection Fetch API support can be detected by checking for the existence of Headers, Request, Response or fetch() on the Window or Worker scope. For example: if (window.fetch) { // run my fetch request here } else { // do something with XMLHttpRequest? } Polyfill To use Fetch in unsupported browsers, there is a Fetch Polyfill available that recreates t...
FileEntrySync - Web APIs
s. Basic concepts To write content to file, create a FileWriter object by calling createWriter(). Method overview FileWriterSync createWriter () raises (FileException); File file () raises (FileException); Methods createWriter() Creates a new FileWriter associated with the file that the FileEntry represents. void createWriter ( ) raises (FileException); Parameter None. Returns FileWriterSync Exceptions This method can raise a FileException with the following codes: Exception Description NOT_FOUND_ERR The file does not exist. INVALID_STATE_ERR The file is no longer valid for some reason other than it having been deleted. file() Returns a File that represents the current state of the file that this FileEntr...
...a FileException with the following codes: Exception Description NOT_FOUND_ERR The file does not exist. INVALID_STATE_ERR The file is no longer valid for some reason other than it having been deleted. file() Returns a File that represents the current state of the file that this FileEntry represents. void file ( ) raises (FileException); Parameter None. Returns File Exceptions This method can raise a FileException with the following codes: Exception Description NOT_FOUND_ERR The file does not exist. INVALID_STATE_ERR The file is no longer valid for some reason other than it having been deleted. Browser compatibility The compatibility table on this page is generated from structured data. If...
FocusEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="19...
...DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/FocusEvent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">FocusEvent</text></a></svg></div...
GlobalEventHandlers.onanimationcancel - Web APIs
ich is called in response to the animationcancel event, as set up in the HTML above. All we do here is log information to the console, but you might find other use cases, such as starting a new animation or effect, or terminating some dependent operation. ...
...imation or effect, or terminating some dependent operation. function handleCancelEvent(event) { log("Animation canceled", event); }; Then we add a method to handle toggle display between "flex" and "none" and establish it as the handler for a click event on the "Hide/Show" the Box button: document.getElementById('toggleBox').addEventListener('click', function() { if (box.style.display == "none") { box.style.display = "flex"; document.getElementById("toggleBox").innerHTML = "Hide the box"; } else { box.style.display = "none"; document.getElementById("toggleBox").innerHTML = "Show the box"; } }); Toggling the box to display: none has the effect of aborting its animation. In browsers that support animationcancel, the event is fired and this handler is called. Result...
HTMLElement: transitionend event - Web APIs
The transitionend event is fired when a CSS transition has completed. In the case where a transition is removed before completion, such as if the transition-property is removed or display is set to none, then the event will not be generated. Bubbles Yes Cancelable Yes Interface TransitionEvent Event handler property ontransitionend The transitionend event is fired in both directions - as it finishes transitioning to the transitioned state, and when it fully reverts to the default or non-transitioned state. If there is no transition delay or duration, if both are 0s or neither is declared, there is no transition, and none of the transition events are fired. If the transitioncancel event is fired, the transitionend event will not fire. E...
...tContent = 'transitioncancel fired'; }); el.addEventListener('transitionend', function() { message.textContent = 'transitionend fired'; }); The transitionend event is fired in both directions: when the box finishes turning and the opacity hits 0 or 1, depending on the direction. If there is no transition delay or duration, if both are 0s or neither is declared, there is no transition, and none of the transition events are fired. If the transitioncancel event is fired, the transitionend event will not fire. Specifications Specification Status Comment CSS TransitionsThe definition of 'transitionend' in that specification. Working Draft Initial definition. ...
IDBDatabase: versionchange event - Web APIs
ase structure change (IDBOpenDBRequest.onupgradeneeded event or IDBFactory.deleteDatabase) was requested. ...
...re.createIndex('year', 'year', { unique: false }); }; dBOpenRequest.addEventListener('success', event => { const db = event.target.result; db.addEventListener('versionchange', event => { console.log('The version of this database has changed'); }); }); The same example, using the onversionchange event handler property: // Open the database const dBOpenRequest = window.indexedDB.open('Nonexistent', 4); dBOpenRequest.onupgradeneeded = event => { const db = event.target.result; // Create an objectStore for this database const objectStore = db.createObjectStore('toDoList', { keyPath: 'taskTitle' }); // define what data items the objectStore will contain objectStore.createIndex('hours', 'hours', { unique: false }); objectStore.createIndex('minutes', 'minutes', { unique: f...
IDBOpenDBRequest - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBRequest" target="_top"><rect x="151" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="201" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBRequest</text></a><polyline poin...
.../><a xlink:href="/docs/Web/API/IDBRequest" target="_top"><rect x="151" y="1" width="100" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="201" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBRequest</text></a><polyline points="251,25 261,20 261,30 251,25" stroke="#D4DDE4" fill="none"/><line x1="261" y1="25" x2="291" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBOpenDBRequest" target="_top"><rect x="291" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="371" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBOpenDBRequest</text></a...
InputEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="19...
...DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/InputEvent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">InputEvent</text></a></svg></div...
InstallEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="150" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a><poly...
...:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="150" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a><polyline points="266,25 276,20 276,30 266,25" stroke="#D4DDE4" fill="none"/><line x1="276" y1="25" x2="306" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/InstallEvent" target="_top"><rect x="306" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="366" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">InstallEvent</text></a></svg><...
KeyboardEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="19...
...DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/KeyboardEvent" target="_top"><rect x="231" y="1" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="296" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">KeyboardEvent</text></a></svg...
MediaTrackConstraints - Web APIs
nLong specifying the sample rate or range of sample rates which are acceptable and/or required. sampleSize A ConstrainLong specifying the sample size or range of sample sizes which are acceptable and/or required. volume A ConstrainDouble specifying the volume or range of volumes which are acceptable and/or required. Properties of image tracks whiteBalanceMode A String specifying one of "none", "manual", "single-shot", or "continuous". exposureMode A String specifying one of "none", "manual", "single-shot", or "continuous". focusMode A String specifying one of "none", "manual", "single-shot", or "continuous". pointsOfInterest The pixel coordinates on the sensor of one or more points of interest. This is either an object in the form { x:value, y:value } or an array of such object...
...ptable and/or required. height A ConstrainLong specifying the video height or range of heights which are acceptable and/or required. width A ConstrainLong specifying the video width or range of widths which are acceptable and/or required. resizeMode A ConstrainDOMString object specifying a mode or an array of modes the UA can use to derive the resolution of a video track. Allowed values are none and crop-and-scale. none means that the user agent uses the resolution provided by the camera, its driver or the OS. crop-and-scale means that the user agent can use cropping and downscaling on the camera output in order to satisfy other constraints that affect the resolution. Properties of shared screen tracks These constraints apply to MediaTrackConstraints objects specified as part of the ...
OfflineAudioContext - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioContext" target="_top"><rect x="151" y="1" width="120" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioContext</text></a><polyline ...
... xlink:href="/docs/Web/API/AudioContext" target="_top"><rect x="151" y="1" width="120" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioContext</text></a><polyline points="271,25 281,20 281,30 271,25" stroke="#D4DDE4" fill="none"/><line x1="281" y1="25" x2="311" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/OfflineAudioContext" target="_top"><rect x="311" y="1" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">OfflineAudioContext</te...
Using the Permissions API - Web APIs
pear). "denied" The "Enable Geolocation" button is revealed (this code needs to be here too, in case the permission state is already set to denied for this origin when the page is first loaded). ...
...ermission state is already set to denied for this origin when the page is first loaded). ...
Pointer events - Web APIs
is used to specify whether or not the browser should apply its default (native) touch behavior (such as zooming or panning) to a region. This property may be applied to all elements except: non-replaced inline elements, table rows, row groups, table columns, and column groups. A value of auto means the browser is free to apply its default touch behavior (to the specified region) and the value of none disables the browser's default touch behavior for the region. The values pan-x and pan-y, mean that touches that begin on the specified region are only for horizontal and vertical scrolling, respectively. The value manipulation means the browser may consider touches that begin on the element are only for scrolling and zooming. In the following example, the browser's default touch behavior is dis...
... pan-x and pan-y, mean that touches that begin on the specified region are only for horizontal and vertical scrolling, respectively. The value manipulation means the browser may consider touches that begin on the element are only for scrolling and zooming. In the following example, the browser's default touch behavior is disabled for the div element. <html> <body> <div style="touch-action:none;">Can't touch this ... </div> </body> </html> In the following example, default touch behavior is disabled for some button elements. button#tiny { touch-action: none; } In the following example, when the target element is touched, it will only pan in the horizontal direction. #target { touch-action: pan-x; } Compatibility with mouse events Although the pointer event interfaces enab...
PublicKeyCredentialCreationOptions.attestation - Web APIs
client and the relying party. The attestation is a mean for the relying party to verify the origin of the authenticator with an attestation certificate authority. The information contained in the attestation may thus disclose some information about the user (e.g. which device they are using). Syntax attestation = publicKeyCredentialCreationOptions.attestation Value A string which may be "none": the relying party is not interested in this attestation. This avoids making a check with the attestation certificate authority and asking the user consent for sharing identifying information. "indirect": the client may change the assertion from the authenticator (for instance, using an anonymization CA). This value is used when the relying party wishes to verify the attestation. "direct": the...
... certificate authority and asking the user consent for sharing identifying information. "indirect": the client may change the assertion from the authenticator (for instance, using an anonymization CA). This value is used when the relying party wishes to verify the attestation. "direct": the relying party wants to receive the attestation as generated by the authenticator. The default value is "none". Examples var publicKey = { attestation: "indirect", challenge: new Uint8Array(26) /* this actually is given from the server */, rp: { name: "Example CORP", id : "login.example.com" }, user: { id: new Uint8Array(26), /* To be changed for each user */ name: "jdoe@example.com", displayName: "John Doe", }, pubKeyCredParams: [ { type: "public-key", ...
PublicKeyCredentialCreationOptions - Web APIs
station Optional A String which indicates how the attestation (for the authenticator's origin) should be transported. PublicKeyCredentialCreationOptions.extensions Optional An object with several client extensions' inputs. Those extensions are used to request additional processing (e.g. dealing with legacy FIDO APIs credentials, prompting a specific text on the authenticator, etc.). Methods None. Examples // some examples of COSE algorithms const cose_alg_ECDSA_w_SHA256 = -7; const cose_alg_ECDSA_w_SHA512 = -36; var createCredentialOptions = { // Format of new credentials is publicKey publicKey: { // Relying Party rp: { name: "Example CORP", id: "login.example.com", icon: "https://login.example.com/login.ico" }, ...
... name: "john.p.smith@example.com", displayName: "John P. ...
RTCPeerConnection.connectionState - Web APIs
ay be. These values are returned by the connectionState property. This state essentially represents the aggregate state of all ICE transports (which are of type RTCIceTransport or RTCDtlsTransport) being used by the connection. Constant Description "new" At least one of the connection's ICE transports (RTCIceTransports or RTCDtlsTransports) are in the "new" state, and none of them are in one of the following states: "connecting", "checking", "failed", or "disconnected", or all of the connection's transports are in the "closed" state. "connecting" One or more of the ICE transports are currently in the process of establishing a connection; that is, their RTCIceConnectionState is either "checking" or "connected", and no transports are in the "failed" state...
... Make this a link once I know where that will be documented "connected" Every ICE transport used by the connection is either in use (state "connected" or "completed") or is closed (state "closed"); in addition, at least one transport is either "connected" or "completed". "disconnected" At least one of the ICE transports for the connection is in the "disconnected" state and none of the other transports are in the state "failed", "connecting", or "checking". "failed" One or more of the ICE transports on the connection is in the "failed" state. "closed" The RTCPeerConnection is closed. This value was in the RTCSignalingState enum (and therefore found by reading the value of the signalingState) property until the May 13, 2016 draft of the s...
RadioNodeList - Web APIs
MinYMin meet"><a xlink:href="/docs/Web/API/NodeList" target="_top"><rect x="1" y="1" width="80" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="41" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">NodeList</text></a><polyline points="81,25 91,20 91,30 81,25" stroke="#D4DDE4" fill="none"/><line x1="91" y1="25" x2="121" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/RadioNodeList" target="_top"><rect x="121" y="1" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="186" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">RadioNodeList</text></a></svg>...
...vents: all;} Properties The RadioNodeList interface inherits the properties of NodeList. RadioNodeList.value If the underlying element collection contains radio buttons, the value property represents the checked radio button. On retrieving the value property, the value of the currently checked radio button is returned as a string. If the collection does not contain any radio buttons or none of the radio buttons in the collection is in checked state, the empty string is returned. On setting the value property, the first radio button input element whose value property is equal to the new value will be set to checked. Methods The RadioNodeList interface inherits the methods of NodeList. Specifications Specification Status Comments HTML Living StandardTh...
SVGAnimatedPathData - Web APIs
SVG animated path data interface The SVGAnimatedPathData interface supports elements which have a 'd' attribute which holds SVG path data, and supports the ability to animate that attribute. ...
... SVG animated path data interface The SVGAnimatedPathData interface supports elements which have a 'd' attribute which holds SVG path data, and supports the ability to animate that attribute. ...
SVGAnimatedRect - Web APIs
animVal SVGRect A read only SVGRect representing the current animated value of the given attribute. ...
... animVal SVGRect A read only SVGRect representing the current animated value of the given attribute. ...
SVGDocument - Web APIs
e as a component of a document from another namespace, such as when an "svg" element is embedded inline within an XHTML document, then an SVGDocument object will not exist; instead, the root object in the document object hierarchy will be a Document object of a different type, such as an HTMLDocument object. ...
..., such as when an "svg" element is embedded inline within an XHTML document, then an SVGDocument object will not exist; instead, the root object in the document object hierarchy will be a Document object of a different type, such as an HTMLDocument object. ...
SVGFitToViewBox - Web APIs
SVG fit to view box interface The SVGFitToViewBox interface is used to reflect the viewBox and preserveAspectRatio attributes, and is mixed in to other interfaces for elements that support these two attributes. ...
... SVG fit to view box interface The SVGFitToViewBox interface is used to reflect the viewBox and preserveAspectRatio attributes, and is mixed in to other interfaces for elements that support these two attributes. ...
getBBox() - Web APIs
or the parent elements. ...
...ext_1"> <text x="5" y="16" transform="scale(2, 2)">Hello World!</text> <text x="8" y="32" transform="translate(0 20) scale(1.25 1)">Hello World Again!</text> </g> <!-- Shows BBox in green --> <rect id="rect_1" stroke="#00ff00" stroke-width="3" fill="none"> </rect> <!-- Shows BoundingClientRect in red --> <rect id="rect_2" stroke="#ff0000" stroke-width="3" fill="none"></rect> </svg> JavaScript var rectBBox = document.querySelector('#rect_1'); var rectBoundingClientRect = document.querySelector('#rect_2'); var groupElement = document.querySelector('#group_text_1'); var bboxGroup = groupElement.getBBox(); rectBBox.setAttribute('x', bboxGroup.x); rectBBox.setAttribute('y', bboxGroup.y); rectBBox.setAttribute('width', bboxGroup.width); rectBBox.setAttribute('...
SVGPathSeg - Web APIs
SVG path segment interface This is a base interface that corresponds to a single command within a path data specification. ...
... SVG path segment interface This is a base interface that corresponds to a single command within a path data specification. ...
ServiceWorkerGlobalScope - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/WorkerGlobalScope" target="_top"><rect x="151" y="1" width="170" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="236" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">WorkerGlobalScope</text></a>...
...f="/docs/Web/API/WorkerGlobalScope" target="_top"><rect x="151" y="1" width="170" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="236" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">WorkerGlobalScope</text></a><polyline points="321,25 331,20 331,30 321,25" stroke="#D4DDE4" fill="none"/><line x1="331" y1="25" x2="361" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ServiceWorkerGlobalScope" target="_top"><rect x="361" y="1" width="240" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="481" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ServiceWorkerGloba...
TouchEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="19...
...DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/TouchEvent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">TouchEvent</text></a></svg></div...
WEBGL_draw_buffers.drawBuffersWEBGL() - Web APIs
hod is part of the WEBGL_draw_buffers extension. Note: When using WebGL2, this method is available as gl.drawBuffers() by default and the constants are named gl.COLOR_ATTACHMENT1 etc. without the "WEBGL" suffix. Syntax void gl.getExtension('WEBGL_draw_buffers').drawBuffersWEBGL(buffers); Parameters buffers An Array of GLenum constants defining drawing buffers. Possible values: gl.NONE: The fragment shader is not written to any color buffer. gl.BACK: The fragment shader is written to the back color buffer. ext.COLOR_ATTACHMENT0_WEBGL The fragment shader is written the the nth color attachment of the framebuffer. ext.COLOR_ATTACHMENT1_WEBGL ext.COLOR_ATTACHMENT2_WEBGL ext.COLOR_ATTACHMENT3_WEBGL ext.COLOR_ATTACHMENT4_WEBGL ext.COLOR_ATTACHMENT5_WEBGL ext.COLOR_AT...
...CHMENT3_WEBGL ext.COLOR_ATTACHMENT4_WEBGL ext.COLOR_ATTACHMENT5_WEBGL ext.COLOR_ATTACHMENT6_WEBGL ext.COLOR_ATTACHMENT7_WEBGL ext.COLOR_ATTACHMENT8_WEBGL ext.COLOR_ATTACHMENT9_WEBGL ext.COLOR_ATTACHMENT10_WEBGL ext.COLOR_ATTACHMENT11_WEBGL ext.COLOR_ATTACHMENT12_WEBGL ext.COLOR_ATTACHMENT13_WEBGL ext.COLOR_ATTACHMENT14_WEBGL ext.COLOR_ATTACHMENT15_WEBGL Return value None. Examples See WEBGL_draw_buffers for more context with this example code. ext.drawBuffersWEBGL([ ext.COLOR_ATTACHMENT0_WEBGL, // gl_FragData[0] ext.COLOR_ATTACHMENT1_WEBGL, // gl_FragData[1] ext.COLOR_ATTACHMENT2_WEBGL, // gl_FragData[2] ext.COLOR_ATTACHMENT3_WEBGL // gl_FragData[3] ]); Specifications Specification Status Comment WEBGL_draw_buffersThe definit...
WebGL2RenderingContext.drawBuffers() - Web APIs
method of the WebGL 2 API defines draw buffers to which fragment colors are written into. The draw buffer settings are part of the state of the currently bound framebuffer or the drawingbuffer if no framebuffer is bound. Syntax void gl.drawBuffers(buffers); Parameters buffers An Array of GLenum specifying the buffers into which fragment colors will be written. Possible values are: gl.NONE: Fragment shader output is not written into any color buffer. gl.BACK: Fragment shader output is written into the back color buffer. gl.COLOR_ATTACHMENT{0-15}: Fragment shader output is written in the nth color attachment of the current framebuffer. Return value None. Exceptions If buffers contains not one of the accepted values, a gl.INVALID_ENUM error is thrown. Examples gl.dr...
...der output is not written into any color buffer. gl.BACK: Fragment shader output is written into the back color buffer. gl.COLOR_ATTACHMENT{0-15}: Fragment shader output is written in the nth color attachment of the current framebuffer. Return value None. Exceptions If buffers contains not one of the accepted values, a gl.INVALID_ENUM error is thrown. Examples gl.drawBuffers([gl.NONE, gl.COLOR_ATTACHMENT1]); Specifications Specification Status Comment WebGL 2.0The definition of 'drawBuffers' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glDrawBuffers' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.resumeTransformFeedback() - Web APIs
Examples var transformFeedback = gl.createTransformFeedback(); gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); gl.beginTransformFeedback(gl.TRIANGLES); gl.pauseTransformFeedback(); //... ...
... Examples var transformFeedback = gl.createTransformFeedback(); gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); gl.beginTransformFeedback(gl.TRIANGLES); gl.pauseTransformFeedback(); //... ...
WebGLRenderingContext.pixelStorei() - Web APIs
The WebGLRenderingContext.pixelStorei() method of the WebGL API specifies the pixel storage modes. Syntax void gl.pixelStorei(pname, param); Parameters pname A Glenum specifying which parameter to set. See below for possible values. param A GLint specifying a value to set the pname parameter to. See below for possible values. Return value None. Pixel storage parameters Parameter name (for pname) Description Type Default value Allowed values (for param) Specified in gl.PACK_ALIGNMENT Packing of pixel data into memory GLint 4 1, 2, 4, 8 OpenGL ES 2.0 gl.UNPACK_ALIGNMENT Unpacking of pixel data from memory. GLint 4 1, 2, 4, 8 OpenGL ES 2.0 gl.UNPACK_FLIP_Y_WEBGL Flips the source data along its ...
...ertical axis if true. GLboolean false true, false WebGL gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL Multiplies the alpha channel into the other color channels GLboolean false true, false WebGL gl.UNPACK_COLORSPACE_CONVERSION_WEBGL Default color space conversion or no color space conversion. GLenum gl.BROWSER_DEFAULT_WEBGL gl.BROWSER_DEFAULT_WEBGL, gl.NONE WebGL When using a WebGL 2 context, the following values are available additionally: Constant Description Type Default value Allowed values (for param) Specified in gl.PACK_ROW_LENGTH Number of pixels in a row. GLint 0 0 to Infinity OpenGL ES 3.0 gl.PACK_SKIP_PIXELS Number of pixel locations skipped before the first pixel ...
WebGLRenderingContext.texParameter[fi]() - Web APIs
texture A GLfloat value. Additionally available when using a WebGL 2 context gl.TEXTURE_BASE_LEVEL Texture mipmap level Any int values. gl.TEXTURE_COMPARE_FUNC Texture Comparison function gl.LEQUAL (default value), gl.GEQUAL, gl.LESS, gl.GREATER, gl.EQUAL, gl.NOTEQUAL, gl.ALWAYS, gl.NEVER. gl.TEXTURE_COMPARE_MODE Texture comparison mode gl.NONE (default value), gl.COMPARE_REF_TO_TEXTURE. gl.TEXTURE_MAX_LEVEL Maximum texture mipmap array level Any int values. gl.TEXTURE_MAX_LOD Texture maximum level-of-detail value Any float values. gl.TEXTURE_MIN_LOD Texture minimum level-of-detail value Any float values. gl.TEXTURE_WRAP_R Wrapping function for texture coordinate r gl.REPEAT (d...
... Maximum texture mipmap array level Any int values. gl.TEXTURE_MAX_LOD Texture maximum level-of-detail value Any float values. gl.TEXTURE_MIN_LOD Texture minimum level-of-detail value Any float values. gl.TEXTURE_WRAP_R Wrapping function for texture coordinate r gl.REPEAT (default value), gl.CLAMP_TO_EDGE, gl.MIRRORED_REPEAT. Return value None. Examples gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_NEAREST); Specifications Specification Status Comment WebGL 1.0The definition of 'texParameter[fi]' in that specification. Recommendation Initial definition for WebGL. OpenGL ES 2.0The definition of 'glTexP...
Inputs and input sources - Web APIs
dual XRInputSource has a set of properties that describe the input's available axes and buttons, which hand the user's holding it in, and how the input source is used to handle targeting within the 3D space. Handedness Handedness, indicated by the XRInputSource property handedness, is a string which indicates which of the viewer's hands the controller is in: left or right. It can also be set to none if the controller isn't hand-held, or if it's unknown which hand the controller is in. Handedness can be used for various things, including selecting an appropriate mesh to use to represent the controller in the view and to help present it in the correct hand if drawing hands on the display. It can also be useful if your app uses the notion of "main hand" and "off hand" for determining the funct...
...le strings is maintained in the WebXR Input Profiles Registry on GitHub. For example, the generic-trigger-squeeze-touchpad profile name can be used to locate the following JSON profile data by locating the profileId field that has the value generic-trigger-squeeze-touchpad. ...
Example and tutorial: Simple synth keyboard - Web APIs
e-space: nowrap; margin: 10px; } .keyboard { width: auto; padding: 0; margin: 0; } .key { cursor: pointer; font: 16px "Open Sans", "Lucida Grande", "Arial", sans-serif; border: 1px solid black; border-radius: 5px; width: 20px; height: 80px; text-align: center; box-shadow: 2px 2px darkgray; display: inline-block; position: relative; margin-right: 3px; user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; } .key div { position: absolute; bottom: 0; text-align: center; width: 100%; pointer-events: none; } .key div sub { font-size: 10px; pointer-events: none; } .key:hover { background-color: #eef; } .key:active { background-color: #000; color: #fff; } .octave { display: inline-block; padding...
... begins by initializing a number of variables. let audioContext = new (window.AudioContext || window.webkitAudioContext)(); let oscList = []; let masterGainNode = null; audioContext is set to reference the global AudioContext object (or webkitAudioContext if necessary). oscList is set up to be ready to contain a list of all currently-playing oscillators. It starts off empty, since there are none playing yet. masterGainNode is set to null; during the setup process, it will be configured to contain a GainNode which all playing oscillators will connect to and play through to allow the overall volume to be controlled using a single slider control. let keyboard = document.querySelector(".keyboard"); let wavePicker = document.querySelector("select[name='waveform']"); let volumeControl = doc...
XMLHttpRequest - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/XMLHttpRequestEventTarget" target="_top"><rect x="151" y="1" width="250" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="276" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">XMLHttpRequestEventT...
.../XMLHttpRequestEventTarget" target="_top"><rect x="151" y="1" width="250" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="276" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">XMLHttpRequestEventTarget</text></a><polyline points="401,25 411,20 411,30 401,25" stroke="#D4DDE4" fill="none"/><line x1="411" y1="25" x2="441" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/XMLHttpRequest" target="_top"><rect x="441" y="1" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="511" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">XMLHttpRequest</text></a></s...
XREye - Web APIs
Web › API › XREye
Usage notes These values are used by the XRView property eye. ...
... Usage notes These values are used by the XRView property eye. ...
XRInputSource.handedness - Web APIs
perty handedness indicates which of the user's hands the WebXR input source is associated with, or if it's not associated with a hand at all. Syntax let hand = xrInputSource.handedness; Value A DOMString indicating whether the input controller is held in one of the user's hands, and if it is, which hand. The value, which comes from the XRHandedness enumerated type, is one of the following: none The input controller is not associated with one of the user's hands. left The input controller is being held in, worn on, or is attached to the user's left hand. right The input controller is being held in, worn on, or is attached to the user's right hand. Usage notes If the input source is not a device associated with a user's hand (whether by being held, attached, or worn), the value of...
...troller is not associated with one of the user's hands. left The input controller is being held in, worn on, or is attached to the user's left hand. right The input controller is being held in, worn on, or is attached to the user's right hand. Usage notes If the input source is not a device associated with a user's hand (whether by being held, attached, or worn), the value of handedness is none. This may indicate, for example, an input source which isn't hand-held, such as controls built into a headset or an input device attached to the head or body. Examples One important usage scentario for handedness is to determine which hand a controller is in so you can draw a representation of that hand (or the device that hand is controlling) in virtual space. function updateInputSources(ses...
ARIA: Region role - Accessibility
<div role="region" aria-label="Example"> <!-- region content --> </div> Description The region role is an ARIA landmark role. Landmark roles provide a way to identify the organization and structure of a web page. ...
... region if it is given an accessible name. Developers should always prefer using the correct semantic HTML element, in this case <section>, over using ARIA. Associated WAI-ARIA Roles, States, and Properties aria-labelledby Use this attribute to label the region. Often, the value of the aria-labelledby attribute will be the id of the element used to title the section. Keyboard Interactions None. Required JavaScript features None. Examples <div role="region" aria-labelledby="region-heading"> <h2 id="region-heading">This heading's <code>id</code> attribute helps this region have an accessible name</h2> <!-- region content --> </div> Accessibility concerns Use sparingly! Landmark roles are intended to be used sparingly, to identify larger overall sections of the document. Using ...
ARIA: heading role - Accessibility
The aria-level attribute specifies the heading level in the document structure. If no level is present, a value of 2 is the default. Keyboard interactions This role does not require any special keyboard navigation. As with any heading, giving it an ID ensures it can be referenced from anchor links, making it accessible via the keyboard. Required JavaScript features Required event handlers None. Changing attribute values Usually not required, unless dynamically inserting content. In that case, the newly-added headings need aria-level attributes whose values are consistent with the rest of the document structure. Instead of using a <div> or <span> with a heading role and aria-level, consider using a native <h1> through <h6> element instead to indicate that this text is a heading, an...
...the results can be unpredictable with other browser/screen reader combinations. Best practices The best way to use this role is to not use it at all, and instead use the native heading tags <h1> through <h6> as shown in the example above. The heading role and aria-level attribute should only be used to retrofit accessibility on legacy code that you cannot make major changes to. Added benefits None. Specifications Specification Status Accessible Rich Internet Applications (WAI-ARIA) 1.1The definition of 'heading' in that specification. Recommendation Precedence order The heading role overrides the native semantic meaning of the element it is being used for. The aria-level attribute, in addition, determines what level of heading is being exposed. Screen rea...
ARIA: listbox role - Accessibility
man-readable string value which more clearly identifies the role of the listbox. Screen readers will often read this value to the user after reading the label (if there is one), in place of saying "listbox". ...
... If one or more options are selected before the listbox receives focus, focus is set on the first option in the list that is selected. ...
WAI-ARIA Roles - Accessibility
hould use this element instead.ARIA: Navigation RoleThe navigation landmark role is used to identify major groups of links used for navigating through a website or page content.ARIA: Region roleThe region landmark role is used to identify an area in the document that the author has identified as significant. It is used to provide a generic landmark for people to be able to navigate to easily when none of the other landmark roles are appropriate.ARIA: row roleAn element with role="row" is a row of cells within a tabular structure. A row contains one or more cells, grid cells or column headers, and possibly a row header, within a grid, table or treegrid, and optionally within a rowgroup.ARIA: rowgroup roleAn element with role="rowgroup" is a group of rows within a tabular structure. A rowgroup ...
...ccessibility/ARIA/ARIA_Techniques). Ones for which the first draft is completed have been removed from the below list. ...
An overview of accessible web applications and widgets - Accessibility
attribute selectors to alter the visual appearance based on the state changes (rather than using script to change a class name on the element). Visibility changes When content visibility is changed (i.e., an element is hidden or shown), developers should change the aria-hidden property value. The techniques described above should be used to declare CSS to visually hide an element using display:none. Here is an example of a tooltip that uses aria-hidden to control the visibility of the tooltip. The example shows a simple web form with tooltips containing instructions associated with the entry fields. In this example, the HTML for the tooltip has the form shown in Example 2a. Line 9 sets the aria-hidden state to true. Example 2a. HTML for a tooltip <div class="text"> <label id="tp1-l...
...uired="false" /> <div id="tp1" class="tooltip" role="tooltip" aria-hidden="true">Your first name is optional</div> </div> The CSS for this markup is shown in Example 2b. Note that there is no custom classname used, only the status of the aria-hidden attribute on line 1. Example 2b. Attribute-based selector for indicating state div.tooltip[aria-hidden="true"] { display: none; } The JavaScript to update the aria-hidden property has the form shown in Example 2c. Note that the script only updates the aria-hidden attribute (line 2); it does not need to also add or remove a custom classname. Example 2c. JavaScript to update the aria-checked attribute var showTip = function(el) { el.setAttribute('aria-hidden', 'false'); } Role changes ARIA allows developers to dec...
Web accessibility for seizures and physical reactions - Accessibility
and (prefers-reduced-motion: reduce) { } @media screen and (prefers-reduced-motion) { } To see a great example of how to use the code prefers-reduced-motion, visit the MDN document, prefers-reduced-motion, or see the example below from the section on New in Chrome 74. button { animation: vibrate 0.3s linear infinite both; } @media (prefers-reduced-motion: reduce) { button { animation: none; } } prefers-color-scheme This can be useful if the ambient light API is not available. Support is emerging. @media (prefers-color-scheme: dark) { /* adust styles for dark mode */ } Window.matchMedia() There is a powerful tool available to developers via Window.matchMedia(). A great resource is MDN's document on Window.matchMedia() media update feature The more often the screen is r...
... !important; /* Hat tip Nick/cssremedy (https://css-tricks.com/revisiting-prefers-reduced-motion-the-reduced-motion-media-query/#comment-1700170) */ transition-duration: 0.001ms !important; } } From W3.org's page on Media Queries 4: The update media feature is used to query the ability of the output device to modify the appearance of content once it has been rendered. It has the values of "none", "slow", and "fast". Developmental & Experimental Features MDN Navigator.doNotTrack From the documentation: "Returns the user's do-not-track setting. This is "1" if the user has requested not to be tracked by web sites, content, or advertising" Media Queries Level 5 EnvironmentMQ (Planned in Media Queries Level 5) light-level Has three valid values: dim, normal, and washed. Interestingly,...
Text labels and names - Accessibility
lt attribute containing a name that describes the symbol. Since mglyph elements are used for non-standard symbols without Unicode definitions, screen readers won't automatically be able to name them. Alternative text helps users of screen readers understand the symbol. Headings must be labeled Make sure that your headings have non-empty text content, and are not hidden, such as with CSS display:none or aria-hidden=true. Users of screen readers rely on headings to understand the structure and content of a document. Also, be sure you are using heading elements only for actual section headings, and not as a shortcut way to make text stand out. Screen reader users typically "skim" a page's headings, much like sighted users; non-heading text that is marked-up with heading elements can cause conf...
... elements only for actual section headings, and not as a shortcut way to make text stand out. Screen reader users typically "skim" a page's headings, much like sighted users; non-heading text that is marked-up with heading elements can cause confusion. Headings should have visible text content Make sure that your headings have non-empty text content, and are not hidden, such as with CSS display:none or aria-hidden=true. Users of screen readers rely on headings to understand the structure and content of a document. Do not use heading elements to mark up images or other graphical content. Use title attribute to describe <iframe> content Make sure that <iframe> elements have a title attribute to describe the contents of the frame. Without a title, users of assistive technologies have to navig...
-webkit-border-before - CSS: Cascading Style Sheets
rder-width'> See border-width <'border-style'> See border-style <'color'> See color Formal definition Initial valueas each of the properties of the shorthand: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 elementsInheritedyesPercentagesas 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: th...
...border-left-style: nonecolor: Varies from one browser to anotherApplies toall elementsInheritedyesPercentagesas 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-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-style: as each of the properties of the shorthand:border-bottom-style: as specifiedborder-left-style: as specifiedborder-right-style: as ...
-webkit-line-clamp - CSS: Cascading Style Sheets
nts, the truncating can happen in the middle of the text, not necessarily at the end. Note: This property was originally implemented in WebKit and has some issues. It got standardized for legacy support. The CSS Overflow Module Level 3 specification also defines a line-clamp property, which is meant to replace this property and avoid its issues. Syntax /* Keyword value */ -webkit-line-clamp: none; /* <integer> values */ -webkit-line-clamp: 3; -webkit-line-clamp: 10; /* Global values */ -webkit-line-clamp: inherit; -webkit-line-clamp: initial; -webkit-line-clamp: unset; none This value specifies that the content won't be clamped. <integer> This value specifies the number of lines after which the content will be clamped. It must be greater than 0. Formal definition Initial value...
...; /* <integer> values */ -webkit-line-clamp: 3; -webkit-line-clamp: 10; /* Global values */ -webkit-line-clamp: inherit; -webkit-line-clamp: initial; -webkit-line-clamp: unset; none This value specifies that the content won't be clamped. <integer> This value specifies the number of lines after which the content will be clamped. It must be greater than 0. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax none | <integer> Examples Truncating a paragraph HTML <p> In this example the <code>-webkit-line-clamp</code> property is set to <code>3</code>, which means the text is clamped after three lines. An ellipsis will be shown at the point where the text is clamped. </p> CSS p { w...
-webkit-touch-callout - CSS: Cascading Style Sheets
The -webkit-touch-callout CSS property controls the display of the default callout shown when you touch and hold a touch target. When a target is touched and held on iOS, Safari displays a callout information about the link. This property allows disabling that behavior. ...
...n a target is touched and held on iOS, Safari displays a callout information about the link. This property allows disabling that behavior. /* Keyword values */ -webkit-touch-callout: default; -webkit-touch-callout: none; /* Global values */ -webkit-touch-callout: initial; -webkit-touch-callout: inherit; -webkit-touch-callout: unset; Syntax Values default The default callout is displayed. none The callout is disabled. Formal definition Initial valuedefaultApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax default | none Examples Turn off touch callout .example { -webkit-touch-callout: none; } Specifications Not part of any standard. Apple has a description in the Safari CSS Reference. ...
::-webkit-progress-bar - CSS: Cascading Style Sheets
the entire bar of a <progress> element. Normally it's only visible as the unfilled portion of the bar, since by default it's rendered below the ::-webkit-progress-value pseudo-element. It is a child of the ::-webkit-progress-inner-element pseudo-element and the parent of the ::-webkit-progress-value pseudo-element. ...
...'s rendered below the ::-webkit-progress-value pseudo-element. It is a child of the ::-webkit-progress-inner-element pseudo-element and the parent of the ::-webkit-progress-value pseudo-element. Note: For ::-webkit-progress-value to take effect, appearance needs to be set to none on the <progress> element. Syntax ::-webkit-progress-bar Examples CSS content progress { -webkit-appearance: none; } ::-webkit-progress-bar { background-color: orange; } HTML content <progress value="10" max="50"> Result Result screenshot If you're not using a WebKit or Blink browser, the code above results in a progress bar that looks like this: Specifications Not part of any standard. ...
::-webkit-progress-inner-element - CSS: Cascading Style Sheets
The ::-webkit-progress-inner-element CSS pseudo-element represents the outermost container of the <progress> element. It is the parent of the ::-webkit-progress-bar pseudo-element. Note: In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element. Syntax ::-webkit-progress-inner-element Examples These examples work only on Blink and WebKit. ...
...ebkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element. Syntax ::-webkit-progress-inner-element Examples These examples work only on Blink and WebKit. Adding a black border around the progress bar In this example, a 2px black border is added around the progress bar. HTML <progress value="10" max="50"> CSS progress { -webkit-appearance: none; } ::-webkit-progress-inner-element { border: 2px solid black; } Result Result screenshot If you're not using a Blink or WebKit browsear, the above code resuls in a progress bar looking like this: Specifications Not part of any standard. ...
::before (:before) - CSS: Cascading Style Sheets
Web › CSS › ::before
3 introduced the ::before notation (with two colons) to distinguish pseudo-classes from pseudo-elements. Browsers also accept :before, introduced in CSS2. Examples Adding quotation marks One simple example of using ::before pseudo-elements is to provide quotation marks. Here we use both ::before and ::after to insert quotation characters. HTML <q>Some quotes,</q> he said, <q>are better than none.</q> CSS q::before { content: "<<"; color: blue; } q::after { content: ">>"; color: red; } Result Decorative example We can style text or images in the content property almost any way we want. HTML <span class="ribbon">Notice where the orange box is.</span> CSS .ribbon { background-color: #5BC8F7; } .ribbon::before { content: "Look at this orange box."; background-color...
...; border-style: dotted; } Result To-do list In this example we will create a simple to-do list using pseudo-elements. This method can often be used to add small touches to the UI and improve user experience. ...
-ms-high-contrast - CSS: Cascading Style Sheets
play mode that prioritizes making content as legible as possible by dynamically replacing foreground and background colors with a user-specified theme. For web content, theme colors are mapped to content types. This media feature applies to bitmap media types. It does not accept min/max prefixes. Syntax The -ms-high-contrast media feature is specified as one of the following values. Values none ... No longer supported as of Microsoft Edge 18. active Indicates that the subsequent styling rules will be applied when the system is placed in high contrast mode with any color variation. black-on-white Indicates that the subsequent styling rules will be applied when the system is placed in high contrast mode with a black-on-white color variation. white-on-black Indicates th...
... are dynamic, use these color keywords in place of other CSS color values. This will ensure that content will always be able to be perceived. Content If at all possible, prefer updating HTML markup over modifying content using CSS2 system color keywords. This helps keep the content more predictable. Specifications Not part of any standard. Remarks As of Microsoft Edge 18, -ms-high-contrast: none is no longer supported. Microsoft Edge versions 18 and higher will be using the forced-colors media feature instead, but the forced-colors media feature specification is still being actively worked on. The -ms-high-contrast media feature works with the -ms-high-contrast-adjust property. The -ms-high-contrast media feature was introduced in Windows 8. ...
any-hover - CSS: Cascading Style Sheets
Web › CSS › @media › any-hover
hover One or more available input mechanisms can conveniently hover over elements. ...
... hover One or more available input mechanisms can conveniently hover over elements. ...
inverted-colors - CSS: Cascading Style Sheets
The inverted-colors CSS media feature can be used to test whether the user agent or underlying OS is inverting colors. Syntax The inverted-colors feature is specified as a keyword value chosen from the list below. none Colors are displayed normally. inverted All pixels within the displayed area have been inverted. Examples HTML <p>If you're using inverted colors, this text should be blue on white (the inverse of yellow on black). ...
...HTML <p>If you're using inverted colors, this text should be blue on white (the inverse of yellow on black). If you're not, it should be red on light gray.</p> <p>If the text is gray, your browser doesn't support the `inverted-colors` media feature.</p> CSS p { color: gray; } @media (inverted-colors: inverted) { p { background: black; color: yellow; } } @media (inverted-colors: none) { p { background: #eee; color: red; } } Result Specifications Specification Status Comment Media Queries Level 5The definition of 'inverted-colors' in that specification. Editor's Draft ...
scripting - CSS: Cascading Style Sheets
Web › CSS › @media › scripting
The scripting CSS media feature can be used to test whether scripting (such as JavaScript) is available. Syntax The scripting feature is specified as a keyword value chosen from the list below. none Scripting is completely unavailable on the current document. initial-only Scripting is enabled during the initial page load, but not afterwards. enabled Scripting is supported and active on the current document. Examples HTML <p class="script-none">You do not have scripting available. :-(</p> <p class="script-initial-only">Your scripting is only enabled during the initial page load. ...
... load, but not afterwards. enabled Scripting is supported and active on the current document. Examples HTML <p class="script-none">You do not have scripting available. :-(</p> <p class="script-initial-only">Your scripting is only enabled during the initial page load. Weird.</p> <p class="script-enabled">You have scripting enabled! :-)</p> CSS p { color: lightgray; } @media (scripting: none) { .script-none { color: red; } } @media (scripting: initial-only) { .script-initial-only { color: red; } } @media (scripting: enabled) { .script-enabled { color: red; } } Result Specifications Specification Status Comment Media Queries Level 5The definition of 'scripting' in that specification. Editor's Draft Initial definition ...
marks - CSS: Cascading Style Sheets
Web › CSS › @page › marks
iptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets. Crop marks and cross marks are printed outside the page box. To have room to show crop and cross marks, the final pages will have to be somewhat bigger than the page box. ...
...uld be cut. Cross marks are used to align sheets. Crop marks and cross marks are printed outside the page box. To have room to show crop and cross marks, the final pages will have to be somewhat bigger than the page box. Syntax /* Keyword values */ marks: none; marks: crop; marks: cross; marks: crop cross; Values crop Crop marks will be displayed. cross Cross marks will be displayed. none No marks will be displayed. Formal definition Related at-rule@pageInitial valuenoneComputed valueas specified Formal syntax none | [ crop | cross ] Examples Adding crop and cross marks @page { marks: crop cross; } Specifications Specification Status Comment CSS Paged Media Module Level 3The definition of 'marks' in that specification. Working Draft ...
width - CSS: Cascading Style Sheets
Web › CSS › @viewport › width
the other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively. Must be non-negative. ...
... Working Draft ...
Basic concepts of flexbox - CSS: Cascading Style Sheets
ues overflow the main axis. The final value is flex-basis; this is the value the items are using as their base value to grow and shrink from. There are also some predefined shorthand values which cover most of the use cases. You will often see these used in tutorials, and in many cases these are all you will need to use. The predefined values are as follows: flex: initial flex: auto flex: none flex: <positive-number> Setting flex: initial resets the item to the initial values of Flexbox. This is the same as flex: 0 1 auto. In this case the value of flex-grow is 0, so items will not grow larger than their flex-basis size. The value of flex-shrink is 1, so items can shrink if they need to rather than overflowing. The value of flex-basis is auto. Items will either use any size set on t...
... can shrink if they need to rather than overflowing. The value of flex-basis is auto. Items will either use any size set on the item in the main dimension, or they will get their size from the content size. Using flex: auto is the same as using flex: 1 1 auto; everything is as with flex:initial but in this case the items can grow and fill the container as well as shrink if required. Using flex: none will create fully inflexible flex items. It is as if you wrote flex: 0 0 auto. The items cannot grow or shrink but will be laid out using flexbox with a flex-basis of auto. The shorthand you often see in tutorials is flex: 1 or flex: 2 and so on. This is as if you used flex: 1 1 0. The items can grow and shrink from a flex-basis of 0. Try these shorthand values in the live example below. Ali...
OpenType font features guide - CSS: Cascading Style Sheets
improvement and recipe sites much easier to read and understand. Numerals within paragraphs of text set as 'oldstyle' sit more comfortably between lower-case letters, and likewise setting them as 'tabular numbers' will make them line up better when setting a list of costs in a table say. 'lining' figures on the other hand sit more uniformly on their own or in front of capitalized words. While none of these features individually will render a site useless due to their absence, each of them in turn can make a site easier to use and more memorable for its attention to detail. OpenType features are like secret compartments in fonts. Unlock them and you'll find ways to make fonts look and behave differently in subtle and dramatic ways. Not all OpenType features are appropriate to use all of t...
...ng of glyphs with only the OpenType set 'jis78' enabled. Uncheck the box below and you'll see more characters displayed. Note: these glyphs were copied out of a font sample and are not intended as prose. Font variant shorthand (font-variant) This is the shorthand syntax for defining all of the above. Setting a value of normal resets all properties to their initial value. Setting a value of none sets font-variant-ligatures to none and all other properties to their initial value. (Meaning that if kerning is on by default, it will still be on even with a value of none being supplied here.) Font feature settings font-feature-settings is the 'low level syntax' that allows explicit access to every named available OpenType feature. This gives a lot of control, but has some disadvantages in...
Variable fonts guide - CSS: Cascading Style Sheets
ons usually occur. Italic and oblique are often used somewhat interchangeably, but in truth are actually quite different. Oblique is defined in this context with the term slant (see the below section), and a typeface would typically have one or the other, but not both. In CSS, both italic and oblique are applied to text using the font-style property. Also note the introduction of font-synthesis: none;--which will prevent browsers from accidentally applying the variation axis and a synthesized italic. This can be used to prevent faux-bolding as well. font-style: italic; font-variation-settings: 'ital' 1; font-synthesis: none; The following live example's CSS can be edited to allow you to play with font italics. Slant Slant (represented by the slnt tag), or as it's often referred to, 'o...
...ompensating for screen quality and physical size rendering. Optical size values are generally intended to be automatically applied corresponding to font-size, but can also be manipulated using the lower-level font-variation-settings syntax. There is a new attribute, font-optical-sizing, created to support variable fonts in CSS. When using font-optical-sizing, the only allowed values are auto or none -- so this attribute only allows for turning optical sizing on or off. However when using font-variation-settings: 'opsz' <num>, you can supply a numeric value. In most cases you would want to match the font-size (the physical size the type is being rendered) with the opsz value (which is how optical sizing is intended to be applied when using auto). The option to provide a specific value is prov...
Using CSS counters - CSS: Cascading Style Sheets
s to track how many times they're used. Using counters Manipulating a counter's value To use a CSS counter, it must first be initialized to a value with the counter-reset property (0 by default). The same property can also be used to change its value to any specific number. Once initialized, a counter's value can be increased or decreased with counter-increment. The counter's name must not be "none", "inherit", or "initial"; otherwise the declaration is ignored. Displaying a counter The value of a counter can be displayed using either the counter() or counters() function in a content property. The counter() function has two forms: 'counter(name)' or 'counter(name, style)'. The generated text is the value of the innermost counter of the given name in scope at the given pseudo-element.The ...
...lly created in child elements. Using the counters() function, separating text can be inserted between different levels of nested counters. ...
Overview of CSS Shapes - CSS: Cascading Style Sheets
our <basic-shape> values, which are: inset() circle() ellipse() polygon() Using the value inset() wraps text around a rectangular shape however you are able to add offset values, thus pulling the line boxes of any wrapping content closer to the object than would otherwise happen. We have already seen how circle() creates a circular shape. An ellipse() is essentially a squashed circle. If none of these simple shapes do the trick you can create a polygon() and make the shape as complex as you want. In our Guide to Basic Shapes we explore each of the possible Basic Shapes and how to create them. Shapes from the Box Value Shapes can also be created around the Box Value, therefore you could create your shape on the: border-box padding-box content-box margin-box In the example be...
...n alpha channel -- the text will then wrap around the non-transparent parts of the image. This allows the overlay of wrapped content around an image, or the use of an image which is never displayed on the page purely as a method of creating a complex shape without needing to carefully map a polygon. Note that images used in this way must be CORS compatible, otherwise shape-outside will act as if none had been given as the value, and you will get no shape. In this next example, we have an image with a fully transparent area, and we are using an image as the URL value for shape-outside. The shape is created around the opaque area -- the image of the balloon. shape-image-threshold The shape-image-threshold property is used to set the threshold of image transparency used to define the area o...
Using CSS transitions - CSS: Cascading Style Sheets
1s ease-out; } a:hover, a:focus { color: #333; background-color: #fff; } This CSS establishes the look of the menu, with the background and text colors both changing when the element is in its :hover and :focus states. JavaScript examples Care should be taken when using a transition immediately after: adding the element to the DOM using .appendChild() removing an element's display: none; property. This is treated as if the initial state had never occurred and the element was always in its final state. The easy way to overcome this limitation is to apply a window.setTimeout() of a handful of milliseconds before changing the CSS property you intend to transition to. Using transitions to make JavaScript functionality smooth Transitions are a great tool to make things look much...
... Specifications Specification Status Comment CSS Transitions Working Draft Initial definition ...
CSS values and units - CSS: Cascading Style Sheets
See the <custom-ident> and <string> reference pages for more details. Pre-defined keyword values Pre-defined keywords are text values defined by the specification for that property. These keywords are also CSS Identifiers and are therefore used without quotes. ...
...re-defined keywords are text values defined by the specification for that property. These keywords are also CSS Identifiers and are therefore used without quotes. When viewing CSS property value syntax in a CSS specification or the MDN property page, allowable keywords will be listed in the following form. The following values are the pre-defined keyword values allowed for float. left | right | none | inline-start | inline-end Such values are used without quotes: .box { float: left; } CSS-wide values In addition to the pre-defined keywords that are part of the specification for a property, all CSS properties accept the CSS-wide property values initial, inherit, and unset, which explicitly specify defaulting behaviors. The initial keyword represents the value specified as the proper...
Layout and the containing block - CSS: Cascading Style Sheets
cky). If the position property is fixed, the containing block is established by the viewport (in the case of continuous media) or the page area (in the case of paged media). If the position property is absolute or fixed, the containing block may also be formed by the edge of the padding box of the nearest ancestor element that has the following: A transform or perspective value other than none A will-change value of transform or perspective A filter value other than none or a will-change value of filter (only works on Firefox). A contain value of paint (e.g. contain: paint;) Note: The containing block in which the root element (<html>) resides is a rectangle called the initial containing block. It has the dimensions of the viewport (for continuous media) or the page a...
...lbar)) */ height: 50%; /* == (50vh - (height of horizontal scrollbar)) */ margin: 5%; /* == (5vw - (width of vertical scrollbar)) */ padding: 5%; /* == (5vw - (width of vertical scrollbar)) */ background: cyan; } Example 5 In this example, the paragraph's position is absolute, so its containing block is <section>, which is the nearest ancestor with a transform property that isn't none. <body> <section> <p>This is a paragraph!</p> </section> </body> body { background: beige; } section { transform: rotate(0deg); width: 400px; height: 160px; background: lightgray; } p { position: absolute; left: 80px; top: 30px; width: 50%; /* == 200px */ height: 25%; /* == 40px */ margin: 5%; /* == 20px */ padding: 5%; /* == 20px */ background: cyan...
animation-fill-mode - CSS: Cascading Style Sheets
its execution. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. It is often convenient to use the shorthand property animation to set all animation properties at once. Syntax /* Single animation */ animation-fill-mode: none; animation-fill-mode: forwards; animation-fill-mode: backwards; animation-fill-mode: both; /* Multiple animations */ animation-fill-mode: none, backwards; animation-fill-mode: both, forwards, none; Values none The animation will not apply any styles to the target when it's not executing. The element will instead be displayed using any other CSS rules applied to it. This is the default valu...
...ds and backwards, thus extending the animation properties in both directions. Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial valuenoneApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <single-animation-fill-mode>#where <single-animation-fill-mode> = none | forwards | backwards | both Examples You can see the effect of animation-fill-mode in the following example. It demonstrates how, for an animation that runs for an infinite time, you can ca...
backface-visibility - CSS: Cascading Style Sheets
k faces (2, 4, 5) are hidden. ...
...e-visibility: hidden; } /* Define the container div, the cube div, and a generic face */ .container { width: 150px; height: 150px; margin: 75px 0 0 75px; border: none; } .cube { width: 100%; height: 100%; perspective: 550px; perspective-origin: 150% 150%; transform-style: preserve-3d; } .face { display: block; position: absolute; width: 100px; height: 100px; border: none; line-height: 100px; font-family: sans-serif; font-size: 60px; color: white; text-align: center; } /* Define each face based on direction */ .front { background: rgba(0, 0, 0, 0.3); transform: translateZ(50px); } .back { background: rgba(0, 255, 0, 1); color: black; transform: rotateY(180deg) translateZ(50px); } .right { background: rgba(196, 0, 0, 0.7); transform: rota...
background - CSS: Cascading Style Sheets
erefore convey nothing to its users. If the image contains information critical to understanding the page's overall purpose, it is better to describe it semantically in the document. MDN Understanding WCAG, Guideline 1.1 explanations Understanding Success Criterion 1.1.1 | W3C Understanding WCAG 2.0 Formal definition Initial valueas each of the properties of the shorthand:background-image: nonebackground-position: 0% 0%background-size: auto autobackground-repeat: repeatbackground-origin: padding-boxbackground-clip: border-boxbackground-attachment: scrollbackground-color: transparentApplies toall elements. It also applies to ::first-letter and ::first-line.InheritednoPercentagesas each of the properties of the shorthand:background-position: refer to the size of the background positioning...
...f length, percentage, or calcbackground-repeat: discretebackground-attachment: discrete Formal syntax [ <bg-layer> , ]* <final-bg-layer>where <bg-layer> = <bg-image> | <bg-position> [ / <bg-size> ]? | <repeat-style> | <attachment> | <box> | <box><final-bg-layer> = <'background-color'> | <bg-image> | <bg-position> [ / <bg-size> ]? | <repeat-style> | <attachment> | <box> | <box>where <bg-image> = none | <image><bg-position> = [ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]<bg-size> = [ <length-percentage> | auto ]{1,2} | cover | contain<repeat-style> = repeat-x | repeat-y |...
border-block-end - CSS: Cascading Style Sheets
element. Values The border-block-end is specified with one or more of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. ...
...ine style of the border. See border-style. <'color'> The color of the border. See color. ...
border-block-start-width - CSS: Cascading Style Sheets
border-width'> values */ border-block-start-width: 5px; border-block-start-width: thick; Related properties are border-block-end-width, border-inline-start-width, and border-inline-end-width, which define the other border widths of the element. ...
...lementsInheritednoPercentageslogical-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. See border-width. ...
border-block - CSS: Cascading Style Sheets
idth Syntax Values The border-block is specified with one or more of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. ...
...ine style of the border. See border-style. <'color'> The color of the border. See color. ...
border-inline-end-width - CSS: Cascading Style Sheets
'border-width'> values */ border-inline-end-width: 2px; border-inline-end-width: thick; Related properties are border-block-start-width, border-block-end-width, and border-inline-start-width, which define the other border widths of the element. ...
...lementsInheritednoPercentageslogical-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. See border-width. ...
border-inline-start-style - CSS: Cascading Style Sheets
please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <'border-style'> values */ border-inline-start-style: dashed; border-inline-start-style: dotted; border-inline-start-style: groove; Related properties are border-block-start-style, border-block-end-style, and border-inline-end-style, which define the other border styles of the element. ...
...der-inline-start-style: groove; Related properties are border-block-start-style, border-block-end-style, and border-inline-end-style, which define the other border styles of the element. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Values <'border-style'> The line style of the border. See border-style. ...
clear - CSS: Cascading Style Sheets
Web › CSS › clear
ly floated elements, its height collapses to nothing. If you want it to always be able to resize, so that it contains floating elements inside it, you need to self-clear its children. This is called clearfix, and one way to do it is to add clear to a replaced ::after pseudo-element on it. #container::after { content: ""; display: block; clear: both; } Syntax /* Keyword values */ clear: none; clear: left; clear: right; clear: both; clear: inline-start; clear: inline-end; /* Global values */ clear: inherit; clear: initial; clear: unset; Values none Is a keyword indicating that the element is not moved down to clear past floating elements. left Is a keyword indicating that the element is moved down to clear past left floats. right Is a keyword indicating that the element is ...
...cating that the element is moved down to clear floats on start side of its containing block, that is the left floats on ltr scripts and the right floats on rtl scripts. inline-end Is a keyword indicating that the element is moved down to clear floats on end side of its containing block, that is the right floats on ltr scripts and the left floats on rtl scripts. Formal definition Initial valuenoneApplies toblock-level elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | left | right | both | inline-start | inline-end Examples clear: left HTML <div class="wrapper"> <p class="black">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet diam. Duis mattis varius dui. Suspendisse eget dolor.</p> <p class="red">Lorem ipsum dolo...
column-rule-style - CSS: Cascading Style Sheets
The column-rule-style CSS property sets the style of the line drawn between columns in a multi-column layout. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...style: outset; /* Global values */ column-rule-style: inherit; column-rule-style: initial; column-rule-style: unset; The column-rule-style property is specified as a single <'border-style'> value. Values <'border-style'> Is a keyword defined by border-style describing the style of the rule. The styling must be interpreted as in the collapsing border model. Formal definition Initial valuenoneApplies tomulticol elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <'border-style'> Examples Setting a dashed column rule HTML <p>This is a bunch of text split into three columns. The `column-rule-style` property is used to change the style of the line that is drawn between columns. Don't you think that's wonderful?</p> CSS p { column-count: 3; ...
column-rule - CSS: Cascading Style Sheets
listed below, in any order. Values <'column-rule-width'> Is a <length> or one of the three keywords, thin, medium, or thick. See border-width for details. <'column-rule-style'> See border-style for possible values and details. <'column-rule-color'> Is a <color> value. ...
...<color> value. ...
column-span - CSS: Cascading Style Sheets
The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. /* Keyword values */ column-span: none; column-span: all; /* Global values */ column-span: inherit; column-span: initial; column-span: unset; An element that spans more than one column is called a spanning element. Syntax The column-span property is specified as one of the keyword values listed below. Values none The element does not span multiple columns. all The element spans across all columns. ...
...mn-span property is specified as one of the keyword values listed below. Values none The element does not span multiple columns. all The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appears. The element establishes a new block formatting context. Formal definition Initial valuenoneApplies toin-flow block-level elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | all Examples Making a heading span columns In this example, the heading is made to span across all the columns of the article. HTML <article> <h2>Header spanning all of the columns</h2> <p> The h2 should span all the columns. The rest of the text should be dis...
<display-box> - CSS: Cascading Style Sheets
t "unusual elements" -- elements that aren't rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details. Due to a bug in browsers this will currently remove the element from the accessibility tree -- screen readers will not look at what's inside. See the Accessibility concerns section below for more details. none Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off. To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead. Accessibility concerns Current implementations in most ...
...lement -- and in some browser versions, its descendant elements -- to no longer be announced by screen reading technology. This is incorrect behavior according to the CSSWG specification. More accessible markup with display: contents | Hidde de Vries Display: Contents Is Not a CSS Reset | Adrian Roselli Examples In this first example, the paragraph with a class of secret is set to display: none; the box and any content is now not rendered. display: none HTML <p>Visible text</p> <p class="secret">Invisible text</p> CSS p.secret { display: none; } Result display: contents In this example the outer <div> has a 2-pixel red border and a width of 300px. However it also has display: contents specified therefore this <div> will not be rendered, the border and width will no longer ap...
<easing-function> - CSS: Cascading Style Sheets
jump-start denotes a left-continuous function, so that the first step or jump happens when the animation begins; jump-end denotes a right-continuous function, so that the last step or jump happens when the animation ends; jump-both denotes a right and left continuous function, includes pauses at both the 0% and 100% marks, effectively adding a step during the animation iteration; jump-none There is no jump on either end. Instead, holding at both the 0% mark and the 100% mark, each for 1/n of the duration start is the equivalent of jump-start end is the equivalent of jump-end end is the default. steps( n, <direction> ) steps(2, jump-start) steps(2, start) steps(4, jump-end) steps(4, end) steps(5, jump-none) steps(3, jump-both) ste...
...ne happening at the start of the animation. */ steps(2, start) /* The second parameter is optional. */ steps(2) These easing function are invalid: /* The first parameter must be an <integer> and cannot be a real value, even if it is equal to one. */ steps(2.0, jump-end) /* The amount of steps must be non-negative. */ steps(-3, start) /* There must be at least one step.*/ steps(0, jump-none) Specifications Specification Status Comment CSS AnimationsThe definition of '<timing-function>' in that specification. Working Draft Defines <single-timing-function> as a synonym for <single-transition-timing-function> of the CSS Transitions Module. CSS Timing Functions Level 1The definition of '<easing-function>' in that specification. Working Dra...
font-kerning - CSS: Cascading Style Sheets
, while the ones on the right do: Syntax The font-kerning property is specified as one of the keyword values listed below. Values auto The browser determines whether font kerning should be used or not. For example, some browsers will disable kerning on small fonts, since applying it could harm the readability of text. normal Font kerning information stored in the font must be applied. none Font kerning information stored in the font is disabled. Formal definition Initial valueautoApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | normal | none Examples Enabling and disabling kerning HTML <div id="kern"></div> <div id="nokern"></div> <textarea id="input">AV T. ij</text...
...valueautoApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | normal | none Examples Enabling and disabling kerning HTML <div id="kern"></div> <div id="nokern"></div> <textarea id="input">AV T. ...
font-variant - CSS: Cascading Style Sheets
ariant: common-ligatures small-caps; /* Global values */ font-variant: inherit; font-variant: initial; font-variant: unset; Values normal Specifies a normal font face; each of the longhand properties has an initial value of normal. Longhand properties of font-variant are: font-variant-caps, font-variant-numeric, font-variant-alternates, font-variant-ligatures, and font-variant-east-asian. none Sets the value of the font-variant-ligatures to none and the values of the other longhand property as normal, their initial value. <common-lig-values>, <discretionary-lig-values>, <historical-lig-values>, <contextual-alt-values> Specifies the keywords related to the font-variant-ligatures longhand property. The possible values are: common-ligatures, no-common-ligatures, discretionary-ligatures...
... Specifies the keywords related to the font-variant-east-asian longhand property. The possible values are: jis78, jis83, jis90, jis04, simplified, traditional, full-width, proportional-width, ruby. Formal definition Initial valuenormalApplies toall elements. ...
margin-trim - CSS: Cascading Style Sheets
The margin-trim property allows the container to trim the margins of its children where they adjoin the container's edges. Syntax none Margins are not trimmed by the container. in-flow For in-flow boxes contained by this box, block-axis margins adjacent to the box's edges are truncated to zero. It also truncates any margins collapsed with such a margin. all Trims the margins of in-flow boxes and floats whose margins coincide with the container's content edge. Formal definition Initial valuenoneApplies toBlock containers and multi-column containers. ...
...ero. It also truncates any margins collapsed with such a margin. all Trims the margins of in-flow boxes and floats whose margins coincide with the container's content edge. Formal definition Initial valuenoneApplies toBlock containers and multi-column containers. ...
offset - CSS: Cascading Style Sheets
Web › CSS › offset
thand property sets all the properties required for animating an element along a defined path. Note: Early versions of the spec called this property motion. ...
...ion */ offset: url(circle.svg) 100px; offset: url(circle.svg) 40%; offset: url(circle.svg) 30deg; offset: url(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 elementsInheritednoPercentagesas each of the properties of the shorthand:offset-position: referToSizeOfContainingBlockoffset-distance: refer to the total path lengthoffset-anchor: relativeToWidthAndHeightComputed valueas each of the properties of the shorthand:offset-position: for <length> the absolute value, otherwise...
position - CSS: Cascading Style Sheets
Web › CSS › position
. The margins of absolutely positioned boxes do not collapse with other margins. fixed The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. (Note that there are browser inconsistencies with perspective and filter contributing to containing block formation.) Its final position is determined by the values of top, right, bottom, and left. This value always creates a new stacking context. In printed documents, the element is placed in the same po...
...This can be used to create a "floating" element that stays in the same position regardless of scrolling. In the example below, box "One" is fixed at 80 pixels from the top of the page and 10 pixels from the left. Even after scrolling, it remains in the same place relative to the viewport...
quotes - CSS: Cascading Style Sheets
Web › CSS › quotes
how the browser should render quotation marks that are added using the open-quotes or close-quotes values of the CSS content property. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* Keyword value */ quotes: none; quotes: auto; /* <string> values */ quotes: "<<" ">>"; /* Set open-quote and close-quote to the French quotation marks */ quotes: "<<" ">>" "<" ">"; /* Set two levels of quotation marks */ /* Global values */ quotes: inherit; quotes: initial; quotes: unset; Values none The open-quote and close-quote values of the content property produce no quotation marks. auto Appropriate...
...attribute). [<string> <string>]+ One or more pairs of <string> values for open-quote and close-quote. The first pair represents the outer level of quotation, the second pair is for the first nested level, next pair for third level and so on. Formal definition Initial valuedepends on user agentApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | auto | [ <string> <string> ]+ Examples Basic quote marks HTML <q>To be or not to be. That's the question!</q> CSS q { quotes: '"' '"' "'" "'"; } q::before { content: open-quote; } q::after { content: close-quote; } Result Auto quotes For most browsers, the default value of quotes is auto (Firefox 70+), or the browser otherwise had this default behavior (Chromiums, Safari, Edge...
scroll-snap-align - CSS: Cascading Style Sheets
ap-align property specifies the box's snap position as an alignment of its snap area (as the alignment subject) within its snap container's snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value. Syntax /* Keyword values */ scroll-snap-align: none; scroll-snap-align: start end; /* when two values set first is block, second inline */ scroll-snap-align: center; /* Global values */ scroll-snap-align: inherit; scroll-snap-align: initial; scroll-snap-align: unset; Values none The box does not define a snap position in that axis. start The start alignment of this box's scroll snap area, within the scroll container's snapport is a snap p...
... of this box's scroll snap area, within the scroll container's snapport is a snap position in this axis. center The center alignment of this box's scroll snap area, within the scroll container's snapport is a snap position in this axis. Safari currently has the two value syntax in the wrong order, the first value being inline the second block. See bug #191865. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ none | start | end | center ]{1,2} Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-snap-align' in that specification. Candidate Recommendation Initial definition ...
scroll-snap-stop - CSS: Cascading Style Sheets
yntax normal | always Examples Snapping in different axes This example is duplicated from scroll-snap-type with minor variances. ...
...div { scroll-snap-stop: normal; } /* scroll-snap */ .x.mandatory-scroll-snapping { scroll-snap-type: x mandatory; } .y.mandatory-scroll-snapping { scroll-snap-type: y mandatory; } .x.proximity-scroll-snapping { scroll-snap-type: x proximity; } .y.proximity-scroll-snapping { scroll-snap-type: y proximity; } .container > div { text-align: center; scroll-snap-align: center; flex: none; } .x.container > div { line-height: 128px; font-size: 64px; width: 100%; height: 128px; } .y.container > div { line-height: 256px; font-size: 128px; width: 256px; height: 256px; } /* appearance fixes */ .y.container > div:first-child { line-height: 1.3; font-size: 64px; } /* coloration */ .container > div:nth-child(even) { background-color: #87EA87; } .container > div:nt...
scroll-snap-type-x - CSS: Cascading Style Sheets
The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one. Specifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent. /* Keyword values */ scroll-snap-type-x: none; scroll-snap-type-x: mandatory; scroll-snap-type-x: proximity; /* Global values */ scroll-snap-type-x: inherit; scroll-snap-type-x: initial; scroll-snap-type-x: unset; Syntax Values none When the visual viewport of this scroll container is scrolled horizontally, it must ignore snap points. mandatory The visual viewport of this scroll container will rest on a snap point if it isn't currently scrolled horizontally. That means it snaps on th...
...ll be adjusted to maintain the resting on that snap point. proximity The visual viewport of this scroll container may come to rest on a snap point if it isn't currently scrolled horizontally considering the user agent's scroll parameters. If content is added, moved, deleted or resized the scroll offset may be adjusted to maintain the resting on that snap point. Formal definition Initial valuenoneApplies toscroll containersInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | mandatory | proximity Specifications Not part of any standard. ...
scroll-snap-type-y - CSS: Cascading Style Sheets
The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one. Specifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent. /* Keyword values */ scroll-snap-type-y: none; scroll-snap-type-y: mandatory; scroll-snap-type-y: proximity; /* Global values */ scroll-snap-type-y: inherit; scroll-snap-type-y: initial; scroll-snap-type-y: unset; Syntax Values none When the visual viewport of this scroll container is scrolled vertically, it must ignore snap points. mandatory The visual viewport of this scroll container will rest on a snap point if it isn't currently scrolled vertically. That means it snaps on that poi...
...will be adjusted to maintain the resting on that snap point. proximity The visual viewport of this scroll container may come to rest on a snap point if it isn't currently scrolled vertically considering the user agent's scroll parameters. If content is added, moved, deleted or resized the scroll offset may be adjusted to maintain the resting on that snap point. Formal definition Initial valuenoneApplies toscroll containersInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | mandatory | proximity Specifications Not part of any standard. ...
Specified value - CSS: Cascading Style Sheets
y is the value it receives from the document's style sheet. The specified value for a given property is determined according to the following rules: If the document's style sheet explicitly specifies a value for the property, the given value will be used. If the document's style sheet doesn't specify a value but it is an inherited property, the value will be taken from the parent element. ...
... value will be used. If the document's style sheet doesn't specify a value but it is an inherited property, the value will be taken from the parent element. If none of the above pertain, the element's initial value will be used. Examples HTML <p>My specified color is given explicitly in the CSS.</p> <div>The specified values of all my properties default to their initial values, because none of them are given in the CSS.</div> <div class="fun"> <p>The specified value of my font family is not given explicitly in the CSS, so it is inherited from my parent. However, the border is not an inheriting property.</p> </div> CSS .fun { border: 1px dotted pink; font-family: fantasy; } p { color: green; } Result Specifications Specification Status Com...
text-emphasis-position - CSS: Cascading Style Sheets
rthand property. Formal definition Initial valueover rightApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ over | under ] && [ right | left ] Examples Preferring ruby over emphasis marks Some editors prefer to hide emphasis marks when they conflict with ruby. ...
... emphasis marks when they conflict with ruby. In HTML, this can be done with the following style rule: ruby { text-emphasis: none; } Preferring emphasis marks over ruby Some other editors prefer to hide ruby when they conflict with emphasis marks. In HTML, this can be done with the following pattern: em { text-emphasis: dot; /* Set text-emphasis for <em> elements */ } em rt { display: none; /* Hide ruby inside <em> elements */ } Specifications Specification Status Comment CSS Text Decoration Module Level 3The definition of 'text-emphasis' in that specification. Candidate Recommendation Initial definition ...
text-shadow - CSS: Cascading Style Sheets
tance; a negative value places the shadow above the text. If both values are 0, the shadow is placed directly behind the text, although it may be partly visible due to the effect of <blur-radius>. <blur-radius> Optional. This is a <length> value. The higher the value, the bigger the blur; the shadow becomes wider and lighter. If not specified, it defaults to 0. ...
...lur-radius>. <blur-radius> Optional. This is a <length> value. The higher the value, the bigger the blur; the shadow becomes wider and lighter. If not specified, it defaults to 0. Formal definition Initial valuenoneApplies toall elements. ...
transition-property - CSS: Cascading Style Sheets
l request. Note: The set of properties that can be animated is subject to change. As such, you should avoid including any properties in the list that don't currently animate, as someday they might, causing unexpected results. If you specify a shorthand property (e.g., background), all of its longhand sub-properties that can be animated will be. ...
...stom-ident> values */ transition-property: test_05; transition-property: -specific; transition-property: sliding-vertically; /* Multiple values */ transition-property: test1, animation4; transition-property: all, height, color; transition-property: all, -moz-specific, sliding; /* Global values */ transition-property: inherit; transition-property: initial; transition-property: unset; Values none No properties will transition. all All properties that can transition will. <custom-ident> A string identifying the property to which a transition effect should be applied when its value changes. Formal definition Initial valueallApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | <single-transition...
visibility - CSS: Cascading Style Sheets
layout of a document. The property can also hide rows or columns in a <table>. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. To both hide an element and remove it from the document layout, set the display property to none instead of using visibility. Syntax /* Keyword values */ visibility: visible; visibility: hidden; visibility: collapse; /* Global values */ visibility: inherit; visibility: initial; visibility: unset; The visibility property is specified as one of the keyword values listed below. Values visible The element box is visible. hidden The element box is invisible (not drawn), but still affe...
...x is invisible (not drawn), but still affects layout as normal. Descendants of the element will be visible if they have visibility set to visible. The element cannot receive focus (such as when navigating through tab indexes). collapse For <table> rows, columns, column groups, and row groups, the row(s) or column(s) are hidden and the space they would have occupied is removed (as if display: none were applied to the column/row of the table). However, the size of other rows and columns is still calculated as though the cells in the collapsed row(s) or column(s) are present. This value allows for the fast removal of a row or column from a table without forcing the recalculation of widths and heights for the entire table. Collapsed flex items are hidden, and the space they would have occupi...
Overview of events and handlers - Developer guides
ally, browsers define a large number of objects as event emitters and define a wide variety of event types generated by the objects. Button event handler demo For example, browser <button> elements are intended to emit events named 'click' in response to a mouse click or, when displayed in touch sensitive surfaces, to a finger tap. ...
... This code relies on the agreement that there is a kind of event called 'click' which will call any listener (or 'handler') function with an Event object argumen...
<abbr>: The Abbreviation element - HTML: Hypertext Markup Language
Web › HTML › Element › abbr
n and nothing else. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content Permitted content Phrasing content Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM Interface HTMLElement Attributes This element only supports the global attributes. The title attribute has a specific semantic meaning when used with the <abbr> ele...
...line) by default, though its default styling varies from one browser to another: Some browsers, like Internet Explorer, do not style it differently than a <span> element. Opera, Firefox, and some others add a dotted underline to the content of the element. A few browsers not only add a dotted underline, but also put it in small caps; to avoid this styling, adding something like font-variant: none in the CSS takes care of this case. Examples Marking up an abbreviation semantically To mark up an abbreviation without providing an expansion or description, simply use <abbr> without any attributes, as seen in this example. HTML <p>Using <abbr>HTML</abbr> is fun and easy!</p> Result Styling abbreviations You can use CSS to set a custom style to be used for abbreviations, as seen in t...
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
Web › HTML › Element › audio
dio player will automatically seek back to the start upon reaching the end of the audio. muted A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is false. preload This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values: none: Indicates that the audio should not be preloaded. metadata: Indicates that only audio metadata (e.g. length) is fetched. auto: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it. empty string: A synonym of the auto value. The default value is different for each browser. The spec advises it to be set to metadata. Usage notes: The aut...
...ntent and palpable content. Permitted content If the element has a src attribute: zero or more <track> elements followed by transparent content that contains no <audio> or <video> media elements. Else: zero or more <source> elements followed by zero or more <track> elements followed by transparent content that contains no <audio> or <video> media elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts embedded content. Implicit ARIA role No corresponding role Permitted ARIA roles application DOM interface HTMLAudioElement Specifications Specification Status Comment HTML Living StandardThe definition of '<audio>' in that ...
<button>: The Button element - HTML: Hypertext Markup Language
Web › HTML › Element › button
to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, Interactive content, listed, labelable, and submittable form-associated element, palpable content. Permitted content Phrasing content but there must be no Interactive content Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role button Permitted ARIA roles checkbox, link, menuitem, menuitemcheckbox, menuitemradio, option, radio, switch, tab DOM interface HTMLButtonElement Attributes This element's attributes include the global attributes. ...
... form to the id of the form. <button> elements are much easier to style than <input> elements. You can add inner HTML content (think <i>, <br>, or even <img>), and use ::after and ::before pseudo-elements for complex rendering. If your buttons are not for submitting form data to a server, be sure to set their type attribute to button. Otherwise they will try to submit form data and to load the (nonexistent) response, possibly destroying the current state of the document. Example <button name="button">Press me</button> Accessibility concerns Icon buttons Buttons that only show an icon to represent do not have an accessible name. Accessible names provide information for assistive technology, such as screen readers, to access when they parse the document and generate an accessibility tr...
<col> - HTML: Hypertext Markup Language
Web › HTML › Element › col
e source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. <col> allows styling columns using CSS, but only a few properties will have an effect on the column (see the CSS 2.1 specification for a list). Content categories None. Permitted content None, it is an empty element. 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. The <colgroup> must not have a span attribute. Implicit ARIA role No corresponding role Permitted ARIA roles No role ...
...are: left, aligning the content to the left of the cell center, centering the content in the cell right, aligning the content to the right of the cell justify, inserting spaces into the textual content so that the content is justified in the cell If this attribute is not set, its value is inherited from the align of the <colgroup> element this <col> element belongs too. If there are none, the left value is assumed. Note: To achieve the same effect as the left, center, right or justify values: Do not try to set the text-align property on a selector giving a <col> element. Because <td> elements are not descendant of the <col> element, they won't inherit it. If the table doesn't use a colspan attribute, use the td:nth-child(an+b) CSS selector. Set a to zero and ...
<colgroup> - HTML: Hypertext Markup Language
Web › HTML › Element › colgroup
Permitted content If the span attribute is present: none, it is an empty element. ...
...he HTML <colgroup> element defines a group of columns within a table. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content If the span attribute is present: none, it is an empty element. If the attribute is not present: zero or more <col> element Tag omission The start tag may be omitted, if it has a <col> element as its first child and if it is not preceded by a <colgroup> whose end tag has been omitted. The end tag may be omitted, if it is not followed by a space or a comment. Permitted parents A <table> element. The <col...
<command>: The HTML Command element - HTML: Hypertext Markup Language
Web › HTML › Element › command
You should use the <menuitem> element instead, although that element is non-standard and only supported in Edge and Firefox. ...
...used anywhere on the page. The <command> element is included in the W3C specification, but not in the WHATWG specification, and browser support is nonexistent. You should use the <menuitem> element instead, although that element is non-standard and only supported in Edge and Firefox. Content categories Flow content, phrasing content, metadata content. Permitted content None, it is an empty element. Tag omission The start tag is mandatory, but, as it is a void element, the use of an end tag is forbidden. Permitted parent elements <colgroup> only, though it can be implicitly defined as its start tag is not mandatory. The <colgroup> must not have a <span> as child. DOM interface HTMLCommandElement Attributes This element incl...
<footer> - HTML: Hypertext Markup Language
Web › HTML › Element › footer
source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, palpable content. Permitted content Flow content, but with no <footer> or <header> descendants. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Note that a <footer> element must not be a descendant of an <address>, <header> or another <footer> element. Implicit ARIA role contentinfo, or no corresponding role if a descendant of an article, aside, main, nav or section element, or an element with role=article, co...
... accepts flow content. Note that a <footer> element must not be a descendant of an <address>, <header> or another <footer> element. Implicit ARIA role contentinfo, or no corresponding role if a descendant of an article, aside, main, nav or section element, or an element with role=article, complementary, main, navigation or region Permitted ARIA roles group, presentation or none DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Enclose information about the author in an <address> element that can be included into the <footer> element. The <footer> element is not sectioning content and therefore doesn't introduce a new section in the outline. Examples <footer> Some copyright info or perhaps som...
<form> - HTML: Hypertext Markup Language
Web › HTML › Element › form
one https://github.com/mdn/interactive-examples and send us a pull request. It is possible to use the :valid and :invalid CSS pseudo-classes to style a <form> element based on whether or not the elements inside the form are valid. Content categories Flow content, palpable content Permitted content Flow content, but not containing <form> elements Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content Implicit ARIA role form if the form has an accessible name, otherwise no corresponding role Permitted ARIA roles search, none or presentation DOM interface HTMLFormElement Attributes This element includes the global attributes. accept ...
...er in which they are listed. The default value means the same encoding as the page. (In previous versions of HTML, character encodings could also be delimited by commas.) autocapitalize A nonstandard attribute used by iOS Safari that controls how textual form elements should be automatically capitalized. autocapitalize attributes on a form elements override it on <form>. Possible values: none: No automatic capitalization. sentences (default): Capitalize the first letter of each sentence. words: Capitalize the first letter of each word. characters: Capitalize all characters -- that is, uppercase. autocomplete Indicates whether input elements can by default have their values automatically completed by the browser. autocomplete attributes on form elements override it on <form...
<header> - HTML: Hypertext Markup Language
Web › HTML › Element › header
source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, palpable content. Permitted content Flow content, but with no <header> or <footer> descendant. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Note that a <header> element must not be a descendant of an <address>, <footer> or another <header> element. Implicit ARIA role banner, or no corresponding role if a descendant of an article, aside, main, nav or section element, or an element with role=article, complem...
... that accepts flow content. Note that a <header> element must not be a descendant of an <address>, <footer> or another <header> element. Implicit ARIA role banner, or no corresponding role if a descendant of an article, aside, main, nav or section element, or an element with role=article, complementary, main, navigation or region Permitted ARIA roles group, presentation or none DOM interface HTMLElement Usage notes The <header> element is not sectioning content and therefore does not introduce a new section in the outline. That said, a <header> element is intended to usually contain the surrounding section's heading (an h1-h6 element), but this is not required. Historical Usage Although the <header> element didn't make its way into specifications u...
<input type="datetime-local"> - HTML: Hypertext Markup Language
lbackDateTimePicker'); var fallbackLabel = document.querySelector('.fallbackLabel'); var yearSelect = document.querySelector('#year'); var monthSelect = document.querySelector('#month'); var daySelect = document.querySelector('#day'); var hourSelect = document.querySelector('#hour'); var minuteSelect = document.querySelector('#minute'); // hide fallback initially fallbackPicker.style.display = 'none'; fallbackLabel.style.display = 'none'; // test whether a new datetime-local input falls back to a text input or not var test = document.createElement('input'); try { test.type = 'datetime-local'; } catch (e) { console.log(e.description); } // if it does, run the code inside the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativePicker.style.
...Label.style.display = 'none'; // test whether a new datetime-local input falls back to a text input or not var test = document.createElement('input'); try { test.type = 'datetime-local'; } catch (e) { console.log(e.description); } // if it does, run the code inside the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativePicker.style.display = 'none'; fallbackPicker.style.display = 'block'; fallbackLabel.style.display = 'block'; // populate the days and years dynamically // (the months are always the same, therefore hardcoded) populateDays(monthSelect.value); populateYears(); populateHours(); populateMinutes(); } function populateDays(month) { // delete the current set of <option> elements out of the // day <select>, re...
<input type="file"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › file
ly selected for upload</p> </div> <div> <button>Submit</button> </div> </form> html { font-family: sans-serif; } form { width: 580px; background: #ccc; margin: 0 auto; padding: 20px; border: 1px solid black; } form ol { padding-left: 0; } form li, div > p { background: #eee; display: flex; justify-content: space-between; margin-bottom: 10px; list-style-type: none; border: 1px solid black; } form img { height: 64px; order: 1; } form p { line-height: 32px; padding-left: 10px; } form label, form button { background-color: #7F9CCB; padding: 5px 10px; border-radius: 5px; border: 1px ridge black; font-size: 0.8rem; height: auto; } form label:hover, form button:hover { background-color: #2D5BA3; color: white; } form label:active, f...
...t element by clicking its <label>, so it is better to visually hide the input and style the label like a button, so the user will know to interact with it if they want to upload files. const input = document.querySelector('input'); const preview = document.querySelector('.preview'); input.style.opacity = 0; Note: opacity is used to hide the file input instead of visibility: hidden or display: none, because assistive technology interprets the latter two styles to mean the file input isn't interactive. Next, we add an event listener to the input to listen for changes to its selected value changes (in this case, when files are selected). The event listener invokes our custom updateImageDisplay() function. input.addEventListener('change', updateImageDisplay); Whenever the updateImageDispla...
<input type="image"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › image
<input> elements of type image are used to create graphical submit buttons, i.e. submit buttons that take the form of an image rather than text. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Value None -- the value attribute should not be specified. Events None. Supported common attributes alt, src, width, height, formaction, formenctype, formmethod, formnovalidate, formtarget IDL attributes None. Methods None. Value <input type="image"> elements do not accept value attributes. The path to the image to be displayed is specified in the src attribut...
... overrides any target given by the target attribute on the <form> that owns this input. In addition to the actual names of tabs, windows, or inline frames, there are a few special keywords that can be used: _self Loads the response into the same browsing context as the one that contains the form. This will replace the current document with the received data. This is the default value used if none is specified. _blank Loads the response into a new, unnamed, browsing context. This is typically a new tab in the same window as the current document, but may differ depending on the configuration of the user agent. _parent Loads the response into the parent browsing context of the current one. If there is no parent context, this behaves the same as _self. _top Loads the response into the t...
<input type="month"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › month
ck picker UI instead. ...
...bles var nativePicker = document.querySelector('.nativeDatePicker'); var fallbackPicker = document.querySelector('.fallbackDatePicker'); var fallbackLabel = document.querySelector('.fallbackLabel'); var yearSelect = document.querySelector('#year'); var monthSelect = document.querySelector('#month'); // hide fallback initially fallbackPicker.style.display = 'none'; fallbackLabel.style.display = 'none'; // test whether a new date input falls back to a text input or not var test = document.createElement('input'); try { test.type = 'month'; } catch (e) { console.log(e.description); } // if it does, run the code inside the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativePicker.style.display = 'none'; fallbackPicker.style.display = 'block...
<input type="range"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › range
apparent than in the area of hash marks and, to a lesser degree, labels. The specification describes how to add custom points to the range control using the list attribute and a <datalist> element, but does not have any requirements or even recommendations for standardized hash or tick marks along the length of the control. Range control mockups Since browsers have this flexibility, and to date none support all of the features HTML defines for range controls, here are some mockups to show you what you might get on macOS in a browser which supports them. An unadorned range control This is what you get if you don't specify a list attribute, or if the browser doesn't support it. HTML Examples <input type="range"> Screenshot Live ...
...on> </datalist> Screenshot Live Note: Currently, no browser fully supports these features. Firefox doesn't support hash marks and labels at all, for example, while Chrome supports hash marks but doesn't support labels. Version 66 (66.0.3359.181) of Chrome supports labels but the <datalist> tag has to be styled with CSS as its display property is set to none by default, hiding the labels. Change the orientation By default, if a browser renders a range input as a slider, it will render it so that the knob slides left and right. When supported, we will be able to make the range vertical, to slide up and down with CSS by declaring a height value greater than the width value. This is not actually implemented yet by any of the major browsers. (See Fir...
<input type="submit"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › submit
are rendered as buttons. When the click event occurs (typically because the user clicked the button), the user agent attempts to submit the form to the server. <input type="submit" value="Send Request"> Value A DOMString used as the button's label Events click Supported common attributes type and value IDL attributes value Methods None Value An <input type="submit"> element's value attribute contains a DOMString which is displayed as the button's label. Buttons do not have a true value otherwise. <input type="submit" value="Send Request"> If you don't specify a value, the button will have a default label, chosen by the user agent. This label is likely to be something along the lines of "Submit" or "Submit Query." ...
... overrides any target given by the target attribute on the <form> that owns this input. In addition to the actual names of tabs, windows, or inline frames, there are a few special keywords that can be used: _self Loads the response into the same browsing context as the one that contains the form. This will replace the current document with the received data. This is the default value used if none is specified. _blank Loads the response into a new, unnamed, browsing context. This is typically a new tab in the same window as the current document, but may differ depending on the configuration of the user agent. _parent Loads the response into the parent browsing context of the current one. If there is no parent context, this behaves the same as _self. _top Loads the response into the t...
<input type="time"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › time
<select>s) instead. ...
...es var nativePicker = document.querySelector('.nativeTimePicker'); var fallbackPicker = document.querySelector('.fallbackTimePicker'); var fallbackLabel = document.querySelector('.fallbackLabel'); var hourSelect = document.querySelector('#hour'); var minuteSelect = document.querySelector('#minute'); // hide fallback initially fallbackPicker.style.display = 'none'; fallbackLabel.style.display = 'none'; // test whether a new date input falls back to a text input or not var test = document.createElement('input'); try { test.type = 'time'; } catch (e) { console.log(e.description); } // if it does, run the code inside the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativePicker.style.display = 'none'; fallbackPicker.style.display = 'block'...
<input type="week"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › week
ect>s) instead. ...
...ar nativePicker = document.querySelector('.nativeWeekPicker'); var fallbackPicker = document.querySelector('.fallbackWeekPicker'); var fallbackLabel = document.querySelector('.fallbackLabel'); var yearSelect = document.querySelector('#year'); var weekSelect = document.querySelector('#fallbackWeek'); // hide fallback initially fallbackPicker.style.display = 'none'; fallbackLabel.style.display = 'none'; // test whether a new date input falls back to a text input or not var test = document.createElement('input'); try { test.type = 'week'; } catch (e) { console.log(e.description); } // if it does, run the code inside the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativePicker.style.display = 'none'; fallbackPicker.style.display = 'block'...
<li> - HTML: Hypertext Markup Language
Web › HTML › Element › li
played using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Flow content. Tag omission The end tag can be omitted if the list item is immediately followed by another <li> element, or if there is no more content in its parent element. Permitted parents An <ul>, <ol>, or <menu> element. Though not a conforming usage, the obsolete <dir> can also be a parent. Implicit ARIA role listitem when c...
...item is immediately followed by another <li> element, or if there is no more content in its parent element. Permitted parents An <ul>, <ol>, or <menu> element. Though not a conforming usage, the obsolete <dir> can also be a parent. Implicit ARIA role listitem when child of an ol, ul or menu Permitted ARIA roles menuitem, menuitemcheckbox, menuitemradio, option, none, presentation, radio, separator, tab, treeitem DOM interface HTMLLIElement Attributes This element includes the global attributes. value This integer attribute indicates the current ordinal value of the list item as defined by the <ol> element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items th...
<menuitem> - HTML: Hypertext Markup Language
Web › HTML › Element › menuitem
nd optional icon to describe its appearance, or alternatively as an indirect command whose behavior is defined by a separate element. Commands can also optionally include a checkbox or be grouped to share radio buttons. (Menu items for indirect commands gain checkboxes or radio buttons when defined against elements <input type="checkbox"> and <input type="radio">.) Content categories None. Permitted content None, it is an empty element. Tag omission Must have a start tag and must not have an end tag. Permitted parents The <menu> element, where that element is in the popup menu state. (If specified, the type attribute of the <menu> element must be popup; if missing, the parent element of the <menu> must itself be a <menu> in the popup menu state.
...e, it is an empty element. Tag omission Must have a start tag and must not have an end tag. Permitted parents The <menu> element, where that element is in the popup menu state. (If specified, the type attribute of the <menu> element must be popup; if missing, the parent element of the <menu> must itself be a <menu> in the popup menu state.) Permitted ARIA roles None DOM interface HTMLMenuItemElement Attributes This element includes the global attributes; in particular title can be used to describe the command, or provide usage hints. checked Boolean attribute which indicates whether the command is selected. May only be used when the type attribute is checkbox or radio. command Specifies the ID of a separate element, indicating a com...
<optgroup> - HTML: Hypertext Markup Language
Web › HTML › Element › optgroup
Permitted content Zero or more <option> elements. ...
...roup> element, or if the parent element has no more content. Permitted parents A <select> element. Implicit ARIA role group Permitted ARIA roles No role permitted DOM interface HTMLOptGroupElement Note: Optgroup elements may not be nested. Attributes This element includes the global attributes. disabled If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones. label The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used. Examples <select> <optgroup label="Group 1"> <optio...
<picture>: The Picture element - HTML: Hypertext Markup Language
Web › HTML › Element › picture
amples and send us a pull request. To decide which URL to load, the user agent examines each <source>'s srcset, media, and type attributes to select a compatible image that best matches the current layout and capabilities of the display device. The <img> element serves two purposes: It describes the size and other attributes of the image and its presentation. It provides a fallback in case none of the offered <source> elements are able to provide a usable image. Common use cases for <picture>: Art direction. Cropping or modifying images for different media conditions (for example, loading a simpler version of an image which has too many details, on smaller displays). Offering alternative image formats, for cases where certain formats are not supported. Saving bandwidth and speedi...
...> element instead. This lets browsers opt for lower-density versions in data-saving modes, and you don't have to write explicit media conditions. Content categories Flow content, phrasing content, embedded content Permitted content Zero or more <source> elements, followed by one <img> element, optionally intermixed with script-supporting elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that allows embedded content. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLPictureElement Attributes This element includes only global attributes. Usage notes You can use the object-position property to adjust...
<section>: The Generic Section element - HTML: Hypertext Markup Language
Web › HTML › Element › section
results and a map display and its controls don't have specific elements, and could be put inside a <section>. Note: If the contents of the element would make sense syndicated as a standalone piece, the <article> element may be a better choice. Content categories Flow content, Sectioning content, palpable content. Permitted content Flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Note that a <section> element must not be a descendant of an <address> element. Implicit ARIA role region if the element has an accessible name, otherwise no corresponding role Permitted ARIA roles alert, alertdialog, application, banner, complementary, con...
...ed parents Any element that accepts flow content. Note that a <section> element must not be a descendant of an <address> element. Implicit ARIA role region if the element has an accessible name, otherwise no corresponding role Permitted ARIA roles alert, alertdialog, application, banner, complementary, contentinfo, dialog, document, feed, log, main, marquee, navigation, none, note, presentation, search, status, tabpanel DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Each <section> should be identified, typically by including a heading (<h1>-<h6> element) as a child of the <section> element. If it makes sense to separately syndicate the content of a <section> element, use an <article> element...
<slot> - HTML: Hypertext Markup Language
Web › HTML › Element › slot
The HTML <slot> element--part of the Web Components technology suite--is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together. Content categories Flow content, phrasing content Permitted content Transparent Events slotchange Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLSlotElement Attributes This element includes the global attributes. name The slot's name. A named slot is a <slot> element with a name attribute. Exam...
...In addition, you can find an explanation at Using templates and slots. Specifications Specification Status Comments HTML Living StandardThe definition of '<slot>' in that specification. Living Standard DO...
<table>: The Table element - HTML: Hypertext Markup Language
Web › HTML › Element › table
Permitted parents Any element that accepts flow content Implicit ARIA role table Permitted ARIA roles Any DOM interface HTMLTableElement Attributes This element includes the global attributes. Deprecated attributes align This enumerated attribute indicates how the table must be aligne...
...ing does not have any effect if border-collapse is set to collapse. frame This enumerated attribute defines which side of the frame surrounding the table must be displayed. To achieve a similar effect, use the border-style and border-width properties. rules This enumerated attribute defines where rules, i.e. lines, should appear in a table. ...
<tt>: The Teletype Text element (obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › tt
sed interchangeably and have the same general meaning: they describe a typeface whose characters are all the same number of pixels wide. This element is obsolete, however. You should use the more semantically helpful <code>, <kbd>, <samp>, or <var> elements for inline text that needs to be presented in monospace type, or the <pre> tag for content that should be presented as a separate block. If none of the semantic elements are appropriate for your use case (for example, if you simply need to show some content in a non-proportional font), you should consider using the <span> element, styling it as desired using CSS. The font-family property is a good place to start. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing conten...
...e appropriate for your use case (for example, if you simply need to show some content in a non-proportional font), you should consider using the <span> element, styling it as desired using CSS. The font-family property is a good place to start. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes Examples Basic example This example uses <tt> to show text entered into, and output by, a terminal application. <p>Enter the follo...
<video>: The Video Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › video
this attribute isn't specified, nothing is displayed until the first frame is available, then the first frame is shown as the poster frame. preload This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience with regards to what content is loaded before the video is played. It may have one of the following values: none: Indicates that the video should not be preloaded. metadata: Indicates that only video metadata (e.g. length) is fetched. auto: Indicates that the whole video file can be downloaded, even if the user is not expected to use it. empty string: Synonym of the auto value. The default value is different for each browser. The spec advises it to be set to metadata. Note: The autoplay att...
... Permitted content If the element has a src attribute: zero or more <track> elements, followed by transparent content that contains no media elements-that is no <audio> or <video> Else: zero or more <source> elements, followed by zero or more <track> elements, followed by transparent content that contains no media elements-that is no <audio> or <video>. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts embedded content. Implicit ARIA role No corresponding role Permitted ARIA roles application DOM interface HTMLVideoElement Specifications Specification Feedback HTML Living StandardThe definition of '<video>' in that specifica...
HTTP caching - HTTP
Web › HTTP › Caching
esource changes; they have to communicate an expiration time for the resource. Before this expiration time, the resource is fresh; after the expiration time, the resource is stale. Eviction algorithms often privilege fresh resources over stale resources. Note that a stale resource is not evicted or ignored; when the cache receives a request for a stale resource, it forwards this request with a If-None-Match to check if it is in fact still fresh. If so, the server returns a 304 (Not Modified) header without sending the body of the requested resource, saving some bandwidth. Here is an example of this process with a shared cache proxy: The freshness lifetime is calculated based on several headers. If a "Cache-Control: max-age=N" header is specified, then the freshness lifetime is equal to N. ...
...n option to force a validation each time a document is loaded. ETags The ETag response header is an opaque-to-the-useragent value that can be used as a strong validator. That means that a HTTP user-agent, such as the browser, does not know what this string represents and can't predict what its value would be. If the ETag 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. The Last-Modified response header can be used as a weak validator. It is considered weak because it only has 1-second resolution. If the Last-Modified header is present in a response, then the client can issue an If-Modified-Since request header to validate the cached document. When a validation request is made, ...
HTTP conditional requests - HTTP
ortance of the different elements of a page, but is very useful towards optimizing cache performance. Conditional headers Several HTTP headers, called conditional headers, lead to conditional requests. These are: If-Match Succeeds if the ETag of the distant resource is equal to one listed in this header. By default, unless the etag is prefixed with 'W/', it performs a strong validation. If-None-Match Succeeds if the ETag of the distant resource is different to each listed in this header. By default, unless the etag is prefixed with 'W/', it performs a strong validation. If-Modified-Since Succeeds if the Last-Modified date of the distant resource is more recent than the one given in this header. If-Unmodified-Since Succeeds if the Last-Modified date of the distant resource is older ...
...rsion), or by showing the user a diff of both versions, helping them decide which changes they wish to keep. Dealing with the first upload of a resource The first upload of a resource is an edge case of the previous. Like any update of a resource, it is subject to a race condition if two clients try to perform at the similar times. To prevent this, conditional requests can be used: by adding If-None-Match with the special value of '*', representing any etag. The request will succeed, only if the resource didn't exist before: If-None-Match will only work with HTTP/1.1 (and later) compliant servers. If unsure if the server will be compliant, you need first to issue a HEAD request to the resource to check this. Conclusion Conditional requests are a key feature of HTTP, and allow the buildi...
Accept-Ranges - HTTP
advertise its support of partial requests. The value of this field indicates the unit that can be used to define a range. In presence of an Accept-Ranges header, the browser may try to resume an interrupted download, rather than to start it from the start again. ...
...ther than to start it from the start again. Header type Response header Forbidden header name no Syntax Accept-Ranges: <range-unit> Accept-Ranges: none Directives <range-unit> Defines the range unit the server supports. Though bytes is the only range unit formally defined by RFC 7233, additional range units may be registered in the HTTP Range Unit Registry. none No range unit is supported, this makes the header equivalent of its own absence and is therefore rarely used, though some browsers, like IE9, it is used to disable or remove the pause buttons in the download manager. Examples Accept-Ranges: bytes Specifications Specification Title RFC 7233, section 2.3: Accept-Ranges Hypertext Transfer Protocol (HTTP/1.1): Range...
Cache-Control - HTTP
not use their stale copy without successful validation on the origin server. proxy-revalidate Like must-revalidate, but only for shared caches (e.g., proxies). Ignored by private caches. immutable Indicates that the response body will not change over time. The resource, if unexpired, is unchanged on the server and therefore the client should not send a conditional revalidation for it (e.g. If-None-Match or If-Modified-Since) to check for updates, even when the user explicitly refreshes the page. Clients that aren't aware of this extension must ignore them as per the HTTP specification. In Firefox, immutable is only honored on https:// transactions. For more information, see also this blog post. Other no-transform An intermediate cache or proxy cannot edit the response body, Content-E...
...Content-Range, or Content-Type. It therefore forbids a proxy or browser feature, such as Google's Web Light, from converting images to minimize data for a cache store or slow connection. only-if-cached Set by the client to indicate "do not use the network" for the response. The cache should either respond using a stored response, or respond with a 504 status code. Conditional headers such as If-None-Match should not be set. There is no effect if only-if-cached is set by a server as part of a response. Examples Preventing caching To disable caching of a resource, you can send the following response header: Good: Cache-Control: no-store Bad: Cache-Control: private,no-cache,no-store,max-age=0,must-revalidate,pre-check=0,post-check=0 Caching static assets For the files in th...
CSP: frame-ancestors - HTTP
CSP version 2 Directive type Navigation directive default-src fallback No. Not setting this allows anything. This directive is not supported in the <meta> element. ...
...esystem: Allows filesystem: URIs to be used as a content source. 'self' Refers to the origin from which the protected document is being served, including the same URL scheme and port number. You must include the single quotes. Some browsers specifically exclude blob and filesystem from source directives. Sites needing to allow these content types can specify them using the Data attribute. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. Examples Content-Security-Policy: frame-ancestors 'none'; Content-Security-Policy: frame-ancestors 'self' https://www.example.org; Specifications Specification Status Comment Content Security Policy Level 3The definition of 'frame-ancestors' in that specification. Working Draft N...
CSP: object-src - HTTP
To set allowed types for <object>, <embed>, and <applet> elements, use the plugin-types directive. Elements controlled by object-src are perhaps coincidentally considered legacy HTML elements and aren't receiving new standardized features (such as the security attributes sandbox or allow for <iframe>). Therefore it is recommended to restrict this fetch-directive (e.g. explicitly set object-src 'none' if possible). CSP version 1 Directive type Fetch directive default-src fallback Yes. If this directive is absent, the user agent will look for the default-src directive. Syntax One or more sources can be allowed for the object-src policy: Content-Security-Policy: object-src <source>; Content-Security-Policy: object-src <source> <source>; Sources <...
...pecific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method compared to using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. You must include the single quotes. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' A whitelist for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline scr...
CSP: plugin-types - HTTP
fallback No. Not setting this allows anything. Syntax One or more MIME types can be set for the plugin-types policy: Content-Security-Policy: plugin-types <type>/<subtype>; Content-Security-Policy: plugin-types <type>/<subtype> <type>/<subtype>; <type>/<subtype> A valid MIME type. ...
...-Security-Policy: plugin-types <type>/<subtype> <type>/<subtype>; <type>/<subtype> A valid MIME type. Examples Disallowing plugins To disallow all plugins, the object-src directive should be set to 'none' which will disallow plugins. The plugin-types directive is only used if you are allowing plugins with object-src at all. ...
CSP: referrer - HTTP
this was a typo in the original spec) for links away from a page. This API is deprecated and removed from browsers. Use the Referrer-Policy header instead. Syntax Content-Security-Policy: referrer <referrer-policy>; where <referrer-policy> can be one of the following values: "no-referrer" The Referer header will be omitted entirely. No referrer information is sent along with requests. "none-when-downgrade" This is the user agent's default behavior if no policy is specified. The origin is sent as referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but isn't sent to a less secure destination (HTTPS->HTTP). "origin" Only send the origin of the document as the referrer in all cases. The document https://example.com/page.html will send the referrer https://example.com/. ...
... ...
Content-Security-Policy-Report-Only - HTTP
tatus-code The HTTP status code of the resource on which the global object was instantiated. violated-directive The name of the policy section that was violated. Sample violation report Let's consider a page located at http://example.com/signup.html. It uses the following policy, disallowing everything but stylesheets from cdn.example.com. Content-Security-Policy-Report-Only: default-src 'none'; style-src cdn.example.com; report-uri /_/csp-reports The HTML of signup.html looks like this: <!DOCTYPE html> <html> <head> <title>Sign Up</title> <link rel="stylesheet" href="css/style.css"> </head> <body> ... Content ... </body> </html> Can you spot the violation? Stylesheets are only allowed to be loaded from cdn.example.com, yet the website tries to load one from its...
...This is not always the case. For example, when the signup.html would attempt to load CSS from http://anothercdn.example.com/stylesheet.css, the browser would not include the full path but only the origin (http://ano...
Cross-Origin-Opener-Policy - HTTP
OP is opened in a new window, the opening document will not have a reference to it, and the window.opener property of the new window will be null. This allows you to have more control over references to a window than rel=noopener, which only affects outgoing navigations. Header type Response header Forbidden header name no Syntax Cross-Origin-Opener-Policy: unsafe-none | same-origin-allow-popups | same-origin Directives unsafe-none This is the default value. Allows the document to be added to its opener's browsing context group unless the opener itself has a COOP of same-origin or same-origin-allow-popups. same-origin-allow-popups Retains references to newly opened windows or tabs which either don't set COOP or which opt out of isolation by setting a CO...
... same-origin Isolates the browsing context exclusively to same-origin documents. Cross-origin documents are not loaded in the same browsing context. ...
ETag - HTTP
Web › HTTP › Headers › ETag
hes don't match, it means that the document has been edited in-between and a 412 Precondition Failed error is thrown. Caching of unchanged resources Another typical use of the ETag header is to cache resources that are unchanged. ...
...t the document has been edited in-between and a 412 Precondition Failed error is thrown. Caching of unchanged resources Another typical use of the ETag header is to cache resources that are unchanged. If a user visits a given URL again (that has an ETag set), and it is stale (too old to be considered usable), the client will send the value of its ETag along in an If-None-Match header field: If-None-Match: "33a64df551425fcc55e4d42a148795d9f25f89d4" The server compares the client's ETag (sent with If-None-Match) with the ETag for its current version of the resource, and if both values match (that is, the resource has not changed), the server sends back a 304 Not Modified status, without a body, which tells the client that the cached version of the response is still good to use (fresh). Spec...
Feature-Policy: accelerometer - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. AccelerometerThe definition of 'Accelerometer' in that specification. Candidate Recommendation ...
Feature-Policy: ambient-light-sensor - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is 'self'. Specification Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: autoplay - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value in Google Chrome is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: battery - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Battery Status APIThe definition of 'Feature Policy integration' in that specification. Candidate Recommendation ...
Feature-Policy: camera - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is 'self'. Specification Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: display-capture - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default alowlist is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Screen CaptureThe definition of 'display-capture' in that specification. Working Draft Feature policy directive definition. ...
Feature-Policy: document-domain - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is *. Specifications Specification Status Comment HTML Living StandardThe definition of 'document-domain' in that specification. Living Standard ...
Feature-Policy: encrypted-media - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The allow list is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Encrypted Media ExtensionsThe definition of 'Feature Policy integration' in that specification. Recommendation ...
Feature-Policy: fullscreen - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is 'self'. Examples General example SecureCorp Inc. wants to disable the Fullscreen API within all browsing contexts except for its own origin and those whose origin is https://example.com. It can do so by delivering the following HTTP response header to define a feature policy: Feature-P...
Feature-Policy: geolocation - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Examples General example SecureCorp Inc. wants to disable the Geolocation API within all browsing contexts except for its own origin and those whose origin is https://example.com. It can do so by delivering the following HTTP response header to define a feature policy: Feature-Policy: geolocatio...
Feature-Policy: gyroscope - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: layout-animations - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: legacy-image-formats - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: magnetometer - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: microphone - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: midi - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The allow list is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: oversized-images - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default value The default value is '*'. Specification Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: payment - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The payment feature's default allowlist value is 'self'. Specifications Specification Status Comment Payment Request API Candidate Recommendation See Section 16. Feature Policy integration. Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: picture-in-picture - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy As of June 2019, the spec draft and Google Chrome set default allow list to *. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: publickey-credentials-get - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default allowlist is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Web Authentication Level 2 Editor's draft. Definition of publickey-credentials-get directive, default allowlist. ...
Feature-Policy: screen-wake-lock - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy Default allow list for screen-wake-lock is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Screen Wake Lock API Editor's Draft Initial definition of screen-wake-lock feature directive. ...
Feature-Policy: sync-xhr - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy By default the policy is set to *, which means synchronous requests are allowed in all frames. Specification Specification Status Comment Feature Policy Editor's Draft Initial definition. WHATWG Spec Default policy is *. ...
Feature-Policy: unoptimized-images - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: unsized-media - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default value The default value for unsized-media is '*', that is unsized media elements are allowed for all origins by default. The page will re-flow every time an image with unknown dimensions is loaded. Specifications Specification Status Comment Feature Policy Editor's Draft Initial de...
Feature-Policy: usb - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. WebUSBThe definition of 'Feature-Policy integration' in that specification. Draft Default allow list is 'self'. ...
Feature-Policy: vibrate - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. ...
Feature-Policy: wake-lock - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy Default allow list for wake-lock is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Wake Lock API 1 Candidate Recommendation Initial definition of wake-lock feature directive. ...
web-share - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default value is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Web Share API Draft ...
Feature-Policy: xr-spatial-tracking - HTTP
document, and all nested browsing contexts (iframes) regardless of their origin. 'self': The feature will be allowed in this document, and in all nested browsing contexts (iframes) in the same origin. 'src': (In an iframe allow attribute only) The feature will be allowed in this iframe, as long as the document loaded into it comes from the same origin as the URL in the iframe's src attribute. 'none': The feature is disabled in top-level and nested browsing contexts. <origin(s)>: The feature is allowed for specific origins (for example, https://example.com). Origins should be separated by a space. The values * (enable for all origins) or 'none' (disable for all origins) may only be used alone, while 'self' and 'src' may be used with one or more origins. Features are each defined to have ...
...s are each defined to have a default allowlist, which is one of: *: The feature is allowed by default in top-level browsing contexts and all nested browsing contexts (iframes). 'self': The feature is allowed by default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default allowlist is 'self'. Specifications Specification Status Comment WebXR Device APIThe definition of 'Permissions Policy' in that specification. Working Draft ...
Index - HTTP
Web › HTTP › Headers › Index
l send back the requested resource, with a 200 status, only if it has been last modified after the given date. If the request has not been modified since, the response will be a 304 without any body; the Last-Modified response header of a previous request will contain the date of last modification. Unlike If-Unmodified-Since, If-Modified-Since can only be used with a GET or HEAD. 79 If-None-Match Conditional Requests, HTTP, HTTP Header, Reference, Request header The If-None-Match HTTP request header makes the request conditional. For GET and HEAD methods, the server will send back the requested resource, with a 200 status, only if it doesn't have an ETag matching the given ones. For other methods, the request will be processed only if the eventually existing resource's ETa...
... server has responded with a 407 Proxy Authentication Required status and the Proxy-Authenticate header. 91 Public-Key-Pins HPKP, HTTP, Reference, Security, header The HTTP Public-Key-Pins response header associates a specific cryptographic public key with a certain web server to decrease the risk of MITM attacks with forged certificates. If one or several keys are pinned and none of them are used by the server, the browser will not accept the response as legitimate, and will not display it. 92 Public-Key-Pins-Report-Only HPKP, HTTP, Security, header The HTTP Public-Key-Pins-Report-Only response header sends reports of pinning violation to the report-uri specified in the header but, unlike Public-Key-Pins still allows browsers to connect to the server ...
Set-Cookie - HTTP
It also must not contain a separator character like the following: ( ) < > @ , ...
...quests (that is, requests originating from the same site that set the cookie). If the request originated from a different URL than the current one, no cookies with the SameSite=Strict attribute are sent. Lax: The cookie is withheld on cross-site subrequests, such as calls to load images or frames, but is sent when a user navigates to the URL from an external site, such as by following a link. None: The browser sends the cookie with both cross-site and same-site requests. Asserts that a cookie must not be sent with cross-origin requests, providing some protection against cross-site request forgery attacks (CSRF). Browsers are migrating to have cookies default to SameSite=Lax. If a cookie is needed to be sent cross-origin, opt out of the SameSite restriction using the None value. The N...
HTTP headers - HTTP
Web › HTTP › Headers
st modification date of the resource, used to compare several versions of the same resource. It is less accurate than ETag, but easier to calculate in some environments. Conditional requests using If-Modified-Since and If-Unmodified-Since use this value to change the behavior of the request. ETag A unique string identifying the version of the resource. Conditional requests using If-Match and If-None-Match use this value to change the behavior of the request. If-Match Makes the request conditional, and applies the method only if the stored resource matches one of the given ETags. If-None-Match Makes the request conditional, and applies the method only if the stored resource doesn't match any of the given ETags. This is used to update caches (for safe requests), or to prevent to upload a n...
...eport-uri specified in the header and does still allow clients to connect to the server even if the pinning is violated. Fetch metadata request headers Sec-Fetch-Site It is a request header that indicates the relationship between a request initiator's origin and its target's origin. It is a Structured Header whose value is a token with possible values cross-site, same-origin, same-site, and none. Sec-Fetch-Mode It is a request header that indicates the request's mode to a server. It is a Structured Header whose value is a token with possible values cors, navigate, nested-navigate, no-cors, same-origin, and websocket. Sec-Fetch-User It is a request header that indicates whether or not a navigation request was triggered by user activation. It is a Structured Header whose value is a boo...
Character classes - JavaScript
for a word (from Unicode characters) Instead of the Latin alphabet, we can use a range of Unicode characters to identify a word (thus being able to deal with text in other languages like Russian or Arabic). The "Basic Multilingual Plane" of Unicode contains most of the characters used around the world and we can use character classes and ranges to match words written with those characters. ...
...s like Russian or Arabic). The "Basic Multilingual Plane" of Unicode contains most of the characters used around the world and we can use character classes and ranges to match words written with those characters. var nonEnglishText = "??????????? ????? ? ?????? ?????"; var regexpBMPWord = /([\u0000-\u0019\u0021-\uFFFF])+/gu; // BMP goes through U+0000 to U+FFFF but space is U+0020 console.table(nonEnglishText.match(regexpBMPWord)); [ '???????????', '?????', '?', '??????', '?????' ] Note for MDN editors: please do not try to add funny examples with emoji as those characters are not handled by the platform (Kuma). Specifications Specification ECMAScript Latest Draft (ECMA-262)The definition of 'RegExp: Character classes' in that specification. ...
Unicode property escapes - JavaScript
s or digits. However, such forms only match characters from the Latin script (in other words, a to z and A to Z for \w and 0 to 9 for \d). As shown in this example, it might be a bit clumsy to work with non Latin texts. Unicode property escapes categories encompass much more characters and \p{Letter} or \p{Number} will work for any script. ...
...lumsy to work with non Latin texts. Unicode property escapes categories encompass much more characters and \p{Letter} or \p{Number} will work for any script. // Trying to use ranges to avoid \w limitations: const nonEnglishText = "??????????? ????? ? ?????? ?????"; const regexpBMPWord = /([\u0000-\u0019\u0021-\uFFFF])+/gu; // BMP goes through U+0000 to U+FFFF but space is U+0020 console.table(nonEnglishText.match(regexpBMPWord)); // Using Unicode property escapes instead const regexpUPE = /\p{L}+/gu; console.table(nonEnglishText.match(regexpUPE)); Specifications Specification ECMAScript (ECMA-262)The definition of 'RegExp: Unicode property escapes' in that specification. ...
BigInt64Array - JavaScript
) Calls a function for each element in the array. See also Array.prototype.forEach(). BigInt64Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). BigInt64Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). BigInt64Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). BigInt64Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). BigInt64Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within...
...gInt64Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). BigInt64Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). BigInt64Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). BigInt64Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). BigInt64Array.prototype.reduce() Applies a function against an accumulator and each value of the array (from left-to-right) so as to reduce it to a single value. See also Array.protot...
BigUint64Array - JavaScript
Calls a function for each element in the array. See also Array.prototype.forEach(). BigUint64Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). BigUint64Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). BigUint64Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). BigUint64Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). BigUint64Array.prototype.lastIndexOf() Returns the last (greatest) index of an element wit...
...nt64Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). BigUint64Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). BigUint64Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). BigUint64Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). BigUint64Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) so as to reduce it to a single value. See also Array.protot...
Float32Array - JavaScript
h() Calls a function for each element in the array. See also Array.prototype.forEach(). Float32Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Float32Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Float32Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Float32Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Float32Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within th...
... Float32Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Float32Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Float32Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Float32Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Float32Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.red...
Float64Array - JavaScript
h() Calls a function for each element in the array. See also Array.prototype.forEach(). Float64Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Float64Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Float64Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Float64Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Float64Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within th...
... Float64Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Float64Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Float64Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Float64Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Float64Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.red...
Int16Array - JavaScript
rEach() Calls a function for each element in the array. See also Array.prototype.forEach(). Int16Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Int16Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Int16Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Int16Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Int16Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the arra...
...Of(). Int16Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Int16Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Int16Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Int16Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Int16Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduce(...
Int32Array - JavaScript
rEach() Calls a function for each element in the array. See also Array.prototype.forEach(). Int32Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Int32Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Int32Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Int32Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Int32Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the arra...
...Of(). Int32Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Int32Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Int32Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Int32Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Int32Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduce(...
Int8Array - JavaScript
forEach() Calls a function for each element in the array. See also Array.prototype.forEach(). Int8Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Int8Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Int8Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Int8Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Int8Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array e...
...dexOf(). Int8Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Int8Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Int8Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Int8Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Int8Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduce().
TypedArray - JavaScript
rEach() Calls a function for each element in the array. See also Array.prototype.forEach(). TypedArray.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). TypedArray.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). TypedArray.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). TypedArray.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). TypedArray.prototype.lastIndexOf() Returns the last (greatest) index of an element within the arra...
...Of(). TypedArray.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). TypedArray.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). TypedArray.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). TypedArray.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). TypedArray.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduce(...
Uint16Array - JavaScript
ach() Calls a function for each element in the array. See also Array.prototype.forEach(). Uint16Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Uint16Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Uint16Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint16Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint16Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the a...
...). Uint16Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint16Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint16Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Uint16Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Uint16Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduc...
Uint32Array - JavaScript
ach() Calls a function for each element in the array. See also Array.prototype.forEach(). Uint32Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Uint32Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Uint32Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint32Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint32Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the a...
...). Uint32Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint32Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint32Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Uint32Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Uint32Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduc...
Uint8Array - JavaScript
rEach() Calls a function for each element in the array. See also Array.prototype.forEach(). Uint8Array.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Uint8Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Uint8Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint8Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint8Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the arra...
...Of(). Uint8Array.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint8Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint8Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Uint8Array.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Uint8Array.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduce(...
Uint8ClampedArray - JavaScript
a function for each element in the array. See also Array.prototype.forEach(). Uint8ClampedArray.prototype.includes() Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes(). Uint8ClampedArray.prototype.indexOf() Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf(). Uint8ClampedArray.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint8ClampedArray.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint8ClampedArray.prototype.lastIndexOf() Returns the last (greatest) index of an el...
...ray.prototype.join() Joins all elements of an array into a string. See also Array.prototype.join(). Uint8ClampedArray.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys(). Uint8ClampedArray.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf(). Uint8ClampedArray.prototype.map() Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map(). Uint8ClampedArray.prototype.reduce() Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.pro...
<mmultiscripts> - MathML
presubscript presuperscript)* ] </mmultiscripts> After the base expression you can specify a postsubscript and a postsuperscript. Prescripts are optional and are separated by the empty tag <mprescripts/> (only one <mprescripts /> element is allowed, otherwise you will get an DuplicateMprescripts error in the Error Console and "invalid-markup" in your rendering). In addition you are able to use <none/> as a placeholder for empty scripts (not for the base). See the examples section for a correct usage. Attributes class, id, style Provided for use with stylesheets. href Used to set a hyperlink to a specified URI. mathbackground The background color. You can use #rgb, #rrggbb and HTML color names. mathcolor The text color. You can use #rgb, #rrggbb and HTML color names. subscriptshif...
...> Sample rendering: Rendering in your browser: X d c b a <math> <mmultiscripts> <mi>X</mi> <!-- base expression --> <mi>d</mi> <!-- postsubscript --> <mi>c</mi> <!-- postsuperscript --> <mprescripts /> <mi>b</mi> <!-- presubscript --> <mi>a</mi> <!-- presuperscript --> </mmultiscripts> </math> Using <none/> Sample rendering: Rendering in your browser: X c b <math> <mmultiscripts> <mi>X</mi> <!-- base expression --> <none /> <!-- postsubscript --> <mi>c</mi> <!-- postsuperscript --> <mprescripts /> <mi>b</mi> <!-- presubscript --> <none /> <!-- presuperscript --> </mmultiscripts> </math> Specific...
Image file type and format guide - Web media technologies
Image file type d...
... True color n/a n/a ...
Media - Progressive web apps (PWAs)
on area that contains the primary site menu. In the markup language, the navigation area's parent element has the id nav-area. (In HTML5, this can be marked up with the <nav> element instead of <div> with an id attribute.) When printing the document, the navigation area has no purpose. This CSS (below) removes the navigation area when printing the document: @media print { #nav-area {display: none;} } Some common media types are: screen Color device display print Printed paged media projection Projected display all All media (the default) More details There are other ways to specify the media type for a set of rules. The document's markup language might allow the media type to be specified when the stylesheet is linked to the ...
...<p>This is the first section...</p> <h1>Section B</h1> <p>This is the second section...</p> <div id="print-head"> Heading for paged media </div> <div id="print-foot"> Page: </div> </body> </html> Make a new stylesheet, style4.css. ...
begin - SVG: Scalable Vector Graphics
Web › SVG › Attribute › begin
teName="width" from="0" to="100" begin="startButton.click" dur="8s" fill="freeze" /> </rect> <!-- trigger --> <rect id="startButton" style="cursor:pointer;" x="19.5" y="62.5" rx="5" height="25" width="80" fill="#EFEFEF" stroke="black" stroke-width="1" /> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">Click me.</text> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="55" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="55" ...
... xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributeType="XML" attributeName="width" from="0" to="100" begin="accessKey(s)" dur="8s" fill="freeze" /> </rect> <!-- trigger --> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">Hit the "s" key</text> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="55" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2...
keyPoints - SVG: Scalable Vector Graphics
of an animation. ...
...The distance is calculated along the path specified by the path attribute. Each progress value in the list corresponds t...
name - SVG: Scalable Vector Graphics
Web › SVG › Attribute › name
The name attribute specifies either the name of a color profile or a font face. Two elements are using this attribute: <color-profile> and <font-face-name> color-profile For <color-profile>, name defines the name of the color profile. Value <name> Default value None Animatable Yes <name> This value is the name which is used as the first parameter for ICC color specifications within fill, stroke, stop-color, flood-color and lighting-color property values to identify the color profile to use for the ICC color specification and the name which can be the value of the color-profile property. Note: If no name is provided, it will be impossible to reference the given color profile description. The name "sRGB" is predefined; any color profile ...
... of the color-profile property. Note: If no name is provided, it will be impossible to reference the given color profile description. The name "sRGB" is predefined; any color profile descriptions with <name> set to "sRGB" (case-insensitively) will be ignored. font-face-name For <font-face-name>, name defines the name of the font face. Value <name> Default value None Animatable Yes <name> This value specifies the name of a local font. Unlike the syntax allowed between the parentheses of the local(...) clause in an @font-face rule src descriptor, the font name specified in this attribute is not surrounded in single or double quotes. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1...
path - SVG: Scalable Vector Graphics
Web › SVG › Attribute › path
The path attribute has two different meanings, either it defines a text path along which the characters of a text are rendered, or a motion path along which a referenced element is animated. Two elements are using this attribute: <animateMotion> and <textPath> html, body, svg { height: 100%; } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path id="MyPath" fill="none" stroke="silver" d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" /> <text> <textPath path="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50"> Quick brown fox jumps over the lazy dog. </textPath> </text> </svg> animateMotion For <animateMotion>, path defines the motion path, expressed in the same format and interpreted the...
...vg> animateMotion For <animateMotion>, path defines the motion path, expressed in the same format and interpreted the same way as the d geometric property for the <path> element. The effect of a motion path animation is a translation along the x- and y-axes of the current user coordinate system by the x and y values computed over time. Value <path-data> Default value None Animatable No <path-data> This value defines the motion path along which the referenced element is animated. For detailed information about the commands that can be used, see the explanation for the d attribute. textPath For <textPath>, path defines the path onto which the glyphs of a <text> element will be rendered. An empty string indicates that there is no path data fo...
pointer-events - SVG: Scalable Vector Graphics
0" fill="black" /> <circle cx="5" cy="5" r="4" fill="white" pointer-events="visiblePoint" /> <!-- The circle below will never catch a mouse event. ...
... Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull req...
requiredExtensions - SVG: Scalable Vector Graphics
The requiredExtensions attribute defines a list of required language extensions. Language extensions are capabilities within a user agent that go beyond the feature set defined in this specification. Each extension is identified by an URL reference. Usage notes Value <list-of-extensions> Default value None Animatable No <list-of-extensions> The value is a list of references (IRI references in SVG 1, URL References in SVG 2) which identify the required extensions, with the individual values separated by white space. Determines whether all of the named extensions are supported by the user agent. If all of the given extensions are supported, then the attribute evaluates to true; otherwise, the current element and its children are skipped and thus...
...Note: If a given extension reference contains white space within itself, that white space must be escaped. requiredExtensions is often used in conjunction with the <switch> element. If the attribute is used in other situations, then it represents a simple switch on the given element whether to render the element or not. Note: If several extension reference objects are enclosed in a <switch> and none of them matches, this may lead to situations where no content is displayed. It is thus recommended to include a "catch-all" choice at the end of such a <switch> which is acceptable in all cases. If the attribute is not present, then it implicitly evaluates to "true". If a null string or empty string value is given, the attribute evaluates to "false". The IRI names for the extension should inclu...
stroke-dasharray - SVG: Scalable Vector Graphics
If an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, 5,3,2 is equivalent to 5,3,2,5,3,2. Browser compat...
... If an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, 5,3,2 is equivalent to 5,3,2,5,3,2. Browser compatibility The compatibility table on this page...
stroke - SVG: Scalable Vector Graphics
Web › SVG › Attribute › stroke
a presentation attribute, it can be applied to any element but it has effect only on the following twelve elements: <altGlyph>, <circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- Simple color stroke --> <circle cx="5" cy="5" r="4" fill="none" stroke="green" /> <!-- Stroke a circle with a gradient --> <defs> <linearGradient id="myGradient"> <stop offset="0%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </linearGradient> </defs> <circle cx="15" cy="5" r="4" fill="none" stroke="url(#myGradient)" /> </svg> Usage notes Value <paint> Default...
... Candidate Recommendation Definition for shapes and texts. Adds context-fill and context-stroke. Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'stroke' in that specifica...
systemLanguage - SVG: Scalable Vector Graphics
systemLanguage is often used in conjunction with the <switch> element. If the attribute is used in other situations, then it represents a simple switch on the given element whether to render the element or not. Note: If several alte...
... value is a set of comma-separated tokens, each of which must be a Language-Tag value, as defined in BCP 47. systemLanguage is often used in conjunction with the <switch> element. If the attribute is used in other situations, then it represents a simple switch on the given element whether to render the element or not. Note: If several alternative language objects are enclosed in a <switch> and none of them matches, this may lead to situations where no content is displayed. It is thus recommended to include a "catch-all" choice at the end of such a <switch> which is acceptable in all cases. 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 thi...
textLength - SVG: Scalable Vector Graphics
t). 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-percentage> | <number> Default value None Animatable Yes <length-percentage> This value specifies the width of the space the text will be adjusted to occupy as absolute length or percentage. <number> A numeric value outlines a length referring to the units of the current coordinate system. Example Let's create a simple example that presents text you can resize using an <input> element of type "range". CSS .c...
...size using an <input> element of type "range". CSS .controls { font: 16px "Open Sans", "Arial", sans-serif; } SVG Let's start with the SVG. It's pretty basic, with a 1000-by-300 pixel space mapped into a 10 centimeter by 3 centimeter box. <svg width="10cm" height="3cm" viewBox="0 0 1000 300" xmlns="http://www.w3.org/2000/svg"> <rect x="1" y="1" width="998" height="298" fill="none" stroke="green" stroke-width="2"/> <text id="hello" x="10" y="150" font-family="sans-serif" font-size="60" fill="green"> Hello world! </text> </svg> First, a <rect> element is used to create and stroke a rectangle to contain the text. Then <text> is used to create the text element itself, with an id of "hello". HTML The HTML is also simple, with only two displayed elements conta...
to - SVG: Scalable Vector Graphics
Web › SVG › Attribute › to
t x="10" y="10" width="100" height="100"> <animate attributeType="XML" attributeName="width" fill="freeze" from="100" to="150" dur="3s"/> </rect> </svg> animate, animateColor, animateMotion, animateTransform For <animate>, <animateColor>, <animateMotion>, and <animateTransform>, to specifies the ending value of the animation. ...
... Specifications Specification Status Comment SVG Animations Level 2The definition of 'to for <set>' in that specification. ...
transform - SVG: Scalable Vector Graphics
However, be aware that there are some difference in syntax between the CSS property and the attribute. See the documentation for the CSS property transform for the specific syntax to use in that case. As a presentation attribute, transform can be used by any element (in ...
...ipse>, <foreignObject>, <g>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <switch>, <text>, and <use>). Also, as a legacy from SVG 1.1, <linearGradient> and <radialGradient> support the gradientTransform attribute, and <pattern> supports the patternTransform attribute, both of which act exactly like the transform attribute. Value <transform-list> Default value none Animatable Yes Transform functions The following transform functions can be used by the transform attribute <transform-list> Warning: As per the spec, you should be able to also use CSS transform functions. However, the compatibility isn't guaranteed. Matrix The matrix(<a> <b> <c> <d> <e> <f>) transform function specifies a transformation in the form of a transformation mat...
xlink:show - SVG: Scalable Vector Graphics
The xlink:show attribute indicates how a linked resource should be opened and is meant for XLink-aware processors. In case of a conflict, the target attribute has priority, since it can express a wider range of values. Only one element is using this attribute: <a> Usage notes Value new | replace | embed | other | none Default value replace Animatable No new This value specifies that the referenced resource is opened in a new window or tab. This is similar to the effect achieved by an HTML <a> element with target set to _blank. replace This value specifies that the referenced resource is opened in the same window or tab. This is similar to the effect achieved by an HTML <a> element with target set to _self. embed This value specifies that i...
...or tab. This is similar to the effect achieved by an HTML <a> element with target set to _self. embed This value specifies that instead of linking to the resource it will be loaded and shown within the document. This is similar to the effect achieved by an HTML <img> element. other This value indicates that other markup present in the link, i.e. the target attribute, determines its behavior. none This value specifies that there is no indication for how to refer to the linked resource. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'xlink:show' in that specification. Recommendation Initial definition ...
<animateMotion> - SVG: Scalable Vector Graphics
The SVG <animateMotion> element let define how an element moves along a motion path. Note: To reuse an existing path, it will be necessary to use an <mpath> element inside the <animateMotion> element instead of the path attribute. ...
...0,50 C20,-50 180,150 180,50 C180-50 20,150 20,50 z" /> </circle> </svg> Usage context CategoriesAnimation elementPermitted contentAny number of the following elements, in any order:Descriptive elements<mpath> Attributes keyPoints This attribute indicate, in the range [0,1], how far is the object along the path for each keyTimes associated values. Value type: <number>*; Default value: none; Animatable: no path This attribute defines the path of the motion, using the same syntax as the d attribute. Value type: <string>; Default value: none; Animatable: no rotate This attribute defines a rotation applied to the elment animated along a path, usually to make it pointing in the direction of the animation. Value type: <number>|auto|auto-reverse; Default value: 0; Animatable: no ...
<feFuncA> - SVG: Scalable Vector Graphics
Web › SVG › Element › feFuncA
Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncA>' in that specification. ...
... Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncA>' in that specification. ...
<feFuncB> - SVG: Scalable Vector Graphics
Web › SVG › Element › feFuncB
Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncB>' in that specification. ...
... Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncB>' in that specification. ...
<feFuncG> - SVG: Scalable Vector Graphics
Web › SVG › Element › feFuncG
Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncG>' in that specification. ...
... Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncG>' in that specification. ...
<feFuncR> - SVG: Scalable Vector Graphics
Web › SVG › Element › feFuncR
Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncR>' in that specification. ...
... Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feFuncR>' in that specification. ...
<linearGradient> - SVG: Scalable Vector Graphics
tBoundingBox ; Default value: objectBoundingBox; Animatable: yes gradientTransform This attribute provides additional transformation to the gradient coordinate system. Value type: <transform-list> ; Default value: identity transform; Animatable: yes href This attribute defines a reference to another <linearGradient> element that will be used as a template. Value type: <URL> ; Default value: none; Animatable: yes spreadMethod This attribute indicates how the gradient behaves if it starts or ends inside the bounds of the shape containing the gradient. Value type: pad|reflect|repeat ; Default value: pad; Animatable: yes x1 This attribute defines the x coordinate of the starting point of the vector gradient along which the linear gradient is drawn. Value type: <length> ; Default value:...
...t is drawn. Value type: <length> ; Default value: 0%; Animatable: yes x2 This attribute defines the x coordinate of the ending point of the vector gradient along which the linear gradient is drawn. Value type: <length> ; Default value: 100%; Animatable: yes xlink:href An <IRI> reference to another <linearGradient> element that will be used as a template. Value type: <IRI> ; Default value: none; Animatable: yes y1 This attribute defines the y coordinate of the starting point of the vector gradient along which the linear gradient is drawn. Value type: <length> ; Default value: 0%; Animatable: yes y2 This attribute defines the y coordinate of the ending point of the vector gradient along which the linear gradient is drawn. Value type: <length> ; Default value: 0%; Animatable: yes ...
<mpath> - SVG: Scalable Vector Graphics
Web › SVG › Element › mpath
s Core attributes >> Xlink attributes >> externalResourcesRequired Specific attributes xlink:href DOM Interface This element implements the SVGMPathElement interface. ...
... 0 500 300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <rect x="1" y="1" width="498" height="298" fill="none" stroke="blue" stroke-width="2" /> <!-- Draw the outline of the motion path in blue, along with three small circles at the start, middle and end. --> <path id="path1" d="M100,250 C 100,50 400,50 400,250" fill="none" stroke="blue" stroke-width="7.06" /> <circle cx="100" cy="250" r="17.64" fill="blue" /> <circle cx="250" cy="100" r="17.64" fill="blue" /> <circle cx="400" cy="250" r="17.64" fill="blue" /> <!-- Here is a triangle which will be moved about the motion path. It is defined with an upright orientation with the base of the triangle centered horizontally just above the origi...
<polygon> - SVG: Scalable Vector Graphics
Web › SVG › Element › polygon
o the first point. For open shapes, see the <polyline> element. ...
...="100,100 150,25 150,75 200,0" fill="none" stroke="black" /> </svg> Attributes points This attribute defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon. Value type: <number>+ ; Default value: ""; Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. ...
<polyline> - SVG: Scalable Vector Graphics
Web › SVG › Element › polyline
he first point. For closed shapes see the <polygon> element. ...
...="100,100 150,25 150,75 200,0" fill="none" stroke="black" /> </svg> Attributes points This attribute defines the list of points (pairs of x,y absolute coordinates) required to draw the polyline Value type: <number>+ ; Default value: ""; Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. ...
<radialGradient> - SVG: Scalable Vector Graphics
tBoundingBox ; Default value: objectBoundingBox; Animatable: yes gradientTransform This attribute provides additional transformation to the gradient coordinate system. Value type: <transform-list> ; Default value: identity transform; Animatable: yes href This attribute defines a reference to another <linearGradient> element that will be used as a template. Value type: <URL> ; Default value: none; Animatable: yes r This attribute defines the radius of the end circle of the radial gradient. The gradient will be drawn such that the 100% <stop> is mapped to the perimeter of the end circle. Value type: <length> ; Default value: 50%; Animatable: yes spreadMethod This attribute indicates how the gradient behaves if it starts or ends inside the bounds of the shape containing the gradient. ...
...e: <length> ; Default value: 50%; Animatable: yes spreadMethod This attribute indicates how the gradient behaves if it starts or ends inside the bounds of the shape containing the gradient. Value type: pad|reflect|repeat ; Default value: pad; Animatable: yes xlink:href An <IRI> reference to another <linearGradient> element that will be used as a template. ...
<style> - SVG: Scalable Vector Graphics
Web › SVG › Element › style
type of the style sheet language to use as a media type string. Value type: <string>; Default value: text/css; Animatable: no media This attribute defines to which media the style applies. Value type: <string>; Default value: all; Animatable: no title This attribute the title of the style sheet which can be used to switch between alternate style sheets. ...
...Default value: all; Animatable: no title This attribute the title of the style sheet which can be used to switch between alternate style sheets. Value type: <string>; Default value: none; Animatable: no Global attributes Core Attributes Most notably: id Styling Attributes class, style Event Attributes Global event attributes, Document element event attributes Usage notes CategoriesNonePermitted contentAny elements or character data Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of '<style>' in that specification. Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<style>' in that specification. Recommendation Initial definition ...
<switch> - SVG: Scalable Vector Graphics
Web › SVG › Element › switch
lements in order, and then renders the first child where these attributes evaluate to true. Other direct children will be bypassed and therefore not rendered. If a child element is a container element, like <g>, then its subtree is also processed/rendered or bypassed/not rendered. The display and visibility properties have no effect on <switch> element processing. In particular, setting display:none on a child has no effect on the true/false testing for <switch> processing. Usage context CategoriesContainer elementPermitted contentAny number of the following elements, in any order:Animation elementsDescriptive elementsShape elements<a>, <foreignObject>, <g>, <image>, <svg>, <switch>, <text>, <use> Attributes Global attributes Conditional processing attributes Core attributes Graphi...
...uired transform DOM Interface This element implements the SVGSwitchElement interface. SVG <switch> example This example demonstrates showing different text content depending on the browser's language settings. The switch element will display the first of its child elements whose systemLanguage attribute matches the user's language, or the fallback element with no systemLanguage attribute if none of them match. HTML Content <svg viewBox="0 -20 100 50"> <switch> <text systemLanguage="ar">?????</text> <text systemLanguage="de,nl">Hallo!</text> <text systemLanguage="en-us">Howdy!</text> <text systemLanguage="en-gb">Wotcha!</text> <text systemLanguage="en-au">G'day!</text> <text systemLanguage="en">Hello!</text> <text systemLanguage="es">Hola!</...
Basic shapes - SVG: Scalable Vector Graphics
Rectangle The <rect> element draws a rectangle on the screen. There are 6 basic attributes that control the position and shape of the rectangles on screen. The one on the right has its rx and ry parameters set, giving it rounded corners. If they're not set, they def...
... you can draw rectangles (with or without rounded corners), circles, ellipses, polylines, and polygons. Basically any of the other types of shapes, bezier curves, quadratic curves, and many more. For this reason, the next section in this tutorial will be focused on paths. But for now, note that there is a single parameter used to control its shape. <path d="M20,230 Q40,205 50,230 T90,230" fill="none" stroke="blue" stroke-width="5"/> d A list of points and other information about how to draw the path. See the Paths section for more information. << PreviousNext >> ...
Fills and Strokes - SVG: Scalable Vector Graphics
the end of the stroke. The radius of this curve is also controlled by the stroke-width. Use stroke-linejoin to control how the joint between two line segments is drawn. <?xml version="1.0" standalone="no"?> <svg width="160" height="280" xmlns="http://www.w3.org/2000/svg" version="1.1"> <polyline points="40 60 80 20 120 60" stroke="black" stroke-width="20" stroke-linecap="butt" fill="none" stroke-linejoin="miter"/> <polyline points="40 140 80 100 120 140" stroke="black" stroke-width="20" stroke-linecap="round" fill="none" stroke-linejoin="round"/> <polyline points="40 220 80 180 120 220" stroke="black" stroke-width="20" stroke-linecap="square" fill="none" stroke-linejoin="bevel"/> </svg> Each of these polylines has two segments. The joint where the two meet is c...
... angle to aid in the transition between the two segments. Finally, you can also use dashed line types on a stroke by specifying the stroke-dasharray attribute. <?xml version="1.0" standalone="no"?> <svg width="200" height="150" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path d="M 10 75 Q 50 10 100 75 T 190 75" stroke="black" stroke-linecap="round" stroke-dasharray="5,10,5" fill="none"/> <path d="M 10 75 L 190 75" stroke="red" stroke-linecap="round" stroke-width="1" stroke-dasharray="5,5" fill="none"/> </svg> The stroke-dasharray attribute takes a series of comma-separated numbers as its argument. Note: Unlike <path>s, these numbers must be comma-separated (whitespace is ignored). The first number specifies a distance for the filled area, and the second a distance ...
Using templates and slots - Web Components
The <template> uses <slot> and its name attribute to make three named slots: <slot name="element-name"> <slot name="description"> <slot name="attributes...
...yle: italic } </style> <details> <summary> <span> <code class="name">&lt;<slot name="element-name">NEED NAME</slot>&gt;</code> <i class="desc"><slot name="description">NEED DESCRIPTION</slot></i> </span> </summary> <div class="attributes"> <h4><span>Attributes</span></h4> <slot name="attributes"><p>None</p></slot> </div> </details> <hr> </template> <element-details> <span slot="element-name">slot</span> <span slot="description">A placeholder inside a web component that users can fill with their own markup, with the effect of composing different DOM trees together.</span> <dl slot="attributes"> <dt>name</dt> <d...
<xsl:fallback> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › fallback
Type Instruction, appears within a template. Defined XSLT, section 15 Gecko support Not supported at this time. ...
... Type Instruction, appears within a template. Defined XSLT, section 15 Gecko support Not supported at this time. ...
<xsl:otherwise> - XSLT: Extensible Stylesheet Language Transformations
It is similar to the else or default case in other programing languages. Syntax <xsl:otherwise> TEMPLATE </xsl:otherwise> Required Attributes None. Optional Attributes None. ...
... XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:otherwise> element is used to define the action that should be taken when none of the <xsl:when> conditions apply. It is similar to the else or default case in other programing languages. Syntax <xsl:otherwise> TEMPLATE </xsl:otherwise> Required Attributes None. Optional Attributes None. Type Subinstruction, must appear as the last child of an <xsl:choose> element, within a template. Defined XSLT, section 9.2 Gecko support Supported. ...
Window: deviceproximity event - Archive of obsolete content
The deviceproximity event is fired when fresh data is available from a proximity sensor. Note: This event has been disabled by default in Firefox 62, behind the device.sensors.proximity.enabled preference (bug 1462308). Bubbles No Cancelable No Interface DeviceProximityEvent Target DefaultView (window) Default Action None Event handler property Window.ondeviceproximity Specification Proximity Sensor Other properties Property Type Description value Read only Double (float) The measured proximity of the distant device (distance in centimetres). min Read only Double (float) The minimum value in the range the sensor detects (if available, 0 otherwise...
Window: userproximity event - Archive of obsolete content
The userproximity event is fired when fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not). Bubbles No Cancelable No Interface UserProximityEvent Target DefaultView (window) Default Action None Event handler property Window.onuserroximity Specification Proximity Sensor Note: This event has been disabled by default in Firefox 62, behind the device.sensors.proximity.enabled preference (bug 1462308). Other properties Property Type Description near Read only boolean The current user proximity state. Specifications Specification Status Proximity SensorThe definition of 'Proximi...
Private Properties - Archive of obsolete content
When a thumbnail's image goes out of scope, the WeakMap ensures that its entry in the thumbnail cache will eventually be garbage collected. As a final caveat: the image cache created earlier suffers from the same problem, so for the above code to work properly, the image cache must be rewritten using WeakMaps too. From WeakMap to Namespace In the previous s...
XUL Migration Guide - Archive of obsolete content
owerful modules you require(), the greater is your exposure if your add-on is compromised. Low-level modules like xhr, tab-browser and window-utils are much more powerful than the modules in addon-kit, so your add-on needs correspondingly more rigorous security design and review. Using XPCOM This example uses the action button API, which is only available from Firefox 29 onwards. Finally, if none of the above techniques work for you, you can use the require("chrome") statement to get direct access to the Components object, which you can then use to load and access any XPCOM object. The following complete add-on uses nsIPromptService to display an alert dialog: var {Cc, Ci} = require("chrome"); var promptSvc = Cc["@mozilla.org/embedcomp/prompt-service;1"]. getService(Ci.
context-menu - Archive of obsolete content
cular contexts occur and then removing them when those contexts go away, you bind items to contexts, and the adding and removing is automatically handled for you. Items are bound to contexts in much the same way that event listeners are bound to events. When the user invokes the context menu, all of the items bound to the current context are automatically added to the menu. If no items are bound, none are added. Likewise, any items that were previously in the menu but are not bound to the current context are automatically removed from the menu. You never need to manually remove your items from the menu unless you want them to never appear again. For example, if your add-on needs to add a context menu item whenever the user visits a certain page, don't create the item when that page loads, and...
page-mod - Archive of obsolete content
d. Name:contentStyle Type: string,array Use this option to load one or more stylesheet rules into the targeted documents. Each stylesheet rule is supplied as a separate string. To supply multiple rules, pass an array of strings: var pageMod = require("sdk/page-mod"); pageMod.PageMod({ include: "*.org", contentStyle: [ "div { padding: 10px; color: red }", "img { display: none }" ] }); Content styles specified by this option are loaded after those specified by the contentStyleFile option. Name: attachTo Type: string,array If this option is not specified, content scripts: are not attached to any tabs that are already open when the page-mod is created. are attached to all documents whose URL matches the rule: so if your rule matches a specific hostname ...
url - Archive of obsolete content
ns?example=true&visible=yes#top"); console.log(url.scheme); // https userPass The username:password part of the URL, null if not present. host The host of the URL, null if not present. For example: var url = require("sdk/url").URL("https://developer.mozilla.org/Add-ons?example=true&visible=yes#top"); console.log(url.host); // developer.mozilla.org port The port number of the URL, null if none was specified. path The path component of the URL. Contains everything after the host of the URL. Compare with pathname. For example: var url = require("sdk/url").URL("https://developer.mozilla.org/Add-ons?example=true&visible=yes#top"); console.log(url.path); // /Add-ons?example=true&visible=yes#top hostname The domain of the URL, as a string. Mirrors window.location.hostname. For example:...
cfx - Archive of obsolete content
ans that any profile-specific data entered from one run of cfx will not, by default, be available in the next run. This includes, for example, any extra add-ons you installed, or your history, or any data stored using the simple-storage API. To make cfx use a specific profile, pass the --profiledir option, specifying the path to the profile you wish to use. If you give --profiledir a path to a nonexistent profile, cfx will create a profile there for you. So you just have to make up a path and name the first time, and keep using it: cfx run --profiledir=~/addon-dev/profiles/boogaloo The path must contain at least one "/" (although you may specify just "./dir"). Using Configurations The --use-config option enables you to specify a set of options as a named configuration in a file, then p...
Chrome Authority - Archive of obsolete content
d these restrictions). The manifest is built with a simple regexp-based scanner, not a full Javascript parser. Developers should stick to simple require statements, with a single static string, one per line of code. If the scanner fails to see a require entry, the manifest will not include that entry, and (once the implementation is complete) the runtime code will get an exception. ...
Miscellaneous - Archive of obsolete content
er.js#L5113. Note that it returns the empty string (""), not false, when nothing is selected. getBrowserSelection() is not implemented on some platforms, such as Thunderbird and Songbird. See also http://mxr.mozilla.org/seamonkey/source/browser/base/content/browser.js#4674 Discovering which element in the loaded document has focus // focusedControl stores the focused field, or null if there is none. // This excludes textareas for simplicity, but onPageLoad() can easily be // modified to cycle through textareas as well. Further enhancements would include // handling for fields dynamically added to the page (e.g., by page javascript). var focusedControl; window.addEventListener("load", function(e) { onWindowLoad(e); }, false); function onWindowLoad() { gBrowser.addEventListener("load", o...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
consider the approach described in this article. One final note: I've only tried these techniques inside Firefox, but they'll probably work more or less unchanged on other Gecko-based platforms like Thunderbird or Seamonkey. If someone can confirm this and/or provide guidelines for what's different, I'll update the article to incorporate this information. Bambi Meets Mozilla None of this is for the faint of heart. In particular, the initial step involves building Mozilla, which is a huge - nay, gargantuan! - project. Many intelligent developers have been driven to the brink of insanity trying to build it for the first time. If you're not an experienced C++ developer, I wouldn't even bother. Stick to JavaScript. On Windows Platforms The first time I built Moz...
Displaying web content in an extension without security issues - Archive of obsolete content
ror="alert('xss')"> for example will still run JavaScript code, and there are many more possibilities. So properly sanitizing input is still required when using innerHTML and it is far from trivial. It is much easier to use DOM manipulation methods that won't have unexpected side-effects. ...
How to convert an overlay extension to restartless - Archive of obsolete content
nswer to that question is, of course, nothing. XMLHttpRequest is an API created by Microsoft, adopted by Mozilla and other vendors, and hacked into a Swiss Army knife of file loading. You can use it in a web page to fetch a file from your server and you can use it in your add-on to fetch a local file from your installation. The name is a vestigial structure that just makes things confusing. It is nonetheless the "Correct" and best way to do things. It's available in the global for a window, but in JSM you'll need to fetch it from an interface: const XMLHttpRequest = Components.Constructor("@mozilla.org/xmlextras/xmlhttprequest;1", "nsIXMLHttpRequest"); Here's how to load a file using it: function loadFile(url,type,returnresult) { var request...
Appendix: What you should know about open-source software licenses - Archive of obsolete content
oes like this: Best not to even try: Creating a new license for your own use -> Support is a nightmare. Do you hate the idea of your software ever being embedded in a commercial package? -> Choose the GPL. Do you enthusiastically support the Free Software movement? -> Choose the GPL. Do you want your code to be embedded in a certain OSS project? -> Choose the same license as that project. None of the above: Choose the Modified BSD license. The title hints at Matsumoto's diagnostic approach, since it mentions "free software." This is slightly different from open source. (Matsumoto updated his free software license diagnostic for a special open-source section in the January 2007 edition of Softbank's Open Source magazine.) If a company is considering releasing its own software as open s...
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
r = null; var postData = Components.classes['@mozilla.org/io/string-input-stream;1'] .createInstance(Components.interfaces.nsIStringInputStream); content = 'Content-Type: application/x-www-form-urlencoded\n'+ 'Content-Length: '+content.length+'\n\n'+ content; postData.setData(content, content.length); var flags = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE; browser.loadURIWithFlags('http://piro.sakura.ne.jp/', flags, referrer, null, postData); << PreviousNext >> ...
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
onsize="small"] #xulschoolhello-hello-world-button { list-style-image: url("chrome://xulschoolhello-os/skin/toolbar.png"); -moz-image-region: rect(0px, 16px, 16px, 0px); } Several CSS rules apply by default to all toolbar buttons. These add the button-like look you want. If for some reason you want to override these styles (not recommended), you'll need the following rule: -moz-appearance: none; -moz-appearance can be used in many cases where you want to strip the native look out of an element. This will save you a lot of time trying to remove all the CSS rules that give the buttons a native look. You'll probably still need to override a couple other CSS rules to get a completely plain look. The Customize Toolbars Dialog Firefox has the option to customize its toolbars. We've alread...
Adding sidebars - Archive of obsolete content
up . Another, more important difference to take into account is that users can resize the sidebar to their liking, and in most cases, the sidebar is going to be fairly narrow. You should design the content of your sidebar carefully, so that it is usable and appealing regardless of width. There are ways to limit the size boundaries of your sidebar with CSS or even disable resizing altogether, but none of those are good practices. Forcing sidebars to have a fixed size can cause accessibility and usability problems. You can still have plenty of content available in your sidebar, you just need to organize it in a way that doesn't take too much space. For this purpose we'll also look at some handy XUL elements in this section. They allow you to stack content on top of other content and switch bet...
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
Array, elemAttr) { // Array of elements? Parse each one... if (Array.isArray(elemNameOrArray)) { var frag = doc.createDocumentFragment(); Array.forEach(arguments, function(thisElem) { frag.appendChild(tag.apply(null, thisElem)); }); return frag; } // Single element? Parse element namespace prefix (if none exists, default to defaultNamespace), and create element var elemNs = namespace(elemNameOrArray); var elem = doc.createElementNS(elemNs.namespace || jsonToDOM.defaultNamespace, elemNs.shortName); // Set element's attributes and/or callback functions (eg. onclick) for (var key in elemAttr) { var val = elemAttr[key]; if (nodes && key == "key"...
Handling Preferences - Archive of obsolete content
a preference that users can switch, so checking for the operating system is not good enough. The general philosophy in non-Windows systems is that a change in a preference applies immediately. Preference windows don't have any buttons, or just an OK or Close button. On Windows, changing preferences don't apply until the user click on the OK button. The user can click on the Cancel button and none of the changes performed in the window will apply. This is why it makes sense to have Preference windows be modal on Windows. This way the user is urged to apply or discard any changes instead of being able to ignore the Preferences window. For preferences windows you should always use the prefwindow element instead of window in your XUL file. Firefox will know if it needs to add OK and Cancel...
Updating addons broken by private browsing changes - Archive of obsolete content
wsing service is actively being removed, and may not even exist as of Firefox 21. nsIRecentBadCertsService: This is no longer a global service, and has been renamed to nsIRecentBadCerts. To obtain this, acquire the nsIX509CertDB service, and use the new getRecentBadCerts method, passing a boolean indicating whether the private bad certificates or public ones are desired. Observer notifications None of the ones listed above will be sent as of Firefox 20. The supporting per-window private browsing article explains further about the equivalent notifications, which are all backwards compatible through to Firefox 12 (and are sent side-by-side with the global private browsing notifications in older versions). Chrome APIs OpenBrowserWindow: Takes an optional parameter to indicate desired prop...
MozAudioAvailable - Archive of obsolete content
Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. ...
MozBeforeResize - Archive of obsolete content
type Read only DOMString The type of event. ...
cached - Archive of obsolete content
Read Only. ...
chargingchange - Archive of obsolete content
Property Type Description BatteryManager.charging boolean The system's battery charging status. ...
chargingtimechange - Archive of obsolete content
The chargingtimechange event is fired when the chargingTime attribute of the battery API has changed. General info Specification Battery Interface Event Bubbles No Cancelable No Target BatteryManager Default Action None Properties The event callback doesn't receive any event objects, but properties can be read from the BatteryManager object received from the navigator.getBattery method. Property Type Description BatteryManager.chargingTime double (float) The remaining time in seconds until the system's battery is fully charged. Returns 0 if the battery is fully charged. Returns positive infinity, if the battery is discharging or if the implementation is unable to report the remaining charging time. Read only. Example navigator.g...
checking - Archive of obsolete content
Read Only. ...
dischargingtimechange - Archive of obsolete content
The dischargingtimechange event is fired when the dischargingTime attribute of the battery API has changed. General info Specification Battery Interface Event Bubbles No Cancelable No Target BatteryManager Default Action None Properties The event callback doesn't receive any event objects, but properties can be read from the BatteryManager object received from the navigator.getBattery method. Property Type Description BatteryManager.dischargingTime double (float) the remaining time in seconds until the system's battery is completely discharged and the system is about to be suspended. Returns positive infinity if the battery is charging, if the implementation is unable to report the remaining discharging time, or if there is no battery a...
downloading - Archive of obsolete content
The downloading event is fired after checking for an application cache update, if the user agent has found an update and is fetching it, or is downloading the resources listed by the cache manifest for the first time. General info Specification Offline Interface Event Bubbles No Cancelable No Target applicationCache Default Action None Properties Property Type Description target EventTarget (DOM element) The event target (the topmost target in the DOM tree). Read Only. type string The type of event. Read only. canBubble boolean Does the event normally bubble? Read only. cancelable boolean Is it possible to cancel the event? Read only. Related Events checking noupdate progress cache...
error - Archive of obsolete content
Read Only. type string The type of event. ...
levelchange - Archive of obsolete content
Property Type Description BatteryManager.level double (float) The system's battery charging level scaled from 0 to 1.0. ...
noupdate - Archive of obsolete content
Read Only. type string The type of event. Read only. ...
obsolete - Archive of obsolete content
Read Only. type string The type of event. ...
progress - Archive of obsolete content
Read Only. type string The type of event. Read only. canBubble boolean Does the event normally bubble? Read only. ...
updateready - Archive of obsolete content
The updateready event is fired when the resources listed in the application cache manifest have been newly redownloaded, and the script can use swapCache() to switch to the new cache. General info Specification Offline Interface Event Bubbles No Cancelable No Target applicationCache Default Action None Properties Property Type Description target EventTarget (DOM element) The event target (the topmost target in the DOM tree). Read Only. type string The type of event. Read only. canBubble boolean Does the event normally bubble? Read only. cancelable boolean Is it possible to cancel the event? Read only. Related Events checking noupdate downloading progress cached updateready obsol...
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
ner").innerHTML+=strvalue; } } if(previousEle) { previousEle.style.backgroundColor="white"; } ele.style.backgroundColor="#ddeeff"; previousEle=ele; } var previousEle=null; </script> <style> .tab { position:relative;top:1px; border: 1px solid #dddddd; color:white; background-color:white; padding-left: 5px; border-bottom:white;padding-right: 5px; padding-top:3px; text-decoration:none;} .tab:hover { background-color:#ddeeff; } </style> </head> <body > <h2>Latest Headlines - Inner-Browsing Example </h2> <p>Click the tabbed menu to dynamically load the headlines into this web page.</p> <br /> <!-- ***** This code dynamically creates the Tabbed Menu if the browser has support to XMLHTTPRequest, since the mechanism used here is XMLHTTPRequest ***** --> <script type="text/java...
MMgc - Archive of obsolete content
t RCObject references) Allocate any GC memory (GC::Alloc), explicitly free GC memory (GC::Free) Change the set of GC roots (create a GCRoot object or derivative) Cause itself to become reachable If a finalized object holds a reference to an RCObject, it may safely call decrementref on the RCObject. Threading The GC routines are not currently thread safe, we're operating under the assumption that none of the player spawned threads create GC'd things. If this isn't true we hope to eliminate other threads from doing this and if we can't do that we will be forced to make our GC thread safe, although we hope we don't have to do that. Threading gets more complicated because it makes sense to re-write ChunkMalloc and ChunkAllocBase to get their blocks from the GCHeap. They can also take advantage of...
Images, Tables, and Mysterious Gaps - Archive of obsolete content
ical-align-- we'll talk about that in a bit-- but almost nobody ever changes the value from its default. Let's take away the text, and leave only the image, as was done in Figure 5. So we have an image sitting on the baseline of a line box that contains only the image. Now consider what happens when we put that line in a table cell (Figure 6). And there you have it-- spaces opening up where none have ever been seen before. It gets even worse with small images, like ones that are one pixel tall, as illustrated in Figure 7. Now there's all kinds of space unexpectedly opening up. It's enough to drive a designer mad. How About a Fix? There is one obvious fix-- stop creating designs that are dependent on tables and sliced up or single-pixel images-- but it's not terribly practical for ma...
Installing plugins to Gecko embedding browsers on Windows - Archive of obsolete content
a browsers) on Windows. Since the prospect of embedded Gecko browsers raises the scenario of more than one Gecko-based browser that a Netscape-style plugin can work with, it becomes important to let plugin developers know how to discover these browsers on a Windows machine. This information applies to Mozilla based browsers that pull the Mozilla codebase after the Mozilla 0.9.1 milestone release. None of the Registry keys mentioned here are written by browsers before the Mozilla 0.9.1 timeframe. For example, Netscape 6.0 and 6.01 do not write any of these keys into the Registry, and thus these keys are not available for plugin vendors to parse for these two browsers. Netscape 6.1 and onwards, however, will write these keys, and so creating a plugin installer that puts the shared object (DLL) i...
No Proxy For configuration - Archive of obsolete content
ith wildcards in quads 10.*.*.* Preferences Name network.proxy.no_proxies_on Default value localhost, 127.0.0.1 By default "localhost" and "127.0.0.1" are excluded, since most people assume these should connect to the local system. Note: When IPv6 support is added, additional addresses will need to be added and tested. Communicator used "network.proxy.none" Limitations No IPv6 support - The backend stores IPv4 addresses as IPv6, but IPv6 formats are not supported. Scalability - Not usable for local domains with numerous hostnames. Not usable for large number of filters (ad blocking). Mozilla implements this feature with significant limitations, users may find that writing a PAC file is more suitable for their needs. Testing Contributors ca...
Using XML Data Islands in Mozilla - Archive of obsolete content
ementsByTagNameNS("http://example.mozilla.org/PurchaseOrderML", "price")[0].textContent; document.getElementById("output-box").textContent = "The purchase order contains " + lineItems.length + " line items. The price of the first line item is " + firstPrice + "."; } </script> </head> <body onload="runDemo()";> <object id="purchase-order" data="purchase_order.xml" type="text/xml" style="display: none;"></object> <div id="output-box">Demo did not run</div> </body> </html> ...
Autodial for Windows NT - Archive of obsolete content
of this fix is for those users. We try to mimic the autodial system service if it is not running and the user has the autodial feature turned on in Control Panel | Internet Options | Connections. If an address can't be reached, we trigger the autodial features from inside Mozilla. If a default dialup connection is configured, we use that one. If more than one dialup connection is configured, and none is selected as the default, we display a list of dialup connections and let the user choose one. How to Configure Autodial on NT-based Systems First, you will need to configure a dialup connection and make sure it works when triggered manually. If you are using a system with just a modem, the best approach is to configure the Remote Access Auto Connection service to automatically start. Then e...
Adding the structure - Archive of obsolete content
It can contain both text messages (i.e. "Done" in ...
Making it into a dynamic overlay and packaging it up for distribution - Archive of obsolete content
type="text/css"?> <overlay id="tinderstatusOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript" src="chrome://tinderstatus/content/tinderstatus.js" /> <statusbar id="status-bar"> <statusbarpanel class="statusbarpanel-iconic" id="tinderbox-status" insertbefore="offline-status" status="none"/> </statusbar> </overlay> We also need to change the URLs in the copy of tinderstatus.css: statusbarpanel#tinderbox-status { list-style-image: url("chrome://tinderstatus/content/tb-nostatus.png"); } statusbarpanel#tinderbox-status[status="success"] { list-style-image: url("chrome://tinderstatus/content/tb-success.png"); } statusbarpanel#tinderbox-status[status="testfailed"] { list-st...
Specifying the appearance - Archive of obsolete content
Now that we have defined a panel in which to display an icon, we use CSS to specify which icon to display. ...
In-Depth - Archive of obsolete content
y a list of properties which may be useful to you; it is in no way all of the Mozilla specific properties available. Other sites which list Mozilla specific CSS properties XulPlanet.com [dead link, 26.03.13] Mozilla-prefixed properties on the standard track 26.03.13 -moz-appearance Makes a widget look like it's from your operating system. Possible are (This is probably an incomplete list): none - (!important may be needed) Will override the operating system default. Use this when you want one or two controls to look different from the operating systems defaults. button, checkbox-container, checkbox, dialog, dualbutton, dualbutton-dropdown, listbox, menu, menulist-textfield, menulist-button, menulist, menulist-text, progressbar, progresschunk, radio-container, radio, resizer, resizerpane...
Drag and Drop - Archive of obsolete content
se you might want to drag several objects at once, such as a set of files. region A region used for feedback indication. This should usually be set to null. actions The actions that the drag uses. This should be set to one of the following constants, or several added together. The action can be changed during the drag depending on what is being dragged over. nsIDragService.DRAGDROP_ACTION_NONE Used to indicate that no drag is valid. nsIDragService.DRAGDROP_ACTION_COPY The item being dragged should be copied to its dropped location. nsIDragService.DRAGDROP_ACTION_MOVE The item being dragged should be moved to its dropped location. nsIDragService.DRAGDROP_ACTION_LINK A link (or shortcut or alias) to the item being dragged should be created in the dropped location. ...
Exception logging in JavaScript - Archive of obsolete content
an exception, that exception would be logged to the console before control was returned to the C++ caller. This had the unintended consequence of logging "expected" errors at length into the console. JavaScript code is sometimes designed to throw exceptions to report a result condition back to the C++ caller. These might be perfectly normal circumstances, but the exceptions were dutifully logged nonetheless. Exception reporting in Firefox 3 Firefox 3 improves reporting of unhandled exceptions by establishing a set of rules that determines whether or not an exception is worth reporting: Any methods on interfaces annotated with the [function] attribute in IDL (see, for example, nsIDomEventListener) that throw exceptions always report those exceptions into the Error Console. Any exceptions th...
Block and Line Layout Cheat Sheet - Archive of obsolete content
to true by default when starting line layout. LL_UNDERSTANDSNWHITESPACE LL_TEXTSTARTSWITHNBSP LL_FIRSTLETTERSTYLEOK LL_ISTOPOFPAGE LL_UPDATEDBAND LL_IMPACTEDBYFLOATERS LL_LASTFLOATERWASLETTERFRAME LL_CANPLACEFLOATER LL_KNOWSTRICTMODE LL_INSTRICTMODE LL_LINEENDSINBR PerFrameData (Why isn't this just stored in the frame?) mFlags PFD_RELATIVEPOS PFD_ISTEXTFRAME PFD_ISNONEMPTYTEXTFRAME PFD_ISNONWHITESPACETEXTFRAME PFD_ISLETTERFRAME PFD_ISSTICKY PFD_ISBULLET PerSpanData In nsLineLayout, a "span" is a container inline frame, and a "frame" is one of its children. Perhaps PerParentData and PerChildData would be better names? nsLineLayout::BeginLineReflow creates the initial PerSpanData which is called the "root span". nsInlineFrame::ReflowFrames creates a n...
Layout FAQ - Archive of obsolete content
ayout FAQ Is there a way to do profiling of what is going on in Mozilla? Is there a framework for this? If you're on Linux, then you can try using jprof. Instructions are available at Jprof Readme On more recent linux versions sysprof can also be used. also lists some profiles. How do you find out if there are any reflows that are pending and wait to show the view until afterwards, but if none are pending, show the view immediately? What is the best way to determine whether there are any pending changes? On the reflow branch you could check the DIRTY and DIRTY_CHILDREN framestate flags. That won't help with pending style changes, but it'll work to detect cases when the popup or something in it needs to be reflown. What are the lowercase items called "line"? Block(body)(1)@035FF...
Layout System Overview - Archive of obsolete content
ame is mapped). The Frame Manager is then instructed to store the mapping from a content element to the primary frame. This mapping facilitates updates to frames that result in changes to content (see discussion above). Another important mapping maintained by the Frame Manager is that of the undisplayed content. When a content element is defined as having no display (via the CSS property 'display:none') it is noted by a special entry in the undisplayed map. This is important because no frame is generated for these elements yet changes to their style values and to the content elements still need to be handled by layout, in case their display state changes from 'none' to something else. The Undisplayed Map keeps track of all content and style data for elements that currently have no frames. (not...
Creating a Help Content Pack - Archive of obsolete content
ph described by the file, and the Help Viewer searches for this element in order to query for further information (stored in child elements) about the content pack being parsed. nc:title is where you specify the title (e.g., "Mozilla Firefox Help") for the Help Window. This attribute is required. nc:defaulttopic will hold the rdf:ID of the topic you want displayed when the viewer first loads if none has been specified. This attribute also specifies what topic is loaded when the user hits the Home button in the viewer. We'll get to exactly how to fill in this attribute later. This attribute is optional, with fallback to the value welcome. nc:base contains the base URL relative to which the Help content referenced in the descriptor file is located. For example, if your glossary, index, and ta...
Clipboard Test - Archive of obsolete content
<style></style> <style>.description{ display: block; font-size: 13pt; color: #444; font-style: italic; margin-bottom: 7px; } .method>.returns{display: none;} .method>.name>.param:not(:last-child):after{content: ","; padding-right: .5em; } .method>.name>.param:not(:last-child):after{content: ","; padding-right: .5em; } .method>.name>.param>.name:after{content: " as "; font-weight: normal; } .method>.params{display: block; color:#555;} .method>.params>.param{display: block; margin-bottom:5px;} .method>.params>.param>.name{font-weight:bold; margin-right:.5em; min-width:80px; display:inline-block;} .method>.params>.param>.description{display:inline-block; width:300px; vertical-align:top;margin-right:30px} .method>.params>.param>.type{display:inline-block; width:100px; vertical-align:top;font-weigh...
Menu - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Menu
ion () jetpack.notifications.show(new Date()) }); Create a submenu within the content context menu. When the user clicks an item, she's notified of her choice. ...
Proxy UI - Archive of obsolete content
elsewhere... but should be noted that if you cut and paste from IE, the semi-colons are automatically converted to commas when you save changes (FF, TB, SM). Automatic proxy configuration URL Supports a URL (which is checked via URIfixup) and a reload button. Offline|Online "plug" Location Status bar on the right side. Right-click A menu is displayed that has the following items: Online (Proxy: None) Online (Proxy: Auto Discover) Online (Proxy: Auto URL) Online (Proxy: Manual) --- Proxy Configuration... <h7 name="Details">Details</h7> The menu should display the current proxy mode with a dot. The modes that can have an empty configuration (Auto URL and Manual) will be disabled if the prefs are blank. Selecting an enabled item sets the menu selection and the proxy mode (network.proxy.type) Se...
Supporting private browsing mode - Archive of obsolete content
sily by using the browsingmode attribute in the window element in browser.xul. This attribute has the value "normal" when the user isn't in private browsing mode, and is "private" when in private browsing mode. ...
Table Layout Strategy - Archive of obsolete content
oobarbazzap <table width="200px" border> <tbody> <tr><td>foo</td><td colspan="2" width="120px">bar</td></tr> <tr><td>baz</td><td>zap</td></tr> </tbody> </table> The colspan here is bogus, so the third column should not get any width. One would expect the first column to be 80 px and the second to be 120 px . The advantage of this limiting to numEffCols is that we don't poke the cellmap for nonexisting cells. Overspeficied Percent Columns <col width="30%"><col width="60%"><tbody></tbody>foobar <col width="33%"><col><tbody></tbody>foobar <table border width="200px"> <col width="30%"><col width="60%"> <tbody> <tr><td>foo</td><td>bar</td></tr> </tbody> </table> The columns reach here only 90 % percent of the width so the remaining 20px need to be redistributed between the cols. The...
Tamarin build documentation - Archive of obsolete content
trying to run/debug a newly imported project, try opening a file in the project first - Eclipse can sometimes get confused as to what the 'current project' actually is. Additional things to try are clicking on the project name then refreshing it (File/Refresh or right-click/Refresh) and/or quitting and restarting Eclipse. Linux and Unix Tamarin is tested on Linux but not on other Unix flavors. Nonetheless, it is possible to build Tamarin on Unix. Execute the following commands to build: $ cd tamarin-central/platform/unix $ make The resulting executable "shell" is built in the current directory. Compiling and running applications Currently the only compiler for Tamarin is the Adobe ActionScript compiler. The source code for the ActionScript compiler, asc, has been open sourced a...
The life of an HTML HTTP request - Archive of obsolete content
o gets notified of changes in the Document/Content tree. This is used to create and update the nsIFrame hierarchy. This is done by the nsCSSFrameConstructor, which creates frames for each Content node according to the rules specified in the user agent stylesheet (ua.css) and the document specific style sheets. Each Content node corresponds to one or more nsIFrame, except content with displaytype "none". If there are several frames created from a content node, then the first of these are called the "primary" node, and the following frames can be found by using the GetNextInFlow() method of nsIFrame. The initial reflow is done by the nsHTMLContentSink::StartLayout(), StartLayout() calls PresShell::InitialReflow(). StartLayout is called quite early in the parsing process, for HTML it's called in ...
cancelInstall - Archive of obsolete content
Returns An integer error code. The optional argument is an error code that can be returned to the triggering page. For most purposes, it's recommended that one of the standard return codes be used. But a script can, in fact, return any valid integer. For a list of possible values, and any custom errorCode created by install writer, see Return Codes. ...
getLastError - Archive of obsolete content
Returns The most recent nonzero error code. For a list of possible values, see Return Codes. Description Use getLastError method to obtain the most recent nonzero error code since initInstall or resetError were called. This method allows you to defer checking for error codes each time you call addFile or addDirectory until the last addFile or addDirectory call. The getLastError method does not return errors from methods that return objects, such as getFolder. ...
getWinRegistry - Archive of obsolete content
Returns A WinReg object. Description Use the getWinRegistry method to create an object for manipulating the contents of the Windows Registry. ...
performInstall - Archive of obsolete content
Returns An integer error code. For a list of possible values, see Return Codes. In some situations the method may return other errors. In a few cases you may get a registry error. ...
resetError - Archive of obsolete content
Returns Nothing. Description The resetError method resets any saved error code to zero. ...
setPackageFolder - Archive of obsolete content
setPackageFolder Sets the default package folder. Method of Install object Syntax void setPackageFolder ( Object folder); Parameters The setPackageFolder method has the following parameter: folder An object representing a directory. You create this object by passing a string representing the directory to the getFolder or getComponentFolder method. Returns None. Description The setPackageFolder method to set the default package folder that is saved with the root node. When the package folder is set, it is used as the default for forms of addFile and other methods that have an optional localDirSpec parameter. You should only call this method once, and you should always call it immediately after you call initInstall. If you call setPackageFolder multiple times, the las...
getString - Archive of obsolete content
getString Retrieves a value from a .ini file. Method of WinProfile object Syntax String getString ( String section, String key); Parameters The method has the following parameters: section Section in the file, such as "boot" or "drivers". key The key in that section whose value to return. Returns The value of the key or an empty string if none was found. Description The getString method is similar to the Windows API function getPrivateProfileString. Unlike that function, this method does not support using a null key to return a list of keys in a section. Example To get the name of the wallpaper file from the desktop section of the win.ini file, use this call: ini = getWinProfile (getFolder("Windows"), "win.ini"); var wallpaperValue = ini.getString ("Deskt...
closemenu - Archive of obsolete content
...
collapse - Archive of obsolete content
<< XUL Reference home collapse Type: one of the values below Determines which side of the splitter is collapsed when its grippy is clicked. If this attribute is not specified, the splitter will not cause a collapse. You should put a grippy element inside the splitter when it is used for collapsing. none No collapsing occurs. before When the grippy is clicked, the element immediately before the splitter in the same parent is collapsed so that its width or height is 0. after When the grippy is clicked, the element immediately after the splitter in the same parent is collapsed so that its width or height is 0. both Either the element immediately before the splitter, or the element immediately after the splitter can be collapsed, if the size of that element would f...
hidden - Archive of obsolete content
...
sizetopopup - Archive of obsolete content
<< XUL Reference home sizetopopup Type: one of the values below Indicates how the menu width and the menupopup width are determined. If the sizetopopup attribute is left out or set to none, the menu will be its preferred width and the popup may extend outside of this width, unaffected by the maximum width of the menu itself. Otherwise, the menu will size itself to at least the size of the popup. If the menu has a maximum width, the popup will also be this width. none The width of the popup will not be constrained to the size of the menu. pref The preferred width of the menu label or button will be the size needed for the popup contents. This is the default value for menulists. always Both the preferred and minimum width of the menu label or button will be the same ...
treecell.mode - Archive of obsolete content
The cell text is displayed instead. ...
treecol.type - Archive of obsolete content
If you are using type="checkbox", then the tree and each treecol must be editable. You need to apply CSS to make the checkbox toggle. Here is an example CSS style using the current theme's checkboxes: treechildren::-moz-tree-checkbox { /* unchecked checkbox treecells. This style MUST come before treechildren::-moz-tree-checkbox(checked) otherwise it won't take effect. */ list-style-image: none; } treechildren::-moz-tree-checkbox(checked) { /* checked checkbox treecells. cbox-check.gif isn't available in Firefox 1, 2, and 3 in Mac OS X so you should specify a URL to an image in your extension or elsewhere. */ list-style-image: url("chrome://global/skin/checkbox/cbox-check.gif"); } treechildren::-moz-tree-checkbox(disabled) { /* disabled checkbox treecells. cbox-check.gif...
userAction - Archive of obsolete content
<< XUL Reference home userAction Type: one of the values below This attribute will be set to the action the user is currently performing. Possible values: none The user is not interacting with the textbox. typing The user is typing into the textbox. scrolling The user is scrolling through the textbox. ...
CheckboxStateChange - Archive of obsolete content
The CheckboxStateChange event is executed when the state of a <checkbox> element has changed. This event is used mainly for an accessibility purpose. General info Specification XUL Interface Event Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only boolean Does the event normally bubble? cancelable Read only boolean Is it possible to cancel the event? Related events ValueChange RadioStateChange ...
DOMMenuItemActive - Archive of obsolete content
The DOMMenuItemActive event is executed when a <menu> or a <menuitem> has been hovered or highlighted. General info Specification XUL Interface Event Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. ...
DOMMenuItemInactive - Archive of obsolete content
The DOMMenuItemInactive event is executed when a <menu> or a <menuitem> in no longer hovered or highlighted. General info Specification XUL Interface Event Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. ...
RadioStateChange - Archive of obsolete content
The RadioStateChange event is executed when the state of a <radio> element has changed. This event is used mainly for an accessibility purpose. General info Specification XUL Interface Event Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only boolean Does the event normally bubble? cancelable Read only boolean Is it possible to cancel the event? Related events CheckboxStateChange ValueChange ...
ValueChange - Archive of obsolete content
The ValueChange event is executed when the value of an element, <progress> for example, has changed. This event is used mainly for an accessibility purpose. General info Specification XUL Interface Event Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only boolean Does the event normally bubble? cancelable Read only boolean Is it possible to cancel the event? Related events CheckboxStateChange RadioStateChange ...
broadcast - Archive of obsolete content
The broadcast event is executed when the attributes of the element (such as a broadcaster) being listened to are changed. The event handler should be placed on an observer. General info Specification XUL Interface Event Bubbles No Cancelable No Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. ...
command - Archive of obsolete content
Archive › Mozilla › XUL › Events › command
by selecting them with the mouse or by pressing a shortcut key. Command elements can be activated by any of their observing elements being activated. The command event should always be used instead of the click event because it will be called in all of the needed cases. General info Specification XUL Interface XULCommandEvent Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not cancelable Read only Boolean Whether the event is cancellable or not? v...
commandupdate - Archive of obsolete content
The commandupdate event is executed when a command update occurs on a <commandset>. This event would be used to update the disabled status of its commands. General info Specification XUL Interface Event Bubbles No Cancelable No Target element Default Action None. Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. ...
popuphidden - Archive of obsolete content
The popuphidden event is executed when a <menupopup>, <panel> or <tooltip> has become hidden. General info Specification XUL Interface PopupEvent Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. ...
popuphiding - Archive of obsolete content
The popuphiding event is executed when a <menupopup>, <panel> or <tooltip> is about to be hidden. General info Specification XUL Interface PopupEvent Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. ...
popupshown - Archive of obsolete content
The popupshown event is executed when a <menupopup>, <panel> or <tooltip> has become visible. General info Specification XUL Interface PopupEvent Bubbles Yes Cancelable Yes Target element Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. ...
List of commands - Archive of obsolete content
The following lists commands which might be usable by <command> or command dispatchers/controllers. ...
reloadWithFlags - Archive of obsolete content
The document is loaded normally. ...
MenuItems - Archive of obsolete content
"sort". That means that activating one of the items will check that item and uncheck all other items. The last two menuitems are in a different group "order". Activating one will uncheck the other, but will not affect the items in the other group. Note how the checked attribute is set to true on one of the radios in each group. This becomes the default value for the menu. If you do not set one, none of the items in that group will be checked by default. As with checkbox type menuitems, you can also set the autocheck attribute on a radio menuitem to disable the automatic adjustment of the checked state. This needs to be set on each radio menuitem. Disabling a menuitem To have an item initially disabled, set the disabled attribute to true as in the following example: <menuitem label="Undo"...
PopupKeys - Archive of obsolete content
ifted to elements within the panel. For more information about focus handling within panels, see Focus in Panels. Ignoring Keys The ignorekeys attribute may be used to disable the key listener described above. When the ignorekeys attribute is placed on a <menupopup> or <panel> element, and its value is set to the value true, the key listener is not used. <panel ignorekeys="true"> In this case, none of the key handling described above is performed. Instead, you will have to handle this yourself. You would not normally use this attribute for a menu, however you may wish to disable the escape key handling for a panel in this way. ...
Sorting and filtering a custom tree view - Archive of obsolete content
data.push({name: "Raphael", description: "Cool, but rude", weapon: "Sai"}); data.push({name: "Splinter", description: "Rat", weapon: "Walking stick"}); data.push({name: "Shredder", description: "Armored man", weapon: "Blades"}); data.push({name: "Casey Jones", description: "Goalie masked man", weapon: "Hockey stick"}); data.push({name: "April O'Neil", description: "Journalist", weapon: "None"}); } if (filterText == "") { //show all of them table = data; } else { //filter out the ones we want to display table = []; data.forEach(function(element) { //we'll match on every property for (var i in element) { if (prepareForComparison(element[i]).indexOf(filterText) != -1) { table.push(element); break; } } }); } sort(); //restore scroll positio...
Multiple Rules - Archive of obsolete content
<< PreviousNext >> ...
Template Logging - Archive of obsolete content
matches the second rule of query 1. The generated content is from rule 2 of query 1. New inactive result for query 2 (overridden by query 1) A new data result has been added for query 2, but an earlier query 1 overrides it. The generated content is still from the first query, so the content has not changed. New inactive result for query 1 (didn't match a rule) A new data result has been added but none of the rules matched so no content was generated. Removed active result for query 1 (new active query is 2) A result no longer matches and the content for it was removed. However, the second query for that id still matches, so new content will be generated for that second query instead. Removed active result for query 1 (no new active query) A result no longer matches, and content is removed. No ...
Textbox (XPFE autocomplete) - Archive of obsolete content
r types characters and a certain time has passed. The delay is set with the timeout attribute. The command event will fire if the user presses the Enter key. The timed type is deprecated in Gecko 1.9.1 and the search textbox may be used instead. userAction Type: one of the values below This attribute will be set to the action the user is currently performing. Possible values: none The user is not interacting with the textbox. typing The user is typing into the textbox. scrolling The user is scrolling through the textbox. value Type: string The string attribute allows you to associate a data value with an element. It is not used for any specific purpose, but you can access it with a script for your own use. Be aware, however, that some elements, such ...
Toolbar customization events - Archive of obsolete content
beforecustomization This event is delivered when the user starts the toolbar customization process; for example, by right-clicking on a toolbar and choosing "Customize". ...
Tree Widget Changes - Archive of obsolete content
It should return true if a drop is allowed on a row. Checkbox columns Tree columns now implement the checkbox type. Previously the value existed but was not implemented. Now it is. You can create a checkbox column by setting the ...
Adding Methods to XBL-defined Elements - Archive of obsolete content
ility: collapse"); } </body> </method> </implementation> </binding> The oncommand handlers here first get a reference to their parent bound element. (In this example, it is the box with the labeledbutton class). Then, the 'showTitle' method is called, which functions as it did before. Custom properties and methods are added only to the outer XUL element the XBL is bound to. None of the elements declared inside the content tag have these properties or methods. This is why we have to get the parent first. The children of an element placed in the XUL file can be retrieved in the normal way and don't move even if you use the children tag. For example: XUL: <box id="outer" class="container"> <button label="One"/> <button label="Two"/> <button label="Three"/> <butto...
Adding Style Sheets - Archive of obsolete content
l="Is"/> <menuitem label="Is Not"/> </menupopup> </menulist> <spacer class="springspace"/> <menulist id="find-text" flex="1" editable="true" datasources="file:///mozilla/recents.rdf" ref="http://www.xulplanet.com/rdf/recent/all"/> ... <spacer class="titlespace"/> <hbox> <progressmeter id="progmeter" value="50%" style="display:none;"/> The new xml-stylesheet line is used to import the style sheet. It will contain the styles instead of having them directly in the XUL file. You can include any number of style sheets in a similar way. Here the style sheet is placed in the same directory as findfile.xul. Some of the styles in the code above have been removed. One that wasn't was the display property on the progressmeter. T...
Element Positioning - Archive of obsolete content
lements with a label) have a special attribute called crop that allows you to specify how the text may be cropped if it is too big. If the text is cropped, an ellipsis (...) will appear on the button where the text was taken out. Four possible values are valid: left The text is cropped on its left side right The text is cropped on its right side center The text is cropped in the middle. none The text is not cropped. This is the default value. This attribute is really only useful when a dialog has been designed to be useful at any size. The crop attribute can also be used with other elements that use the label attribute for labels. The following shows this attribute in use: Example 6: Source View <button label="Push Me Please!" crop="right" flex="1"/> Notice how the text on t...
List Controls - Archive of obsolete content
le. This attribute will be described in a later section, but here it allows the column to fill all of the remaining space horizontally. You can resize the window to see that the column stretches as the window does. If you shrink the size horizontally, the labels on the cells will crop themselves automatically using an ellipsis. You can use the crop attribute on the cells or items set to the value none to disable the ellipsis. Drop-down Lists Drop-down lists can be created in HTML using the select element. The user can see a single choice in a textbox and may click the arrow or some similar such button next to the textbox to make a different selection. The other choices will appear in a pop-up window. XUL has a menulist element which can be used for this purpose. It is made from a textbox wit...
More Event Handlers - Archive of obsolete content
nt from being sent to further elements, essentially stopping the capturing or bubbling phases from continuing. Depending on how you attach the event listener to an element, there are different ways of doing this. Recall that the capturing phase occurs before the bubbling phase, so any capturing listeners will trigger before any bubbling listeners. If a capturing event stops the event propagation, none of the later capturing listeners, nor any of the bubbling listeners will ever receive notification about the events. To manually stop event propagation, call the event object's stopPropagation method, as in the following example. Example 2 : Source View <hbox id="outerbox"> <button id="okbutton" label="OK"/> </hbox> <script> function buttonPressed(event){ alert('Button was pressed!'); } fun...
Splitters - Archive of obsolete content
l initially open, or set it to collapsed to have one of the panels shrunk down (collapsed) and the other occupying all of the space. collapse This indicates which side of the panel should collapse when the splitter notch (or grippy) is clicked or set into a collapsed state. Set this to before for the element before the splitter, or after for the element after the splitter. If you set this to none, which is also the default, the splitter grippy does not collapse when clicked. resizebefore When the splitter is dragged, the elements to the left (or above) resize. This attribute indicates which element should resize. Set this to closest to have the element immediately to the left of the splitter resize. Set this to farthest to have the element that is the farthest away from the splitter ...
Styling a Tree - Archive of obsolete content
vering over the row. dropBefore this property is set if the mouse pointer is hovering before the row currently being dragged over. dropAfter this property is set if the mouse pointer is hovering after the row currently being dragged over. progressNormal this property is set for progress meter cells. progressUndetermined this property is set for undeterminate progress meter cells. progressNone this property is set for non-progress meter cells. The properties are set for rows or cells in rows with the necessary state. For columns and cells, one additional property, the id of the column or column the cell is in will be set. Setting Properties for the RDF-built Trees For RDF-built trees, you can use the same syntax. However, you will often set the properties based on values in the da...
The Chrome URL - Archive of obsolete content
else and update the manifest file accordingly, Thunderbird will still work since it doesn't rely on its specific installed location. By using chrome URLs we can leave details like this to Mozilla. Similarly, if the user changes their theme, the 'skin' part of the chrome URL translates to a different set of files, yet the XUL and scripts don't need to change. Here are some more examples. Note how none of the URLs specify which theme or locale is used and none specify a specific directory. chrome://messenger/content/messenger.xul chrome://messenger/content/attach.js chrome://messenger/skin/icons/folder-inbox.gif chrome://messenger/locale/messenger.dtd To refer to subdirectories, you can just add them to the end of the chrome URL. The following URL will refer to the bookmarks window, listed for...
Trees - Archive of obsolete content
Archive › Mozilla › XUL › Tutorial › Trees
he rows attribute on the tree element. This attribute specifies how many rows are displayed in the user interface, not how many rows of data there are. The total number of rows is supplied by the tree view. If there are more rows of data in the tree, a scrollbar will appear to allow the user to see the rest of them. If you don't specify the rows attribute, the default value is 0, which means that none of the rows will appear. In this case, you would make the tree flexible. If your tree is flexible, it doesn't need a rows attribute since it will grow to fit the available space. The Content Tree View Having said that the data to be displayed in a tree comes from a view and not from XUL tags, there happens to be a built-in tree view which gets its data from XUL tags. This may be a bit confusing...
Using Spacers - Archive of obsolete content
1. This makes the spacer element stretchy. If you place a spacer directly inside a window, the spacer will grow in size when the size of the window is changed. We'll add a spacer to our find file dialog soon. First, let's take a look at what happens when the current dialog is resized. If you change the size of the find files window, you can see that the elements have remained where they started. None of them have been moved or resized even though the window has more room in it. Let's see what happens when a spacer is added between the text box and the Find button. By adding a spacer and resizing the window, you can see that the spacer has expanded to fill the space. The buttons have been pushed over. Our find file example The code to add a spacer is shown below. Insert it just before th...
XUL Changes for Firefox 1.5 - Archive of obsolete content
ents. <radiogroup> Setting the value property on the <radiogroup> element selects the <radio> element in the group with the corresponding value. Dialog: defaultButton property The <dialog> binding now supports the defaultButton property. Setting this property changes the default button of the dialog. It can be set either to one of the buttons of the <dialog> binding (using their names); or to none - in which case no button is set to be the default. Button: icon property The icon property on a button may be used to set stock icons on a button, used on some platforms. For instance <button icon="help"> will create a button with a help icon. This is used typically on GNOME systems where possible values are: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, rem...
XUL element attributes - Archive of obsolete content
out entirely. height Type: string (representing an integer) The preferred height of the element in pixels. The actual displayed height may be different if the element or its contents have a minimum or maximum height. The CSS height property may also be used. hidden Type: boolean If set to true, the element is not displayed. This is similar to setting the CSS display property to 'none'. id Type: unique id A unique identifier so that you can identify the element with. You can use this as a parameter to getElementById() and other DOM functions and to reference the element in style sheets. insertafter Type: id When an element is in an overlay, the insertafter attribute specifies the id of the element in the base window that the element should appear after. T...
XUL accessibility guidelines - Archive of obsolete content
n cases where duplication of functionality is not possible (such as a window without a menu bar), toolbar buttons can be made focusable by adding the special CSS rule -moz-user-focus: normal. (Firefox's "Print Preview" window uses this fallback technique.) This should only be used as a last resort, and it should be consistent throughout a window (that is either all toolbar buttons are tabbable or none of them are). Keyboard shortcuts Keyboard shortcuts are very useful to users needing keyboard access. There are many ways to provide keyboard shortcuts. They are well documented in the XUL Tutorial:Keyboard Shortcuts. Careful attention should be taken when setting keyboard shortcuts. When creating an extension (for Firefox or another XUL application), make sure the keyboard shortcuts you assig...
browser - Archive of obsolete content
return value Reloads the document in the browser element on which you call this method. reloadWithFlags( flags ) Return type: no return value Reloads the document in the browser with the given load flags. The flags listed below may be used, which are all constants of the webNavigation property (or the nsIWebNavigation interface). You may combine flags using a or symbol ( | ). LOAD_FLAGS_NONE: No special flags. The document is loaded normally. LOAD_FLAGS_BYPASS_CACHE: Reload the page, ignoring if it is already in the cache. This is the flag used when the reload button is pressed while the Shift key is held down. LOAD_FLAGS_BYPASS_PROXY: Reload the page, ignoring the proxy server. LOAD_FLAGS_CHARSET_CHANGE: This flag is used if the document needs to be reloaded because the charac...
panel - Archive of obsolete content
Archive › Mozilla › XUL › panel
ot set, it defaults to the platform behavior. If it set to true the rollup event is consumed. If set to false, the rollup event is not consumed. This attribute should be used instead of setConsumeRollupEvent. fadeType: one of the values belowThe fade attribute, which may only be used with arrow panels, lets you set up a panel that will automatically fade away after a short time. The default is none. noneThe panels doesn't automatically fade away.slowThe panels slowly fades away after a short time.fastThe panels quickly fades away after a short time. flip Type: string Normally, when a popup opens near the edge of the screen, it flips over to open on the opposite side of the anchor, so that it doesn't extend off the screen. For example, if the menu doesn't have ro...
splitter - Archive of obsolete content
h Box" oncommand="alert('The splitter was dragged')"> <vbox id="example_vbox" /> </splitter> Attributes collapse Type: one of the values below Determines which side of the splitter is collapsed when its grippy is clicked. If this attribute is not specified, the splitter will not cause a collapse. You should put a grippy element inside the splitter when it is used for collapsing. none No collapsing occurs. before When the grippy is clicked, the element immediately before the splitter in the same parent is collapsed so that its width or height is 0. after When the grippy is clicked, the element immediately after the splitter in the same parent is collapsed so that its width or height is 0. both Either the element immediately before the splitter, or the element imm...
tabbrowser - Archive of obsolete content
reloadTab( tab ) Return type: no return value Reloads the contents of a specific tab. reloadWithFlags( flags ) Return type: no return value Reloads the document in the browser with the given load flags. The flags listed below may be used, which are all constants of the webNavigation property (or the nsIWebNavigation interface). You may combine flags using a or symbol ( | ). LOAD_FLAGS_NONE: No special flags. The document is loaded normally. LOAD_FLAGS_BYPASS_CACHE: Reload the page, ignoring if it is already in the cache. This is the flag used when the reload button is pressed while the Shift key is held down. LOAD_FLAGS_BYPASS_PROXY: Reload the page, ignoring the proxy server. LOAD_FLAGS_CHARSET_CHANGE: This flag is used if the document needs to be reloaded because the charac...
titlebar - Archive of obsolete content
nd event after the move is complete. Examples This XUL file will create a HUD-style window that can be moved with the mouse. It will close if the mouse button is released. ...
treecell - Archive of obsolete content
treecells. label Type: string The label that will appear on the element. If this is left out, no text appears. For an editable menuitem element the value of this attribute is copied to the menulist.value property upon user selection of the menuitem. mode Type: one of the values below For columns that are progress meters, this determines the type of progress meter to use. none No progress meter is displayed. The cell text is displayed instead. normal The cell uses its value attribute to determine the amount of the bar that is filled in. undetermined The progressmeter is indeterminate. properties Type: space-separated list of property names Sets the properties of the element, which can be used to style the element. For more information, see Stylin...
window - Archive of obsolete content
nline link child, forcing all its children to be wrapped in a block". ...
Creating XULRunner Apps with the Mozilla Build System - Archive of obsolete content
to use the Mozilla build system to create your application. The only obvious reason for this would be if you need to implement part of your application in C++, as described in the introduction to the now classic Creating Custom Firefox Extensions with the Mozilla Build System. For the purposes of this article I'm using Dave Townsend's McCoy as an example. It's a straightforward XULRunner app that nonetheless uses most of the features any given application is likely to need. Building XULRunner Do I need to build XULRunner? If you are just creating a XULRunner app with some C++ components, you can avoid the challenge of building XULRunner itself by downloading a prebuilt SDK. Do this if at all possible and send me some of the money you save on psychiatry sessions. If you are actively modifying X...
toolkit.defaultChromeURI - Archive of obsolete content
The preference specifies the URI of a chrome window to be opened. ...
toolkit.singletonWindowType - Archive of obsolete content
The toolkit.singletonWindowType preference causes XULRunner to search for a window with the attribute windowtype as specified in this preference (e.g. <window windowtype="xulmine"> in our example). If such a window is found, it will be re-used, otherwise a new window will be opened. More information on this can be found in bug 317811. ...
calIFileType - Archive of obsolete content
Related Interfaces calIImporter calIExporter Example Code See calHtmlExport.js. ...
nsIContentPolicy - Archive of obsolete content
aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in ACString aMimeType, in nsISupports aExtra, in nsIPrincipal aRequestPrincipal); Constants Content types Constant Value Description TYPE_OTHER 1 Indicates content whose type is unknown, or is not interesting outside a limited use case. In general, you should try not to use this type unless none of the others is a fit. TYPE_SCRIPT 2 Indicates an executable script (such as JavaScript). TYPE_IMAGE 3 Indicates an image (for example, <img> elements). TYPE_STYLESHEET 4 Indicates a stylesheet (for example, <style> elements). TYPE_OBJECT 5 Indicates a generic object (plugin-handled content typically falls under this category). ...
Mozilla.dev.apps.firefox-2006-09-29 - Archive of obsolete content
Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
Mozilla.dev.apps.firefox-2006-10-06 - Archive of obsolete content
s in Firefox 3 Discussion regarding places (a new system for storing bookmarks, histroy and other page info) in Firefox 3. A wiki has been set up aswell as weekly meetings, and a face-to-face meeting will be scheduled at a later date. Everyone and his goldfish thinks bug 300198 should be fixed An as-of-yet unreplied to complaint regarding the status of bug 300198 remaining WONTFIX. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-11-10 - Archive of obsolete content
ork-around extension available at bug 357101 to temporarily solve this problem. Accessibility in ChatZilla Gijs Kruitbosch and Aaron Leventhal have proposed an accessibility project involving ChatZilla. Ideas include: Adding standardized shortcuts CLC-4-TTS and/or other screenreader integration Screenreader integration via an accessibility API Discussion on the use of the <Tab> key. Meetings None ...
2006-11-22 - Archive of obsolete content
which will no longer be easy to apply but may provide clues as to where they are going wrong. For more information click here. Discussions Image Labelling for Blind Help Machines Frank Hecker brought up a valid discussion about the problem of getting images tagged for use by screen. He cited some valuable resources on the topic courtesy of the Washington Post. Read the article here Meetings None ...
2006-10-06 - Archive of obsolete content
Authors Mark Paruzel Yi (Eric) Shen [Back to Weekly Summaries ] ...
2006-09-29 - Archive of obsolete content
Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-10-06 - Archive of obsolete content
s in Firefox 3 Discussion regarding places (a new system for storing bookmarks, histroy and other page info) in Firefox 3. A wiki has been set up aswell as weekly meetings, and a face-to-face meeting will be scheduled at a later date. Everyone and his goldfish thinks bug 300198 should be fixed An as-of-yet unreplied to complaint regarding the status of bug 300198 remaining WONTFIX. Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-10-13 - Archive of obsolete content
g if there is such an application to automatically save pieces of a webpage everytime is it updated. Firefox 2.0 should re-implement modal window.open to support Web 2.0 User would like the option to show pop-up windows, using window.open(), from inside untrusted script, to be re-implemented. This function was disabled, see bug: https://bugzilla.mozilla.org/show_bug.cgi?id=180048 Meetings None this week. Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-10-20 - Archive of obsolete content
Authors Sara Minchella (sara) Dave Manley (seneManley) Back to Summary List ...
2006-09-29 - Archive of obsolete content
...
2006-10-06 - Archive of obsolete content
de would be helpful. Cedric Corazza recommends that the proposed documention should be made available on the l10n cvs once it reaches a decent stage 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. Related: bug 342065 Meetings None for this week. ...
2006-10-13 - Archive of obsolete content
...
2006-10-20 - Archive of obsolete content
...
2006-10-27 - Archive of obsolete content
Summary: mozilla.dev.apps.thunderbird - October 21-27, 2006 Announcements None for this week. Discussions Effect of Eudora/Thunderbird re-write JoeS is voicing a concern about the recent announcement regarding the Eudora/Thunderbird rewrite: "Is Thunderbird destined to become a hybrid of the existing code and Eudora?". Jonathan Pritchard has clarified that announcement does not mean Thunderbird will be changing direction, just certain areas of development that are of interest to the Eudora developers will have more attention paid to them. Calling TB with a specific message to be displayed There's a new question by Guenter about calling TB from an external program (eg. Firefox) to display a message. Meetings None for this week. ...
2006-11-03 - Archive of obsolete content
Discussions What is the 'lastModifiedDate' item used for in TB? There are some code example given and also further discussion on lastModifiedDate. TB Storage-idea TB is planning to change from mbox-format storage to database-based storage. However, user wonder both storage method could exist in TB at the same time without crashing. Suggestion made for e-mail popup It suggested that the e-mail popup duration should depends on number of messages and examples of this idea is provided. XUL Overlay question -- How to replace an existing element? No respond thus far. ...
2006-11-10 - Archive of obsolete content
Discussions Violation of SMTP protocol in Thunderbird Hector reports two bugs: Thunderbird ignores the SMTP protocol state machine by ignoring the 501 response codes. This has been filed as bug 360118. Thunderbird doesn't seem to have an option to set the client domain name (ELHO/HELO). This is already addressed in bug 244030. Interfacing with Thunderbird Mark Bannister is looking for directions on interfacing Thunderbird with their project management database. Guenter has provided some sample code using the 'mailto:' method. ...
2006-11-17 - Archive of obsolete content
A few suggestion is posted. What file format is TB's address book using? TB's address book uses Mork (file format). There are also some perl code provided in this link. How to get review for work-in-progress patch? Answer: CC whoever you need review from, but don't post a formal review. ...
2006-09-29 - Archive of obsolete content
Return to mozilla-dev-extensions Announcements None during this week. Discussions None during this week Meetings None during this week. ...
2006-10-06 - Archive of obsolete content
Return to mozilla-dev-extensions Announcements None during this week. Discussions None during this week Meetings None during this week. ...
2006-10-13 - Archive of obsolete content
Return to mozilla-dev-extensions Announcements None during this week. Discussions None during this week Meetings None during this week. ...
2006-10-20 - Archive of obsolete content
Return to mozilla-dev-extensions Announcements None during this week. Discussions None during this week Meetings None during this week. ...
2006-10-27 - Archive of obsolete content
Return to mozilla-dev-extensions Announcements None during this week. Discussions None during this week Meetings None during this week. ...
2006-10-06 - Archive of obsolete content
ship with Lightning 0.3 or Sunbird 0.3. MozillaTranslator 5.13 RFEs new version of MozillaTranslator will be relaesed in a few weeks. Calendar localization update RC1 for Sunbird 0.3 is out now and ready for testing. L10n locked down - FF2 RC2 Code Freeze 9/29/2006 at 9AM PDT the l10n repository is locked down. Discussions status update fx2 status update for firefox 2. Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-10-13 - Archive of obsolete content
ation freeze and Beta upcoming There are no open blockers left. L10n freeze on SeaMonkey 1.1 code is imminent in the next days, as well as beta release. Do early testing using code from this link. Discussions MozillaTranslator 5.13 RFEs MozillaTranslator 5.13 is ready to be released in a few weeks. Author is declaring RFE (Request for Enhancement). A few bugs have been listed. Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-10-27 - Archive of obsolete content
df file for a langpack using the official version of Firefox 2.0 RC 3. Discussions Developing a spelling Dictionary Developing a spelling Dictionary. Alternative German locale While the alternative locale is active, the auto update of Firefox stops working. problem with Belarusian Firefox 2 RC3 The broken message is displayed after user tries to visit non-existing site. Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-11-10 - Archive of obsolete content
ization team to translate. SeaMonkey 1.0.6 and 1.1 Beta upcoming SeaMonkey 1.0.6 and 1.1 Beta are both available here. Discussions Help about Firefox 3 A discussion on how to syncronise MOZILLA_1_8_BRANCH with the trunk, which tag should be used to check-in files on trunk, and when files will be pulled from trunk to create another branch (MOZILLA_1_9_BRANCH?) for Firefox 3. Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-11-17 - Archive of obsolete content
Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-11-24 - Archive of obsolete content
use it Discussion on clarifications on Translate Toolkit to avoid confusion. Feedback on L10n:Ownership draft Feedback on the L10n:Ownership draft at Mozilla wiki site detailed here. Summary vs. Live Titles There seems to be a few locales that use "Summary" or a translation thereof instead of "Live Titles" to name the UI part of microsummaries. The lxr query is detailed here. Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-11-3 - Archive of obsolete content
Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-12-01 - Archive of obsolete content
e CVS structure without having to download the entire mozilla source. At the moment there is no simple way of doing this. From 50 to 100 locales Discussion continues on finding a better tool for localization. Feedback on L10n:Ownership draft Feedback on the L10n:Ownership draft at Mozilla wiki site detailed here continues. There's a question about the roles of Peer in the team Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-12-08 - Archive of obsolete content
ents Mozilla sponsored server for l10n The server for Mozilla sponsored server for l10n should be up and running soon. SeaMonkey 1.1b es-ES language and region packs language and region packs for SeaMonkey 1.1b is ready for downloading. New strings in Thunderbird New strings in Thunderbird new bugzilla-staging.mozilla.org a staging server for a new bugzilla upgrade. Discussions None for this week. Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-09-29 - Archive of obsolete content
for providing both developer and component recommendations for bug reports. ...
2006-10-06 - Archive of obsolete content
s run; all failures found were expected. Build is Go for launch. Vista Testers - needed to test Firefox and Thunderbird in Vista. Any test case ideas specific to Vista are welcomed. Check posting for details. FireFox 2 RC2 testing - Tim Riley announced the L10n builds were completed last night. To help out with testing meet in IRC chat room #qa. Test results will be posted here. Discussions None for this week Meetings Community Test Day - on Friday October 6th, 2006 in IRC chat room #testday there will be a test day focusing on Safe Browsing between 7am to 5pm PDT. Bug Day - in IRC chat room #bugday on Oct 3rd. Reminder from Tracy. Check posting for times in your region. Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-10-13 - Archive of obsolete content
Summary: mozilla.dev.quality - October 6-October 13, 2006 Announcements None Discussions Appropriate for me to assign a bug? - He just permission to confirm bugs, but he still needs help with how to do things - such as how to assign bugs. Meetings None Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-10-20 - Archive of obsolete content
can be given. Announced by Tim on Friday October 13, 2006. Help required designing new Home for Quality.Mozilla.Org - Talented Web Designers and/or Artists interested in helping the design for Quality.Mozilla.Org please read this posting. If your theme is chosen you will be placed on the hall of fame and will receive a gift from Mozilla. Posted by Jay Patel on October 18th, 2006. Discussions None for this week Meetings Upcoming Firefox Test Day - Testing will be emphasized on AJAX/Web 2.0, DHTML, and Plugin heavy sites! Meet in IRC chat room #testday on Friday October 20, 2006 7am-5pm Pacific Time. Posted by Jay Patel on October 18th, 2006. Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-10-27 - Archive of obsolete content
that there needs to be some way of running cross-domain tests (security, web compat, etc), and is wondering if it's possible with the current test HTTP server? Update welcome page - A bug has been discovered when updating to Firefox 2.0. When the special homepage comes up after updating Firefox, the "go to your homepage" button doesn't work when multipliable tabs are set as homepage. Meetings None Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-11-03 - Archive of obsolete content
Summary: mozilla.dev.quality - October 27-November 3, 2006 Announcements A change in Tp2's numbers - Rob Helmer is going to be landing a patch that Adam Guthrie made to fix how Tp2 reports its average pageload times. Discussions None Meetings Community Test Day - on Friday, November 3, 2006 another community test day focusing on security and stability release, and you can help by verifying bugs, and by running the Litmus test cases under the FFTs or the BFTs. Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-11-10 - Archive of obsolete content
cements QMO blog at quality.mozilla.org - The Mozilla QA team has decided to go with Joomla! ...
2006-11-17 - Archive of obsolete content
Summary: mozilla.dev.quality - November 10-November 17, 2006 Announcements None Discussions None Meetings None Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-12-01 - Archive of obsolete content
Authors Mark D'Souza (mdsouza) Mohamed Attar (mojo) ...
2006-09-29 - Archive of obsolete content
Summary: mozilla.dev.security - September 23, 2006 to September 29, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions file: vs resource: vs chrome: from a security point of view Boris Zbarsky gives a summary the current setup for CheckLoadURI (which type of security principal can load what) and asks for comments about whether that is the desired behaviour. Meetings None during this week. ...
2006-10-13 - Archive of obsolete content
Summary: mozilla.dev.security - October 7, 2006 to October 13, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions Extended Privileges Prompt Mitchi asked if it was possible to revoke the checkbox auto approving some scripts. Boris Zbarsky replyied, stating that you have to edit the prefs.js file. Meetings None during this week. ...
2006-10-20 - Archive of obsolete content
Summary: mozilla.dev.security - October 14, 2006 to October 20, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions MP3's Considered a Malicious File Type? JoeS noticed that mp3 files are no longer allowed to be opened directly from email attachments in trunk builds of Thunderbird and Seamonkey. They must be first saved to the drive. --------------010306060708080008030904 Content-Type: audio/mpeg; name="Eternals - Babalus's Wedding DayFinal.mp3" Content-Transfer-Encoding: base64 Content-ID: <part1.00030607.05030...@gmail.com> Content-Disposition: inline; filename="Eternals - Babalus's Wedding DayFinal.mp3" He wonders why this is. Meetings None during this week. ...
2006-10-27 - Archive of obsolete content
Summary: mozilla.dev.security - October 21, 2006 to October 27, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions Extending Javascript Mitchi is working on a CSP (Cryptographic Service Provider) that works on a USB flash drive. She is hoping to incorporate it into Firefox for use with signature files. Meetings ...
2006-11-10 - Archive of obsolete content
Summary: mozilla.dev.security - November 4, 2006 to November 10, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions Why now? (Was: Extended Validation Certificates) A continuation of last week's discussion on Extended Validation Certificates, the there post was getting unruly at 147 replies. Good Ideas A splinter off of the Extended Validation Certificates discussion going over whether or not fraudulent websites may get these certificates and if so how to prevent this from happening. Meetings None during this week. ...
2006-11-17 - Archive of obsolete content
Summary: mozilla.dev.security - November 11, 2006 to November 17, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions How to Detect Firefox Updates Externally? micahc asked if there is an easier way to detect if Firefox is installed and fully patched on any given machine, externally. Extended Validation Certificates A note as to how Opera is handling Extended Validation Certificates http://labs.opera.com/news/2006/10/09/ Fwd: RE: Mozilla questions regarding the EV standard Gervase Markham posted a summary of questions emailed to Kelvin Yiu about the Extended Validation Certificates. Meetings None during this week. ...
2006-11-24 - Archive of obsolete content
Summary: mozilla.dev.security - November 18, 2006 to November 24, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions Continuing Discussions on the Extended Validation Certificates Large amount of activity this week regarding the Extended Validation certificates, Duane posted several snippets of interesting debates as to whether or not the protocol should be introduced. Mozilla backing off from "extended validation"? Yet more people disgruntled by EV proposal Mozilla, Opera and co only tout open standards as it suits them In addition Eddy Nigg posted an alternative proposal for the use of Extended Validation certificates EV certificates / another proposal Meetings None during this week. ...
2006-12-01 - Archive of obsolete content
Summary: mozilla.dev.security - November 25, 2006 to December 1, 2006 Return to mozilla-dev-security Announcements None during this week. Discussions Protocol Security Daniele Rizzo posted a question as to whether or not it is possible to enable/disable the privilege of UniversalXpConnect in a 'entire' protocol (http://, file://). Problem with downloading signed script components in a Firefox extension Andrew Groom is having problems getting an extension to download a signed script and would appreciates some help with his problem. Meetings None during this week. ...
2006-11-03 - Archive of obsolete content
...
2006-11-24 - Archive of obsolete content
Summary: mozilla.dev.tech.layout - November 17 - November 24, 2006 Announcements None this week. Discussions backed out view manager hierarchy unification Discussion aboutthe view manager hierarchy unification and the problems with TP regressions that occuring whenever update batching interacts it. See BigID 360789 New linebreaker interface New linebreaker current interface is unworkable when it comes to using Thai and UAX#14. Meetings None this week. ...
2006-12-24 - Archive of obsolete content
Discussions [Reset issue for overflow='hidden' In IE and Opera there is a very modest horizontal shift of the document due to reflow associated with the removal of the vertical scroll bar (because the document content is using a horizontal centering style). ...
2006-12- 02 - Archive of obsolete content
Discussions [Reset issue for overflow='hidden' In IE and Opera there is a very modest horizontal shift of the document due to reflow associated with the removal of the vertical scroll bar (because the document content is using a horizontal centering style). ...
2006-12- 08 - Archive of obsolete content
Discussions [Further ComputeSize changes L. ...
2006-09-22 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Sept 22-29, 2006 Announcements None during this week. Discussions Java vs. XPCOM discussion of the limitation and merits of Java in place of XPCOM. xpidl.exe crashes on Windows problem with creating header files from IDL's in 1.8 branch due to wrong compiler. Meetings None during this week. ...
2006-09-30 - Archive of obsolete content
...
2006-10-13 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Oct 13-20, 2006 Announcements None during this week. Discussions wxMozilla and FF1.5 XPCOM problems updating wxMozilla to use it with Firefox 1.5.7 Browser elements, Opening links in a new window Using javascript to open window in new window. General XPCOM and nsCOMPtr questions nsCOMPtr basics regarding myIComponent usage. Fedora security blocking XPCOM registration Fedora Core 5.0 security settings impeding xpcom registration. Meetings None during this week. ...
2006-10-27 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Oct 21-27, 2006 Announcements None during this week. Discussions evalInSandbox and XMLHttpRequest A discussion about writing something that calls a function defined by the page that the user is currently on Chrome files and last modified date Ways to retrieve the last modified date of a chrome file that may be in a jar or on the file system. Meetings None during this week. ...
2006-11-10 - Archive of obsolete content
...
2006-11-17 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Nov 11-Nov 17, 2006 Announcements None during this week. Discussions XPIDL crashes IMyComp.h problems: "xpidl.exe has encountered a problem and needs to close" Meetings None during this week. ...
2006-11-3 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Oct 28-Nov 3, 2006 Announcements None during this week. Discussions Problem linking libraries to XPCOM component A discussion involving a problem with linking third party library to XPCOM component. Meetings None during this week. ...
2006-12-01 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Nov 25- Dec 01, 2006 Announcements None during this week. Discussions nsIContentPolicy and user interaction The proper way to get user confirmation before trying to load certain file types. debugging firefox extesnion? A tip on how to debug Firefox extensions using a debugger. segmentation fault while running the browser Browser crashes after installation of subjects extension. Meetings None during this week. ...
2006-12-08 - Archive of obsolete content
Summary: mozilla.dev.tech.xpcom - Dec 02- Dec 08, 2006 Announcements None during this week. Discussions XPCOM cpp to js callback Engaging discussion on a problem with trying to call back from C++ to a JavaScript object using an interface the developer created with an idl. However, the C++ call that's supposed to be invoking the method on the JavaScript object is returning with 0x80004005 (NS_ERROR_FAILURE). Saving binary data from nsIXmlHttpRequest A discussion on how to use nsIXmlHttpRequest object to query data from a url in an extension implemented in Javascript Meetings None during this week. ...
2006-09-22 - Archive of obsolete content
Summary: mozilla.dev.tech.xul - Sept 22-29, 2006 Return to mozilla-dev-tech-xul Announcements None during this week. Discussions None during this week. Meetings None during this week. ...
2006-10-20 - Archive of obsolete content
Summary: mozilla.dev.tech.xul - Oct 14-Oct 20, 2006 Return to mozilla-dev-tech-xul Announcements None during this week. Discussions October 16, 2006, 5:10pm - David Marteau notes that using "persist" on templatized content prevents from restoring values for the persistent attributes. Neil notes that the format of localstore has changed from previous versions and that "persist" is not functioning properly using the new format. This is an unexpected result and David has said he will post a bug. The bug number has not been posted to the newsgroup and searching in BugZilla was unsuccessful. Meetings None during this week. ...
2006-10-13 - Archive of obsolete content
tions. Discussions How to change between Lightning and mail Discussion about how to view Folder pane and Lightning pane again after you closed them. Lightning 0.3 - Event List/Search? Discussion about the ability to list and search all the events in a calendar. Can anyone see what's wrong with this vCalendar? Discussion about the problem remotely connecting to a particular calendar Meetings None this week. Authors Mark Paruzel Yi (Eric) Shen [Back to Weekly Summaries ] ...
NPP_SetValue - Archive of obsolete content
he function has the following parameters: instance Pointer to plugin instance on which to set the variable. variable The variable being set. value Value for the variable being set. Returns If successful, the function should return NPERR_NO_ERROR. If unsuccessful, the function should return the most relevant NPAPI error code. For possible values, see Error Codes. Description None See Also NPP_New, NPP_GetValue, NPN_SetValue, NPN_GetValue ...
NP_GetValue - Archive of obsolete content
Plug-in information the call gets. Values: NPPVpluginNameString: Gets the name of the plug-in NPPVpluginDescriptionString: Gets the description string of the plug-in value Plug-in name, returned by the function. Returns If successful, the function returns NPERR_NO_ERROR. If unsuccessful, the function returns an error code. For possible values, see Error Codes. Description None. See Also NPP_SetValue ...
RSS - Archive of obsolete content
Getting Started A guided tutorial that will help you get started with RSS. Really Simple Syndication (RSS) is a popular HTML-like XML-based data format used for syndication. RSS has a sordid history and a multitude of different incompatible RSS versions. (Some being based on RDF, but most only being based on XML.) Nonetheless, RSS is an extremely popular format that is used for syndicating news, blog posts, IPradio, and IPTV, with an amazing amount of momentum. Documentation Why RSS Slash is Popular - Counting Your Comments Charles Iliya Krempeaux talks about the RSS Slash Module, why it is popular among some, and how it is used to give a count for your comments. Why Well-Formed Web RSS Module is Popular - Syndicating Your Comments Charles Iliy...
Introduction to SSL - Archive of obsolete content
s authentication and tamper detection but no encryption. Server administrators must be careful about enabling it, however, because data sent using this cipher suite is not encrypted and may be accessed by eavesdroppers. No Encryption, MD5 Message Authentication Only This cipher suite uses MD5 message authentication to detect tampering. It is typically supported in case a client and server have none of the other ciphers in common. This cipher suite is supported by SSL 3.0 but not by SSL 2.0. 1 Note that for RC4 and RC2 ciphers, the phrase "40-bit encryption" means the keys are still 128 bits long, but only 40 bits have cryptographic significance. Fortezza Cipher Suites Table 2 lists additional cipher suites supported by Red Hat products with Fortezza. for SSL...
Common Firefox theme issues and solutions - Archive of obsolete content
't always go to full screen mode from a normal window properly. The resolution to this issue is to add the following code to your browser.css file somewhere below where the main-window is made transparent to support Aero glass. @media all and (-moz-windows-compositor) { /* Make transition to Fullscreen mode seamlessly in Firefox 10+ */ #main-window[inFullscreen="true"] { -moz-appearance: none; background-color: -moz-dialog!important; } } For more information about this issue please see bug 732757 and bug 732757 and this MozillaZine thread. Mac OS X OS X Lion missing toolbar button icons Due to Firefox bug 679708 and bug 702558, some toolbar buttons icons may be missing on Firefox 8 and later running on Mac OS X Lion. In order to work around this issue, you need to either ren...
Making sure your theme works with RTL locales - Archive of obsolete content
The Force RTL extension enables you to switch the interface of Firefox from LTR to RTL and the other way around dynamically by toggling a menu item. ...
Theme changes in Firefox 3.5 - Archive of obsolete content
handled on Mac OS X. Before that change, opaque windows always had a shadow and transparent windows never had a shadow. After that change, transparent windows also have a shadow by default. This can result in unwanted shadows in your theme, e.g. under the autoscroll icon or the identity panel. If you don't want the shadow, you can turn it off by setting the new -moz-window-shadow CSS property to none on the affected element. browser.xul Bug 463189 added a new attribute on the XUL window element of browser.xul named browsingmode. The value of this attribute is normal when the Private Browsing mode is inactive, and private when it's active. This attribute can be used to style different parts of the browser window inside the Private Browsing mode. See this blog post for an example...
Theme changes in Firefox 3 - Archive of obsolete content
mation notices. chrome://global/skin/icons/warning-16.png Used when displaying warnings. Images to remove The following images were removed: chrome://mozapps/skin/extensions/question.png No longer used. Mac OS X Mac OS X themes for Firefox 3 should add these two rules to the end of chrome://global/skin/wizard.css: .wizard-buttons-btm { padding:Xpx; } .wizard-label-box { display: none; } The numeric value ofX, the number of pixels of padding in .wizard-buttons-btm, should be the same as the value of the margin for .wizard-buttons-box-2. Image Changes chrome://global/skin/icons/loading_16.gif was replaced with chrome://global/skin/icons/loading_16.png . Changes in mozapps See also Theme changes in Firefox 2 ...
Using Firebug and jQuery (Screencast) - Archive of obsolete content
d inspect a page that Firebug and jQuery affords you, using the results to build a Greasemonkey script, instead of a simple bookmarklet. I only really intended this to be a quick introduction to the subject, so please feel free to explore it more! More Tips: Here are some more jQuery selectors that you can use on a Digg Post: $("li.c-bury > div").remove(); - Remove all buried comments, but none of the direct replies. $("div.c-body").show(); - Show all comments, even ones that've been buried. ...
-moz-binding - Archive of obsolete content
The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element. Syntax /* <url> value */ -moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#checkbox); /* Global values */ -moz-binding: inherited; -moz-binding: initial; -moz-binding: unset; Values <url> The URL for the XBL binding (including the fragment identifier). none No XBL binding is applied to the element. Formal definition Initial valuenoneApplies toall elements except generated content or pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <url> | none Examples .exampleone { -moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#radiobutton); } Specifications Not part of any standard. ...
-moz-text-blink - Archive of obsolete content
The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode. Firefox, which was the only major browser supporting it, dropped support for this property in Firefox 26. It is now unsupported on all browsers. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none Produces no blinking. blink Text blinks. Note that not blinking the text is one technique to satisfy checkpoint 3.3 of WAI-UAAG. Formal syntax none | blink Example .example { -moz-text-blink: blink; } Specifications This property was defined in an old draft of the CSS 3 Text specification. Newer versions removed its definition. ...
-ms-content-zoom-chaining - Archive of obsolete content
The -ms-content-zoom-chaining CSS property is a Microsoft extension specifying the zoom behavior that occurs when a user hits the zoom limit during page manipulation. Initial valuenoneApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none The initial value. A bounce effect is shown when the user hits a zoom limit during page manipulation. chained The nearest zoomable parent element begins zooming when the user hits a zoom limit during page manipulation. No bounce effect is shown. Formal syntax none | chained Specifications Not part of any specification. Remarks This property has no effect on non-zoomable elements. For information on zoomable elements, see -ms-content...
-ms-content-zoom-snap - Archive of obsolete content
The -ms-content-zoom-snap CSS shorthand property is a Microsoft extension that specifies values for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties. Initial valueas each of the properties of the shorthand:-ms-content-zoom-snap-type: none-ms-content-zoom-snap-points: snapInterval(0%, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas each of the properties of the shorthand:-ms-content-zoom-snap-type: as specified-ms-content-zoom-snap-points: as specifiedAnimation typediscrete Syntax The -ms-content-zoom-snap shorthand property is specified as one or both of the following content zoom snap values, in order, separated by spaces. Values -ms-content-zoom-snap-type Value of the -ms-content-zoom-s...
-ms-content-zooming - Archive of obsolete content
The -ms-content-zooming CSS property is a Microsoft extension that specifies whether zooming is enabled. Initial valuezoom for the top level element, none for all other elementsApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none The initial value of all elements except the top-level element. The element is not zoomable. zoom The initial value of the top-level element. The element is zoomable. Formal syntax none | zoom Specifications Not part of any specification. Remarks This property has no effect unless overflow is permitted on both the x- and y-axes. By default, zoom-enabled elements can be zoomed by the user via pinch-zoom. The top-level element can also be ...
-ms-flow-from - Archive of obsolete content
The -ms-flow-from CSS property is a Microsoft extension that gets or sets a value identifying a region container in the document that accepts the content flow from the data source. Initial valuenoneApplies tonon-replaced elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none Default. No container has been specified. <custom-ident> The name of the region container. Formal syntax [ none | <custom-ident> ]# Specifications Not part of any specification. ...
-ms-flow-into - Archive of obsolete content
The -ms-flow-into CSS property is a Microsoft extension that gets or sets a value identifying an iframe container in the document that serves as the region's data source. Initial valuenoneApplies toiframe elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none Default. No container has been specified. <custom-ident> The name of the region container. Formal syntax [ none | <custom-ident> ]# Specifications Not part of any specification. ...
-ms-high-contrast-adjust - Archive of obsolete content
property is a Microsoft extension that gets or sets a value indicating whether to override any CSS properties that would have been set in high contrast mode. Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values auto Indicates the applicable CSS properties will be adjusted as expected when the system is in high contrast mode. none Indicates the applicable CSS properties will not be adjusted when the system is in high contrast mode. Formal syntax auto | none Specifications Not part of any specification. Remarks The -ms-high-contrast-adjust property works with the -ms-high-contrast media feature. ...
-ms-scroll-rails - Archive of obsolete content
The -ms-scroll-rails CSS property is a Microsoft extension that specifies whether scrolling locks to the primary axis of motion. Initial valuerailedApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none The content moves exactly with the user's finger. This value allows for free-form panning. railed Initial value. Panning locks to the primary axis of motion. Formal syntax none | railed Specifications Not part of any specification. Remarks This property has no effect on non-scrollable elements. Starting with Windows 8.1, this property is also supported for touchpad interaction. This property requires Windows 8 or later. ...
-ms-scroll-snap-points-x - Archive of obsolete content
, 200%, 300%, and so on. (The -ms-scroll-snap-points-x property behaves identically to the -ms-scroll-snap-points-y property, but along the x-axis.) .container { overflow-x: auto; overflow-y: hidden; -ms-scroll-snap-type: mandatory; -ms-scroll-snap-points-x: snapInterval(0%, 100%); width: 480px; height: 270px; } .imageContainer { -ms-scroll-chaining: chained; -ms-overflow-style: none; -ms-content-zooming: zoom; -ms-scroll-rails: none; -ms-scroll-limit-x-min: 100%; -ms-scroll-limit-x-max: 500%; -ms-scroll-snap-type: proximity; -ms-scroll-snap-points-x: snapList(100%, 200%, 300%, 400%, 500%); -ms-overflow-style: none; width: 480px; height: 270px; overflow: auto; } Specifications Not part of any specification. Remarks This property requires Windows 8 or ...
-ms-scroll-snap-points-y - Archive of obsolete content
, 200%, 300%, and so on. (The -ms-scroll-snap-points-y property behaves identically to the -ms-scroll-snap-points-x property, but along the y-axis.) .container { overflow-x: auto; overflow-y: hidden; -ms-scroll-snap-type: mandatory; -ms-scroll-snap-points-y: snapInterval(0%, 100%); width: 480px; height: 270px; } .imageContainer { -ms-scroll-chaining: chained; -ms-overflow-style: none; -ms-content-zooming: zoom; -ms-scroll-rails: none; -ms-scroll-limit-y-min: 100%; -ms-scroll-limit-y-max: 500%; -ms-scroll-snap-type: proximity; -ms-scroll-snap-points-y: snapList(100%, 200%, 300%, 400%, 500%); -ms-overflow-style: none; width: 480px; height: 270px; overflow: auto; } Specifications Not part of any specification. Remarks This property requires Windows 8 or ...
-ms-scroll-snap-x - Archive of obsolete content
The -ms-scroll-snap-x CSS shorthand property is a Microsoft extension that specifies values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties. Initial valueas each of the properties of the shorthand:-ms-scroll-snap-type: none-ms-scroll-snap-points-x: snapInterval(0px, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas each of the properties of the shorthand:-ms-scroll-snap-type: as specified-ms-scroll-snap-points-x: as specifiedAnimation typediscrete Syntax Values The -ms-scroll-snap-x shorthand property is specified as one or both of the following values, in order and separated by spaces. -ms-scroll-snap-type The value of the -ms-scroll-snap-type property. -ms-scroll-snap-points-x The...
-ms-scroll-snap-y - Archive of obsolete content
The -ms-scroll-snap-x CSS shorthand property is a Microsoft extension that specifies values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties. Initial valueas each of the properties of the shorthand:-ms-scroll-snap-type: none-ms-scroll-snap-points-y: snapInterval(0px, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas each of the properties of the shorthand:-ms-scroll-snap-type: as specified-ms-scroll-snap-points-y: as specifiedAnimation typediscrete Syntax Values The -ms-scroll-snap-y shorthand property is specified as one or both of the following values, in order and separated by spaces. -ms-scroll-snap-type The value of the -ms-scroll-snap-type property. -ms-scroll-snap-points-y The...
-ms-touch-select - Archive of obsolete content
ty is a Microsoft extension that toggles the gripper visual elements that enable touch text selection. Initial valuegrippersApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values grippers The grippers are always on. In addition, selection will start even if an onclick, onmsgesturetap, or onmouseup handler is present. This is the initial value. none The grippers are always off and default touch selection functionality is not provided. Formal syntax grippers | none Specifications Not part of any specification. Remarks This property requires Windows 8 or later. The -ms-touch-select property should only be used by applications that provide their own selection experience. Most other applications should use the -ms-user-select prope...
-ms-wrap-flow - Archive of obsolete content
ted value other than auto. This property specifies that the exclusion element (the exclusion) can be positioned in various ways, and that inline content will wrap around the exclusion in a way similar to how it wraps around floated elements. When the -ms-wrap-flow property's computed value is auto, the element does not become an exclusion element unless its float property's computed value is not none. In that case, the element contributes its border box to its containing block's wrapping context and content flows around it according to the clear property. For more information about the impact of an exclusion element on content flow, see the Terminology section of the CSS Exclusions Module Level 1 specification. ...
-ms-wrap-through - Archive of obsolete content
rough CSS property is a Microsoft extension that specifies how content should wrap around an exclusion element. Initial valuewrapApplies toblock-level elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values wrap The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element. none The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element. Formal syntax wrap | none Specifications Not part of any specification. Remarks You can use the -ms-wrap-through property to control the effect of exclusions; for instance, to cause one content block to wrap around an exclusion el...
:-moz-system-metric(windows-default-theme) - Archive of obsolete content
...
::-ms-browse - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-browse Example HTML <label>Select image: <input type="file"></label> CSS input[type="file"]::-ms-browse {...
::-ms-check - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-check Example HTML <form> <label for="redButton">Red</label> <input type="radio" id="redButton"><br> <...
::-ms-expand - Archive of obsolete content
...
::-ms-fill-lower - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Specifications Not part of any specification.
::-ms-fill-upper - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-fill-upper Specifications N...
::-ms-reveal - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-reveal Specifications Not part...
::-ms-thumb - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-thumb Specifications Not pa...
::-ms-ticks-after - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-ticks-after ...
::-ms-ticks-before - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-ticks-before ...
::-ms-track - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-track See also ::-ms-thum...
::-ms-value - Archive of obsolete content
lor border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-sizing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width Syntax ::-ms-value Example input::-ms-va...
Old Proxy API - Archive of obsolete content
trapping or fixed. Proxy API Catch-alls can be defined only on distinct proxy objects, controlled by a handler object. There are two kinds of proxies: object proxies var proxy = Proxy.create(handler, proto); and function proxies : var proxy = Proxy.createFunction(handler, callTrap, constructTrap); Where: proto is an optional object representing the proxy's prototype (defaults to null if none is provided). callTrap is a variable-argument function(args) { return any; } that reifies "proxy(args)". Note: The this-binding of the callTrap function is the this-binding of the call-site. constructTrap is an optional variable-argument function(args) { return any-object; } that reifies "new proxy(args)". The this-binding of the constructTrap is either undefined (in strict mode) or the global ...
background-size - Archive of obsolete content
nce isn't all it should be. I tried locating the part of the spec about <body>'s background extending to <html> but it didn't seem to be explicitly mentioned in the Cascading and Inheritance section and both the background-image and border-image say 'inherited: no'. And anyway, it's more the -moz-border-image that seems to be the problem - that gets inherited even if I add in -moz-border-image: none, to <body> or <html>, and setting the height to 100% is more a matter of covering it up rather than stopping it happening (see further examples a, b and c - b and c look OK, but adding margin or padding reveals that the image applies to both <body> and <html> even though explicitly set to none) User:robertc 2009-08-14 See also bug 509681 and bug 497995. User:Jurgen Jeka 2009-08-23 ...
Reference - Archive of obsolete content
me JavaScript 2.0, wanting a list of all the features it supports, might be annoyed at having to read through *all* the updates. Make a footnote on each page, pointing to a page listing "Hot New JavaScript Features", which lists all the differences between the current latest version, and the documented 1.5 version ? (Every time a new version comes out, a few more things are added to that page). None of those options appeal to me. What is the Right Way to write about the latest JavaScript version? --DavidCary 06:42, 31 January 2007 (PST) We already discussed this. See Core JavaScript 1.5 Reference/reorg. The Right Thing to Do seems to be: Move all the "... JavaScript 1.5 ..." pages to "... JS ..." (no version number). Make the pages document the latest version. Each statement/function/objec...
Requests For Enhancement - Archive of obsolete content
Archive › Web › XForms › RFE
s, is much better suited for application development than XHTML. Therefore the control set may need to be more extensive to address the wider spectrum of requirements that a XUL application will have on its controls. XUL is a feature of Mozilla only and custom control authors should be aware their controls won't work on other browser platforms. Enhancements of XForms elements If you find that none of the elements proposed by the XForms spec address your requirements, please post your usecase here. XForms extension UI This section should be for used for noting potiential UI improvements to the Mozilla XForms extension. ...
Correctly Using Titles With External Stylesheets - Archive of obsolete content
ey like. Therefore, any link to a stylesheet that includes a title attribute cannot be persistent, and is likely to be ignored by the Web browser. Any link element referring to a stylesheet with a title attribute must be either preferred or alternate, depending on the value of the rel attribute. In a document that refers to alternate stylesheets, the preferred stylesheet will be used so long as none of the alternate stylesheets are selected by the user. Thus, when the document is loaded, the browser will use all of the persistent stylesheets and one preferred stylesheet (but remember, there should only be one preferred stylesheet). Once the user selects one of the alternate stylesheets, the preferred stylesheet will no longer be used, although the user can always re-select the preferred styl...
Displaying a graphic with audio samples - Archive of obsolete content
ving the impression that the image is built from the samples. ...
Styling Abbreviations and Acronyms - Archive of obsolete content
The underline tells readers that the word in question has extra information associated with it. In Mozilla, placing the mouse pointer over the element and leaving it for a moment will cause the contents of the title attribute to appear as a tooltip next to the mouse pointer. Removing the underline from th...
XUL Parser in Python - Archive of obsolete content
I have put together this little Python script that parses your local XUL and builds a list of all the XUL elements and their attributes in an HTML page. With new widgets and attributes landing all the time, I wanted to get some quicker way of looking at the XUL--at particular builds, at particular widgets, at which elements had which attributes, etc. The script writes out all the attributes and none of the values, but the parser itself is seeing the elements, their attributes, and the values of those attributes, and you just have to ask for them if you want them. For example, you could easily adapt this to: return the id values of all the elements take elements on the command line and only spell them out build new chrome subdirectories (i.e. new "packages") on the fly using search and r...
Archive of obsolete content
wsers. Plugins For more information about plugin roadmap, see non-archived plugin information. RSS Really Simple Syndication (RSS) is a popular HTML-like XML-based data format used for syndication. RSS has a sordid history and a multitude of different incompatible RSS versions. (Some being based on RDF, but most only being based on XML.) Nonetheless, RSS is an extremely popular format that is used for syndicating news, blog posts, IPradio, and IPTV, with an amazing amount of momentum. SAX SAX, short forSimple API for XML, is a parsing API. SAX was the first widely adopted API for XML in Java, and later implemented in several other programming language environments. Starting with Fir...
Anatomy of a video game - Game development
ry Games, where they adjust their rate of garbage generation to optimize garbage collection. Obviously, cleaning up resources is not time sensitive (especially if tidying is more disruptive than the garbage itself). This may also apply to some of your own tasks. Those are good candidates to throttle when available resources become a concern. Summary I want to be clear that any of the above, or none of them, could be best for your game. The correct decision entirely depends on the trade-offs that you are willing (and unwilling) to make. The concern is mostly with switching to another option. Fortunately, I do not have any experience with this, but I have heard it is an excruciating game of Whack-a-Mole. An important thing to remember for managed platforms, like the web, is that your loop ma...
Index - Game development
HTML5 Games, JavaScript Games, Web Gaming is one of the most popular computer activities. New technologies are constantly arriving to make it possible to develop better and more powerful games that can be run in any standards-compliant web browser. 2 Anatomy of a video game Games, JavaScript, Main Loop, requestAnimationFrame I want to be clear that any of the above, or none of them, could be best for your game. The correct decision entirely depends on the trade-offs that you are willing (and unwilling) to make. The concern is mostly with switching to another option. Fortunately, I do not have any experience with this, but I have heard it is an excruciating game of Whack-a-Mole. 3 Examples Demos, Example, Games, Web This page lists a number of im...
Audio for Web games - Game development
ing" text and displaying the play button: trackEls.forEach((el, i) => { // get children const anchor = el.querySelector('a'); const loadText = el.querySelector('p'); const playButton = el.querySelector('button'); // load file loadFile(anchor.href).then((track) => { // set loading to false el.dataset.loading = 'false'; // hide loading text loadText.style.display = 'none'; // show button playButton.style.display = 'inline-block'; // allow play on click playButton.addEventListener('click', function() { // check if context is in suspended state (autoplay policy) if (audioCtx.state === 'suspended') { audioCtx.resume(); } playTrack(track); playButton.dataset.playing = true; }) }) }) Note: You can see...
Crisp pixel art look with image-rendering - Game development
screens render content at high resolutions, there is a problem with making sure the pixel art does not look blurry. Developers have been manually scaling up graphics so they are shown with blocks that represent pixels. Two downsides to this method are larger file sizes and compression artifacts. original size 4x size 4x size (scaled with an image editor) none vendor's algorithm nearest-neighbor algorithm A CSS-based solution The good news is that you can use CSS to automatically do the up-scaling, which not only solves the blur problem, but also allows you to use the images in their original, smaller size, thus saving download time. Also, some game techniques require algorithms that analyse images, which also benefit from working with sm...
Animations and tweens - Game development
uentially, tweens smoothly animate properties of an object in the gameworld, such as width or opacity. Let's add a tween to our game to make the bricks smoothly disappear when they are hit by the ball. Go to your ballhitBrick() function, find your brick.kill(); line, and replace it with the following: var killTween = game.add.tween(brick.scale); killTween.to({x:0,y:0}, 200, Phaser.Easing.Linear.None); killTween.onComplete.addOnce(function(){ brick.kill(); }, this); killTween.start(); Let's walk through this so you can see what's happening here: When defining a new tween you have to specify which property will be tweened -- in our case, instead of hiding the bricks instantly when hit by the ball, we will make their width and height scale to zero, so they will nicely disappear. To the...
Cipher - MDN Web Docs Glossary: Definitions of Web-related terms
Modern ciphers are designed to withstand attacks discovered by a cryptanalyst. There is no guarantee that all attack methods have been discovered, but each algorithm is judged against known classes of attacks. ...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
that are marked as non-normative or informative, which means those are provided there for the purpose of helping the reader understand the specifications better or to showcase an example or best practice, which need not be followed as a rule. 292 Null CodingScripting, Glossary In computer science, a null value represents a reference that points, generally intentionally, to a nonexistent or invalid object or address. The meaning of a null reference varies among language implementations. 293 Nullish value Glossary, JavaScript, Null, Primitive, undefined In JavaScript, a nullish value is the value which is either null or undefined. Nullish values are always falsy. 294 Number CodingScripting, Glossary, JavaScript In JavaScript, Number...
Null - MDN Web Docs Glossary: Definitions of Web-related terms
The meaning of a null reference varies among language implementations. In JavaScript, null is marked as one of the primitive values, because its behaviour is seemingly primitive. ...
Request header - MDN Web Docs Glossary: Definitions of Web-related terms
zilla.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: https://developer.mozilla.org/testpage.html Connection: keep-alive Upgrade-Insecure-Requests: 1 If-Modified-Since: Mon, 18 Jul 2016 02:36:04 GMT If-None-Match: "c561c68d0ba92bbeb8b0fff2a9199f722e3a621a" Cache-Control: max-age=0 Strictly speaking, the Content-Length header in this example is not a request header like the others, but an entity header: POST /myform.html HTTP/1.1 Host: developer.mozilla.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 Content-Length: 128 Learn more Technical knowl...
Advanced styling effects - Learn web development
text-shadow, box-shadow has an inset keyword available -- putting this at the start of a shadow declaration causes it to become an inner shadow, rather than an outer shadow. Let's have a look and see what we mean. ...
Cascade and inheritance - Learn web development
s are very specific in what they target), the red background color and the 1 pixel black border should both be applied to the 2nd element, with the first element getting the gray background color, and no border, as specified by the class. The 2nd element does get the red background color, but no border. Why? Because of the !important declaration in the second rule -- including this after border: none means that this declaration will win over the border value in the previous rule, even though the ID has higher specificity. Note: The only way to override this !important declaration would be to include another !important declaration on a declaration with the same specificity later in the source order, or one with a higher specificity. It is useful to know that !important exists so that you ...
Organizing your CSS - Learn web development
h3, h4 { ... } ul { ... } blockquote { ... } After this section we could define a few utility classes, for example a class that removes the default list style for lists we're going to display as flex items or in some other way. If you have a few things you know you will want to apply to lots of different elements, they can come in this section. /* || UTILITIES */ .nobullets { list-style: none; margin: 0; padding: 0; } ... Then we can add everything that is used sitewide. That might be things like the basic page layout, the header, navigation styling, and so on. /* || SITEWIDE */ .main-nav { ... } .logo { ... } Finally we will include CSS for specific things, broken down by the context, page or even component in which they are used. /* || STORE PAGES */ .product-listing ...
Introduction to CSS layout - Learn web development
e clear. Floats Floating an element changes the behavior of that element and the block level elements that follow it in normal flow. The element is moved to the left or right and removed from normal flow, and the surrounding content floats around the floated item. The float property has four possible values: left -- Floats the element to the left. right -- Floats the element to the right. none -- Specifies no floating at all. This is the default value. inherit -- Specifies that the value of the float property should be inherited from the element's parent element. In the example below we float a <div> left, and give it a margin on the right to push the text away from the element. This gives us the effect of text wrapped around that box, and is most of what you need to know about floa...
Legacy layout methods - Learn web development
ased on floats and flexbox work. Having studied Grid Layout you will probably be surprised how complicated this all seems! This knowledge will be helpful to you if you need to create fallback code for browsers that do not support newer methods, in addition to allowing you to work on existing projects which use these types of systems. It is worth bearing in mind, as we explore these systems, that none of them actually create a grid in the way that CSS Grid Layout creates a grid. They work by giving items a size, and pushing them around to line them up in a way that looks like a grid. A two column layout Let's start with the simplest possible example -- a two column layout. You can follow along by creating a new index.html file on your computer, filling it with a simple HTML template, and ins...
Multiple-column layout - Learn web development
ng columns You can cause an element to span across all of the columns. In this case the content breaks when the spanning element is introduced and continues below creating a new set of column boxes. To cause an element to span all of the columns use the column-span property set to all. Note that it isn't possible to cause an element to span some columns. The property can only have the value of none (which is the default) or all. Spanning the columns body { width: 90%; max-width: 900px; margin: 2em auto; font: .9em/1.2 Arial, Helvetica, sans-serif; } .container { column-count: 3; column-gap: 20px; column-rule: 4px dotted rgb(79, 185, 227); } h2 { column-span: all; background-color: rgb(79, 185, 227); color: white; padding: .5em; } <div class="container"> <h1>Simple mu...
Positioning - Learn web development
positioning, with one key difference: whereas absolute positioning fixes an element in place relative to its nearest positioned ancestor (the initial containing block if there isn't one), fixed positioning usually fixes an element in place relative to the visible portion of the viewport, except if one of its ascendants is a fixed containing block due to its transform property being different from none. This means that you can create useful UI items that are fixed in place, like persisting navigation menus that are always visible no matter how much the page scrolls. Let's put together a simple example to show what we mean. First of all, delete the existing p:nth-of-type(1) and .positioned rules from your CSS. Now, update the body rule to remove the position: relative; declaration and add a fi...
How does the Internet work? - Learn web development
Summary The Internet is the backbone of the Web, the technical infrastructure that makes the Web possible. At its most basic, the Internet is a large network of computers which communicate all together. The history of the Internet is somewhat obscure. ...
How do I start to design my website? - Learn web development
Summary When starting with a web project, many people focus on the technical side. Of course you must be familiar with the technique of your craft, but what really matters is what you want to accomplish. Yes, it seems obvious, but too many projects fail not from a lack of technical know-how, but from lack of goals and vision. ...
What is accessibility? - Learn web development
Objective: Learn what accessibility is and why it matters. Summary Because of physical or technical limitations, maybe your visitors can't experience your website the way you hoped. In this article we give general accessibility principles and explain a few rules. Active learning There is no active learning available yet. Dig deeper Accessibility: general principles We might associate accessibility at first with negative limitations. ...
Basic native form controls - Learn web development
meal" checked> Several radio buttons can be tied together. If they share the same value for their name attribute, they will be considered to be in the same group of buttons. Only one button in a given group may be checked at a time; this means that when one of them is checked all the others automatically get unchecked. When the form is sent, only the value of the checked radio button is sent. If none of them are checked, the whole pool of radio buttons is considered to be in an unknown state and no value is sent with the form. Once one of the radio buttons in a same-named group of buttons is checked, it is not possible for the user to uncheck all of the buttons without resetting the form. <fieldset> <legend>What is your favorite meal?</legend> <ul> <li> <label for="soup">Soup</...
Your first form - Learn web development
l just get you to add some CSS to make it look OK. First of all, add a <style> element to your page, inside your HTML head. ...
From object to iframe — other embedding technologies - Learn web development
ullscreen If set, the <iframe> is able to be placed in fullscreen mode using the Full Screen API (somewhat beyond scope for this article.) frameborder If set to 1, this tells the browser to draw a border between this frame and other frames, which is the default behaviour. 0 removes the border. Using this isn't really recommended any more, as the same effect can be better achieved using border: none; in your CSS. src This attribute, as with <video>/<img>, contains a path pointing to the URL of the document to be embedded. width and height These attributes specify the width and height you want the iframe to be. 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 ...
Video and audio content - Learn web development
playing again whenever it finishes. This can also be annoying, so only use if really necessary. muted Causes the media to play with the sound turned off by default. poster The URL of an image which will be displayed before the video is played. It is intended to be used for a splash screen or advertising screen. ...
Third-party APIs - Learn web development
d in our UI. Displaying the data OK, let's look at how we'll display the data. Add the following function below your fetchResults() function. ...
Basic math in JavaScript — numbers and operators - Learn web development
er literacy, a basic understanding of HTML and CSS, an understanding of what JavaScript is. Objective: To gain familiarity with the basics of math in JavaScript. Everybody loves math Okay, maybe not. Some of us like math, some of us have hated math ever since we had to learn multiplication tables and long division in school, and some of us sit somewhere in between the two. But none of us can deny that math is a fundamental part of life that we can't get very far without. This is especially true when we are learning to program JavaScript (or any other language for that matter) -- so much of what we do relies on processing numerical data, calculating new values, and so on, that you won't be surprised to learn that JavaScript has a full-featured set of math functions available...
Aprender y obtener ayuda - Learn web development
If you are a complete beginner to web development, you'll have to do some study and web searches and lookup solutions to such problems. If you are a professional web developer you'll probably remember the last time you solved a similar problem, and only have to look up a few bits of the syntax that you forgot since then. When you find solutions to such problems, it is wor...
Multimedia: video - Learn web development
Removing audio can save 20% of the bandwidth. Depending on your choice of software, you might be able to remove audio during export and compression. If not, a free utility called FFmpeg can do it for you. This is the FFmpeg command string to remove audio: ffmpeg -i original.mp4 -an -c:v copy audioFreeVersion.mp4 Video preload The preload attribute has three available options: auto|metadata|none. The default setting is metadata. These settings control how much of a video file downloads with page load. You can save data by deferring download for less popular videos. Setting preload="none" results in none of the video being downloaded until playback. It delays startup, but offers significant data savings for videos with a low probability of playback. Offering more modest bandwidth saving...
Ember resources and troubleshooting - Learn web development
ious / "less magic" concepts, avoiding build-time transforms and implicit Glimmer VM behavior. With ember-set-helper: <Checkbox @value={{this.someData}} @onToggle={{set this "someData" (not this.someData)}} /> With ember-box: {{#let (box this.someData) as |someData|}} <Checkbox @value={{unwrap someData}} @onToggle={{update someData (not this.someData)}} /> {{/let}} Note that none of these solutions are particularly common among members of the community, and as a whole, people are still trying to figure out an ergonomic and simple API for setting data in a template-only context, without backing JS. What is the purpose of Controllers? Controllers are Singletons, which may help manage the rendering context of the active route. On the surface, they function much the same a...
Handling common HTML and CSS problems - Learn web development
at the bottom of the DOM inspector: If for example you were trying to use this selector, you'd be able to see that it wouldn't select the input element as desired: form > #date (The date form input isn't directly inside the <form>; you'd be better off using a general descendant selector instead of a child selector). However, another issue that appears in versions of IE older than 9 is that none of the newer selectors (mainly pseudo-classes and pseudo-elements like :nth-of-type, :not, ::selection, etc.) work. If you want to use these in your CSS and you need to support older IE versions, a good move is to use Keith Clark's Selectivizr library -- this is a small JavaScript library that works on top of an existing JavaScript library like jQuery or MooTools. To try this example, make a l...
Package management basics - Learn web development
avaScript languages. Objective: To understand what package managers and package repositories are, why they are needed, and the basics of how to use them. A dependency in your project A dependency is a third-party bit of software that was probably written by someone else and ideally solves a single problem for you. A web project can have any number of dependencies, ranging from none to many, and your dependencies might include sub-dependencies that you didn't explicitly install -- your dependencies may have their own dependencies. A simple example of a useful dependency that your project might need is some code to calculate relative dates as human-readable text. You could certainly code this yourself, but there's a strong chance that someone else has already solved this pro...
Accessibility API cross-reference
NUPOPUP POPUP_MENU, MENU POPUP_MENU, MENU menu A collection of navigational elements (usually links) for navigating the document or related documents. navigation <nav> If it's a table of contents, use <TOC> An element whose implicit native role semantics (if any) will not be mapped to the accessibility API. none, presentation <Private> or perhaps <Artifact> A section whose content is parenthetic or ancillary to the main content of the resource. note A selectable item in a select list. option A tree with expandable & collapseable elements OUTLINE TREE TREE tree A tree it...
Embedding API for Accessibility
tBoolPref("browser.accept.background_images", acceptBackgroundImages); No Blinking text SetBoolPref("browser.blink_allowed", acceptBlinkText); No Animations SetCharPref("image.animation_mode", animationMode); animationMode: "normal", "none", "once" Moz 0.8 Applets SetBoolPref("browser.accept.applets", acceptApplets); No Scripts SetBoolPref("browser.accept.scripts", acceptScripts); No Popup windows // Turn window.open off f...
Gecko info for Windows accessibility vendors
. K-Meleon: a light, ultra-fast and more advanced (fully configurable) Gecko-based web browser available on the Windows platform XUL-Based Clients (support MSAA) XUL-based clients make full use of the Gecko architecture, not only for HTML content, as well as for menus, dialogs and the entire user interface via an XML language called XUL (eXtensible User-interface Language). None of the user interface contains standard Windows controls -- not even the menus! This is done to ensure a common look and feel across all supported platforms, and to allow for different skins (appearances). Firefox (please use version 1.1 alpha builds or later) Thunderbird (please use version 1.1 alpha builds or later) Mozilla Seamonkey (please use 1.8 alpha builds or later)...
Multiprocess on Windows
is should be the IID that we want the interceptor to actually use when wrapping the array element. mLengthParamIndex is the index of the out parameter that contains the length of the array (excluding the this pointer). The interceptor needs to be able to read this parameter to know how many interface pointers exist in the array. mFlag may currently be set to one of two values: ArrayData::Flag::eNone or ArrayData::Flag::eAllocatedByServer. Setting eAllocatedByServer signals to the interceptor that the array is allocated within the method's implementation by calling CoTaskMemAlloc(). Using the interceptor in a11y code Unlike the built in COM marshaling schemes, we must explicitly wrap any COM objects that we want to expose, through the MTA with interceptors. The function call to wrap a COM ...
Mozilla’s UAAG evaluation report
d/remove toolbar icons Bug 47418 is for the ability to rearrange toolbars Guideline 12. Provide accessible user agent documentation and help. Checkpoint Title Status Notes/plans 12.1 Accessible documentation. (P1) NR Some end user docs are under Help, Help Contents in Mozilla Here is the main page for Mozilla end user documentation None of these resources have been evaluated for WCAG compliance 12.2 Document accessibility features. (P1) NI No end user accessibility documentation yet 12.3 Document default bindings. (P1) NI No end user accessibility documentation yet 12.4 Document changes. (P2) NI No end user accessibility documentation yet 12.5 Dedicated section on accessi...
Debugging Table Reflow
Leaving AssignNonPctColWidths shows that already to all columns a width of 360 twips has been assigned AssignNonPctColWidths ex ***START TABLE DUMP*** mColWidths=360 360 360 360 col frame cache -> 0=00B93138 1=00B931F0 2=024DD728 3=024DD780 **START COL DUMP** colIndex=0 isAnonymous=0 constraint=0 widths=360 540 1230 -1 -1 -1 -1 -1 -1 360 **END COL DUMP** **S...
Debugging on Mac OS X
and typing in the name of a file.) In the Product menu, select Scheme > New Scheme and name your scheme (for example, "Debug"). After you click OK, Xcode should open the settings window for the new scheme. (If not, then open its settings from the Product > Edit Scheme menu.) Select "Run" on the left-hand side of the settings window, then select the "Info" tab. Set the Executable by clicking on "None" and selecting "Other...". A new dialog titled "Choose an executable to launch" will pop up. Browse to the .app file that you want to debug (Firefox.app, NightlyDebug.app etc). The .app file is typically found inside the dist folder in your build directory. If you are debugging Firefox, Thunderbird, or some other application that supports multiple profiles, using a separate profile for debugging...
SVG Guidelines
stead of introducing a class just for that shape. You can also use SVG grouping to avoid duplicating those attributes Avoid introducing variants of the same file (color/style variants), and use sprites instead (with class names) Default style values There's usually no need to set the default style value unless you're overriding a style. Here are some commonly seen examples: style="display: none;" on <defs> elements (a <defs> element is hidden by default) type="text/css" on <style> elements stroke: none or stroke-width: 0 SVG grouping Style grouping Group similarly styled shapes under one <g> tag; this avoids having to set the same class/styles on many shapes. Avoid excessive grouping Editors can sometimes do excessive grouping while exporting SVGs. This is due to the way editors...
mach
ging manager, the settings object, and information about available mach commands. The arguments registered with @CommandArgument are passed to your method as keyword arguments using the **kwargs calling convention. So, you should define default values for all of your method's arguments. The return value from the @Command method should be the integer exit code from the process. If not defined or None, 0 will be used. Registering mach Command Providers Once you've written a Python module providing a mach command, you'll need to register it with mach. There are two ways to do this. If you have a single file, the easiest solution is probably to register it as a one-off inside build/mach_bootstrap.py. There should be a Python list of paths named MACH_MODULES or similar. Just add your file to t...
Displaying Places information using views
dexInParent" /> <splitter class="tree-splitter" /> <treecol id="parity" label="parity" /> </treecols> <treechildren /> </tree> The full code listing is available in the Files section of the page below. Note that the tree element above does not have the special type attribute common to the built-in views. It's just a regular tree element that you've hooked up to a Places query, with none of the convenience properties or methods of the built-in Places tree view. If your custom view is used only once in your application, code similar to the above will likely be sufficient; it's enough to create a single PlacesTreeView object, modify it, and attach it to a regular tree. If your view is widely used, however, you may want to take a cue from the built-in tree view and create your own J...
Message manager
Message managers provide a way for chrome-privileged JavaScript code to communicate across process boundaries. They are particularly useful for allowing chrome code, including the browser's code and extension's code, to access web content while the browser is running web content in a separate process. These guides explain how to use message managers in multiprocess Firefox. Note that none of this requires multiprocess Firefox: everything described here will work with single-process Firefox, so the same code will work on both variants. Guides Message manager overview Frame script loading and lifetime Communicating with frame scripts Performance Best Practices Frame script environment Limitations of frame scripts Process scripts API reference...
Firefox UI considerations for web developers
con" href="/dist/images/icons/favicon.ico"> <link rel="apple-touch-icon-precomposed" href="/dist/images/icons/apple-touch-icon.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/dist/images/icons/apple-touch-icon_72.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/dist/images/icons/apple-touch-icon@2x.png"> Firefox starts by looking for an SVG icon; there is none. So it then goes on to look through the rich icons. Here, there are three of them, each specified as apple-touch-icon-precomposed. Since none of them are 96 pixels wide, the smallest icon which is at least 96 pixels wide is chosen; that's the 114x114 pixel apple-touch-icon@2x.png file. That image is then scaled down to be 96 pixels wide and is used in the user interface as seen in the example. ...
HTMLIFrameElement.clearMatch()
dAll() or findNext(). Invoking this method results in a mozbrowserfindchange event firing, which carries details about the search results. Note: Use of the Browser API requires a privileged app, and browser and/or embed-apps permissions, depending on what you want to do. See Using the Browser API for more details. Syntax instanceOfHTMLIframeElement.clearMatch(); Returns Void. Parameters None. Examples The following function is taken from our Browser API demo, and (amongst other things) clears the search results when the search bar is hidden, if an existing search is active. See Implementing the search bar for more explanation. searchToggle.addEventListener('touchend',function() { if(search.getAttribute('class') === 'search') { search.setAttribute('class', 'search shifted'); ...
HTMLIFrameElement.getActive()
etween implementations and the behavior may change in the future. The getActive() method of the HTMLIFrameElement indicates whether the current browser <iframe> is the currently active frame. Syntax var amIActive = instanceOfHTMLIframeElement.getActive(); Returns A Boolean indicating whether the current browser <iframe> is the currently active frame (true) or not (false.) Parameters None. Example var browser = document.querySelector('iframe'); var amIActive = browser.getActive(); Specification Not part of any specification. ...
HTMLIFrameElement.getCanGoBack()
ure. The getCanGoBack() method of the HTMLIFrameElement interface is used to indicate whether it's possible to go back in the navigation history of the browser <iframe>. Syntax instanceOfHTMLIframeElement.getCanGoBack() .then(function(result) { ... }); Returns A Promise that resolves with a boolean that equals true if the history can be navigated backward or false if not. Parameters None. Example function canMoveBwd() { browser.getCanGoBack().then(function(result) { if (result) { back.disabled = false; console.log("It's possible to navigate the history backward."); } else { back.disabled = true; console.log("It's not possible to navigate the history backward."); } }); } Specification Not part of any...
HTMLIFrameElement.getCanGoForward()
uture. The getCanGoForward() method of the HTMLIFrameElement is used to indicate whether it's possible to go forward in the navigation history of the browser <iframe>. Syntax instanceOfHTMLIframeElement.getCanGoForward() .then(function(result) { ... }); Returns A Promise that resolves with a boolean that equals true if the history can be navigated forward or false if not. Parameters None. Example function canMoveFwd() { browser.getCanGoForward().then(function(result) { if (result) { fwd.disabled = false; console.log("It's possible to navigate the history forward."); } else { fwd.disabled = true; console.log("It's not possible to navigate the history forward."); } }); } Specification Not part of any ...
HTMLIFrameElement.getContentDimensions()
.scrollHeight. Syntax var instanceOfDOMRequest = instanceOfHTMLIframeElement.getContentDimensions(); Returns A DOMRequest for handling the dimensions request. Its request.onsuccess handler handles the success case, and its request.onerror handler handles the failure case. The X and Y dimensions are available in the request.result.x and request.result.y properties, respectively. Parameters None. Examples var browser = document.querySelector('iframe'); var request = browser.getContentDimensions(); request.onsuccess = function() { console.log("page size:", request.result.width + "x" + request.result.height); } request.onerror = function() { console.log("Download error"); } Specification Not part of any specification. ...
HTMLIFrameElement.getManifest()
Warning: Removed in Firefox 65. The getManifest() method of the HTMLIFrameElement interface retrieves the manifest of an app loaded in the browser <iframe> and returns it as JSON. Syntax instanceOfHTMLIframeElement.getManifest().then(function(json) { ... }); Parameters None. Return value A promise that resolves to a JSON object representation of the loaded app's manifest. Examples var browser = document.querySelector('iframe'); browser.addEventListener('mozbrowserloadend',function() { var request = browser.getManifest().then(function(json) { console.log(json); }); }); Specification Not part of any specification. ...
HTMLIFrameElement.getMuted()
the get muted request. It has an onsuccess handler to handle the success case, and an onerror handler to handle the failure case. The muted value is available in the request.result property, and is a Boolean value -- true means muted, and false means unmuted. Promise version: A Promise that resolves with the muted value -- a Boolean where true means muted, and false means unmuted. Parameters None. Example Callback version: var browser = document.querySelector('iframe'); var request = browser.getMuted(); request.onsuccess = function() { if(request.result) { console.log('The browser is muted.'); } else { console.log('The browser is unmuted.'); } } Promise version: var browser = document.querySelector('iframe'); browser.getMuted().then(function(muted) { if(muted) { ...
HTMLIFrameElement.getStructuredData()
in the HTML loaded in the browser <iframe> and returns it as JSON. Syntax var instanceOfDOMRequest = instanceOfHTMLIframeElement.getStructuredData(); Returns A DOMRequest to handle the getStructuredData() request's success and error cases. If the request is successful, the request.result is a JSON object representation of all microdata contained on the page loaded in the browser. Parameters None. Examples var browser = document.querySelector('iframe'); browser.addEventListener('mozbrowserloadend',function() { var request = browser.getStructuredData(); request.onsuccess = function() { console.log(request.result); } }); Running this code in a Browser API app and then loading up a page that contains microdata (such as the website of British alt-country band Salter Cane) will re...
HTMLIFrameElement.getVisible()
method of the HTMLIFrameElement is used to request the current visible state of the browser <iframe>. Syntax instanceOfDOMRequest = instanceOfHTMLIframeElement.getVisible(); Returns A DOMRequest object to handle the getVisible() request's success and error cases. If the request is successful, the request's result is a Boolean indicating the visible state of the browser <iframe>. Parameters None. Example var browser = document.querySelector('iframe'); var request = browser.getVisible(); request.onsuccess = function() { console.log('The visible state is: ' + this.result ? 'true' : 'false'); } Specification Not part of any specification. ...
HTMLIFrameElement.getVolume()
ersion: A DOMRequest that represents the get volume request. It has an onsuccess handler to handle the success case, and an onerror handler to handle the failure case. The volume value is available in the request.result property, and is a floating point number between 0 and 1. Promise version: A Promise that resolves with the volume value -- a floating point number between 0 and 1. Parameters None. Example Callback version: var browser = document.querySelector('iframe'); var request = browser.getVolume(); request.onsuccess = function() { console.log('The current browser volume is ' + request.result); } Promise version: var browser = document.querySelector('iframe'); browser.getVolume().then(function(volume) { console.log('The current browser volume is ' + volume); }); Specif...
HTMLIFrameElement.goBack()
he HTMLIFrameElement interface is used to navigate backwards in the browser <iframe>'s history. By calling this method, the browser <iframe> changes its location for the previous location available in its navigation history, which sends a series of related events: mozbrowserlocationchange, mozbrowserloadstart, and so on. Syntax instanceOfHTMLIframeElement.goBack(); Returns Void. Parameters None. Examples back.addEventListener('touchend',function() { browser.goBack(); }); Specification Not part of any specification. ...
HTMLIFrameElement.goForward()
d() method of the HTMLIFrameElement is used to navigate forward in the browser <iframe>'s history. By calling this method, the browser <iframe> changes its location to the next location available in its navigation history, which sends a series of related events: mozbrowserlocationchange, mozbrowserloadstart and so on. Syntax instanceOfHTMLIframeElement.goForward(); Returns Void. Parameters None. Examples fwd.addEventListener('touchend',function() { browser.goForward(); }); Specification Not part of any specification. ...
mozbrowseractivitydone
in its manifest does not include returnValue or returnValue is false, no mozbrowseractivitydone event will be generated as of the landing of bug 1194525 in Firefox OS 2.5. postResult and postError calls made on such an activity will be ignored and have no effect. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserasyncscroll
sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserasyncscroll event is fired when the content of a browser <iframe> is scrolled. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowseraudioplaybackchange
eb: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowseraudioplaybackchange event is fired when audio starts or stops playing within a browser <iframe>. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Boolean Ind...
mozbrowsercaretstatechanged
tween implementations and the behavior may change in the future. The mozbrowsercaretstatechanged event is fired when the user selects content in a page loaded in a browser <iframe>. This is used by the embedder to show a context menu for clipboard actions. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserclose
he Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserclose event is fired when the content of a browser <iframe> calls the window.close() method. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. Ex...
mozbrowsercontextmenu
ompatibilities between implementations and the behavior may change in the future. The mozbrowsercontextmenu event is fired when the user tried to access a context menu over a browser <iframe>. This event can be used to control what will appear in the menu. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserdocumentfirstpaint
: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserdocumentfirstpaint event is fired when a new paint occurs on any document in the browser <iframe>. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. Ex...
mozbrowsererror
b: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowsererror event is fired when an error occurs while trying to load content within a browser <iframe>. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserfindchange
nd the behavior may change in the future. The mozbrowserfindchange event is fired when a search method is invoked in the browser <iframe> content. This includes HTMLIFrameElement.findAll(), HTMLIFrameElement.findNext(), and HTMLIFrameElement.clearMatch(). General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserfirstpaint
re may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserfirstpaint event is fired when the <iframe> paints content for the first time (this doesn't include the initial paint from about:blank). General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. Ex...
mozbrowsericonchange
ions and the behavior may change in the future. The mozbrowsericonchange event is sent when a new icon (e.g. <link rel="icon"> or <link rel="apple-touch-icon">) is available in the browser <iframe>'s content. It will be fired once for each icon available. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserloadend
zbrowserloadend event is fired when the browser <iframe> has finished loading all its assets, or has failed to load. This can be used when the embedder wants to stop spinning a loading indicator, or update the UI in some other way to indicate loading is complete. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserloadstart
in the future. The mozbrowserloadstart event is fired when the browser <iframe> starts to load a new page. This can be used when the embedder wants to start spinning a loading indicator, or update the UI in some other way to indicate loading has started. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The event target (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. Ex...
mozbrowserlocationchange
for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserlocationchange event is fired when a browser <iframe>'s location changes -- it is fired every time navigation occurs. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowsermanifestchange
or may change in the future. The mozbrowsermanifestchange event is fired when the manifest location of the app loaded in the browser <iframe> changes. By this, we are referring to the href of the manifest, as defined in <link rel="manifest" href=" ... ">. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowsermetachange
also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowsermetachange event is fired when a <meta> element related to web applications is added, removed or changed. See below for the applicable types. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowseropensearch
between implementations and the behavior may change in the future. The mozbrowseropensearch event is fired when a link to a search engine is found -- i.e. when an instance of <link rel="search" type="application/opensearchdescription+xml"> is encountered. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowseropentab
implementations and the behavior may change in the future. The mozbrowseropentab event is fired when a new tab is opened within a browser <iframe> as a result of the user issuing a command to open a link target in a new tab (for example ctrl/cmd + click.) General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowseropenwindow
red -- usually when the content of a browser <iframe> successfully calls the window.open() method, or the user clicks on a link with an unknown target. The embedder must use the <iframe> passed in the event.details.frameElement property as the new window content. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserresize
sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserresize event is fired when a browser <iframe> viewport is resized in some way. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserscroll
on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserscroll event is fired when the browser <iframe> content scrolls. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserscrollareachanged
mplementations and the behavior may change in the future. The mozbrowserscrollareachanged event is fired when the available scrolling area in the browser <iframe> changes. This can occur on resize and when the page size changes (while loading for example.) General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserscrollviewchange
ng the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowserscrollviewchange event is fired when asynchronous scrolling (i.e. APCZ) starts or stops. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowsersecuritychange
user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowsersecuritychange event is fired when the browser <iframe> has connected to the server, and when the mixed content state changes. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowserselectionstatechanged
avior may change in the future. The mozbrowserselectionstatechanged event is fired when the text selected inside the browser <iframe> content changes. Note that this is deprecated, and current implementations should use mozbrowsercaretstatechanged instead. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowsershowmodalprompt
y also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowsershowmodalprompt event is fired when the content of a browser <iframe> calls the window.alert(), window.confirm(), or window.prompt() methods. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowsertitlechange
for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mozbrowsertitlechange event is fired when the title of a browser <iframe> (i.e. the contents of the <title> element) changes. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. detail Read only String The t...
mozbrowserusernameandpasswordrequired
ired when the content within a browser <iframe> requires an HTTP authentification. The embedder is supposed to retrieve the necessary credentials, usually using a dialog or a database of username/passwords, and then call authenticate() or cancel() as appropriate. General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
mozbrowservisibilitychange
be large incompatibilities between implementations and the behavior may change in the future. The mozbrowservisibilitychange event is fired when the visibility state of the current browser iframe <iframe> changes, for example due to a call to setVisible(). General info Specification Non standard Interface CustomEvent Bubbles Yes Cancelable Yes Target <iframe> Default Action None Properties Property Type Description target Read only EventTarget The browser iframe type Read only DOMString The type of event. bubbles Read only Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A cu...
HTMLIFrameElement.mute()
Mozilla › Gecko › Chrome › API › Browser API › mute
d and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The mute() method of the HTMLIFrameElement mute any audio playing in the browser <iframe>. Syntax instanceOfHTMLIframeElement.mute(); Returns Void. Parameters None. Example var browser = document.querySelector('iframe'); browser.mute(); Specification Not in a specification. ...
HTMLIFrameElement.purgeHistory()
rsion and a Promise version: var myDOMRequest = instanceOfHTMLIframeElement.purgeHistory(); instanceOfHTMLIframeElement.purgeHistory().then(function() { ... }); Returns Either A DOMRequest object that returns an onsuccess handler if the history is deleted, or an onerror handler if not. A Promise that resolves, with no parameters, if the history is deleted, or rejects if not. Parameters None. Examples DOMRequest: var browser = document.querySelector('iframe'); var request = browser.purgeHistory(); request.onsuccess = function() { console.log('History deleted!'); } request.onerror = function() { console.error(this.error.name); } Promise: var browser = document.querySelector('iframe'); browser.purgeHistory().then(function() { console.log('History deleted!'); }, function(...
HTMLIFrameElement.stop()
Mozilla › Gecko › Chrome › API › Browser API › stop
a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The stop() method of the HTMLIFrameElement interface is used to stop loading the content of the <iframe>. Syntax instanceOfHTMLIframeElement.stop(); Returns Void. Parameters None. Examples stopReload.addEventListener('touchend',function() { if(stopReload.textContent === 'x') { browser.stop(); } else { browser.reload(); } }); Specification Not part of any specification. ...
HTMLIFrameElement.unmute()
s not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The unmute() method of the HTMLIFrameElement unmutes any audio playing in the browser <iframe>. Syntax instanceOfHTMLIframeElement.unmute(); Returns Void. Parameters None. Example var browser = document.querySelector('iframe'); browser.unmute(); Specification Not part of any specification. ...
MozScrolledAreaChanged
nt size, reading these properties can trigger document reflow, which can make them computationally expensive. This event, introduced in Gecko 1.9.2, is fired whenever either or both of these values change. Specification Mozilla specific Interface UIEvent Bubbles Yes Cancelable Yes Target DefaultView, Document Default Action None Properties Property Type Description targetRead only EventTarget The event target (the topmost target in the DOM tree). typeRead only DOMString The type of event. bubblesRead only Boolean Whether the event normally bubbles or not. cancelableRead only Boolean Whether the event is cancellable or not. ...
smartcard-insert
typeRead only DOMString The type of event. ...
smartcard-remove
typeRead only DOMString The type of event. ...
Roll your own browser: An embedding how-to
Here is that effort. I have created a directory under embedding called config. ...
How Mozilla determines MIME Types
/xml. The Image Library will be asked for the MIME type given the content. This should allow reliable detection of all image types Mozilla supports. Checks whether the data is HTML by looking for some common HTML tags. The URI is handed to the ExternalHelperAppService for MIME type guessing If all else fails, the buffer (i.e. the first few bytes of the file) is searched for embedded nulls; if none are found, text/plain will be used, otherwise application/octet-stream. ExternalHelperAppService (located at uriloader/exthandler/nsExternalHelperAppService.cpp) The file->MIME type mapping works like this: On BeOS, the operating system is asked for the type of the file (not quite yet, bug 217723) On MacOS, the type and creator code will be used to lookup the type of the file from the OS ...
API-provided widgets
label string to use for the label of the widget removable whether the widget is removable (optional, default: true). NB: if you specify false here, you must provide a defaultArea, too. overflows whether widget can overflow when in an overflowable toolbar (optional, default: true) defaultArea default area to add the widget to (optional, default: none; required if non-removable) shortcutId id of an element that has a shortcut for this widget (optional, default: null). This is only used to display the shortcut as part of the tooltip for builtin widgets (which have strings inside customizableWidgets.properties). If you're in an add-on, you should not set this property, and should instead include the shortcut as part of the tooltiptex...
DownloadList
Promise removeView(Object aView); void removeFinished([optional] Function aFilterFn); Methods getAll() Retrieves a snapshot of the downloads that are currently in the list. The returned array does not change when downloads are added or removed, though the Download objects it contains are still updated in real time. Promise<Array<Download>> getAll(); Parameters None. Promise resolves to An array of Download objects. add() Adds a new download to the end of the items list. Note: When a download is added to the list, its onchange event is registered by the list, thus it cannot be used to monitor the download. To receive change notifications for downloads that are added to the list, use the addView() method to register for onDownloadChanged notifications. Pro...
DownloadTarget
n the current state as indicated by the file system. If the download is in progress or has been finalized, this method does nothing and returns a resolved Promise. Calling this method lets the Download object's properties be updated if the user moves or deletes the target file or its associated ".part" file, which contains a partially-downloaded file's contents. Promise refresh(); Parameters None. Promise resolves to undefined when the state of the download has been updated. Promise can be rejected with Never. ...
FxAccountsProfileClient.jsm
tsProfileClient FxAccountsProfileClient( Object options String serverURL, String token ); Parameters serverURL - Firefox Profile server url. token - Firefox Accounts OAuth Bearer token. Return value A newly created FxAccountsProfileClient object implementing the methods described in this article. Methods fetchProfile() Fetches Firefox Accounts profile information. Parameters None Return value Promise Resolves: Object - Successful response from the '/profile' endpoint. Rejects: FxAccountsProfileClientError - Profile client error. Examples Using the FxAccountsProfileClient Chrome code let client = new FxAccountsProfileClient({ serverURL: "https://profile.accounts.firefox.com/v1", token: "FXA_OAUTH_BEARER_TOKEN", }); client.fetchProfile().then(profile => ...
OSFile.jsm
s primitives for manipulating files out of the main thread. F.A.Q. What is OS.File? OS.File is a new API designed for efficient, off-main thread, manipulation of files by privileged JavaScript code. This API is intended to replace, in time, most XPCOM-based manipulation of files (nsIFile, subsets of nsIIOService, etc.) by JavaScript code. What are the relationships with the HTML5 File API? None, really. The File API is designed for high-level, highly-restricted manipulation of files by web applications. OS.File is designed for efficient, unrestricted, manipulation of files by Firefox itself and by add-ons. Why is Off Main Thread File I/O important? One thing that all developers need to remember is that the duration of a File I/O operation is unbounded. Depending on the current load of...
PopupNotifications.jsm
nge() The consumer can call this method to let the popup notification module know that the current browser's location has changed. This lets the notification service update the active notifications as appropriate. Note: You shouldn't need to call this when using the PopupNotifications object in Firefox windows; Firefox code takes care of this automatically. void locationChange(); Parameters None. getNotification() Retrieve a Notification object associated with the browser/ID pair. Notification getNotification( string id XULElement browser ); Parameters id The Notification ID to search for. browser The XUL <xul:browser> element whose notifications should be searched. If null, the currently selected <xul:browser>'s notifications will be searched. Return value The correspond...
Promise.jsm
od for details. Promises may also be created using the new Promise() constructor. Method overview Deferred defer(); Obsolete since Gecko 30 Promise resolve([optional] aValue); Promise reject([optional] aReason); Methods defer() Creates a new pending promise and provides methods to resolve or reject it. Deferred defer(); Obsolete since Gecko 30 Parameters None. Return value A new object, containing the new promise in the promise property, and the methods to change its state in the resolve and reject properties. See the Deferred documentation for details. resolve() Creates a new promise fulfilled with the specified value, or propagates the state of an existing promise. Promise resolve( aValue ); Parameters aValue Optional If this value is n...
PromiseUtils.jsm
e://gre/modules/PromiseUtils.jsm"); Method overview Deferred defer(); Methods defer() Creates a new pending Promise and provides methods to resolve or reject this Promise. This method was previously implemented as Promise.defer(), which is obsolete since Gecko 30. And PromiseUtils.defer uses DOM Promise instead of Promise.jsm's Promise. Deferred defer(); Parameters None. Return value A new object, containing the new promise in the promise property, and the methods to change its state in the resolve and reject properties. See the Deferred documentation for details. ...
WebChannel.jsm
tion(id, message, senderContext) parameters. id - WebChannel id of the incoming messages message - incoming message object senderContext - incoming message context - this should be treated as an opaque object and passed to the .send() method stopListening() Resets the callback for messages on this channel. Removes the channel from the WebChannelBroker. Parameters None send() Sends messages over the WebChannel id using the "WebChannelMessageToContent" event. Parameters message The message object that will be sent senderContext The senderContext parameter passed to the .listen method. Examples Setting up a WebChannel between chrome code and a webpage Chrome code let channel = new WebChannel(webChannelId, Services.io.newURI("https://m...
openLocationLastURL.jsm
the OpenLocationLastURL.value field: var url = OpenLocationLastURL.value; OpenLocationLastURL.value = "http://www.mozilla.org/"; To reset the value of the edit box to the default (which is an empty string), you can call the reset() method: Method overview reset() Methods reset The reset() method resets the saved URL to the default, which is an empty string. reset(); Parameters None. ...
Basics
>2</mn> </msup> <mo>&InvisibleTimes;</mo> <msup> <mi>y</mi> <mn>3</mn> </msup> </mrow> <mo>+</mo> <mrow> <mn>5</mn> <mo>&InvisibleTimes;</mo> <mi>x</mi> <mo>&InvisibleTimes;</mo> <msup> <mi>y</mi> <mn>4</mn> </msup> </mrow> <mo>+</mo> <msup> <mi>y</mi> <mn>5</mn> </msup> </mrow> </maction> </mtd> </mtr> </mtable> </mtd> </mtr> </mtable> </math> </div> CSS Content .control { text-decoration: none; font-weight: bold; font-size: 200%; } input { color: red; } [class="inputmath"] { border: 1px dotted; } JavaScript Content function setSelection(id,value) { document.getElementById(id).setAttribute("selection",value); } function expand() { setSelection("a11","2"); setSelection("a12","2"); setSelection("a13","2"); setSelection("a21","2"); setSelection("a22","2"); setSelection("a23","...
Various MathML Tests
Testing MathML <msub>: a b ; a i ; A I k Testing MathML <msup>: d b 2 a x 2 2 x ( 1 2 ) y a x . Testing MathML <munder>, <mover>, and <munderover>: abcd un abcd ov abcd under over . Testing MathML <msubsup>: a p q a b + c x . ...
Mozilla Web Services Security Model
rectory To allow access to services only within a certain directory (i.e., the directory where the safe, public, non-authenticated services are), you need one web-scripts-access.xml in the root directory of the server and one in the directory containing the services. ...
mozilla::MutexAutoLock
texAutoLocks and vice versa, indefinitely deeply. Important: When a mozilla::MutexAutoLock is the Mutex RAII wrapper most recently pushed on the stack, your code is guaranteed to own the underlying mozilla::Mutex. Constructors MutexAutoLock( in mozilla::Mutex& lock; ); This parameter is a reference so as to guarantee that your code has already properly constructed the mozilla::Mutex. Methods None. See also mozilla::Mutex mozilla::MutexAutoUnlock ...
mozilla::MutexAutoUnlock
ocks and vice versa, indefinitely deeply. Important: When a mozilla::MutexAutoUnlock is the Mutex RAII wrapper most recently pushed on the stack, your code is guaranteed not to own the underlying mozilla::Mutex. Constructors MutexAutoUnlock( in mozilla::Mutex& lock; ); This parameter is a reference so as to guarantee that your code has already properly constructed the mozilla::Mutex. Methods None. See also mozilla::Mutex mozilla::MutexAutoLock ...
A brief guide to Mozilla preferences
is kept separate from other preferences because it can affect how updates are applied. browser/app/profile/firefox.js - defaults specific to Firefox browser/app/profile/firefox-branding.js - defaults specific to the specific kind of Firefox being installed (Nightly, Aurora, Beta, Release) browser/defaults/preferences/firefox-l10n.js - defaults specific to the installed language of Firefox. None of the other preference files contain locale-specific preferences. Config. file A configuration file, usually with .cfg extension, may be called from a default pref file via the general.config.filename preference. This file allows preference locking via the lock_pref() function. Details on the config file is beyond the scope of this document. User pref. files In the profile director...
browser.dom.window.dump.file
browser.dom.window.dump.file redirects the ouput of window.dump() calls to a file whose address is specified in this preference if browser.dom.window.dump.enabled is set to true. Changes require an application restart. Type:string Default value:none Exists by default: no Application support: Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Status: Active; last updated 2012-03-18 Introduction: Pushed to Nightly on 2009-04-24 Bugs: bug 489938 Values The value holds the file system path for the file in which the content of the window.dump() calls get written, e.g. C:\dump.txt . It will be created if it doesn't exist yet. The line breaks have to be in the argument of the dump function, else successive dump calls will get logged into the same line. Related browser.
AsyncTestUtils extended framework
gle message with the subject "my suitcase" with a random sender and random recipient. to: (automatically generated single recipient) A list of recipients, where each recipient is a list whose first element is a (display) name and second element is an email address. For example, {to: [["John Doe", "john_doe@example.com"], ["John Smith", "smitty@example.com"]]} would specify two recipients. cc: (none) A list of recipients like 'to', but in this case the default is zero recipients. from: (automatically generated) A list whose first element is a (display) name and second element is an email address. For example, {count: 4, from: ["John Doe", "john_doe@example.com"]} would result in four messages from John Doe to random recipients. Synthetic message sets The code that creates synthetic mes...
NSPR LOG MODULES
This environment variable specifies which log modules have logging enabled. Syntax moduleName:level[, moduleName:level]* moduleName is the name specified in a PR_NewLogModule call or one of the handy magic names listed below. level is a numeric value between 0 and 5, with the values having the following meanings: 0 = PR_LOG_NONE: nothing should be logged 1 = PR_LOG_ALWAYS: important; intended to always be logged 2 = PR_LOG_ERROR: errors 3 = PR_LOG_WARNING: warnings 4 = PR_LOG_DEBUG: debug messages, notices 5: everything! Description Specify a moduleName that is associated with the name argument in a call to PR_NewLogModule and a non-zero level value to enable logging for the named moduleName. Special log module names are provided for controlling NSPR's log service at executi...
PRLogModuleLevel
The enumerated type PRLogModuleLevel defines levels of logging available to application programs. ...
PR_LOG
Conditionally writes an entry to the log. Syntax #include <prlog.h> void PR_LOG ( PRLogModuleInfo *_module, PRLogModuleLevel _level ... _args); Parameters The macro has these parameters: _module A pointer to a log module structure. _level A level value. Possible values are: PR_LOG_NONE = 0 PR_LOG_ALWAYS = 1 PR_LOG_ERROR = 2 PR_LOG_WARNING = 3 PR_LOG_DEBUG = 4 PR_LOG_NOTICE = PR_LOG_DEBUG PR_LOG_WARN = PR_LOG_WARNING PR_LOG_MIN = PR_LOG_DEBUG PR_LOG_MAX = PR_LOG_DEBUG _args A variable length argument list, as if to printf. Returns Nothing Description This macro formats the specified arguments and writes the output to the log file...
PR_LOG_TEST
Determines if logging is enabled for a module and level. Syntax #include <prlog.h> PRBool PR_LOG_TEST ( PRLogModuleInfo *_module, PRLogModuleLevel _level); Parameters The macro has these parameters: _module A pointer to a log module structure. _level A level value. Possible values are: PR_LOG_NONE = 0 PR_LOG_ALWAYS = 1 PR_LOG_ERROR = 2 PR_LOG_WARNING = 3 PR_LOG_DEBUG = 4 PR_LOG_NOTICE = PR_LOG_DEBUG PR_LOG_WARN = PR_LOG_WARNING PR_LOG_MIN = PR_LOG_DEBUG PR_LOG_MAX = PR_LOG_DEBUG Returns PR_TRUE when logging is enabled for the given module and level, otherwise PR_FALSE. Description This macro tests whether logging is enabled for the specified module...
PR_NewPollableEvent
Create a pollable event file descriptor. Syntax NSPR_API(PRFileDesc *) PR_NewPollableEvent( void); Parameter None. Returns Pointer to PRFileDesc or NULL, on error. ...
PR_Now
Returns The current time as a PRTime value. Description PR_Now() returns the current time as number of microseconds since the NSPR epoch, which is midnight (00:00:00) 1 January 1970 UTC. You cannot assume that the values returned by PR_Now() are monotonically increasing because the system clock of the computer may be reset. ...
Running NSPR tests
test failures are fixed, you should run NSPR tests against a known good version of NSPR on the same platform, and save the test results as the benchmark. Then you can detect regressions of the new version by comparing its test results with the benchmark. Known issues Other issues with the NSPR test suite are: Some of the test programs test the accuracy of the timeout of NSPR functions. Since none of our operating systems is a real-time OS, such test programs may fail when the test machine is heavily loaded. Some tests, such as pipepong and sockpong, should not be run directly. They will be invoked by their companion test programs (e.g., pipeping and sockping). This is not an issue if you run runtests.sh because runtests.sh knows not to run such test programs directly. ...
Function_Name
d the NSSTrustDomain to find the certificate that matches the DER-encoded certificate. A match is found when the issuer and serial number of the DER-encoded certificate are found on a certificate in the certificate database. Returns Full description of the return value, for example: A pointer to a CERTCertificate representing the certificate in the database that matched the derCert, or NULL if none was found. The certificate is a shallow copy, use CERT_DestroyCertificate to decrement the reference count on the certificate instance. See Also Copy of the MXR link, with the following text Occurrences of Function_Name in the current NSS source code (generated by MXR). ...
CERT_FindCertByDERCert
This function looks in the ?NSSCryptoContext? and the ?NSSTrustDomain? to find the certificate that matches the DER-encoded certificate. A match is found when the issuer and serial number of the DER-encoded certificate are found on a certificate in the certificate database. Returns A pointer to a CERTCertificate representing the certificate in the database that matched the derCert, or NULL if none was found. The certificate is a shallow copy, use CERT_DestroyCertificate to decrement the reference count on the certificate instance. See Also Occurrences of CERT_FindCertByDERCert in the current NSS source code (generated by LXR). ...
CERT_FindCertByIssuerAndSN
TIssuerAndSN that must be properly formed to contain the issuer name and the serial number (see [Example]) Description This function creates a certificate key using the issuerAndSN and it then uses the key to find the matching certificate in the database. Returns A pointer to a CERTCertificate representing the certificate in the database that matched the issuer and serial number, or NULL if none was found. The certificate is a shallow copy, use CERT_DestroyCertificate to decrement the reference count on the certificate instance. Example CERTIssuerAndSN issuerSN; issuerSN.derIssuer.data = caName->data; issuerSN.derIssuer.len = caName->len; issuerSN.serialNumber.data = authorityKeyID->authCertSerialNumber.data; issuerSN.serialNumber.len = authorityKeyID->authCertSerialNumber.len; issuer...
Encrypt Decrypt MAC Keys As Session Objects
progName + 1 : argv[0]; /* Parse command line arguments */ optstate = PL_CreateOptState(argc, argv, "c:d:i:o:f:p:z:a"); while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) { switch (optstate->option) { case 'a': ascii = PR_TRUE; break; case 'c': ...
Encrypt and decrypt MAC using token
progName + 1 : argv[0]; /* Parse command line arguments */ optstate = PL_CreateOptState(argc, argv, "c:d:i:o:f:p:z:a"); while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) { switch (optstate->option) { case 'a': ascii = PR_TRUE; break; case 'c': ...
NSS_3.12.2_release_notes.html
839: Add multiple PKCS#11 token password command line option to NSS tools. Bug 432260: [[@ pkix_pl_HttpDefaultClient_HdrCheckComplete - PKIX_PL_Memcpy] crashes when there is no content-length header in the http response Bug 436599: PKIX: AIA extension is not used in some Bridge CA / known certs configuration Bug 437804: certutil -R for cert renewal should derive the subject from the cert if none is specified. Bug 444974: Crash upon reinsertion of E-Identity smartcard Bug 447563: modutil -add prints no error explanation on failure Bug 448431: PK11_CreateMergeLog() declaration causes gcc warning when compiling with -Wstrict-prototypes Bug 449334: pk12util has duplicate options letters Bug 449725: signver is still using static libraries. Bug 450427: Add COMODO ECC Certification ...
NSS_3.12_release_notes.html
f leak at shutdown Bug 391774: PKIX_Shutdown is not called by nssinit.c Bug 393174: Memory leaks in ocspclnt/PKIX. Bug 395093: pkix_pl_HttpCertStore_ProcessCertResponse is unable to process certs in DER format Bug 395224: Don't reject certs with critical NetscapeCertType extensions in libPKIX Bug 395427: PKIX_PL_Initialize must not call NSS_Init Bug 395850: build of libpkix tests creates links to nonexistant shared libraries and breaks windows build Bug 398401: Memory leak in PKIX init. Bug 399326: libpkix is unable to validate cert for certUsageStatusResponder Bug 400947: thread unsafe operation in PKIX_PL_HashTable_Add cause selfserv to crash. Bug 402773: Verify the list of public header files in NSS 3.12 Bug 403470: Strsclnt + tstclnt crashes when PKIX enabled. Bug 403685: Application crash...
NSS 3.15.4 release notes
put lines. New Functions CERT_ForcePostMethodForOCSP CERT_GetSubjectNameDigest CERT_GetSubjectPublicKeyDigest SSL_PeerCertificateChain SSL_RecommendedCanFalseStart SSL_SetCanFalseStartCallback New Types CERT_REV_M_FORCE_POST_METHOD_FOR_OCSP: When this flag is used, libpkix will never attempt to use the HTTP GET method for OCSP requests; it will always use POST. New PKCS #11 Mechanisms None. Notable Changes in NSS 3.15.4 Reordered the cipher suites offered in SSL/TLS client hello messages to match modern best practices. Updated the set of root CA certificates (version 1.96). Improved SSL/TLS false start. In addition to enabling the SSL_ENABLE_FALSE_START option, an application must now register a callback using the SSL_SetCanFalseStartCallback function. When building on Windows...
NSS 3.34.1 release notes
t bit set. (bug 1418678) CN = Certum CA, O=Unizeto Sp. z o.o. SHA-256 Fingerprint: D8:E0:FE:BC:1D:B2:E3:8D:00:94:0F:37:D2:7D:41:34:4D:99:3E:73:4B:99:D5:65:6D:97:78:D4:D8:14:36:24 Removed entries from certdata.txt for actively distrusted certificates that have expired (bug 1409872). The version of the CA list was set to 2.20. New in NSS 3.34 New Functionality None New Functions Bugs fixed in NSS 3.34.1 This Bugzilla query returns all the bugs fixed in NSS 3.34.1: https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&product=NSS&target_milestone=3.34.1 Compatibility NSS 3.34.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared...
NSS 3.40.1 release notes
NSS 3.40.1 requires NSPR 4.20 or newer. NSS 3.40 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_40_1_RTM/src/ New in NSS 3.40.1 New Functionality No new functionality is introduced in this release. This is a patch release to fix CVE-2018-12404 New Functions none Bugs fixed in NSS 3.40.1 Bug 1485864 - Cache side-channel variant of the Bleichenbacher attack (CVE-2018-12404) Compatibility NSS 3.40.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.40.1 shared libraries without recompiling or relinking. Furthermore, applications...
NSS 3.40 release notes
s NSPR 4.20 or newer. NSS 3.40 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_40_RTM/src/ New in NSS 3.40 New Functionality The draft-00 version of encrypted SNI support is implemented tstclnt now takes -N option to specify encrypted SNI key New Functions none Notable Changes in NSS 3.40 The mozilla::pkix library has been ported from Mozilla PSM to NSS. This is a C++ library for building certification paths. mozilla::pkix APIs are not exposed in the libraries NSS builds. It is easier to build NSS on Windows in mozilla-build environments. The following CA certificates were Removed: CN = Visa eCommerce Root SHA-256 Fingerprint: 69FAC9B...
NSS 3.41 release notes
_3_41_RTM/src/ New in NSS 3.41 New Functionality Bug 1252891 - Implemented EKU handling for IPsec IKE. Bug 1423043 - Enable half-closed states for TLS. ...
NSS 3.43 release notes
-256 Fingerprint: 125609AA301DA0A249B97A8239CB6A34216F44DCAC9F3954B14292F2E8C8608F CN = emSign ECC Root CA - C3 SHA-256 Fingerprint: BC4D809B15189D78DB3E1D8CF4F9726A795DA1643CA5F1358E1DDB0EDC0D7EB3 CN = Hongkong Post Root CA 3 SHA-256 Fingerprint: 5A2FC03F0C83B090BBFA40604B0988446C7636183DF9846E17101A447FB8EFD6 The following CA certificates were Removed: None Bugs fixed in NSS 3.43 Bug 1528669 and Bug 1529308 - Improve Gyp build system handling Bug 1529950 and Bug 1521174 - Improve NSS S/MIME tests for Thunderbird Bug 1530134 - If Docker isn't installed, try running a local clang-format as a fallback Bug 1531267 - Enable FIPS mode automatically if the system FIPS mode flag is set Bug 1528262 - Add a -J option to the strsclnt command to sp...
NSS Config Options
-RSA DH-DSS ECDHE-ECDSA ECDHE-RSA ECDH-ECDSA ECDH-RSA Restrictions for asymmetric keys (integers) RSA-MIN DH-MIN DSA-MIN Constraints on SSL Protocols Versions (integers) TLS-VERSION-MIN TLS-VERSION-MAX Constraints on DTLS Protocols Versions (integers) DTLS-VERSION-MIN DTLS-VERSION-MAX Policy flags for algorithms SSL SSL-KEY-EXCHANGE KEY-EXCHANGE CERT-SIGNATURE SIGNATURE ALL NONE ...
Enc Dec MAC Output Public Key as CSR
progName + 1 : argv[0]; /* Parse command line arguments */ optstate = PL_CreateOptState(argc, argv, "c:d:i:o:f:p:z:a:s:r:"); while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) { switch (optstate->option) { case 'a': ascii = PR_TRUE; break; case 'c': ...
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
ey matching cert in header */ int main(int argc, char **argv) { SECStatus rv; PLOptState *optstate; PLOptStatus status; PRBool initialized = PR_FALSE; CommandType cmd = UNKNOWN; const char *dbdir = NULL; secuPWData pwdata = { PW_NONE, 0 }; char *subjectStr = NULL; CERTName *subject = 0; unsigned int serialNumber = 0; char *serialNumberStr = NULL; char *trustStr = NULL; CERTCertDBHandle *certHandle; const char *nickNameStr = NULL; char ...
Encrypt Decrypt_MAC_Using Token
progName + 1 : argv[0]; /* Parse command line arguments */ optstate = PL_CreateOptState(argc, argv, "c:d:i:o:f:p:z:a"); while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) { switch (optstate->option) { case 'a': ascii = PR_TRUE; break; case 'c': ...
NSS Sample Code Sample_3_Basic Encryption and MACing
progName + 1 : argv[0]; /* Parse command line arguments */ optstate = PL_CreateOptState(argc, argv, "c:d:i:o:f:p:z:a"); while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) { switch (optstate->option) { case 'a': ascii = PR_TRUE; break; case 'c': ...
NSS Sample Code Utilities_1
/* terminate passphrase */ phrases[i++] = '\0'; /* clean up any EOL before the start of the next passphrase */ while ( (i<nb) analyze="" char="" current="" getmodulepassword="" if="" int="" now="" passphrase="" phrase="&amp;phrases[startphrase];" phraselen="" pk11slotinfo="" pwdata="=" pwdata-="" retry="" return="" secupwdata="" the="" void="" while="">source != PW_NONE) { PR_fprintf(PR_STDERR, "Incorrect password/PIN entered.\n"); return NULL; } switch (pwdata->source) { case PW_NONE: sprintf(prompt, "Enter Password or Pin for \"%s\":", PK11_GetTokenName(slot)); return GetPassword(stdin, stdout, prompt, CheckPassword); case PW_FROMFILE: pw = FilePasswd(slot, retry, pwdata->data); p...
EncDecMAC using token object - sample 3
progName + 1 : argv[0]; /* Parse command line arguments */ optstate = PL_CreateOptState(argc, argv, "c:d:i:o:f:p:z:a"); while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) { switch (optstate->option) { case 'a': ascii = PR_TRUE; break; case 'c': command = strdup(optstate->value); break; case 'd': dbdir = strdup(optstate->val...
sample2
#10 CSR * 2. Input and store a cert in cert DB and also used to input, store and trust CA cert. * 3. Like sample 5, but puts cert in header * 4. ...
nss tech note8
sl3_sid_timeout; (*ss->sec.cache)(sid); The cache API was defined such that the caller MUST set creationTime properly, and may set expirationTime to the desired value or to zero. If zero, then the called cache function would compute the correct expiration time by adding the chosen timeout (from one of those two global variables) to the SID's creationTime, giving the expirationTime. However, none of the callers relied on the ability of the respective cache functions to be able to compute the expiration time. All callers computed the expiration times explicitly, as shown above. The server side of the session cache code was largely rewritten for NSS 3.4. The objectives were to make the server session cache faster, and to fix bugs that caused corruption in multi-process servers, and also ...
FC_FindObjects
ocation to receive the object handles. usMaxObjectCount [in] maximum number of handles to retrieve. pusObjectCount [out] pointer to location to receive the number of returned handles. Description FC_FindObjects returns the next set of object handles matching the criteria set up by the previous call to FC_FindObjectsInit and sets the object count variable to their number or to zero if there are none. Return value Examples See also FC_FindObjectsInit, NSC_FindObjects ...
FC_SetOperationState
session. pOperationState [in] pointer to a byte array containing the operation state. ulOperationStateLen [in] contains the total length (in bytes) of the operation state. hEncryptionKey [in] handle of the encryption or decryption key to be used in in a stored session or zero if no key is needed. hAuthenticationKey [in] handle of the authentication key to be used in the stored session or zero if none is needed. Description FC_SetOperationState restores the cryptographic operations state of a session from an array of bytes obtained with FC_GetOperationState. This function only works for digest operations for now. Therefore, a user may call FC_SetOperationState without logging into the token (to assume the NSS User role). Return value Examples See also FC_GetOperationState, NSC_SetOp...
NSS environment variables
work in progress and is not yet complete. Variable Type Description Introduced in version BUILD_OPT Boolean (1 to enable) Do an optimized (not DEBUG) build. Default is to do a DEBUG build. Before 3.0 MOZ_DEBUG_SYMBOLS Boolean (1 to enable) Needed on Windows to build with versions of MSVC (such as VC8 and VC9) that do not understand /PDB:NONE 3.11 MOZ_DEBUG_FLAGS String When MOZ_DEBUG_SYMBOLS is set, you may use MOZ_DEBUG_FLAGS to specify alternative compiler flags to produce symbolic debugging information in a particular format. 3.12.8 NSDISTMODE String On operating systems other than Windows, this controls whether copies, absolute symlinks, or relative symlinks of the output files should be p...
sslfnc.html
epermitted for use in an SSL session. They do not determine which cipher suites are actuallyenabled--that is, turned on and ready to use. To enable or disable a permitted cipher suite, use SSL_CipherPrefSetDefault; but bear in mind that SSL_CipherPrefSetDefault can't enable any cipher suite that is not explicitly permitted as a result of a call to one of the export policy functions. By default, none of the cipher suites supported by SSL are permitted. The functions NSS_SetDomesticPolicy, NSS_SetExportPolicy, and NSS_SetFrancePolicy permit the use of approved cipher suites for domestic, international, and French versions, respectively, of software products with encryption features. The policy settings permitted by these functions conform with current U.S. export regulations as understood by N...
NSS Tools modutil
ses The Security Module Database Tool displays information similar to this: Using database directory c:\databases...--------------------------------------------------------Name: Netscape Internal PKCS #11 ModuleLibrary file: **Internal ONLY module**Manufacturer: Netscape Communications Corp Description: Communicator Internal Crypto SvcPKCS #11 Version 2.0Library Version: 4.0Cipher Enable Flags: NoneDefault Mechanism Flags: RSA:DSA:RC2:RC4:DES:SHA1:MD5:MD2Slot: Communicator Internal Cryptographic Services Version 4.0Manufacturer: Netscape Communications Corp Type: SoftwareVersion Number: 4.1Firmware Version: 0.0Status: EnabledToken Name: Communicator Generic Crypto SvcsToken Manufacturer: Netscape Communications Corp Token Model: Libsec 4.0 Token Serial Number: 0000000000000000Token Version: ...
Index
Reference, SpiderMonkey A JSExceptionState object is returned by the JS_SaveExceptionState function, and is passed to functions JS_RestoreExceptionState and JS_DropExceptionState. 100 JSExnType JSAPI Reference, Reference, Reference(2), SpiderMonkey These types are part of a JSErrorFormatString structure. They define which error to throw in case of a runtime error. JSEXN_NONE marks an unthrowable error. 101 JSExtendedClass JSAPI Reference, Obsolete, SpiderMonkey To implement a custom class that uses any of the JSExtendedClass callbacks: 102 JSExtendedClass.outerObject JSAPI Reference, Obsolete, SpiderMonkey See split objects. 103 JSExtendedClass.wrappedObject JSAPI Reference, Obsolete, SpiderMonkey If a cl...
Bytecode Descriptions
void operator, step 3. Typeof, TypeofExpr Stack: val => (typeof val) The typeof operator. Infallible. The result is always a string that depends on the type of val. JSOp::Typeof and JSOp::TypeofExpr are the same except that--amazingly--JSOp::Typeof affects the behavior of an immediately preceding JSOp::GetName or JSOp::GetGName instruction! This is how we implement typeof step 2, making typeof nonExistingVariable return "undefined" instead of throwing a ReferenceError. In a global scope: typeof x compiles to GetGName "x"; Typeof. typeof (0, x) compiles to GetGName "x"; TypeofExpr. Emitting the same bytecode for these two expressions would be a bug. Per spec, the latter throws a ReferenceError if x doesn't exist. Format: JOF_IC Pos Stack: val => (+val) The unary + operator. +val doesn't...
Introduction to the JavaScript shell
ed bugs. For more information, see the C/C++ version of this function, JS_SetGCZeal. getpda(object) Returns the property descriptors for the specified object. getslx(object) Returns the script line extent, which is the number of lines of code comprising the specified object. help([command ...]) Displays brief help information about the specified commands, or about all available functions if none are specified. intern(string) Internalizes the specified string into the atom table. Every string has a unique identifier, called an atom. This system makes it easier to do comparisons between strings. Note: This function is intended only for use when testing the JavaScript engine. line2pc([function, ] line) Returns the program counter value corresponding to the specified line of code. If fu...
JSAPI User Guide
act with the JavaScript exception-handling language features, try, catch, and finally. However, in some cases we do not want scripts to be able to catch an error; we want script execution to terminate right away. If the system runs out of memory in the middle of a script, we do not want finally blocks to execute, because almost anything a script does requires at least a little memory, and we have none. If a script has been running too long and we want to kill it, it's no good to throw an exception--the script could just catch it and keep going. Therefore JS_ReportOutOfMemory(cx) does not set the pending exception. It is an uncatchable error. If SpiderMonkey runs out of memory, or a JSAPI callback returns false without an exception pending, this is treated as an uncatchable error. The JavaScr...
JSExnType
This article covers features introduced in SpiderMonkey 17 Possible exception types. Value Prototype in JavaScript JSEXN_NONE An unthrowable error. (lower bound) JSEXN_ERR Error JSEXN_INTERNALERR InternalError JSEXN_EVALERR EvalError JSEXN_RANGEERR RangeError JSEXN_REFERENCEERR ReferenceError JSEXN_SYNTAXERR SyntaxError JSEXN_TYPEERR TypeError JSEXN_URIERR URIError JSEXN_LIMIT (upper bound) Description These types are part of a JSErrorFormatString structure. They define which error to throw in case of a runtime error. JSEXN_NONE marks an unthrowable error. See Also MXR ID Search for JSExnType JSErrorFormatString bug 684526 ...
JSPropertyOp
he post-callback value of *vp is returned to the caller. This value also becomes the property's new stored value, if the property exists and has a stored value. JSStrictPropertyOp JSClass.setProperty is the default setter for new properties. See the section on getters and setters above. A property's setter is called each time the property is assigned. Hence when a script assigns to a nonexisting property, first the object's class's addProperty hook is called, then the setProperty hook. See Also MXR ID Search for JSPropertyOp MXR ID Search for JSStrictPropertyOp bug 312354 bug 537873 - added JSStrictPropertyOp ...
JS_ConvertArguments
s to be a native function, this means it isn't attached to any global or enclosing scope, and therefore must not be treated like a real function. Instead, use JSVAL_IS_OBJECT and JS_ObjectIsFunction() to check whether a value is already a function, or use JS_ConvertValue() to convert a value to JSTYPE_FUNCTION safely. v jsval Argument value (no conversion) * N/A None. If an asterisk (*) is present in format, it tells the conversion routine to skip converting the current argument. / N/A None. Arguments after the slash are optional. If an optional argument is missing from argv, JS_ConvertArguments neither assigns anything to any variable nor reports an error. This function also takes in consideration any additional custom types defined on ...
JS_PushArguments
signed integer) u uint32 (32-bit, ECMA-compliant, unsigned integer) j int32 (32-bit, signed integer) d jsdouble I jsdouble (converted to an integer value) s char * (C string) S JSString * (Unicode string) W jschar * (Unicode null-terminated string) o JSObject * f JSFunction * * None. Any asterisks (*) in format are ignored. This function also takes in consideration any additional custom types defined in cx using JS_AddArgumentFormatter. For example, if format is "bIob", then there must be four arguments after format. Their types must be JSBool, jsdouble, JSObject *, and JSBool. If successful, JS_PushArguments would return a pointer to the first element of an array of f...
JS_ReportErrorNumber
ort, populate it with an error message obtained from the given JSErrorCallback, and either report it to the current error reporter callback or create an Error object and set it as the pending exception. First errorCallback(userRef, errorNumber) is called. If errorCallback returns NULL, (??? what happens?). Otherwise, if the JSErrorFormatString returned by the JSErrorCallback has .exnType == JSEXN_NONE, then the error reporter, if any, is called, and no Error object is created. (??? The source code seems to say we ignore the .exnType, actually, but surely I'm just missing something.) Otherwise, if any JavaScript code is running in cx (for example, if the caller is a JSNative that was called from a script), then an Error object is created and becomes the pending exception. The error reporter is ...
JS_SetInterruptCallback
ion periodically, by calling JS_MaybeGC; To periodically take a break from script execution to update the UI (though note that Mozilla does not do this, by design); To enforce application limits on the amount of time a script may run. (In this case, the callback may terminate the script by returning false.) JS_GetInterruptCallback returns the currently installed interrupt callback, or NULL if none is currently installed. JS_RequestInterruptCallback requests a callback set using JS_SetInterruptCallback. See Also MXR ID Search for JS_SetInterruptCallback MXR ID Search for JS_GetInterruptCallback MXR ID Search for JS_RequestInterruptCallback bug 977287 ...
JS_SetOperationCallback
periodically, by calling JS_MaybeGC; To periodically take a break from script execution to update the UI (though note that Mozilla does not do this, by design); To enforce application limits on the amount of time a script may run. (In this case, the callback may terminate the script by returning JS_FALSE.) JS_GetOperationCallback returns the currently installed operation callback, or NULL if none is currently installed. JS_TriggerOperationCallback triggers a callback set using JS_SetOperationCallback. JS_ClearOperationCallback clears the current operation callback. Obsolete since JavaScript 1.9.1 JS_SetOperationCallbackFunction sets the operation callback without changing the operation limit. Obsolete since JavaScript 1.9.1 JS_GetOperationLimit returns the current operation limit, or ...
JS_SetParent
ject is created. Applications can get an object's parent using JS_GetParent. Scripts can determine an object's parent by using the __parent__ property, but scripts cannot assign to the __parent__ property. In fact, once an object is exposed to a script, the object's parent must not change. The JavaScript engine relies on this invariant. JS_SetParent has no way to check that this is the case, but nonetheless, applications must not call JS_SetParent on an object that has already been exposed to a script. If an application does this, the behavior is undefined. On success, JS_SetParent returns JS_TRUE. Otherwise, it reports an error or sets an exception and returns JS_FALSE. See Also MXR ID Search for JS_SetParent bug 1136980 - removed ...
Running Automated JavaScript Tests
Most of the options in the jstests harness are also available for this one, but a few have different names. Use -h to see all the options. The --jitflags option allows you to test the JS executable with different flags. The flags are used to control which features are run, such as which JITs are enabled and how quickly they will kick in. The valid options are named bundles like 'all', 'interp', 'none', etc. See the full list in the -h / --help output. One helpful option specific to jit-tests is -R filename (or --retest filename). The first time this is run, it runs the suite and writes a list of tests that failed to the given filename. The next time it is run, it will run only the tests in the given filename, and then will write the list of tests that failed when it is done. Thus, you can ke...
Shell global objects
on Debugger instances that are observing the given promise's global as a debuggee. Functions available only if JS_GC_ZEAL is defined gczeal(level, [N]) Specifies how zealous the garbage collector should be. Some of these modes can be set simultaneously, by passing multiple level options, e.g. "2;4" will activate both modes 2 and 4. Modes can be specified by name or number. ...
Split object
returned in this case. For consistency with the rule, if that global object is an outer object, SpiderMonkey returns the inner object instead. Inner and outer objects are in certain other respects the same object: If Object.hasOwnProperty is called on an inner object, and the named property is found on an outer object, that's considered close enough and hasOwnProperty returns true. Note that none of the rules listed here affects ordinary property accesses. SpiderMonkey's split object support, by itself, does not cause inner object properties to appear on the outer object or vice versa. Split objects that need this behavior must implement it in custom JSClass hooks. In the case of window, each half has custom hooks. ...
AT APIs Support
daring functionality to users of the GNOME desktop. on Mac platform Camino - web browser for OS X XUL Applications XUL applications make full use of the Gecko architecture, not only for HTML content, but also for the entire user interface. Widgets such as menus, tab panels, tree views and dialogs are provided via an XML language called XUL (eXtensible User-interface Language). None of the user interface contains standard OS controls. This is done to ensure a common look and feel across all supported platforms, and to allow for different skins (appearances). Developing a XUL window is not that different from developing a web page, but the elements available to add widgets are more powerful and designed to be similar to desktop widgets. Examples of XUL applications: Firef...
extIApplication
n value indicating whether the shutdown was successful. restart() Attempts to restart the application. It is possible for the restart to be canceled. boolean restart() Return value boolean value indicating whether the restart was successful. getExtensions(aCallback) Calls aCallback with the list of installed extensions. void getExtensions(extIExtensionsCallback aCallback) Return value none. XPCOM Although the Application object is preloaded into XUL scripts, it is not preloaded into JavaScript XPCOM code. The object needs to be accessed like any other XPCOM service: var Application = Components.classes["@mozilla.org/fuel/application;1"].getService(Components.interfaces.fuelIApplication); See also FUEL (Firefox), STEEL (Thunderbird) and SMILE (SeaMonkey) ...
Creating a Python XPCOM component
py nsISample class nsISample: _com_interfaces_ = xpcom.components.interfaces.nsISample # If this object needs to be registered, the following 2 are also needed. # _reg_clsid_ = "{a new clsid generated for this object}" # _reg_contractid_ = "The.Object.Name" def get_value( self ): # Result: string pass def set_value( self, param0 ): # Result: void - None # In: param0: string pass As you can see, the output is valid Python code, with basic signatures and useful comments for each of the methods. Testing it To see this work, you will have to start Firefox from the command line, since that'll be where the stuff will be printed out. External links Creating XPCOM components, on which this short tutorial is based. A three-part tuto...
Building the WebLock UI
In overlays the ordinarily unique id attributes that XUL elements use to distinguish themselves are purposely made redundant with UI in the existing browser with which they should be merged. In this case, the weblock <statusbarpanel/> appears as a child of the <statusbar/> element with i...
Observer Notifications
to close the last open browser window. When this is sent, it is possible that other windows may still be open, such as the download manager or preferences. The data value is an nsISupportsPRBool. Recipients may set this to true to abort the close. browser-lastwindow-close-granted Sent when all interested parties have responded to the browser-lastwindow-close-requested notification and none of them requested that the close be aborted. After this is sent and handled, the browser window will close. browser-delayed-startup-finished Sent when the browser window and all its components have been loaded and initialized. Documents These topics indicate notifications you can monitor related to DOM documents. Topic Subject Data Description chrom...
IAccessibleHyperlink
case is an image map where each area is associated with multiple actions, for example an image map of smart tags. In this case you would have to implement two levels of accessible hyperlinks. The first level hyperlinks would only implement anchor() and anchorTarget(). The anchors would all reference the image object. The anchorTargets would reference the second level accessible hyperlink objects. None of the IAccessibleAction methods would be implemented on the first level hyperlink objects. The second level hyperlink objects would implement the IAccessibleAction methods. Their anchors would also reference the image object and their anchorTargets would reference URLs or the objects that would be activated. This use case demonstrates that in some cases there is no need for IAccessibleHyperlink ...
IJSDebugger
bug 707237, the JavaScript code module doesn't work in that case. See the JavaScript Debugger API Guide for details on using the Debugger API. Method overview [implicit_jscontext] void addClass(); Methods addClass() Defines the global Debugger constructor. On return, the Debugger object has been added to the global context. [implicit_jscontext] void addClass(); Parameters None. See also JS Debugger API Reference JS Debugger API Guide ...
amIWebInstallInfo
RI that started the installs. For example, the referring page for a link to an XPI download. Read only. originatingWindow nsIDOMWindow The window that started the installs. Read only. Note: Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5), this was an nsIDOMWindowInternal. Methods install() Starts all installs. void install(); Parameters None. ...
imgIDecoder
gILoader object. Inherits from: nsISupports Last changed in Gecko 1.7 This interface is the base class for decoders for specific image formats. Method overview void close(); void flush(); void init(in imgILoad aLoad); unsigned long writeFrom(in nsIInputStream inStr, in unsigned long count); Methods close() Closes the stream. void close(); Parameters None. flush() Flushes the stream. void flush(); Parameters None. init() Initializes an image decoder. void init( in imgILoad aLoad ); Parameters aLoad An imgILoad object to receive the decoded image data. This object also implements the imgIDecoderObserver interface; you should QueryInterface() it to that interface and call its notification methods while handling the decode operation. You...
imgIDecoderObserver
, any presumed ordering between load and decode notifications should not be relied upon. Decode notifications may or may not be synchronous, depending on the situation. If imgIDecoder::FLAG_SYNC_DECODE is passed to a function that triggers a decode, all notifications that can be generated from the currently loaded data fire before the call returns. If FLAG_SYNC_DECODE is not passed, all, some, or none of the notifications may fire before the call returns. Method overview void onDataAvailable(in imgIRequest aRequest, in boolean aCurrentFrame, [const] in nsIntRect aRect); Native code only! void onDiscard(in imgIRequest aRequest); void onImageIsAnimated(in imgIRequest aRequest); void onStartContainer(in imgIRequest aRequest, in imgIContainer aContainer); ...
mozIStorageBindingParamsArray
...
mozIStorageCompletionCallback
allbacks from asynchronous Storage API routines. storage/public/mozIStorageCompletionCallback.idlScriptable Please add a summary to this article. Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Inherits from: nsISupports Method overview void complete(); Methods complete() Called when an asynchronous storage routine has completed. void complete(); Parameters None. ...
mozIStoragePendingStatement
d in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Inherits from: nsISupports Method overview void cancel(); Methods cancel() Cancels the pending statement. Fails only if you attempt to cancel the operation more than once. Note: For read statements, such as SELECT, once you cancel the statement, you will receive no further notifications about results. void cancel(); Parameters None. Return value In versions of Gecko prior to Gecko 1.9.2, this returned a boolean value that was true if the query was canceled successfully or false if not. Starting with Gecko 1.9.2, this information is no longer provided and the method doesn't return a value. See also Storage mozIStorageConnection mozIStorageStatement ...
mozIStorageResultSet
a set of results from a storage statement. storage/public/mozIStorageResultSet.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Method overview mozIStorageRow getNextRow(); Methods getNextRow() Returns the next row from the result set. mozIStorageRow getNextRow(); Parameters None. Return value A mozIStorageRow object containing the next row from the result set, or null if there are no more results. See also Storage mozIStorageConnection mozIStorageStatement ...
mozIStorageStatement
StringForLIKE(someUserInput, "/"); Binding Functions These functions are discussed in more detail with sample code in the overview document. newBindingParamsArray() Creates and returns a new mozIStorageBindingParamsArray object that can be used to bind multiple values to parameters in preparation for calling executeAsync(). mozIStorageBindingParamsArray newBindingParamsArray(); Parameters None. bindParameters() Binds all the parameters in the specified array to the statement in preparation for calling executeAsync(). Note: Starting in Gecko 2.0, this method returns NS_ERROR_UNEXPECTED if the specified mozIStorageBindingParamsArray is empty. void bindParameters( in mozIStorageBindingParamsArray aParameters ); Parameters aParameters The mozIStorageBindingParamsArray object co...
mozIStorageStatementWrapper
arams mozIStorageStatementParams The parameters; these can be set in lieu of using the call notation on this. Methods initialize() This method initializes this wrapper with aStatement. void initialize( in mozIStorageStatement aStatement ); Parameters aStatement The statement to be initialized. reset() This method resets the wrapped statement. void reset(); Parameters None. step() This method steps the wrapped statement. boolean step(); Parameters None. Return value Returns true if the stepping the wrapped statement was successful, otherwise returns false. execute() This method executes the wrapped statement. void execute(); Parameters None. See also Storage mozIStorageStatement mozIStorageStatementRow mozIStorageStatementParams ...
mozIStorageVacuumParticipant
manager will try to restore WAL mode, but this will only work reliably if the participant properly resets statements. If the attempt to restore the journal node fails, it will remain TRUNCATE. Methods onBeginVacuum() Called when a vacuum operation begins. Once you receive this notification, you should avoid using the database until onEndVacuum() is called. boolean onBeginVacuum(); Parameters None. Return value Return true to allow the vacuum operation to proceed, or false if you don't want the database to be vacuumed. You may wish to return false, for example, if you're in the middle of an operation that you don't want to (or can't) interrupt. onEndVacuum() Called when a vacuum operation ends. void onEndVacuum( in boolean aSucceeded ); Parameters aSucceeded true if the vacuum operatio...
nsIAccessibleHyperLink
Therefore this property does not work on ARIA links. nsIURI getURI( in long index ); Parameters index The 0-based index of the URI to be returned. Return value The nsIURI object containing the specifications for the URI. isSelected() Obsolete since Gecko 1.9 (Firefox 3) Note: Has been replaced by the selected attribute. boolean isSelected(); Parameters None. Return value true if the element currently has the focus. isValid() Obsolete since Gecko 1.9 (Firefox 3) Note: Has been replaced by the valid attribute. boolean isValid(); Parameters None. Return value true if the hyperlink is valid. Remarks Anchors, image maps, xul:labels with class="text-link" implement this interface. See also nsIAccessible nsIURI ...
nsIAccessibleHyperText
; Parameters charIndex The 0-based character index. Return value The index of the link if it's presented on the given character index, otherwise -1. Exceptions thrown NS_ERROR_FAILURE Indicates that the accessible is unattached from the accessible tree. getSelectedLinkIndex() Obsolete since Gecko 1.9 (Firefox 3) long getSelectedLinkIndex(); Parameters None. Return value Missing Description Exceptions thrown NS_ERROR_FAILURE Indicates that the accessible is unattached from the accessible tree. See also nsIAccessibleHyperLink ...
nsIAccessibleRelation
get at the given index. nsIAccessible getTarget( in unsigned long index ); Parameters index Zero-based index of relation target. Return value Returns an nsIAccessible object. Exceptions thrown NS_ERROR_INVALID_ARG Indicates the given index is out of range. getTargets() Returns an array of accessible relation targets. nsIArray getTargets(); Parameters None. Return value An nsIArray object, each item in the array implements an nsIAccessible. ...
nsIAccessibleRetrieval
he if it already exists. nsIAccessible getAccessibleInWindow( in nsIDOMNode aNode, in nsIDOMWindow aDOMWin ); Parameters aNode The DOM node to get an accessible for. aDOMWin The DOM window containing the node. Return value The nsIAccessible for the given DOM node. getApplicationAccessible() Return application accessible. nsIAccessible getApplicationAccessible(); Parameters None. Return value The nsIAccessible for the application. getAttachedAccessibleFor() Similar to getAccessibleFor() except it returns accessible only if it is attached, that is accessible is certified to be a descendant of the root accessible. nsIAccessible getAttachedAccessibleFor( in nsIDOMNode aNode ); Parameters aNode The DOM node to get an accessible for. Return value The accessible f...
nsIAccessibleStateChangeEvent
le. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Method overview boolean isEnabled(); boolean isExtraState(); Attributes Attribute Type Description state unsigned long Returns the state of accessible (see constants declared in nsIAccessibleStates). Read only. Methods isEnabled() boolean isEnabled(); Parameters None. Return value Returns true if the state is turned on. isExtraState() boolean isExtraState(); Parameters None. Return value Returns true if the state is extra state. ...
nsIAccessibleTable
cified column is selected, that is all cells within the column are selected. boolean isColumnSelected( in long columnIndex ); Parameters columnIndex The column index. Return value true if the column is selected, false if the column is not selected. isProbablyForLayout() Use heuristics to determine if table is most likely used for layout. boolean isProbablyForLayout(); Parameters None. Return value true if the table is probably for layout, false if the table is probably not for layout. isRowSelected() Return a boolean value indicating whether the specified row is selected, that is all cells within the row are selected. boolean isRowSelected( in long rowIndex ); Parameters rowIndex The row index. Return value true if the row is selected, false if the row is not ...
nsIAccessibleTableCell
umber of rows occupied by this accessible cell. The result differs from 1 if the specified cell spans multiple rows. Read only. rowHeaderCells nsIArray Return an array of row header cells for this cell. Read only. rowIndex long Return row index of this cell. Read only. table nsIAccessibleTable Return host table accessible. Read only. Methods isSelected() boolean isSelected(); Parameters None. Return value A boolean value indicating whether this cell is selected. ...
nsIAccessibleTextChangeEvent
Return value true if text was inserted, otherwise false. ...
nsIAccessibleTreeCache
f cached treeitem accessibles. void invalidateCache( in long aRow, in long aCount ); Parameters aRow Row index the invalidation starts from. aCount The number of treeitem accessibles to invalidate, the number sign specifies whether rows have been inserted (plus) or removed (minus) treeViewChanged() Invalidates children created for the previous tree view. void treeViewChanged(); Parameters None. treeViewInvalidated() Fires name change events for invalidated area of tree. void treeViewInvalidated( in long aStartRow, in long aEndRow, in long aStartCol, in long aEndCol ); Parameters aStartRow Row index invalidation starts from. aEndRow Row index invalidation ends, -1 means the last row index. aStartCol Column index invalidation starts from. aEndCol Column index invalidation ends,...
nsIApplicationUpdateService
urn: "downloading" The update is being downloaded. "pending" The update is ready to be applied. "applying" The update is in the process of being applied. "succeeded" The update has been installed successfully. "download-failed" The update failed to be downloaded. "failed" Installing the update failed. pauseDownload() Pauses the currently active update download. void pauseDownload(); Parameters None. removeDownloadListener() Removes a listener that is receiving progress and state information about the update that is currently being downloaded. void removeDownloadListener( in nsIRequestObserver listener ); Parameters listener The listener object to remove. selectUpdate() Selects the best update to install from a provided list of available updates. nsIUpdate selectUpdate( [array, size_i...
nsIArray
ate(); unsigned long indexOf(in unsigned long startIndex, in nsISupports element); void queryElementAt(in unsigned long index, in nsIIDRef uuid, [iid_is(uuid), retval] out nsQIResult result); Attributes Attribute Type Description length unsigned long The number of elements in the array. Read only. Methods enumerate() Enumerate the array. nsISimpleEnumerator enumerate(); Parameters None. Return value A new enumerator positioned at the start of the array. Exceptions thrown NS_ERROR_FAILURE If the array is empty (to make it easy to detect errors). NS_ERROR_OUT_OF_MEMORY If there is not enough memory to complete the operation. indexOf() Get the position of a specific element. Note that since null is a valid input, exceptions are used to indicate that an element is not found. unsi...
nsIAuthPrompt2
No security provided. LEVEL_PW_ENCRYPTED 1 Password will be sent encrypted, but the connection is otherwise insecure. LEVEL_SECURE 2 The connection, both for password and data, is secure. Methods asyncPromptAuth() Asynchronously prompt the user for a username and password. This has largely the same semantics as ...
nsIAutoCompleteSearch
...
nsIBidiKeyboard
Note: This throws NS_ERROR_NOT_IMPLEMENTED if the widget layer doesn't provide this information. Currently, this is only implemented on Windows. Methods isLangRTL() Determines if the current keyboard language is right-to-left. (supported on: win32, mac, gtk2) Note: Prior to Gecko 1.9 this method used a parameter 'out PRBool aIsRTL' to return the value. boolean isLangRTL(); Parameters None. Return value true if the current keyboard is right-to-left, false if it is not. Exceptions thrown NS_ERROR_FAILURE If no right-to-left keyboards are installed. setLangFromBidiLevel() Sets the keyboard language to left-to-right or right-to-left. (supported on: win32) void setLangFromBidiLevel( in PRUint8 aLevel ); Parameters aLevel If odd set the keyboard to right-to-left, i...
nsIBrowserHistory
Mark a page as being currently open. Note: This method was an alias for mozIPlacesAutoComplete.registerOpenPage(), which still exists and can be used instead. void registerOpenPage( in nsIURI aURI ); Parameters aURI The page that is to be marked as currently open. removeAllPages() This method removes all the pages from the global history. void removeAllPages(); Parameters None. Remarks Visits are removed synchronously, but pages are expired asynchronously, off the main thread. Note: Removals are handled in a batch. Single removals are not subject to individual notification; instead, nsINavHistoryObserver.onClearHistory() is called on the history observer. removePage() This method removes all visits for a page from the history. The page itself is only deleted when ...
nsIBrowserSearchService
...
nsICacheEntryInfo
key identifying the cache entry. Read only. lastFetched PRUint32 Get the last time the cache entry was opened (in seconds since the Epoch). Read only. lastModified PRUint32 Get the last time the cache entry was modified (in seconds since the Epoch). Read only. Methods isStreamBased() This method finds out whether or not the cache entry is stream based. boolean isStreamBased(); Parameters None. Return value Returns true if the cache entry is stream based, otherwise returns false. See also nsICache nsICacheVisitor ...
nsICacheService
by the storage policy. Note: This function may evict some items but will throw if it fails to evict everything. void evictEntries( in nsCacheStoragePolicy storagePolicy ); Parameters storagePolicy The cache storage policy. init() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Initialize the cache service. void init(); Parameters None. Exceptions thrown Missing Exception Missing Description shutdown() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Shutdown() the cache service. void shutdown(); Parameters None. visitEntries() This method visits entries stored in the cache. Used to implement the about:cache URI. void visitEntries( in nsICacheVisitor visitor ); ...
nsICacheSession
and waits for validation. doomEntry() Asynchronously dooms an entry specified by the key. void doomEntry( in ACString key, in nsICacheListener listener ); Parameters key The key for cache entry. listener The cache listener to be notified (may be null). evictEntries() This method evicts all entries for this session's clientID according to its storagePolicy. void evictEntries(); Parameters None. isStorageEnabled() This method checks if the cache devices implied by the session storage policy are currently enabled for instantiation if they don't already exist. PRBool isStorageEnabled(); Parameters None. Return value Returns whether any of the cache devices implied by the session storage policy are currently enabled for instantiation or not, depending on their existence. openCacheEntry() ...
nsICachingChannel
est can be satisfied via the cache, then the OnDataAvailable events will be skipped. The listener will only see OnStartRequest followed by OnStopRequest. Methods isFromCache() Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) This method finds out whether or not this channel's data is being loaded from the cache. boolean isFromCache(); Parameters None. Return value Returns true if this channel's data is being loaded from the cache, otherwise returns false. This value is undefined before the channel fires its OnStartRequest notification and after the channel fires its OnStopRequest notification. See also nsICache ...
nsICategoryManager
boolean aPersist ); Parameters aCategory The name of the category being modified. ("protocol") aEntry The name of the category entry being deleted. ("http") aPersist Ignored. Category entries never persist across sessions. You should always pass false for this parameter. enumerateCategories() Enumerate all existing categories. nsISimpleEnumerator enumerateCategories(); Parameters None. Return value A simple enumerator, each result QIs to nsISupportsCString. enumerateCategory() Enumerate the entries in a category. nsISimpleEnumerator enumerateCategory( in string aCategory ); Parameters aCategory The category to be enumerated. Return value A simple enumerator, each result QIs to nsISupportsCString. getCategoryEntry() Get the value for the given category's entry...
nsIChannel
n a request is redirected, rather than redirecting transparentlyNote: nsIChannel implementations are not required to implement this method. Moreover, since this method may block the calling thread, it should not be called on a thread that processes UI events. Like any other nsIChannel method it must not be called on any thread other than the XPCOM main thread. nsIInputStream open(); Parameters None. Return value Blocking input stream to the channel's data. Exceptions thrown NS_ERROR_IN_PROGRESS If the channel is reopened. See also nsIChannelEventSink for onChannelRedirect ...
nsIClipboard
aTransferable The transferable containing the data to put on the clipboard. anOwner The owner of the transferable. aWhichClipboard Specifies the clipboard to which this operation applies. supportsSelectionClipboard() This method allows clients to determine if the implementation supports the concept of a separate clipboard for selection. boolean supportsSelectionClipboard(); Parameters None. Return value Returns true if kSelectionClipboard is available. Otherwise it returns false. supportsFindClipboard() This method allows clients to determine if the implementation supports the concept of a separate clipboard for find search strings. boolean supportsFindClipboard(); Parameters None. Return value Returns true if the separate clipboard for find search strings is supported. O...
nsIClipboardDragDropHookList
DropHooks(in nsIClipboardDragDropHooks aHooks); Methods addClipboardDragDropHooks() This method adds a hook to the list. void addClipboardDragDropHooks( in nsIClipboardDragDropHooks aHooks ); Parameters aHooks Implementation of hooks. getHookEnumerator() This method retrieves an enumerator for all hooks which have been added. nsISimpleEnumerator getHookEnumerator(); Parameters None. Return value Returns nsISimpleEnumerator for nsIClipboardDragDropHooks. removeClipboardDragDropHooks() This method removes a hook from the list. Note: If this implementation is not present in the list then removal will be ignored. void removeClipboardDragDropHooks( in nsIClipboardDragDropHooks aHooks ); Parameters aHooks Implementation of hooks. See also nsIClipboardDragDropHooks ...
nsICollection
out nsQIResult result); void RemoveElement(in nsISupports item); void SetElementAt(in PRUint32 index, in nsISupports item); Methods AppendElement() Appends a new item to the collection. void AppendElement( in nsISupports item ) Parameters item nsISupports item to be appended to the list. Clear() Removes all items from the collection. void Clear(); Parameters None. Count() Returns the number of items in the collection. PRUint32 Count(); Parameters None. Return value Number of items in the list. Enumerate() Returns an nsIEnumerator that lets you iterate over the items in the collection. nsIEnumerator Enumerate(); Parameters None. Return value An nsIEnumerator. GetElementAt() Returns the element at the specified index into the collection. nsISupports GetEl...
nsICommandLineRunner
number of arguments being passed. argv An array storing pointers to the arguments workingDir Directory where the command will run. This is used to resolve file and URI paths. state The type of command line being processed. This is an nsICommandLine state flag. run() Processes the command-line handlers in the proper order, and calls nsICommandLineHandler.handle() on each. void run(); Parameters None. Exceptions thrown NS_ERROR_ABORT Thrown when the handler aborts. All other errors thrown by handlers will be silently ignored. setWindowContext() Sets the windowContext parameter. void setWindowContext( in nsIDOMWindow aWindow ); Parameters aWindow The DOM window object which will be set. It is an nsIDOMWindow object. ...
nsIConsoleService
which could log messages (this could be done inadvertently through listeners implemented in JavaScript), we do not call any listeners when another error is already being logged. void registerListener( in nsIConsoleListener listener ); Parameters listener The nsIConsoleListener to add. reset() To clear the message buffer (For example, for privacy reasons): void reset(); Parameters None. Note: Console listeners expect you to log an empty string message before calling reset, so they too can clear their message buffers. (This also works before Gecko 19.) unregisterListener() Deregisters a listener. void unregisterListener( in nsIConsoleListener listener ); Parameters listener The nsIConsoleListener to remove. Examples Retrieving the message array To retrieve the me...
nsIControllers
arameters controllerID The ID (insertion order) of a controller. Return value The controller element that was inserted with that ID. Exceptions thrown NS_ERROR_FAILURE The ID is greater than the number of controllers that have been inserted, or the controller has since been removed. getControllerCount() Returns the current number of controllers. unsigned long getControllerCount(); Parameters None. Return value The number of controllers currently in the list of controllers. getControllerForCommand() Searches for a controller that supports the given command. nsIController getControllerForCommand( in string command ); Parameters command The name of a command, e.g. cmd_copy Return value The first controller in the list that supports the given command. getControllerId() Returns the order ...
nsICookie
previous session, and its information no longer exists. available STATUS_ACCEPTED 1 The cookie was accepted. STATUS_DOWNGRADED 2 The cookie was accepted but downgraded to a session cookie. STATUS_FLAGGED 3 The cookie was not accepted. STATUS_REJECTED 4 The cookie was rejected. POLICY_UNKNOWN 0 The cookie collected in a previous session, and its information no longer available. POLICY_NONE 1 The site did not send a compact policy along with the cookie. POLICY_NO_CONSENT 2 The site collects identifiable information without user involvement. POLICY_IMPLICIT_CONSENT 3 The site collects identifiable information unless user opts out. POLICY_EXPLICIT_CONSENT 4 The site does not collect identifiable information unless user opts in. POLICY_NO_II 5 The site does not collect identifi...
nsICookieManager
get cookie is a domain cookie, a leading dot must be present. aName The name specified in the cookie. aPath The path for which the cookie was set. aBlocked Indicates if cookies from this host should be permanently blocked. aOriginAttributes The originAttributes of this cookie. removeAll() This method is called to remove all cookies from the cookie list. void removeAll(); Parameters None. See also nsICookie nsICookie2 nsICookieManager2 nsICookiePermission ...
nsICookieService
private-cookie-changed Since Firefox 20 (see bugzilla #837091) Same as cookie-changed, except used in lieu of cookie-changed for private windows. See cookie-changed. cookie-rejected Broadcast whenever the user's preferences cause a cookie to be rejected from being set. An nsIURI interface pointer representing the URI that attempted to set the cookie. None. Method overview string getCookieString(in nsIURI aURI, in nsIChannel aChannel); string getCookieStringFromHttp(in nsIURI aURI, in nsIURI aFirstURI, in nsIChannel aChannel); void setCookieString(in nsIURI aURI, in nsIPrompt aPrompt, in string aCookie, in nsIChannel aChannel); void setCookieStringFromHttp(in nsIURI aURI, in nsIURI aFirstURI, in nsIPrompt...
nsICryptoHMAC
.getService(Components.interfaces.nsIKeyObjectFactory) .keyFromString(Components.interfaces.nsIKeyObject.HMAC, rawKeyData); Exceptions thrown NS_ERROR_INVALID_ARG If an unsupported algorithm type is passed. reset() Reinitialize HMAC context to be reused with the same settings (the key and hash algorithm) but on different set of data. void reset(); Parameters None. update() void update( [const, array, size_is(aLen)] in octet aData, in unsigned long aLen ); Parameters aData A buffer to calculate the hash over. aLen The length of the buffer aData. Exceptions thrown NS_ERROR_NOT_INITIALIZED If init() has not been called. updateFromStream() Calculates and updates a new hash based on a given data stream. void updateFromStream( ...
nsIDNSRecord
etAddr struct and increments the internal address iterator. PRNetAddr getNextAddr( in PRUint16 aPort ); Parameters aPort A port number to initialize the PRNetAddr with. Return value The value of the next IP address. getNextAddrAsString() This function returns the value of the next IP address as a string and increments the internal address iterator. ACString getNextAddrAsString(); Parameters None. Return value The value of the next IP address as a string. hasMore() This method checks if there is another address in the record. boolean hasMore(); Parameters None. Return value true if there is another address in the record. rewind() This function resets the internal address iterator to the first address in the record. void rewind(); Parameters None. ...
nsIDNSRequest
...
nsIDOMGeoGeolocation
ibutes Attribute Type Description lastPosition nsIDOMGeoPosition The most recently retrieved location as seen by the provider. May be null. Read only. Methods clearWatch() When the clearWatch() method is called, the watch() process stops calling for new position identifiers and cease invoking callbacks. void clearWatch( in unsigned short watchId ); Parameters None. getCurrentPosition() Acquires the user's current position via a new position object. If this fails, errorCallback is invoked with an nsIDOMGeoPositionError argument. void getCurrentPosition( in nsIDOMGeoPositionCallback successCallback, [optional] in nsIDOMGeoPositionErrorCallback errorCallback, [optional] in nsIDOMGeoPositionOptions options ); Parameters successCallback An nsIDOM...
nsIDOMHTMLAudioElement
s track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. Returns the current offset of the audio stream, specified as the number of samples that have played since the beginning of the stream. unsigned long long mozCurrentSampleOffset(); Parameters None. Return value An unsigned 64-bit value indicating how many audio samples have been played since the stream began playing. mozSetup() Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change...
nsIDOMOfflineResourceList
rameters uri The URI of the item to remove from the list. swapCache() Swaps in the newest version of the application cache. The newest version of resources are updated on first refresh. This means already loaded resources should only update after a page refresh. Note: Versioned application caches are not yet supported; this method will throw an exception. void swapCache(); Parameters None. update() Begins the application cache update process. This will check for a new cache manifest but will not tell the browser to use the updated cache. void update(); Parameters None. See also Offline resources in Firefox nsIApplicationCache nsIApplicationCacheContainer nsIApplicationCacheService nsIApplicationCacheChannel nsIApplicationCacheNamespace ...
nsIDOMStorage
ring getItem(in DOMString key); DOMString key(in unsigned long index); void removeItem(in DOMString key); void setItem(in DOMString key, in DOMString data); Attributes Attribute Type Description length unsigned long The number of keys stored in the session store. Read only. Methods clear() Clear the content of this storage bound to a domain or an origin. void clear(); Parameters None. getItem() Returns from session storage the data corresponding to the specified key. DOMString getItem( in DOMString key ); Parameters key The key for which data should be returned. Return value An nsIDOMStorageItem object describing the data corresponding to the specified key, or null if no data exists for the given key. key() Returns the key for the item stored at the specified index in th...
nsIDOMStorage2
ring key); DOMString key(in unsigned long index); void removeItem(in DOMString key); void setItem(in DOMString key, in DOMString data); Attributes Attribute Type Description length unsigned long The number of keys stored in local storage. Methods clear() Clears the contents of this storage context; this removes all values bound to the domain or origin. void clear(); Parameters None. getItem() Returns from local storage the data corresponding to the specified key. DOMString getItem( in DOMString key ); Parameters key The key for which data should be returned. Return value A string containing the data corresponding to the specified key, or null if no data exists for the given key. key() Returns the key for the item stored at the specified index in the data store. DOMStrin...
nsIDOMStorageManager
eManager); Method overview void clearOfflineApps(); nsIDOMStorage getLocalStorageForPrincipal(in nsIPrincipal aPrincipal, in DOMString aDocumentURI); long getUsage(in AString aOwnerDomain); Methods clearOfflineApps() Clears keys owned by offline applications. All data owned by a domain with the "offline-app" permission is removed from the database. void clearOfflineApps(); Parameters None. getLocalStorageForPrincipal() Returns the instance of the localStorage object for aURI's origin. This is used to ensure that only one local storage area exists for a given origin. nsIDOMStorage getLocalStorageForPrincipal( nsIPrincipal aPrincipal, DOMString aDocumentURI ); Parameters aPrincipal The principal for which to return the local storage object. aDocumentURI The document's URI. R...
nsIDOMXPathResult
ecessarily the first node in the document that matches the expression used in the evaluator. FIRST_ORDERED_NODE_TYPE 9 Type is the first node in the document that matches the expression used in the evaluator. Methods iterateNext() Iterates through the available nodes of an UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE result. nsIDOMNode iterateNext(); Parameters None. Return value A DOM node. snapshotItem() Returns the specified node from what is essentially an array of resulting DOM nodes. Is only available if the result type is UNORDERED_NODE_SNAPSHOT_TYPE or ORDERED_NODE_SNAPSHOT_TYPE. nsIDOMNode snapshotItem( in unsigned long index ); Parameters index The index of the DOM node to return. Return value A DOM node. See also Introduction to usi...
nsIDictionary
n be accessed. value The value to store. deleteValue() Find the value indicated by the key. nsISupports deleteValue( in string key ); Parameters key The key indicating the pair to be removed. Return value The removed value. If the key doesn't exist, NS_ERROR_FAILURE will be returned. clear() Delete all key-value pairs from the dictionary. void clear(); Parameters None. ...
nsIDirectoryEnumerator
tes Attribute Type Description nextFile nsIFile The next file in the sequence. The nextFile attribute is the first element upon the first call. This attribute is null if there is no next element. Read only. Methods close() Closes the directory being enumerated, releasing the system resource. It is safe to call this function many times. void close(); Parameters None. Exceptions thrown NS_OK If the call succeeded and the directory was closed. NS_ERROR_FAILURE If the directory close failed. ...
nsIDirectoryService
d unregisterProvider(in nsIDirectoryServiceProvider prov); init() Initializes the nsIDirectoryService instance. This method must be called before an nsIDirectoryService instance can be used. In the case of the XPCOM Directory Service, this method is called as part of XPCOM initialization. Must not be called by external code; called internally by XPCOM initialization. void init(); Parameters None. registerProvider() Register a provider with the service. The directory service will keep a strong reference to the nsIDirectoryServiceProvider instances registered via registerProvider. The providers will be released when the service is destroyed at XPCOM shutdown. Call unregisterProvider() to force the directory service to relinquish ownership of a particular provider instance. void registerPro...
nsIDiskCacheStreamInternal
...
nsIDownloadManagerUI
WNLOAD 1 When opening the Download Manager user interface, this value indicates that the user interface is being displayed because a new download is being started. Methods getAttention() Calls attention to the Download Manager's user interface if it's already open. The UI need not be visible to call this function, nor will the UI be made visible. void getAttention(); Parameters None. Exceptions thrown NS_ERROR_UNEXPECTED The user interface isn't currently open. show() Shows the Download Manager's user interface to the user. void show( in nsIInterfaceRequestor aWindowContext, Optional in unsigned long aID, Optional in short aReason Optional ); Parameters aWindowContext Optional The parent window context to show the user interface. With this information, i...
nsIDragDropHandler
ublic/nsIDragDropHandler.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Inherits from: nsISupports Method overview void detach(); void hookupTo(in nsIDOMEventTarget attachPoint, in nsIWebNavigation navigator); Methods detach() Unregisters all handlers related to drag and drop. void detach(); Parameters None. hookupTo() Attaches drag handlers to a specified receiver, setting up callbacks to let built-in behaviors be overridden. void hookupTo( in nsIDOMEventTarget attachPoint, in nsIWebNavigation navigator ); Parameters attachPoint The receiver to which to attach drag handlers. navigator The nsIWebNavigation object to handle the dropped URLs. If this is NULL, the client must handle the drop ...
nsIEditor
document Document Read only. The DOM Document th...
nsIEditorLogging
...
nsIEditorObserver
...
nsIEffectiveTLDService
es.nsIEffectiveTLDService); The name "Effective TLD Service" is a historical one; today, the items this interface manipulates are called Public Suffixes, and the list of them is the Public Suffix List, or PSL. See publicsuffix.org for more information. The methods below implement the Public Suffix algorithm in full, including the implicit "*" rule. Therefore, if you call getPublicSuffix("a.b.c.nonexistent"), you will get back "nonexistent" - this "TLD" is not in the public suffix list, but the implicit "*" rule means that it is returned. This is the right answer for e.g. cookie setting and domain highlighting, but you should check whether it's the right answer for your application. It is not recommended to use this interface for determining whether a given string "is a domain name". That q...
nsIEventTarget
event. Exceptions thrown NS_ERROR_UNEXPECTED Indicates that the thread is shutting down and has finished processing events, so this event would never run and has not been dispatched. NS_ERROR_INVALID_ARG Indicates that event is null. isOnCurrentThread() Check to see if this event target is associated with the current thread. boolean isOnCurrentThread(); Parameters None. Return value Returns true if events dispatched to this event target will run on the current thread (that is, the thread calling this method). If events dispatched to this target will be processed on another thread, returns false. Native code only!postEvent Obsolete since Gecko 1.9 (Firefox 3)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it ...
nsIException
message string A custom message set by the thrower. [binaryname(MessageMoz)] Read only. name string The name of the error code (A string representation of result) Read only. result nsresult The nsresult associated with this exception. Read only. Methods toString() A generic formatter - make it suitable to print, etc. string toString(); Parameters None. Return value A string suitable for output. ...
nsIFaviconService
ddFailedFavicon( in nsIURI aFaviconURI ); Parameters aFaviconURI The URI of an icon in the favicon service. Can be null. expireAllFavicons() Expires all known favicons, removing them from the database. Note: This is an asynchronous operation; when it completes, a "places-favicons-expired" notification is dispatched through the observer's service. void expireAllFavicons(); Parameters None. getFaviconData() Obsolete since Gecko 22.0 (Firefox 22.0 / Thunderbird 22.0 / SeaMonkey 2.19) Note: This method was removed in Gecko 22.0. You should use the new async API mozIAsyncFavicons.getFaviconDataForPage() instead. This method retrieves the given favicon data. Throws an exception if we don't have data. If there is no data but we have an entry for this favicon...
nsIFeedContainer
See also nsIURI nsIFeedTextConstruct Interwiki link ...
nsIFeedTextConstruct
contains HTML or XHTML) its markup. nsIDOMDocumentFragment createDocumentFragment( in nsIDOMElement element ); Parameters element The element in which to create the new document fragment. Return value An nsIDocumentFragment containing the text and markup. plainText() Returns the text as plain text with all markup stripped and all entities decoded. AString plainText(); Parameters None. Return value The plain text version of the text construct's contents. If the type attribute is "text", this method returns the value of the text attribute unchanged. Remarks If the document type is either "html" or "xhtml", a "<" character represents markup. To display that character, an escape such as "&lt;" must be used. If the type is "text", the "<" character represents itself. See also...
nsIFilePicker
d upon completion. void open( in nsIFilePickerShownCallback aFilePickerShownCallback ); Parameters aFilePickerShownCallback The nsIFilePickerShownCallback to be called on completion. show() Obsolete since Gecko 57.0 (Firefox 57.0 / Thunderbird 57.0 / SeaMonkey 2.54) Displays the file picker dialog. The dialog is displayed modally. short show(); Parameters None. Return value One of the return constants. Example Here's an example: const nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"] .createInstance(nsIFilePicker); fp.init(window, "Dialog Title", nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterAll | nsIFilePicker.filterText); fp.open(function (rv) { if (rv == ...
nsIFormHistory2
and value pair exists in the form history. boolean entryExists( in AString name, in AString value ); Parameters name value Return value nameExists() Returns true if there is no entry that is paired with a name. boolean nameExists( in AString name ); Parameters name Return value removeAllEntries() Removes all entries in the entire form history. void removeAllEntries(); Parameters None. removeEntriesByTimeframe() Removes entries that were created between the specified times. void removeEntriesByTimeframe( in long long aBeginTime, in long long aEndTime ); Parameters aBeginTime The beginning of the timeframe, in microseconds. aEndTime The end of the timeframe, in microseconds. removeEntriesForName() Removes all entries that are paired with a name. void removeEntriesForName...
nsIFrameLoader
ead only. Methods activateFrameEvent() Activates event forwarding from client (remote frame) to parent. void activateFrameEvent( in AString aType, in boolean capture ); Parameters aType The event type for which to enable forwarding. capture Whether or not to capture these events. activateRemoteFrame() Activates the remote frame. void activateRemoteFrame(); Parameters None. Exceptions thrown Throws an exception with non-remote frames. destroy() Destroys the frame loader and everything inside it. This will clear the weak owner content reference. void destroy(); Parameters None. loadFrame() Starts loading the frame. This method figures out what to load from the owner content in the frame loader. void loadFrame(); Parameters None. loadURI() Loads the s...
nsIFrameLoaderOwner
void swapFrameLoaders(in nsIFrameLoaderOwner aOtherOwner); Attributes Attribute Type Description frameLoader nsIFrameLoader The frame loader owned by this nsIFrameLoaderOwner. Read only. Methods getFrameLoader() Returns the frame loader object owned by this object. [noscript, notxpcom] alreadyAddRefed_nsFrameLoader GetFrameLoader(); Parameters None. Return value The nsIFrameLoader owned by this object. swapFrameLoaders() Swaps frame loaders with the given nsIFrameLoaderOwner. This may only be possible in a very limited set of circumstances, or never, depending on the object implementing this interface. void swapFrameLoaders( in nsIFrameLoaderOwner aOtherOwner ); Parameters aOtherOwner The other frame loader owner with which to s...
nsIFrameMessageListener
e handled synchronously. If true, the response should be returned in the specified JSON object. json The JSON object in which to return the response if the message is being handled synchronously. objects Unimplemented An array of cpow, or null if sync is false. When the listener is called, the this value is the target of the message. void receiveMessage(); Parameters None. See also Content process event handling nsIFrameListener ...
nsIGeolocationProvider
how to write a geolocation provider. Method overview boolean isReady(); Obsolete since Gecko 1.9.2 void shutdown(); void startup(); void watch(in nsIGeolocationUpdate callback); Methods isReady() Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Reports whether or not the device is ready and has a position. boolean isReady(); Parameters None. Return value true if the device is ready and has a position available to return; otherwise false. shutdown() Shuts down the location device. void shutdown(); Parameters None. startup() Start up the provider. This is called before any other method and may be called multiple times. void startup(); Parameters None. watch() Attaches a callback listener to be notified when a location change is obse...
nsIHttpChannel
eceived (before onStartRequest()) or if the header is not set in the response. isNoCacheResponse() Returns true if the server sent the equivalent of a "Cache-control: no-cache" response header. Equivalent response headers include: "Pragma: no-cache", "Expires: 0", and "Expires" with a date value in the past relative to the value of the "Date" header. boolean isNoCacheResponse(); Parameters None. Return value Returns true if the server sent the equivalent of a "Cache-control: no-cache" response header, otherwise false. Exceptions thrown NS_ERROR_NOT_AVAILABLE If called before the response has been received (before onStartRequest()). isNoStoreResponse() boolean isNoStoreResponse(); Parameters None. Return value true if the server sent a "Cache-Control: no-store" response he...
nsIINIParser
ringEnumerator getKeys( in AUTF8String aSection ); Parameters aSection The name of the section whose keys you wish to enumerate. Return value An nsIUTF8StringEnumerator object that can be used to access the section's keys. getSections() Returns an nsIUTF8StringEnumerator providing a list of the sections available within the INI file. nsIUTF8StringEnumerator getSections(); Parameters None. Return value An nsIUTF8StringEnumerator object that can be used to access the sections in the INI file. getString() Returns the string value for the specified key within a particular section of the INI file. AUTF8String getString( in AUTF8String aSection, in AUTF8String aKey ); Parameters aSection The section containing the key whose value is to be returned. aKey The key fo...
nsIInProcessContentFrameMessageManager
Return value The nsIContent object representing the owner's content. See also Content process event handling nsIContentFrameMessageManager ...
nsIJSCID
js/src/xpconnect/idl/xpcjsid.idlScriptable This interface provides methods to instantiate a component and access service components. Inherits from: nsIJSID Last changed in Gecko 1.7 Method overview nsISupports createInstance(); nsISupports getService(); Methods createInstance() nsISupports createInstance(); Parameters None. Return value getService() nsISupports getService(); Parameters None. Return value See also See Components.classes for usage patterns of the createInstance() and getService() methods. ...
nsIJSID
rue if the JSID has been initialised. Methods equals() This method determines if this nsIJSID has the same nsID as another nsIJSID. boolean equals( in nsIJSID other ); Parameters other The other nsIJSID to compare to. Return value true if the nsIJSID's are valid and have the same nsID, otherwise false. Violates the XPCOM interface guidelines getID() const nsID* getID(); Parameters None. Return value A pointer to the internal nsID structure. initialize() Initializes the JSID. void initialize( in string idString ); Parameters idString The number to initialize the JSID, in string format, e.g. {00000000-0000-0000-c000-000000000046}. A JSID can only be initialized once. toString() This methods returns a string representation of the object. string toString(); Parameters None. R...
nsIJetpack
dividual lines of the form //@line 1 "foo.js" can be used to specify filename and line number information for debugging purposes. void evalScript( in AString aScript ); Parameters aScript The full contents of the script to evaluate in the Jetpack process. createHandle() This creates an opaque handle that can transparently be exchanged between processes. nsIVariant createHandle(); Parameters None. Return value The new handle. destroy() This terminates the Jetpack process. void destroy(); Parameters None. Special Messages If an exception goes uncaught in the Jetpack process, it will be reported to the chrome process via a message with the name core:exception. The message comes with one argument, which represents the exception object that was thrown. Warning: bug 589308 prevents this messa...
nsIJetpackService
Return value An nsIJetpack interface representing the remote process. History See bug 556846 for details. See also nsIJetpack Jetpack Processes ...
nsILoginInfo
e name attribute for the password input in a form. Non-form logins should specify an empty string (""). username AString The username for the login. usernameField AString The name attribute for the username input in a form. Non-form logins should specify an empty string (""). Methods clone() Returns a clone of this login. nsILoginInfo clone(); Parameters None. Return value An nsILoginInfo containing a clone of the login on which this method was invoked. equals() Tests to determine whether this login is exactly equal to another nsILoginInfo object. boolean equals( in nsILoginInfo aLoginInfo ); Parameters aLoginInfo The login to which to compare for equality. Return value true if the two logins are exactly equal or false if they're not. ...
nsILoginManager
n nsISupports newLoginData ); Parameters oldLogin The login to be modified. newLoginData The login information to replace the oldLogin with. This may be specified as either an nsILoginInfo or an nsIPropertyBag2 object. removeAllLogins() Removes all logins known by the Login Manager. This works without a need for the master password, if one is set. void removeAllLogins(); Parameters None. removeLogin() Removes a login from the Login Manager. Note: The specified login must exactly match a stored login. However, the values of any nsILoginMetaInfo properties are ignored. void removeLogin( in nsILoginInfo aLogin ); Parameters aLogin The login to remove from the Login Manager. Only a login that is an exact match is deleted. searchLogins() Searches for logins in the logi...
nsIMarkupDocumentViewer
See also Full page zoom ...
nsIMemory
. isLowMemory Determine if we are in a low-memory situation (what constitutes low-memory is platform dependent). This can be used to trigger the memory pressure observers. Note: This method was deprecated in Gecko 2.0. If you need to monitor low memory conditions, you should watch for the Low memory notifications "memory-pressure" notifications instead. boolean isLowMemory(); Parameters None. Return value true if we are in a low-memory situation. Otherwise false. Note: From Gecko 2.0 always returns false. See bug 592308. realloc() Reallocates a block of memory to a new size. voidPtr realloc( in voidPtr ptr, in size_t newSize ); Parameters ptr The address of the memory block to reallocate. This may be null, in which case realloc behaves like alloc(). newSize Specifi...
nsIMemoryReporterManager
e (that is RSS, physical memory used). This reporter is special-cased because it is interesting, is available on all platforms, and returns a meaningful result on all common platforms. -1 means unknown. Read only. Methods enumerateMultiReporters() Returns an enumerator for looking at the installed memory multi-reporters. nsISimpleEnumerator enumerateMultiReporters(); Parameters None. Return value An enumerator of nsIMemoryMultiReporters that are currently registered. enumerateReporters() Returns an enumerator for looking at the installed memory reporters. nsISimpleEnumerator enumerateReporters(); Parameters None. Return value An nsISimpleEnumerator for enumerating installed memory reporters. init() Initializes the memory reporter manager. void init(); Parameters None. regi...
nsIMicrosummaryService
arized. generatorURI The URI of the microsummary generator. Return value Returns an nsIMicrosummary for the given page and generator URIs. getBookmarks() Get the set of bookmarks with microsummaries. In the old RDF-based bookmarks datastore, bookmark IDs are nsIRDFResource objects. In the new Places-based datastore, they are nsIURI objects. nsISimpleEnumerator getBookmarks(); Parameters None. Return value Returns an nsISimpleEnumerator enumeration of bookmark IDs. getGenerator() Return a microsummary generator for the given URI. nsIMicrosummaryGenerator getGenerator( in nsIURI generatorURI ); Parameters generatorURI The URI of the generator. Return value Returns an nsIMicrosummaryGenerator for the given URI. getMicrosummaries() Get the set of microsummaries available for...
nsIMicrosummarySet
r() Add a microsummary observer to this microsummary set. Adding an observer to a set is the equivalent of adding it to each constituent microsummary. void addObserver( in nsIMicrosummaryObserver observer ); Parameters observer The microsummary observer to add. Enumerate() Retrieve an nsISimpleEnumerator of microsummaries in the set. nsISimpleEnumerator Enumerate(); Parameters None. Return value An enumerator of nsIMicrosummary objects. removeObserver() Remove a microsummary observer from this microsummary. void removeObserver( in nsIMicrosummaryObserver observer ); Parameters observer The microsummary observer to remove. See also nsIMicrosummaryService Microsummary topics Creating a Microsummary ...
nsIMsgAccount
(array of nsIMsgIdentity's) incomingServer nsIMsgIncomingServer Incoming server stuff key ACString Internal key identifying itself Methods addIdentity() Adds a new identity to this account. void addIdentity( in nsIMsgIdentity identity ); Parameters identity The identity to add. clearAllValues() Clear all user preferences associated with an account. void clearAllValues(); Parameters None. init() Initializes an account. void init(); Parameters None. Exceptions thrown NS_ERROR_ALREADY_OPENED if it is called more then once removeIdentity() Removes an identity from this account. void removeIdentity( in nsIMsgIdentity identity ); Parameters identity The identity to remove. ...
nsIMsgCustomColumnHandler
nsIMsgDBHdr. Return value The string value that sorting will be done with. getSortLongForRow() If the column displays a number, this will return the number that the column should be sorted by. unsigned long getSortLongForRow(in nsIMsgDBHdr aHdr); Parameters aHdr The message's nsIMsgDBHdr. Return value The long value that sorting will be done with. isString() boolean isString(); Parameters None. Return value true if the column displays a string value. false otherwise. This affects whether getSortStringForRow or getSortLongForRow is used to determine the sort key for the column. It does not affect whether getCellText vs. getImageSrc is used to determine what to display. See Also Extensions:Thunderbird:Creating_a_Custom_Column ...
nsIMsgDBHdr
should set this attribute. messageKey nsMsgKey Indicates the database key for this message. Setting this property will probably result in an inconsistent database representation, so only internal database code should set this attribute. threadParent nsMsgKey Indicates the parent of this message in its thread. If this is the root of the thread, it will return nsMsgKey_None. messageSize unsigned long Indicates the size of this message in bytes. lineCount unsigned long Indicates the size of the message body in number of lines. statusOffset unsigned long Indicates the offset within the message of the X-Mozilla-Status header. messageOffset unsigned long Indicates the position of the offline copy of an IMAP or ...
nsIMsgFilterList
an nsIMsgFilterList::matchOrChangeFilterTarget ( in ACString oldUri, in ACString newUri, in boolean caseInsensitive ) clearLog() void nsIMsgFilterList::clearLog () ensureLogFile() void nsIMsgFilterList::ensureLogFile () flushLogIfNecessary () void nsIMsgFilterList::flushLogIfNecessary () Const const nsMsgFilterFileAttribValue nsIMsgFilterList::attribNone = 0 const nsMsgFilterFileAttribValue nsIMsgFilterList::attribVersion = 1 const nsMsgFilterFileAttribValue nsIMsgFilterList::attribLogging = 2 const nsMsgFilterFileAttribValue nsIMsgFilterList::attribName = 3 const nsMsgFilterFileAttribValue nsIMsgFilterList::attribEnabled = 4 const nsMsgFilterFileAttribValue nsIMsgFilterList::attribDescription = 5 const nsMsgFilterFileAttribValue nsIM...
nsIMsgIdentity
receiptHeaderType long Readonly: requestDSN boolean Readonly: Default request for DSN option for this identity. If this is set, the DSN menu item on the compose window will be checked. Methods clearAllValues() Note: This is really dangerous! This destroys all pref values; do not call this unless you know what you're doing! void clearAllValues(); Parameters None. copy() Copy the attributes of the identity we pass in. void copy(in nsIMsgIdentity identity); Parameters identity getUnicharAttribute() Getter for Unicode attributes. Note: These attributes persist across sessions. AString getUnicharAttribute(in string name); Parameters name setUnicharAttribute() Setter for Unicode attributes. void setUnicharAttribute(in string name, in A...
nsIMsgWindowCommands
...
nsIMutableArray
ement( in nsISupports element, in boolean weak ); Parameters element The element to append. weak Whether or not to store the element using a weak reference. Exceptions thrown NS_ERROR_FAILURE When a weak reference is requested, but the element does not support nsIWeakReference. clear() Clear the entire array, releasing all stored objects. void clear(); Parameters None. insertElementAt() Insert an element at the given position, moving the element currently located in that position, and all elements in higher position, up by one. void insertElementAt( in nsISupports element, in unsigned long index, in boolean weak ); Parameters element The element to insert. index The position in the array: If the position is lower than the current length...
nsINavBookmarkObserver
ver that a batch transaction has started. Other notifications will be sent during the batch change, but the observer is guaranteed that onEndUpdateBatch() will be called at the completion of changes. During a batch the observer should do its best to reduce the work done to handle notifications, since multiple changes are going to happen in a short timeframe. void onBeginUpdateBatch(); Parameters None. onEndUpdateBatch() This method notifies this observer that a batch transaction has ended. void onEndUpdateBatch(); Parameters None. onFolderAdded() Obsolete since Gecko 1.9 (Firefox 3) Notify this observer that a bookmark folder has been added. void onFolderAdded( in PRInt64 folder, in PRInt64 parent, in PRInt32 index ); Parameters folder The id of the ...
nsINavHistoryQuery
ed folders. setFolders() This method sets the folders with the given folder count. void setFolders( [const,array, size_is(folderCount)] in long long folders, in unsigned long folderCount ); Parameters count The count of the folders. folders The folders to be set. clone() This method creates a new query item with the same parameters of this one. nsINavHistoryQuery clone(); Parameters None. Return value Returns the newly created cloned query. getTransitions() Get the transitions set for this query. void getTransitions( out unsigned long count, Optional [retval,array,size_is(count)] out unsigned long transitions ); Parameters count Optional The number of transitions transitions Missing Description setTransitions() When the set of transitions is nonempty, results are limited t...
nsINavHistoryResultViewObserver
in a non-selectable cycling column (such as unread or flagged in Thunderbird) is clicked. void onCycleCell( in long row, in nsITreeColumn column ); Parameters row The row on which the clicked cell is located. column The column in which the clicked cell is located. onSelectionChanged() Called when the selection in the tree changes. void onSelectionChanged(); Parameters None. onPerformAction() This method provides a command API that can be used to invoke commands on the selection. The tree automatically invokes this method when certain keys are pressed. For example, when the delete key is pressed, this method is called with the string "delete". void onPerformAction( in wstring action ); Parameters action A string identifying the action to be performed.
nsINavHistoryService
elongs to. Use "0" for no session. Return value Returns the ID of the created visit. This will be "0" if the URI is not valid for adding to history (canAddURI = false). getNewQuery() This method returns a new query object that you can pass to executeQuery/ies methods. It will be initialized to all empty (so using it will give you all history). nsINavHistoryQuery getNewQuery(); Parameters None. Return value Returns a new query object. getNewQueryOptions() This method returns a new options object that you can pass to executeQuery/ies methods after setting the desired options. nsINavHistoryQueryOptions getNewQueryOptions(); Parameters None. Return value Returns a new options object. executeQuery() This method executes a query with a single query object and options. All the pa...
nsIPermissionManager
Parameters nsIPermission The permission which will be removed. removeAllSince() Remove permission information for a given host string and permission type. void remove( in int64_t since ); Parameters since Epoch timestamp. Permission information stored after this timestamp will be removed. removeAll() Remove permission information for all URIs. void removeAll(); Parameters None. testExactPermission() Checks if a URI is permitted to perform an action. This requires an exact hostname match, subdomains are not a match. PRUint32 testExactPermission( in nsIURI uri, in string type ); Parameters uri The URI to be tested. type A case-sensitive ASCII string, identifying the consumer. Return value A PRUint32 representing the permission, or UNKNOWN_ACTION if no p...
nsIPlacesImportExportService
tialImport); Obsolete since Gecko 14.0 void importHTMLFromFileToFolder(in nsILocalFile aFile, in PRInt64 aFolder, in boolean aIsInitialImport); Obsolete since Gecko 14.0 void importHTMLFromURI(in nsIURI aURI, in boolean aIsInitialImport); Obsolete since Gecko 14.0 Methods backupBookmarksFile() Backs up the bookmarks.html file. void backupBookmarksFile(); Parameters None. exportHTMLToFile() Saves the current bookmarks hierarchy to a bookmarks.html file. void exportHTMLToFile( in nsILocalFile aFile ); Parameters aFile An nsILocalFile indicating where to save the new bookmarks.html file. importHTMLFromFile() Obsolete since Gecko 14.0 (Firefox 14.0 / Thunderbird 14.0 / SeaMonkey 2.11) Note: This method has been removed; use th...
nsIPrefLocalizedString
value should not include space for the null terminator, nor should it account for the size of a character. It should only be the number of characters for which there is space in the string. data The string data to be stored. toString() Used to retrieve the contents of this object into a wide string. Note: This makes a copy of the string argument passed in. wstring toString(); Parameters None. Return value Returns wstring - The string containing the data stored within this object. ...
nsIPrefService
ead in the preferences specified in a user preference file. Note: If nsnull is passed in for the aFile parameter the default preferences file(s) [prefs.js, user.js] will be read and processed. void readUserPrefs( in nsIFile aFile ); Parameters aFile The file to be read. resetPrefs() Called to completely flush and re-initialize the preferences system. void resetPrefs(); Parameters None. resetUserPrefs() Called to reset all preferences with user set values back to the application default values. void resetUserPrefs(); Parameters None. savePrefFile() Called to write current preferences state to a file. Note: If nsnull is passed in for the aFile parameter the preference data is written out to the current preferences file (usually prefs.js.) void savePrefFile( in nsIFil...
nsIProcess
oid initWithPid( in unsigned long pid ); Parameters pid The process ID to begin to represent. kill() Immediately terminates the process represented by the nsIProcess object. This only works if the process was run without blocking enabled. Gecko 1.9.1 note Prior to Gecko 1.9.1 (Firefox 3.5), this method did not work on Windows or Mac OS X. Now it does. void kill(); Parameters None. run() Starts executing the process. Gecko 1.9.1 note Prior to Gecko 1.9.1 (Firefox 3.5), this method returned the process ID of the newly executing process. It no longer returns a value. void run( in boolean blocking, [array, size_is(count)] in string args, in unsigned long count ); Parameters blocking If true, this method will block until the process terminates; if false, ...
nsIProfileLock
irectory, which exists for the purpose of storing data on the local filesystem, including cache files or other data files that may not represent critical user data. (for example, this directory may not be included as part of a backup scheme.) In some cases, this directory may just be the main profile directory. Read only. Methods unlock() Unlocks the profile. void unlock(); Parameters None. Exceptions thrown NS_ERROR_UNEXPECTED The profile isn't locked. See also Profile management nsIToolkitProfileService nsIToolkitProfile nsIProfileUnlocker ...
nsIPushMessage
is the subject of a push-message observer notification. This interface resembles PushMessageData from the Push API. Method overview DOMString text(); jsval json(); void binary([optional] out uint32_t dataLen, [array, retval, size_is(dataLen)] out uint8_t data); Methods text() Extracts the message data as a UTF-8 text string. DOMString text(); Parameters None. json() Parses the message data as JSON. jsval json(); Parameters None. binary() Extracts the message data as a byte array. void binary( [optional] out uint32_t dataLen, [array, retval, size_is(dataLen)] out uint8_t data ); Parameters dataLen The data size. data The byte array containing the data. dataLen and data are out parameters. When called from JavaScript, nsIPushMes...
nsIPushSubscription
aScript, nsIPushSubscription.getKey() only takes name as a parameter, and returns key. Please see Method parameters in XPIDL for more details on using out parameters in JavaScript. quotaApplies() Indicates whether this subscription is subject to the background message quota. bool quotaApplies(); nsIPushSubscription.quotaApplies() always returns false for system subscriptions. Parameters None. isExpired() Indicates whether this subscription has expired and must be renewed. A subscription expires if its service worker exceeds the quota, or if the desktop-notification permission for its origin is revoked. bool isExpired(); nsIPushSubscription.isExpired() always returns false for system subscriptions. Parameters None. Example const { classes: Cc, interfaces: Ci, utils: Cu } = ...
nsISHistory
f toplevel documents to be purged from history. During purge operation, the latest documents are maintained and older numEntries documents are removed from history. Exceptions thrown NS_ERROR_FAILURE numEntries is invalid or out of bounds with the size of history. NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA Purge was vetoed. reloadCurrentEntry() void reloadCurrentEntry(); Parameters None. removeSHistoryListener() Called to remove a listener for the session history component. Listeners are notified when pages are loaded from history. Note: A listener object must implement nsISHistoryListener and nsSupportsWeakReference. void removeSHistoryListener( in nsISHistoryListener aListener ); Parameters aListener Listener object to be removed from session history. ...
nsISSLSocketControl
stablishes TLS and SSL connections. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Method overview void proxyStartSSL(); void StartTLS(); Attributes Attribute Type Description forceHandshake boolean Obsolete since Gecko 1.9 notificationCallbacks nsIInterfaceRequestor Methods proxyStartSSL() Starts an SSL proxy connection. void proxyStartSSL(); Parameters None. StartTLS() Establishes a STARTTLS connection. This is used to encrypt plain-text data communication. void StartTLS(); Parameters None. ...
nsIScriptError
aused the message. There are quite a few category strings and they aren't listed in a single place, so you may need to search the Firefox code to find the one you want. See Categories for a partial list. innerWindowID The ID of the inner window associated with the error. toString() Outputs a string representing the error message described by the object. AUTF8String toString(); Parameters None. Return value A string representing the error message described by the nsIScriptError object. Examples Logging a message with additional information In this example nsIScriptError, which implements nsIConsoleMessage, is used to log information to the console including information about the source file and line number of the error. function myLogToConsole(aMessage, aSourceName, aSourceLine, ...
nsIScriptableInputStream
available() Return the number of bytes currently available in the stream. Note: This method should not be used to determine the total size of a stream, even if the stream corresponds to a local file. Moreover, since a stream may make available more than 2^32 bytes of data, this method is incapable of expressing the entire size of the underlying data source. unsigned long available(); Parameters None. Return value The number of bytes. Exceptions thrown NS_BASE_STREAM_CLOSED If called after the stream has been closed. close() Closes the stream. Note: The close method may be called more than once, but subsequent calls are ignored. void close(); Parameters None. init() Wrap the given nsIInputStream with this nsIScriptableInputStream. Note: The init method may be called more than once,...
nsISeekableStream
onstants above. offset Specifies a value, in bytes, that is used in conjunction with the 'whence' parameter to set the stream offset of the implementing stream. A negative value causes seeking in the reverse direction. Exceptions thrown NS_BASE_STREAM_CLOSED If called on a closed stream. setEOF() This method truncates the stream at the current offset. void setEOF(); Parameters None. Exceptions thrown NS_BASE_STREAM_CLOSED If called on a closed stream. tell() This method reports the current offset, in bytes, from the start of the stream. long long tell(); Parameters None. Return value The current offset, in bytes, from the start of the stream. Exceptions thrown NS_BASE_STREAM_CLOSED If called on a closed stream. ...
nsISelectionImageService
...
nsISessionStartup
about:sessionrestore will be displayed. RESUME_SESSION 2 The previous session should be restored at startup. DEFER_SESSION 3 The previous session is viable but shouldn't be restored without explicit action (with the exception of app tabs, which are always restored in this case). Methods doRestore() Determines whether or not there is a session to restore. boolean doRestore(); Parameters None. Return value true if the session should be restored, otherwise false. ...
nsISound
A select dialog (one that contains a list box) is opened. EVENT_MENU_EXECUTE 5 A menu item is executed. EVENT_MENU_POPUP 6 A popup menu is shown. EVENT_EDITOR_MAX_LEN 7 More characters than the maximum allowed are typed into a text field. Methods beep() Plays a beep sound. void beep(); Parameters None. init() Not strictly necessary, but avoids a delay before the first sound. Other methods will call Init if they need to. void init(); Parameters None. play() Plays a sound specified by URL. void play( in nsIURL aURL ); Parameters aURL The URL of the sound file to play. playEventSound() Plays the system sound for the specified event. If the user's system is configured to not pl...
nsIStackFrame
name string The name of the function at this point in the stack. Read only. sourceLine string The location of this function in filename Read only. Example To output the stack at a particular location: var s = Components.stack; while(s) { console.log(s.name); s = s.caller; } Methods toString() A generic formatter - make it suitable to print, and so forth. string toString(); Parameters None. Return value A string suitable for output. See also jsdIStackFrame ...
nsIStringBundle
tring formatStringFromName( in wstring aName, [array, size_is(length)] in wstring params, in unsigned long length ); Parameters aName The name of the string to retrieve. params Parameters to pass in to the string. length The length of the parameter list. Return value Returns the formatted string. getSimpleEnumeration() nsISimpleEnumerator getSimpleEnumeration(); Parameters None. Return value Returns a nsISimpleEnumerator of all nsIPropertyElement entries in the string bundle. GetStringFromID() Retrieves a string from the bundle by its ID. wstring GetStringFromID( in long aID ); Parameters aID The ID of the string to retrieve. String ID's are assigned by the order in which they are stored in the properties file. Return value Returns the requested string. ...
nsIStringBundleService
gory under which the properties file(s) have been registered. Return value An extensible bundle corresponding to the properties file(s). flushBundles() Flushes the string bundle cache - useful when the locale changes or when we need to get some extra memory back. (Automatically called for the memory-pressure and chrome-flush-caches global observer topics.) void flushBundles(); Parameters None. formatStatusMessage() Formats a message string from a status code and status arguments. Typically used to format a message received by a nsIProgressEventSink's onStatus method. wstring formatStatusMessage( in nsresult aStatus, in wstring aStatusArg ); Parameters aStatus The status code. This is mapped into a string ID and and used in the string lookup process (see nsIErrorService). ...
nsIStructuredCloneContainer
ng Get the version of the structured clone algorithm which was used to generate this container's serialized buffer. Read only. serializedNBytes unsigned long long Get the size in bytes of this container's serialized data. Read only. Methods deserializeToVariant() Deserialize the object this container holds, returning it wrapped as an nsIVariant. nsIVariant deserializeToVariant(); Parameters None. Return value An nsIVariant. getDataAsBase64() Get this structured clone container's data as a base-64-encoded string. AString getDataAsBase64(); Parameters None. Return value A base-64-encoded string. initFromBase64() Initialize this structured clone container from a base-64-encoded byte stream. void initFromBase64( in AString aData, in unsigned long aFormatVersion ); Parameters aData A b...
nsISupportsArray
ReplaceElementAt(in nsISupports aElement, in unsigned long aIndex); Violates the XPCOM interface guidelines boolean SizeTo(in long aSize); Violates the XPCOM interface guidelines Methods Violates the XPCOM interface guidelines AppendElements() boolean AppendElements( in nsISupportsArray aElements ); Parameters aElements Return value clone() nsISupportsArray clone(); Parameters None. Return value Compact() void Compact(); Parameters None. DeleteElementAt() void DeleteElementAt( in unsigned long aIndex ); Parameters aIndex DeleteLastElement() void DeleteLastElement( in nsISupports aElement ); Parameters aElement Violates the XPCOM interface guidelines ElementAt() nsISupports ElementAt( in unsigned long aIndex ); Parameters aIndex Return value Enumer...
nsISupportsCString
racter strings. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data ACString Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsChar
aracter values (often used to store an ASCII character). Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data char Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsDouble
ble access for double-precision floating-point values. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data double Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsFloat
able access for single-precision floating-point values. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data float Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsID
terface provides scriptable access for boolean values. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data nsIDPtr Provides access to the native type represented by the object. Methods toString() This method returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsInterfacePointer
erits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data nsISupports Provides access to the native type represented by the object. dataIID nsIDPtr Stores an IID corresponding to the data attribute. Methods toString() Returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRBool
terface provides scriptable access for boolean values. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRBool Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRInt16
rovides scriptable access for 16-bit signed integers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRInt16 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRInt32
d integers. 66 Introduced Gecko 1.0 Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRInt32 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRInt64
rovides scriptable access for 64-bit signed integers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRInt64 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRTime
nterface provides scriptable access for PRTime values. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRTime Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRUint16
ides scriptable access for 16-bit unsigned integers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRUint16 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRUint32
ides scriptable access for 32-bit unsigned integers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRUint32 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRUint64
ides scriptable access for 64-bit unsigned integers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRUint64 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsPRUint8
ovides scriptable access for 8-bit unsigned integers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data PRUint8 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsString
aracter strings. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data AString Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsISupportsVoid
mitives.idlScriptable This interface provides scriptable access for generic pointers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.0 Method overview string toString(); Attributes Attribute Type Description data voidPtr This attribute provides access to the native type represented by the object. Native code only! Methods toString() string toString(); Parameters None. Return value A string valued representation of the object. ...
nsISupportsWeakReference
propriate instances of nsIWeakReference. Weak references in this scheme can only be produced for objects that implement this interface. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview nsIWeakReference GetWeakReference(); Methods GetWeakReference() Produces an appropriate instance of nsIWeakReference. nsIWeakReference GetWeakReference(); Parameters None. Return value The resulting nsIWeakReference instance. Remarks The XPCOM glue library provides nsSupportsWeakReference, a canonical implementation of nsISupportsWeakReference. This interface was frozen for Gecko 0.9.9. See bug 48726 for details. From Gecko 2.0 interfaces are no longer frozen. See also nsIWeakReference nsSupportsWeakReference ...
nsITaskbarPreview
for tab previews, because doing so causes the proxy window to be destroyed and rebuilt, then re-registered with the taskbar. If any step of that process fails, an exception is thrown. For window previews, changing this value is computationally trivial. Methods invalidate() Invalidates the taskbar's cached image of the preview, forcing a redraw if necessary. void invalidate(); Parameters None. See also nsITaskbarPreviewController nsITaskbarTabPreview nsITaskbarWindowPreview nsITaskbarPreviewButton nsIWinTaskbar ...
nsITaskbarTabPreview
this is an empty string. Methods Violates the XPCOM interface guidelines EnsureRegistration() Used internally to ensure that the taskbar knows about this preview. If a preview is not registered, the API call to set its sibling (via the move() method) will fail silently. This method is only invoked when it's safe to make taskbar API calls. void EnsureRegistration(); Parameters None. Violates the XPCOM interface guidelines GetHWND() Used internally to obtain the handle to the proxy window for the preview. nativeWindow GetHWND(); Parameters None. Return value The HWND for the preview's proxy window. move() Relocates the preview relative to another tab preview from the same window. void move( in nsITaskbarTabPreview aNext ); Parameters aNext The previe...
nsIThreadInternal
e thread corresponding to this thread object. The observer will be released on the thread corresponding to this thread object after all other events have been processed during a call to Shutdown. Methods popEventQueue() Reverts a call to PushEventQueue(). When an event queue is popped, any events remaining in the queue are appended to the elder queue. void popEventQueue(); Parameters None. pushEventQueue() Causes any events currently enqueued on the thread to be suppressed until PopEventQueue() is called. In addition, any new events dispatched to the thread are only processed if they are accepted by the specified filter. If the filter is null, all new events are accepted. Calls to pushEventQueue() may be nested, and must each be paired with a corresponding call to PopEventQueu...
nsIThreadPool
hutdown() Shuts down the thread pool. You must not call this method from any thread within the thread pool. Instead, you should call it from another thread (typically the one that created the thread pool). When this method returns, the thread pool and all its threads will have been shut down, and it is no longer be possible to dispatch events to the thread pool. void shutdown(); Parameters None. See also The Thread Manager nsIThreadManager nsIThread nsIThreadInternal nsIThreadObserver nsIThreadEventFilter nsIThreadPoolListener ...
nsIThreadPoolListener
e Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Method overview void onThreadCreated(); void onThreadShuttingDown(); Methods onThreadCreated() Called when a new thread is created by the thread pool. The notification happens on the newly created thread. void onThreadCreated(); Parameters None. onThreadShuttingDown() Called when a new thread is about to be destroyed by the thread pool. The notification happens on the thread that is about to be destroyed. void onThreadShuttingDown(); Parameters None. See also The Thread Manager nsIThreadPool ...
nsITimer
nlike TYPE_REPEATING_PRECISE. If you want a non-slack timer, you probably want this one. Methods cancel() Cancels the timer. This method works on all types, not just on repeating timers -- you might want to cancel a TYPE_ONE_SHOT timer, and even reuse it by re-initializing it (to avoid object destruction and creation costs by conserving one timer instance). void cancel(); Parameters None. init() Initialize a timer that will fire after the specified delay. A user must keep a reference to this timer till it is no longer needed or has been cancelled. void init( in nsIObserver aObserver, in unsigned long aDelay, in unsigned long aType ); Parameters aObserver A callback Object, that is capable listening to timer events. If the timer fires, the observer will be notified ...
nsIToolkitProfileService
LE_NOT_DIRECTORY One of the specified directory files is not actually a directory. NS_ERROR_OUT_OF_MEMORY Unable to allocate the new profile object. flush() Flushes the profile list to disk. The profile list file is constructed in memory, then written out as one large chunk, in order to reduce the risk of the profile list file being corrupted by disk errors. void flush(); Parameters None. Exceptions thrown NS_ERROR_OUT_OF_MEMORY An error occurred trying to allocate the memory buffer used to construct the profile list. NS_ERROR_UNEXPECTED An error occurred writing the profile list file to disk. getProfileByName() Gets a profile, given the profile's name. nsIToolkitProfile getProfileByName( in AUTF8String aName ); Parameters aName The profile name to f...
nsITreeColumn
the nsITreeColumn. Read only. Constants Constant Value Description TYPE_TEXT 1 Text column type. TYPE_CHECKBOX 2 Checkbox column type. TYPE_PROGRESSMETER 3 Progress meter column type. Methods Native code only!getIdConst void getIdConst( [shared] out wstring idConst ); Parameters idConst getNext() Get the next column in the nsITreeColumns. nsITreeColumn getNext(); Parameters None. Return value The next nsITreeColumn in the nsITreeColumns. getPrevious() Get the previous column in the nsITreeColumn. nsITreeColumn getPrevious(); Parameters None. Return value The previous nsITreeColumn in the nsITreeColumns. invalidate() void invalidate(); Parameters None. See also nsITreeColumns ...
nsIURI
cable to the URI scheme (e.g. about:blank) Note: Some characters may be escaped. Methods clone() Clones the URI, returning a new nsIURI object. Note: For some protocols, this is more than just an optimization. For example, under Mac OS X, the spec of a file URI doesn't necessarily uniquely identify a file, since two volumes can have the same name. nsIURI clone(); Parameters None. Return value An nsIURI object that represents the same URI as the current nsIURI. cloneIgnoringRef() Clones the current URI, clearing the 'ref' attribute in the clone. nsIURI cloneIgnoringRef(); Parameters None. Return value An nsIURI object that represents the same URI as the current nsIURI without the 'ref' attribute. equals() Compares the current URI with another URI. Note: This ...
nsIURIFixup
FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP 1 Allow the fixup to use a keyword lookup service to complete the URI. The fixup object implementer should honour this flag and only perform any lengthy keyword (or search) operation if it is set. FIXUP_FLAGS_MAKE_ALTERNATE_URI 2 Tell the fixup to make an alternate URI from the input URI, for example to turn foo...
nsIUUIDGenerator
la.org/uuid-generator;1"] .getService(Components.interfaces.nsIUUIDGenerator); Method overview nsIDPtr generateUUID(); void generateUUIDInPlace(in nsNonConstIDPtr id); Native code only! Methods generateUUID() Obtains a new UUID using appropriate platform-specific methods to obtain a nsID that can be considered to be globally unique. nsIDPtr generateUUID(); Parameters None. Return value This method returns a nsIDPtr containing a unique ID. Exceptions thrown NS_ERROR_FAILURE If a UUID cannot be generated (for example if an underlying source of randomness is not available) Native code only!generateUUIDInPlace Obtain a new UUID like the generateUUID() method, but place it in the provided nsID pointer instead of allocating a new nsID. void generateUUIDInPlace( in n...
nsIUpdateManager
ed by calling getUpdateAt(). Read only. Methods getUpdateAt() Returns the update at the specified index into the history list. nsIUpdate getUpdateAt( in long index ); Parameters index An index into the history list for the nsIUpdate to retrieve. Return value The nsIUpdate at the specified index into the history list. saveUpdates() Saves all updates to disk. void saveUpdates(); Parameters None. See also nsIUpdate nsIUpdateCheckListener nsIUpdateChecker nsIUpdatePatch nsIApplicationUpdateService nsIUpdatePrompt nsIUpdateTimerManager ...
nsIUpdatePrompt
void showUpdateAvailable(in nsIUpdate update); void showUpdateDownloaded(in nsIUpdate update, [optional] in boolean background); void showUpdateError(in nsIUpdate update); void showUpdateHistory(in nsIDOMWindow parent); void showUpdateInstalled(); Methods checkForUpdates() Presents a user interface that checks for and displays the available updates. void checkForUpdates(); Parameters None. showUpdateAvailable() Shows a message advising the user that an update is available to be downloaded and installed. If the app.update.silent preference is true or the user interface is already displayed the call will be a no-op. void showUpdateAvailable( in nsIUpdate update ); Parameters update An nsIUpdate describing the update that's available. showUpdateDownloaded() Shows a message advis...
nsIWebBrowserChromeFocus
Implemented by the same object as nsIEmbeddingSiteWindow. It represents the focus up-calls from Mozilla to the embedding chrome. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview void focusNextElement(); void focusPrevElement(); Methods focusNextElement() Set the focus at the next focusable element in the chrome. void focusNextElement(); Parameters None. focusPrevElement() Set the focus at the previous focusable element in the chrome. void focusPrevElement(); Parameters None. See also See bug 70224 for gratuitous information. ...
nsIWebBrowserFind
Return value Whether an occurrence was found. See also nsIWebBrowserFindInFrames ...
nsIWinAppHelper
ystem is at least Windows Vista User Account Control is enabled The user is an Administrator The application is not already running with elevated permissions Otherwise it returns false. Methods fixReg() Obsolete since Gecko 1.9 (Firefox 3) Invokes helper.exe with the /fixreg parameter. Note that this parameter was never actually supported. void fixReg(); Parameters None. postUpdate() Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Invokes helper.exe with the /postupdate parameter. This updates the uninstallation log so that the application can be uninstalled correctly after an update. void postUpdate( in nsILocalFile logFile ); Parameters logFile The file to use for the uninstallation log. The path is passed...
nsIWinTaskbar
e would be "Foobar Systems.Squashweb.1.0". See XUL Application Packaging for additional details. Methods createJumpListBuilder() Retrieve a taskbar jump list builder. Fails if a jump list build operation has already been initiated, developers should make use of a single instance of nsIJumpListBuilder for building lists within an application. nsIJumpListBuilder createJumpListBuilder(); Parameters None. Return value An nsIJumpListBuilder. createTaskbarTabPreview() Creates a taskbar tab preview, given an nsIDocShell reference to a top-level window. nsITaskbarTabPreview createTaskbarTabPreview( in nsIDocShell shell, in nsITaskbarPreviewController controller ); Parameters shell An nsIDocShell object representing the top-level window from which to create the preview. controller An nsITaskbarP...
nsIWindowWatcher
he nsIDOMWindow starting point in the window hierarchy to begin the search. If null, each top level window will be searched. Return value The nsIDOMWindow with the target name. getWindowEnumerator() Get an nsISimpleEnumerator for currently open windows in the order they were opened, guaranteeing that each will be visited exactly once. nsISimpleEnumerator getWindowEnumerator(); Parameters None. Return value An nsISimpleEnumerator which will itself return nsISupports objects which can be nsISupports.QueryInterface() (QueryInterfaced) to an nsIDOMWindow. openWindow() Creates a new window. It will automatically be added to our list. Note: This method may examine the Javascript context stack for purposes of determining the security context to use for the search for a given window na...
nsIWindowsShellService
...
nsIWorkerScope
ntListener A listener object to be called when the worker stops running. onmessage nsIDOMEventListener A listener object to be called when a message is posted on the port. The message is in the event's data member. Methods close() Allows the worker to terminate itself. If a listener has been established by setting the value of the onclose attribute, it gets called. void close(); Parameters None. postMessage() Posts a message to the scope's parent worker object. void postMessage( in DOMString aMessage, in nsIWorkerMessagePort aMessagePort Optional ); Parameters aMessage The message to post. It will be stored as the data member in the event. aMessagePort Optional Specifies the message port onto which to post the message; if not specified, the default port is used. See also Using w...
nsIXFormsNSInstanceElement
...
nsIXFormsNSModelElement
...
nsIXPCException
void stowJSVal(in xpcexJSContextPtr cx, in xpcexJSVal val); Native code only! Methods initialize() void initialize( in string aMessage, in nsresult aResult, in string aName, in nsIStackFrame aLocation, in nsISupports aData, in nsIException aInner ); Parameters aMessage aResult aName aLocation aData aInner Native code only!stealJSVal xpcexJSVal stealJSVal(); Parameters None. Return value Native code only!stowJSVal void stowJSVal( in xpcexJSContextPtr cx, in xpcexJSVal val ); Parameters cx val Remarks Components.Exception is a JavaScript constructor to create nsIXPCException objects. The call signature of the constructor is: Components.Exception(message, result, stack, data, inner) all parameters are optional and the appropriate placeholder is 'unknown'. ...
nsIXULRuntime
plugin subprocess. PROCESS_TYPE_CONTENT 2 A content subprocess. PROCESS_TYPE_IPDLUNITTEST 3 IPDL unit testing subprocess. Methods invalidateCachesOnRestart() Signal the apprunner to invalidate caches on the next restart. This will cause components to be auto registered and all fast load data to be re-created. void invalidateCachesOnRestart(); Parameters None. Example Display the user's operating system in an alert box: var xulRuntime = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULRuntime); alert(xulRuntime.OS); See also nsIXULAppInfo - a related interface providing information about the host application, it's also implemented by xre/app-info. ...
nsIXULTemplateBuilder
cessor nsIXULTemplateQueryProcessor [noscript] Readonly: The query processor used to generate results. Methods rebuild() Force the template builder to rebuild its content. All existing content will be removed first. The query processor's done() method will be invoked during cleanup, followed by its initializeForBuilding() method when the content is to be regenerated. void rebuild(); Parameters None. refresh() Reloads any RDF datasources that support nsIRDFRemoteDatasource. Note: This is a temporary hack so that remote-XUL authors can reload remote datasources. When RDF becomes remote-scriptable, this will no longer be necessary. void refresh(); Parameters None. addResult() Informs the template builder that a new result is available. The builder will add this result to the set of results. Th...
nsIXULTemplateQueryProcessor
iable. aMemberVariable The member variable. Return value A compiled query object. done() Called when the template builder is being destroyed so that the query processor can clean up any state. The query processor should remove as much state as possible, such as results or references to the builder. This method will also be called when the template is going to be rebuilt. void done(); Parameters None. generateResults() Generate the results of a query and return them in an enumerator. The enumerator must contain nsIXULTemplateResult objects. If there are no results, an empty enumerator must be returned. The datasource will be the same as the one passed to the earlier initializeForBuilding() method. The context reference aRef is a reference point used when calculating results. The value of aQue...
nsIXULTemplateResult
d is provided as a convenience when sorting results. nsISupports getBindingObjectFor( in nsIAtom aVar ); Parameters aVar The variable to look up. Return value The value for the variable or null if it has no value. hasBeenRemoved() Indicate that the output for a result has been removed and that the result is no longer being used by the builder. void hasBeenRemoved(); Parameters None. ruleMatched() Indicate that a particular rule of a query has matched and that output will be generated for it. Both the query as compiled by the query processor's nsIXULTemplateQueryProcessor.compileQuery() method and the XUL <rule> element are supplied. The query must always be one that was compiled by the query processor that created this result. The <rule> element must always be a child of th...
nsIZipReader
was initialized. Read only. manifestEntriesCount PRUint32 The number of entries in the manifest. Read only. Methods close() Closes a zip reader. Subsequent attempts to extract() files or read from its input stream will result in an error. Subsequent attempts to access a nsIZipEntry obtained from this zip reader will cause unspecified behavior. void close(); Parameters None. Example demonstrating this function: List Contents of XPI and Read File Contents extract() Extracts a zip entry into a local file specified by outFile. The entry must be stored in the zip in either uncompressed or DEFLATE-compressed format for the extraction to be successful. If the entry is a directory, the directory will be extracted non-recursively. void extract( in AUTF8String zipEnt...
nsMsgFilterFileAttribValue
Defined in comm-central/ mailnews/ base/ search/ public/ nsIMsgFilterList.idl const nsMsgFilterFileAttribValue attribNone = 0; const nsMsgFilterFileAttribValue attribVersion = 1; const nsMsgFilterFileAttribValue attribLogging = 2; const nsMsgFilterFileAttribValue attribName = 3; const nsMsgFilterFileAttribValue attribEnabled = 4; const nsMsgFilterFileAttribValue attribDescription = 5; const nsMsgFilterFileAttribValue attribType = 6; const nsMsgFilterFileAttribValue attribScriptFile = 7; const nsMsgFilterFileAttribValue attribAction = 8; const nsMsgFilterFileAttribValue attribActionValue = 9; const nsMsgFilterFileAttribValue attribCondition = 10; const nsMsgFilterFileAttribValue attribCustomId = 11; ...
nsMsgPriorityValue
Defined in comm-central/ mailnews/ base/ public/ MailNewsTypes2.idl typedef long nsMsgPriorityValue; [scriptable, uuid(94C0D8D8-2045-11d3-8A8F-0060B0FC04D2)] interface nsMsgPriority { const nsMsgPriorityValue notSet = 0; const nsMsgPriorityValue none = 1; const nsMsgPriorityValue lowest = 2; const nsMsgPriorityValue low = 3; const nsMsgPriorityValue normal = 4; const nsMsgPriorityValue high = 5; const nsMsgPriorityValue highest = 6; // the default for a priority picker const nsMsgPriorityValue Default = 4; }; ...
nsMsgRuleActionType
arch/ public/ nsMsgFilterCore.idl typedef long nsMsgRuleActionType; [scriptable, uuid(59af7696-1e28-4642-a400-fa327ae0b8d8)] interface nsMsgFilterAction { /* if you change these, you need to update filter.properties, look for filterActionX */ /* these longs are all actually of type nsMsgFilterActionType */ const long Custom=-1; /* see nsMsgFilterAction */ const long None=0; /* uninitialized state */ const long MoveToFolder=1; const long ChangePriority=2; const long Delete=3; const long MarkRead=4; const long KillThread=5; const long WatchThread=6; const long MarkFlagged=7; const long Label=8; const long Reply=9; const long Forward=10; const long StopExecution=11; const long DeleteFromPop3Server=12; const ...
nsMsgSearchTypeValue
Defined in comm-central/ mailnews/ base/ search/ public/ nsMsgSearchCore.idl Used to specify type of search to be performed [scriptable,uuid(964b7f32-304e-11d3-ae13-00a0c900d445)] interface nsMsgSearchType { const nsMsgSearchTypeValue None = 0; const nsMsgSearchTypeValue RootDSE = 1; const nsMsgSearchTypeValue Normal = 2; const nsMsgSearchTypeValue LdapVLV = 3; const nsMsgSearchTypeValue NameCompletion = 4; }; ...
nsMsgSearchWidgetValue
help build the search dialog box */ [scriptable,uuid(903dd2e8-304e-11d3-92e6-00a0c900d445)] interface nsMsgSearchWidget { const nsMsgSearchWidgetValue Text = 0; const nsMsgSearchWidgetValue Date = 1; const nsMsgSearchWidgetValue Menu = 2; const nsMsgSearchWidgetValue Int = 3; /* added to account for age in days which requires an integer field */ const nsMsgSearchWidgetValue None = 4; }; ...
nsMsgViewFlagsType
The nsMsgViewFlagsType interface contains constants used for view flags in Thunderbird. This interface isn't ever implemented. It is only used to store constants. ...
nsMsgViewSortOrder
or sort direction in Thunderbird. This interface isn't ever implemented. ...
nsMsgViewSortType
sorting the Thunderbird threadpane. This interface isn't ever implemented. It is only used to store constants. For example to sort by date you would pass a function the value: Components.interfaces.nsMsgViewSortType.byDate mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. ...
Weak reference
snull. Why do I need this? When you hold an owning reference on an object (i.e., you have AddRefed it), you are holding that object in existence for the duration of your reference. This isn't always appropriate, and can lead to trouble. If, for instance, this owning reference is part of a cycle of owning references (e.g., if the referenced object also holds a owning reference back to you), then none of the objects in the cycle can be reclaimed without taking special measures. There are less severe situations. A naive design for an observer/observable relationship would require the observable to hold a owning reference to the observer. After all, the observable must send messages to each observer, notifying it of the appropriate state changes. To do that, it will call a method on the observe...
Styling the Folder Pane
has unread messages. isServer-true aFolder.isServer Indicates that the folder is a root folder (one that represents a server). serverType-server aFolder.server.type Returns the type of the server. For example, IMAP servers are "imap". specialFolder-folderType aFolder.flags & nsMsgFolderFlags.<name> Returns the folder type if it is a special folder (or "none" if it is a regular folder). For example, if the Inbox flag is set, this will be "Inbox". biffState-biffState aFolder.biffState == nsIMsgFolder.nsMsgBiffState_<name> Indicates whether or not the folder has new messages. isSecure-{true, false} aFolder.server.isSecure Indicates whether or not the connection to the server will be secure. newMessages-true aFo...
customDBHeaders Preference
the customDBHeaders pref is set will have the corresponding string property set on the msgHdr. If the .msf file is rebuilt, all the msgHdrs should have the string property set correctly. The attaching of the column handler through the ObserverService object is some pretty new stuff, so I was using the addEventListener("select"...) stuff as a backup. Depending on the release you use one, both, or none of the methods may work. Building the Extension For this extension, I used a directory tree exactly like this: superfluous/ chrome.manifest install.rdf Makefile chrome/ content/ superfluous.js superfluous_overlay.xul Here's the Makefile: DEPS:= chrome/ \ ...
WebIDL bindings
e C++ class corresponding to the parent must be on the primary inheritance chain of the object. This guarantees that a void* can be stored in the JSObject which can then be reinterpret_cast to any of the classes that correspond to interfaces the object implements. The C++ type to be used should be the nativeType listed for the interface in the Bindings.conf file, or mozilla::dom::InterfaceName if none is listed. The exact representation depends on how the type is being used. Nullable arguments become Foo*. Non-nullable arguments become Foo&. Return values become already_AddRefed<Foo> or Foo* as desired. The pointer form is preferred because it results in faster code, but it should only be used if the return value was not addrefed (and so it can only be used if the return value is kept ali...
Add to iPhoto
{'argv': ctypes.voidptr_t}, // CFArrayRef of args {'initialEvent': ctypes.voidptr_t}]); // AppleEvent * Most of these fields, we won't be using. We'll get a look at how we use this shortly. There are also a few constants used for the flags field in the LSApplicationParameters structure: this.kLSRolesNone = 1; this.kLSRolesViewer = 2; this.kLSRolesEditor = 4; this.kLSRolesAll = 0xffffffff; Implementing the extension Now that the Mac OS X APIs we'll be using have been declared, we can write the core of the extension itself. This is done in the iPhoto object in the extension's code. Hooking up to the context menu On startup, we find the content area's context menu and add an event listener to i...
Working with data
an array of 8-bit characters and value is a UTF-16 string, the new CData object is the result of converting the UTF-16 string to UTF-8, with a null terminator. If the value is a JavaScript array object and it has a non-negative length, a new array is created and the contents of the array specified by value are converted to CData objects and copied into the new array, which is then returned. If none of these conditions are met, a TypeError is thrown. If type is ctypes.void_t, a TypeError is thrown. Example: Creating an array let arrayType = ctypes.ArrayType(ctypes.int32_t); let myArray = new arrayType(5); At this point, myArray.length is 5; there are 5 entries in the array. myArray.constructor.size is 20; the total size of the array's data buffer is 20 bytes (5 entries, 4 bytes apiece)...
ABI
2 Callbacks in js-ctypes under these operating systems use a different ABI than regular function declarations. Other All other operating systems use ctypes.default_abi as their calling convention for all function declarations. Method overview String toSource() String toString() Methods toSource() Returns the string "ctypes.***_abi". String toSource() Parameters None. Return value A JavaScript expression that evaluates to the ABI. toString() Returns a string identifying the ABI. String toString(); Parameters None. Return value A string identifying the ABI. See Also ctypes FunctionType Library ...
CType
The number of elements in the declared array type. If this parameter is left out, the array's size is indeterminate. Return value A CType representing the data type "array of this type". This is the same as calling ctypes.ArrayType(the_type[, n]). toSource() Returns a JavaScript expression that evaluates to a CType describing the same C type as this object. String toSource(); Parameters None. Return value A JavaScript expression that evaluates to a CType describing the same C type as this object. Example ctypes.uint32_t.toSource() returns "ctypes.uint32_t". toString() Returns a string identifying the type. The format of this string is "type " + name. String toString(); Parameters None. Return value A string identifying the data type. See Also ArrayType FunctionType ...
Library
e Library object represents a native library loaded by the ctypes open() method. Its methods let you declare symbols exported by the library, and to manage the library. Method overview close(); CData declare(name, [abi, ], returnType[, argType1, ...]); Methods close() Closes the library. You need to call this once you're done using the library. close(); Parameters None. declare() Declares an API from the native library, allowing it to be used from JavaScript. This can be used both for exported data symbols and for functions. CData declare( name[, abi, returnType argType1, ...] ); Parameters name The name of the symbol exported by the native library that is to be declared as usable from JavaScript abi The ABI used by the exported function; t...
PointerType
ta object's value. This will throw a TypeError exception if the value can't be converted. PointerType CData Method_overview bool isNull() Methods inherited from CData CData address() String toSource() String toString() PointerType CData Methods isNull() Determines whether or not the pointer's value is null. bool isNull(); Parameters None. Return value true if the pointer's value is null, otherwise false. See Also CType CData Type conversion ...
Plug-in Basics - Plugins
he object element. Though the object element has no hidden attribute, you can create CSS rules to override the sizing attributes of the object element object { visibility: visible; } object.hiddenObject { visibility: hidden !important; width: 0px !important; height: 0px !important; margin: 0px !important; padding: 0px !important; border-style: none !important; border-width: 0px !important; max-width: 0px !important; max-height: 0px !important; } In this case, the object element that picks up these special style definitions would have a class of hidden. Using the class attribute and the CSS block above, you can simulate the behavior of the hidden plug-in in the embed element: <object data="audiplay.aiff" type="audio/...
Accessibility Inspector - Firefox Developer Tools
ou will get a new tab with the selected accessibility tree loaded into the JSON viewer: Once opened, you can save or copy the data as necessary. The JSON viewer can also show you the raw JSON data on a separate tab in the viewer. Check for accessibility issues You can check for accessibility issues by clicking the drop-down menu next to: Check for issues. The available menu items include: None -- Don't show the possible list of issues All Issues -- Check for all types of issues Contrast -- Check for issues with visual contrast Keyboard -- Check for issues with navigating via a keyboard Text Labels -- Check for issues with missing text labels When you one of the menu items, Firefox scans your document for the type of issues you selected. Depending on the size and complexity of you...
Debugger.Object - Firefox Developer Tools
instance referring to the global object in whose scope the referent was allocated. This does not unwrap cross-compartment wrappers: if the referent is a wrapper, the result refers to the wrapper's global, not the wrapped object's global. The result refers to the global directly, not via a wrapper. hostAnnotations A JavaScript object providing further metadata about the referent, or null if none is available. The metadata object is in the same compartment as this Debugger.Object instance. The same metadata object is returned each time for a given Debugger.Object instance. A typical JavaScript embedding provides "host objects" to expose application-specific functionality to scripts. The hostAnnotations accessor consults the embedding for additional information about the referent that mi...
Examine and edit HTML - Firefox Developer Tools
ed the Markup View). Just to the left of each node is an arrow: click the arrow to expand the node. If you hold the Alt key while clicking the arrow, it expands the node and all the nodes underneath it. Moving the mouse over a node in the tree highlights that element in the page. Nodes that are not visible are shown faded/desaturated. This can happen for different reasons such as using display: none or that the element doesn't have any dimensions. There is an ellipsis shown between the opening and closing tag of an element when the node is collapsed if it has larger contents. Now children are indicated in the tree with this icon: At the right side of some nodes there are markers shown indicating different pieces of information related to it: event The element has one or sever...
ANGLE_instanced_arrays.drawArraysInstancedANGLE() - Web APIs
raws a line between a pair of vertices. gl.TRIANGLE_STRIP gl.TRIANGLE_FAN gl.TRIANGLES: Draws a triangle for a group of three vertices. first A GLint specifying the starting index in the array of vector points. count A GLsizei specifying the number of indices to be rendered. primcount A GLsizei specifying the number of instances of the range of elements to execute. Return value None. Exceptions If mode is not one of the accepted values, a gl.INVALID_ENUM error is thrown. If first, count or primcount are negative, a gl.INVALID_VALUE error is thrown. if gl.CURRENT_PROGRAM is null, a gl.INVALID_OPERATION error is thrown. Examples var ext = gl.getExtension('ANGLE_instanced_arrays'); ext.drawArraysInstancedANGLE(gl.POINTS, 0, 8, 4); Specifications Specificati...
ANGLE_instanced_arrays.drawElementsInstancedANGLE() - Web APIs
ent array buffer. Possible values are: gl.UNSIGNED_BYTE gl.UNSIGNED_SHORT When using the OES_element_index_uint extension: gl.UNSIGNED_INT offset A GLintptr specifying an offset in the element array buffer. Must be a valid multiple of the size of the given type. primcount A GLsizei specifying the number of instances of the set of elements to execute. Return value None. Exceptions If mode is not one of the accepted values, a gl.INVALID_ENUM error is thrown. If offset is a invalid multiple of the size of the given type, a gl.INVALID_OPERATION error is thrown. If count or primcount are negative, a gl.INVALID_VALUE error is thrown. Examples var ext = gl.getExtension('ANGLE_instanced_arrays'); ext.drawElementsInstancedANGLE(gl.POINTS, 2, gl.UNSIGNED_SHORT,...
ANGLE_instanced_arrays.vertexAttribDivisorANGLE() - Web APIs
xt.drawElementsInstancedANGLE(). Note: When using WebGL2, this method is available as gl.vertexAttribDivisor() by default. Syntax void ext.vertexAttribDivisorANGLE(index, divisor); Parameters index A GLuint specifying the index of the generic vertex attributes. divisor A GLuint specifying the number of instances that will pass between updates of the generic attribute. Return value None. Examples var ext = gl.getExtension('ANGLE_instanced_arrays'); ext.vertexAttribDivisorANGLE(0, 2); Specifications Specification Status Comment ANGLE_instanced_arraysThe definition of 'ANGLE_instanced_arrays' in that specification. Recommendation Initial definition. ...
AbortController.AbortController() - Web APIs
Examples In the following snippet, we aim to download a video using the Fetch API. We first create a controller using the AbortController() constructor, then grab a reference to its associated AbortSignal object using the AbortController.signal property. When the fetch request is initiated, we pass in the AbortSignal as an option inside the request's options object (see {signal}, below). ...
AbortController.abort() - Web APIs
Return value Void. Examples In the following snippet, we aim to download a video using the Fetch API. We first create a controller using the AbortController() constructor, then grab a reference to its associated AbortSignal object using the AbortController.signal property. ...
AnalyserNode.getByteFrequencyData() - Web APIs
/ fill the Uint8Array with data returned from getByteFrequencyData() Parameters array The Uint8Array that the frequency domain data will be copied to. For any sample which is silent, the value is -Infinity. If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more elements than needed, excess elements are ignored. Return value None. Example The following example shows basic usage of an AudioContext to create an AnalyserNode, then requestAnimationFrame and <canvas> to collect frequency data repeatedly and draw a "winamp bargraph style" output of the current audio input. For more examples/information, check out our Voice-change-O-matic demo (see app.js lines 128-205 for relevant code). var audioCtx = new (window.AudioCon...
AnalyserNode.getByteTimeDomainData() - Web APIs
ength as the fftSize analyser.getByteTimeDomainData(dataArray); // fill the Uint8Array with data returned from getByteTimeDomainData() Parameters array The Uint8Array that the time domain data will be copied to. If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more elements than needed, excess elements are ignored. Return value void | None Example The following example shows basic usage of an AudioContext to create an AnalyserNode, then requestAnimationFrame and <canvas> to collect time domain data repeatedly and draw an "oscilloscope style" output of the current audio input. For more complete applied examples/information, check out our Voice-change-O-matic demo (see app.js lines 128-205 for relevant code). const audioCtx = new ...
AnalyserNode.getFloatFrequencyData() - Web APIs
ill the Float32Array with data returned from getFloatFrequencyData() Parameters array The Float32Array that the frequency domain data will be copied to. For any sample which is silent, the value is -Infinity. If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more elements than needed, excess elements are ignored. Return value None. Example const audioCtx = new AudioContext(); const analyser = audioCtx.createAnalyser(); // Float32Array should be the same length as the frequencyBinCount const myDataArray = new Float32Array(analyser.frequencyBinCount); // fill the Float32Array with data returned from getFloatFrequencyData() analyser.getFloatFrequencyData(myDataArray); Drawing a spectrum The following example shows basic ...
AnalyserNode.getFloatTimeDomainData() - Web APIs
e fftSize analyser.getFloatTimeDomainData(dataArray); // fill the Float32Array with data returned from getFloatTimeDomainData() Parameters array The Float32Array that the time domain data will be copied to. If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more elements than needed, excess elements are ignored. Return value None. Example The following example shows basic usage of an AudioContext to create an AnalyserNode, then requestAnimationFrame and <canvas> to collect time domain data repeatedly and draw an "oscilloscope style" output of the current audio input. For more complete applied examples/information, check out our Voice-change-O-matic-float-data demo (see the source code too). var audioCtx = new (window.A...
Animation.cancel() - Web APIs
Web › API › Animation › cancel
The Web Animations API's cancel() method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback. When an animation is cancelled, its startTime and currentTime are set to null. Syntax Animation.cancel(); Parameters None. Return value None. Exceptions This method doesn't directly throw exceptions; however, if the animation's playState is anything but "idle" when cancelled, the current finished promise is rejected with a DOMException named AbortError. Specifications Specification Status Comment Web AnimationsThe definition of 'Animation.cancel()' in that specification. Working Draft Editor's draft. ...
Animation.commitStyles() - Web APIs
The commitStyles() method of the Web Animations API's Animation interface commits the end styling state of an animation to the element being animated, even after that animation has been removed. It will cause the end styling state to be written to the element being animated, in the form of properties inside a style attribute. Syntax animation.commitStyles(); Parameters None. Return value None. Examples const divElem = document.querySelector('div'); document.body.addEventListener('mousemove', evt => { let anim = divElem.animate( { transform: `translate(${ evt.clientX}px, ${evt.clientY}px)` }, { duration: 500, fill: 'forwards' } ); anim.commitStyles(); }); Specifications Specification Status Comment Web AnimationsThe definition of 'commit...
Animation.finish() - Web APIs
Web › API › Animation › finish
imation Interface sets the current playback time to the end of the animation corresponding to the current playback direction. That is, if the animation is playing forward, it sets the playback time to the length of the animation sequence, and if the animation is playing in reverse (having had its reverse() method called), it sets the playback time to 0. Syntax Animation.finish(); Parameters None. Return value None. Exceptions InvalidState The player's playback rate is 0 or the animation's playback rate is greater than 0 and the end time of the animation is infinity. Examples The following example shows how to use the finish() method and catch an InvalidState error. interfaceElement.addEventListener("mousedown", function() { try { player.finish(); } catch(e if e inst...
Animation.pause() - Web APIs
Web › API › Animation › pause
Exceptions InvalidStateError The animation's currentTime is unresolved (for example, if it's never been played or isn't currently playing) and the end time of the animation is positive infinity. Throws an InvalidStateError if the animation's currentTime is unresolved (perhaps it hasn't started playing yet) and the end time of the animation is positive infinity. ...
Animation.persist() - Web APIs
Web › API › Animation › persist
The persist() method of the Web Animations API's Animation interface explicitly persists an animation, when it would otherwise be removed due to the browser's Automatically removing filling animations behavior. Syntax animation.persist(); Parameters None. Return value None. Examples In our simple replace indefinite animations demo, you can see the following code: const divElem = document.querySelector('div'); document.body.addEventListener('mousemove', evt => { let anim = divElem.animate( { transform: `translate(${ evt.clientX}px, ${evt.clientY}px)` }, { duration: 500, fill: 'forwards' } ); anim.commitStyles(); //anim.persist() anim.onremove = function() { console.log('Animation removed'); } console.log(anim.replaceState); }); Here we have a <d...
Animation.play() - Web APIs
Web › API › Animation › play
Return value undefined Example In the Growing/Shrinking Alice Game example, clicking or tapping the cake causes Alice's growing animation (aliceChange) to play forward, causing her to get bigger, as well as triggering the cake's animation. ...
Animation.reverse() - Web APIs
Web › API › Animation › reverse
The Animation.reverse() method of the Animation Interface reverses the playback direction, meaning the animation ends at its beginning. If called on an unplayed animation, the whole animation is played backwards. If called on a paused animation, the animation will continue in reverse. Syntax animation.reverse(); Parameters None. Return value undefined Example In the Growing/Shrinking Alice Game example, clicking or tapping the bottle causes Alice's growing animation (aliceChange) to play backwards, causing her to get smaller. It is done by setting aliceChange's Animation.playbackRate to -1 like so: var shrinkAlice = function() { // play Alice's animation in reverse aliceChange.playbackRate = -1; aliceChange.play(); // play the bottle's animation drinking.play()...
Animation.updatePlaybackRate() - Web APIs
the animation's playbackRate is not immediately updated. It will be updated once the animation's ready promise is resolved. Syntax Animation.updatePlaybackRate(2); Parameters playbackRate The new speed to set. This may be a positive number (to speed up or slow down the animation), a negative number (to make it play backwards), or zero (to effectively pause the animation). Return value None. Examples A speed selector component would benefit from smooth updating of updatePlaybackRate(), as demonstrated below: speedSelector.addEventListener('input', evt => { cartoon.updatePlaybackRate(parseFloat(evt.target.value)); cartoon.ready.then(() => { console.log(`Playback rate set to ${cartoon.playbackRate}`); }); }); Specifications Specification Status Commen...
AnimationEffect.getComputedTiming() - Web APIs
ns the calculated value of the iteration duration. If EffectTiming.duration is the string auto, this attribute will return 0. fill The auto value is replaced with the appropriate EffectTiming.fill value. These values are comparable to the computed styles of an Element returned using window.getComputedStyle(elem). Syntax var currentTimeValues = animation.getComputedTiming(); Parameters None. Return Value A ComputedEffectTiming dictionary object, which contains the following properties: endTime The end time of the animation in milliseconds from the animation's start (if the KeyframeEffect is associated with an Animation). (Also includes EffectTiming.endDelay in that calculation.) activeDuration The length of time in milliseconds that the animation's effects will run. This is ...
AnimationEffect.updateTiming() - Web APIs
The updateTiming() method of the AnimationEffect interface updates the specified timing properties for an animation effect. Syntax animation.updateTiming(timing); Parameters timing An OptionalEffectTiming object containing the timing properties to update. Return Value None. Specifications Specification Status Comment Web AnimationsThe definition of 'AnimationEffect.updateTiming()' in that specification. Working Draft Editor's draft. ...
AnimationEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AnimationEvent" target="_top"><rect x="116" y="1" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="186" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AnimationEvent</text></a></sv...
AudioContext.getOutputTimestamp() - Web APIs
t was first created. AudioTimestamp.performanceTime: An estimation of the moment when the sample frame corresponding to the stored contextTime value was rendered by the audio output device, in the same units and origin as performance.now(). This is the time after the document containing the audio context was first rendered. Syntax var timestamp = AudioContext.getOutputTimestamp() Parameters None. Returns An AudioTimestamp object, which has the following properties. contextTime: A point in the time coordinate system of the currentTime for the BaseAudioContext; the time after the audio context was first created. performanceTime: A point in the time coordinate system of a Performance interface; the time after the document containing the audio context was first rendered Examples In ...
AudioContext.resume() - Web APIs
Return value A Promise that resolves when the context has resumed. The promise is rejected if the context has already been closed. ...
AudioContext - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioContext" target="_top"><rect x="151" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioContext</text></a></svg><...
AudioNode - Web APIs
Web › API › AudioNode
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="151" y="1" width="90" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a></svg></div> ...
AuthenticatorAssertionResponse - Web APIs
orAssertionResponse.authenticatorData and AuthenticatorResponse.clientDataJSON. The assertion signature is created with the private key of keypair that was created during the navigator.credentials.create() call and verified using the public key of that same keypair. AuthenticatorAssertionResponse.userHandle Secure contextRead only An ArrayBuffer containing an opaque user identifier. Methods None. Examples var options = { challenge: new Uint8Array([/* bytes sent from the server */]) }; navigator.credentials.get({ "publicKey": options }) .then(function (credentialInfoAssertion) { var assertionResponse = credentialInfoAssertion.response; // Do something specific with the response // send assertion response back to the server // to proceed with the control of the cr...
AuthenticatorAttestationResponse.attestationObject - Web APIs
estedCredentialData field contains the credentialId and credentialPublicKey. fmt A text string that indicates the format of the attStmt. The WebAuthn specification defines a number of formats; however, formats may also be defined in other specifications and registered in an IANA registry. Formats defined by WebAuthn are: "packed" "tpm" "android-key" "android-safetynet" "fido-u2f" "none" attStmt A an attestation statement that is of the format defined by "fmt". For now, see the WebAuthn specification for details on each format. Examples var publicKey = { challenge: /* from the server */, rp: { name: "Example CORP", id : "login.example.com" }, user: { id: new Uint8Array(16), name: "jdoe@example.com", displayName: "John Doe" }, pubKeyCred...
AuthenticatorAttestationResponse.getTransports() - Web APIs
the authenticator is not removable from the device). Note: An AuthenticatorAttestationResponse instance is available on PublicKeyCredential.response after calling navigator.credentials.create(). Note: This method may only be used in top-level contexts and will not be available in an <iframe> for example. Syntaxe arrTransports = authenticatorAttestationResponse.getTransports() Parameters None. Return value An Array containing the different transports supported by the authenticator or nothing if this information is not available.of the processing of the different extensions by the client. The elements of this array are supposed to be in lexicographical order. Their values may be : "usb": the authenticator can be contacted via a removable USB link "nfc": the authenticator may be u...
AuthenticatorResponse - Web APIs
e. Interfaces based on AuthenticatorResponse Below is a list of interfaces based on the AuthenticatorResponse interface. AuthenticatorAssertionResponse AuthenticatorAttestationResponse Properties AuthenticatorResponse.clientDataJSON A JSON string in an ArrayBuffer, representing the client data that was passed to CredentialsContainer.create() or CredentialsContainer.get(). Methods None. Examples Getting an AuthenticatorAssertionResponse var options = { challenge: new Uint8Array([/* bytes sent from the server */]) }; navigator.credentials.get({ "publicKey": options }) .then(function (credentialInfoAssertion) { var assertionResponse = credentialInfoAssertion.response; // send assertion response back to the server // to proceed with the control of the credent...
BaseAudioContext.createConstantSource() - Web APIs
Returns A ConstantSourceNode instance. ...
BaseAudioContext - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BaseAudioContext" target="_top"><rect x="151" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BaseAudioContext</text></a...
BeforeInstallPromptEvent.prompt() - Web APIs
Returns An empty Promise. ...
BeforeInstallPromptEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BeforeInstallPromptEvent" target="_top"><rect x="116" y="1" width="240" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="236" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BeforeInstallPrompt...
BeforeUnloadEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BeforeUnloadEvent" target="_top"><rect x="116" y="1" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="201" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BeforeUnloadEvent</text></...
Blob.arrayBuffer() - Web APIs
Web › API › Blob › arrayBuffer
Returns A promise that resolves with an ArrayBuffer that contains the blob's data in binary form. ...
Blob.stream() - Web APIs
Web › API › Blob › stream
Returns A ReadableStream which, upon reading, returns the contents of the Blob. Usage notes With stream() and the returned ReadableStream, you gain several interesting capabilities: Call getReader() on the returned stream to get an object to use to read the data from the blob using methods such as the ReadableStreamDefaultReader interface's read() method. ...
Blob.text() - Web APIs
Web › API › Blob › text
Returns A promise that resolves with a USVString which contains the blob's data as a text string. The data is always presumed to be in UTF-8 format. ...
Bluetooth.getAvailability() - Web APIs
wise (unless user configured User Agent not to expose a real value). Note: User might not allow use of Web Bluetooth API, even if getAvailability() returned true (navigator.bluetooth.requestDevice() might not resolve with a BluetoothDevice). Also, user can configure User Agent to return a fixed value instead of a real one. Syntax var readerPromise = Bluetooth.getAvailability(); Parameters None. Return value A Promise that resolves with Boolean. Exceptions This method doesn't throw any exceptions. Examples The following snippet prints out a message in the console specifying wheter or not Bluetooth is supported: navigator.bluetooth.getAvailability().then(available => { if (available) console.log("This device supports Bluetooth!"); else console.log("Doh! Bluetooth i...
Bluetooth.getDevices() - Web APIs
pts. Note: This method returns a BluetoothDevice for each device the origin is currently allowed to access, even the ones that are out of range or powered off. The program can detect when a device comes online or into range by watching for BlueTooth advertisements by calling BluetoothDevice.watchAdvertisements() on that device. Syntax var readerPromise = Bluetooth.getDevices(); Parameters None. Return value A Promise that resolves with an array of BluetoothDevices. Exceptions This method doesn't throw any exceptions. Specifications Specification Status Comment Web BluetoothThe definition of 'getDevices()' in that specification. Draft Initial definition. ...
BluetoothAdvertisingData - Web APIs
...
connectGATT() - Web APIs
...
BluetoothDevice - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BluetoothDevice" target="_top"><rect x="151" y="1" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BluetoothDevice</text></a><...
BluetoothRemoteGATTServer.connect() - Web APIs
The BluetoothRemoteGATTServer.connect() method causes the script execution environment to connect to this.device. Syntax BluetoothRemoteGATTServer.connect() .then(function(bluetoothRemoteGATTServer) { ... }) Returns A Promise that resolves to a BluetoothRemoteGATTServer. Parameters None. Specifications Specification Status Comment Web BluetoothThe definition of 'connect()' in that specification. Draft Initial definition. ...
BluetoothRemoteGATTServer.disconnect() - Web APIs
The BluetoothRemoteGATTServer.disconnect() method causes the script execution environment to disconnect from this.device. Syntax BluetoothRemoteGATTServer.disconnect() Returns None. Parameters None. Specifications Specification Status Comment Web BluetoothThe definition of 'disconnect()' in that specification. Draft Initial definition. ...
Body.arrayBuffer() - Web APIs
Web › API › Body › arrayBuffer
Return value A promise that resolves with an ArrayBuffer. Examples Playing music In our fetch array buffer live, we have a Play button. When pressed, the getData() function is run. Note that before playing full audio file will be downloaded. ...
Body.blob() - Web APIs
Web › API › Body › blob
Note: If the Response has a Response.type of "opaque", the resulting Blob will have a Blob.size of 0 and a Blob.type of empty string "", which renders it useless for methods like URL.createObjectURL. Return value A promise that resolves with a Blob. ...
Body.formData() - Web APIs
Web › API › Body › formData
mData object. Note: This is mainly relevant to service workers. If a user submits a form and a service worker intercepts the request, you could for example call formData() on it to obtain a key-value map, modify some fields, then send the form onwards to the server (or use it locally). Syntax response.formData() .then(function(formdata) { // do something with your formdata }); Parameters None. Return value A Promise that resolves with a FormData object. Example TBD. Specifications Specification Status Comment FetchThe definition of 'formData()' in that specification. Living Standard ...
Body.json() - Web APIs
Web › API › Body › json
Return value A Promise that resolves to a JavaScript object. This object could be anything that can be represented by JSON -- an object, an array, a string, a number... ...
Body.text() - Web APIs
Web › API › Body › text
Return value A Promise that resolves with a USVString. ...
BroadcastChannel - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BroadcastChannel" target="_top"><rect x="151" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BroadcastChannel</text></a...
BudgetService.getBudget() - Web APIs
Returns A Promise that resolves to an instance of BudgetState. Browser Compatibility The compatibility table on this page is generated from structured data. ...
BudgetService - Web APIs
Methods BudgetService.getCost() Returns a Promise that resolves to a double, indicating the worst-case background operation cost of the provided background operation. BudgetService.getBudget() Returns a Promise that resolves to an array of BudgetState objects, indicating the expected state of the budget at times in the future. ...
BudgetState - Web APIs
Browser Compatibility The compatibility table on this page is generated from structured data. ...
ByteLengthQueuingStrategy.ByteLengthQueuingStrategy() - Web APIs
tance. Syntax var byteLengthQueuingStrategy = new ByteLengthQueuingStrategy({highWaterMark}); Parameters {highWaterMark} An object containing a highWaterMark property. This is a non-negative integer defining the total number of chunks that can be contained in the internal queue before backpressure is applied. Return value An instance of the ByteLengthQueuingStrategy object. Exceptions None. Examples const queuingStrategy = new ByteLengthQueuingStrategy({ highWaterMark: 1 }); const readableStream = new ReadableStream({ start(controller) { ... }, pull(controller) { ... }, cancel(err) { console.log("stream error:", err); } }, queuingStrategy); var size = queuingStrategy.size(chunk); Specifications Specification Status Comment Strea...
ByteLengthQueuingStrategy - Web APIs
Methods ByteLengthQueuingStrategy.size() Returns the given chunk's byteLength property. ...
CSSCounterStyleRule - Web APIs
MinYMin meet"><a xlink:href="/docs/Web/API/CSSRule" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CSSRule</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CSSCounterStyleRule" target="_top"><rect x="116" y="1" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CSSCounterStyleRule</tex...
CSSImageValue - Web APIs
The CSSImageValue interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source. The CSSImageValue object represents an <image> that involves an URL, such as url() or image(), but not linear-gradient() or element() . Properties None. Methods None. Examples We create an element <button>Magic Wand</button> We add some CSS, including a background image requesting a binary file: button { display: inline-block; min-height: 100px; min-width: 100px; background: no-repeat 5% center url(https://mdn.mozillademos.org/files/16793/magicwand.png) aqua; } We get the element's style map. We then get() the background-image from the stylemap and stringify it: // get the element c...
CSSMathProduct - Web APIs
The CSSMathProduct interface of the CSS Typed Object Model API represents the result obtained by calling add(), sub(), or toSum() on CSSNumericValue. Constructor CSSMathProduct.CSSMathProduct() Creates a new CSSMathProduct object. Properties CSSMathProduct.values Returns a CSSNumericArray object which contains one or more CSSNumericValue objects. Methods None. Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'CSSMathProduct' in that specification. Working Draft Initial definition. ...
CSSMathSum - Web APIs
umericValue. A CSSMathSum is the object type returned when the StylePropertyMapReadOnly.get() method is used on a CSS property whosevalue is created with a calc() function. Constructor CSSMathSum.CSSMathSum() Creates a new CSSMathSum object. Properties CSSMathSum.values Returns a CSSNumericArray object which contains one or more CSSNumericValue objects. Event handlers No Methods None. Examples We create an element with a width determined using a calc() function, then console.log() the operator and values, and dig into the values a bit. <div>has width</div> We assign a width div { width: calc(30% - 20px); } We add the JavaScript const styleMap = document.querySelector('div').computedStyleMap(); console.log( styleMap.get('width') ); // CSSMathSum {va...
CSSMathValue - Web APIs
ed Object Model API a base class for classes representing complex numeric values. Interfaces based on CSSMathValue Below is a list of interfaces based on the CSSMathValue interface. CSSMathInvert CSSMathMax CSSMathMin CSSMathNegate CSSMathProduct CSSMathSum Properties CSSMathValue.operator Indicates the operator that the current subtype represents. Event handlers No Methods None. Examples We create an element with a width determined using a calc() function, then console.log() the operator. <div>has width</div> We assign a width with a calculation div { width: calc(30% - 20px); } We add the JavaScript const styleMap = document.querySelector('div').computedStyleMap(); console.log( styleMap.get('width') ); // CSSMathSum {values: CSSNumericArray, ...
CSSNumericValue.equals() - Web APIs
face returns a boolean indicating whether the passed value are strictly equal. To return a value of true, all passed values must be of the same type and value and must be in the same order. This allows structural equality to be tested quickly. Syntax var boolean = CSSNumericValue.equals(number); Parameters number Either a Number or a CSSNumericValue. Return value A Boolean. Exceptions None. Examples As stated earlier, all passed values must be of the same type and value and must be in the same order. Some of the following examples illustrate what happens when they are not. let cssMathSum = new CSSMathSum(CSS.px(1), CSS.px(2)); let matchingCssMathSum = new CSSMathSum(CSS.px(1), CSS.px(2)); // Prints true console.log(cssMathSum.equals(matchingCssMathSum)); let otherCssMathSum = C...
CSSNumericValue.type - Web APIs
The type() method of the CSSNumericValue interface returns the type of CSSNumericValue, one of angle, flex, frequency, length, resolution, percent, percentHint, or time. Syntax var cssNumericType = CSSNumericValue.type(); Parameters None. Return value A CSSNumericType object. Exceptions None. Examples let mathSum = CSS.px("23").sub(CSS.percent("4")).sub(CSS.cm("3")).sub(CSS.in("9")); // Returns an object with the structure: {length: 1, percentHint: "length"} let cssNumericType = mathSum.type(); Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'type' in that specification. Working Draft Initial definition. ...
CSSNumericValue - Web APIs
represents operations that all numeric values can perform. Interfaces based on CSSNumericValue Below is a list of interfaces based on the CSSNumericValue interface. CSSMathInvert CSSMathMax CSSMathMin CSSMathNegate CSSMathProduct CSSMathSum CSSMathValue CSSNumericArray CSSPerspective CSSPositionValue CSSRotate CSSSkew CSSSkeyX CSSSkeyW CSSTranslate CSSUnitValue Properties None. Event handlers No Methods CSSNumericValue.add Adds a supplied number to the CSSNumericValue. CSSNumericValue.sub Subtracts a supplied number from the CSSNumericValue. CSSNumericValue.mul Multiplies the CSSNumericValue by the supplied value. CSSNumericValue.div Divides the CSSNumericValue by the supplied value. CSSNumericValue.min Returns the minimum value passed CSSNumericValue.m...
CSSPrimitiveValue - Web APIs
MinYMin meet"><a xlink:href="/docs/Web/API/CSSValue" target="_top"><rect x="1" y="1" width="80" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="41" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CSSValue</text></a><polyline points="81,25 91,20 91,30 81,25" stroke="#D4DDE4" fill="none"/><line x1="91" y1="25" x2="121" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/CSSPrimitiveValue" target="_top"><rect x="121" y="1" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="206" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">CSSPrimitiveValue</text></...
CSSStyleDeclaration.getPropertyCSSValue() - Web APIs
aining the CSS value for a property. Note that it returns null if the property name is a shorthand property. You should use CSSStyleDeclaration.getPropertyValue() instead. Syntax var value = style.getPropertyCSSValue(property); Parameters property is a DOMString representing the property name to be retrieved. Return value value is a CSSValue containing the CSS value for a property. If none exists, returns null. Example The following JavaScript code gets an object containing the computed RGB values of the color CSS property: var style = window.getComputedStyle(elem, null); var rgbObj = style.getPropertyCSSValue('color').getRGBColorValue(); Specifications Specification Status Comment Document Object Model (DOM) Level 2 Style SpecificationThe definit...
CSSStyleDeclaration.getPropertyPriority() - Web APIs
e CSSStyleDeclaration.getPropertyPriority() method interface returns a DOMString that provides all explicitly set priorities on the CSS property. Syntax var priority = style.getPropertyPriority(property); Parameters property is a DOMString representing the property name to be checked. Return value priority is a DOMString that represents the priority (e.g. "important") if one exists. If none exists, returns the empty string. Example The following JavaScript code checks whether margin is marked as important in a CSS selector rule: var declaration = document.styleSheets[0].cssRules[0].style; var isImportant = declaration.getPropertyPriority('margin') === 'important'; Specifications Specification Status Comment CSS Object Model (CSSOM)The definition of...
CSSUnitValue - Web APIs
f the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. Constructor CSSStyleValue.CSSUnitValue() Creates a new CSSUnitValue object. Properties CSSUnitValue.value Returns a double indicating the number of units. CSSUnitValue.unit Returns a USVString indicating the type of unit. Event handlers None. Methods None. Examples The following shows a method of creating a CSSPositionValue from individual CSSUnitValue constructors. let pos = new CSSPositionValue( new CSSUnitValue(5, "px"), new CSSUnitValue(10, "px")); Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'CSSUnitValue' in that specification. Working Draft Initi...
CSSUnparsedValue.keys() - Web APIs
Return value A new Array. ...
CSSUnparsedValue.values() - Web APIs
The CSSUnparsedValue.values() method returns a new Array Iterator object that contains the values for each index in the CSSUnparsedValue object. Syntax CSSUnparsedValue.values() Parameters None. Return value A new Array. Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'values()' in that specification. Working Draft Initial definition. ...
CSSVariableReferenceValue - Web APIs
as the var() function. The custom name must begin with two dashes. Constructor CSSVariableReferenceValue.CSSVariableReferenceValue() Creates a new CSSVariableReferenceValue object. Properties CSSVariableReferenceValue.variable Returns the custom name passed to the constructor. CSSVariableReferenceValue.fallback Read only Returns the built-in CSS value for the custom name. Methods None. Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'CSSVariableReferenceValue' in that specification. Working Draft Initial definition. ...
Managing screen orientation - Web APIs
quis malesuada est.</p> CSS relies on the orientation media query to handle specific styles based on the screen orientation /* First let's define some common styles */ html, body { width : 100%; height: 100%; } body { border: 1px solid black; -moz-box-sizing: border-box; box-sizing: border-box; } p { font : 1em sans-serif; margin : 0; padding: .5em; } ul { list-style: none; font : 1em monospace; margin : 0; padding: .5em; -moz-box-sizing: border-box; box-sizing: border-box; background: black; } li { display: inline-block; margin : 0; padding: 0.5em; background: white; } Once we have some common styles we can start defining a special case for the orientation /* For portrait, we want the tool bar on top */ @media screen and (orientation:...
Using the CSS Painting API - Web APIs
eWidth = parseInt(args[1]); // set the stroke width if ( strokeWidth ) { ctx.lineWidth = strokeWidth; } else { ctx.lineWidth = 1.0; } // set the fill type if ( strokeType === 'stroke' ) { ctx.fillStyle = 'transparent'; ctx.strokeStyle = colour; } else if ( strokeType === 'filled' ) { ctx.fillStyle = colour; ctx.strokeStyle = colour; } else { ctx.fillStyle = 'none'; ctx.strokeStyle = 'none'; } // block ctx.beginPath(); ctx.moveTo( x, y ); ctx.lineTo( blockWidth, y ); ctx.lineTo( blockWidth + blockHeight, blockHeight ); ctx.lineTo( x, blockHeight ); ctx.lineTo( x, y ); ctx.closePath(); ctx.fill(); ctx.stroke(); // dashes for (let i = 0; i < 4; i++) { let start = i * 2; ctx.beginPath(); ctx.moveTo( blockWidth + (start *...
CSS Painting API - Web APIs
; const strokeWidth = parseInt(args[1]); console.log(theColor); if ( strokeWidth ) { ctx.lineWidth = strokeWidth; } else { ctx.lineWidth = 1.0; } if ( strokeType === 'stroke' ) { ctx.fillStyle = 'transparent'; ctx.strokeStyle = theColor; } else if ( strokeType === 'filled' ) { ctx.fillStyle = theColor; ctx.strokeStyle = theColor; } else { ctx.fillStyle = 'none'; ctx.strokeStyle = 'none'; } ctx.beginPath(); ctx.moveTo( x, y ); ctx.lineTo( blockWidth, y ); ctx.lineTo( blockWidth + blockHeight, blockHeight ); ctx.lineTo( x, blockHeight ); ctx.lineTo( x, y ); ctx.closePath(); ctx.fill(); ctx.stroke(); for (let i = 0; i < 4; i++) { let start = i * 2; ctx.beginPath(); ctx.moveTo( blockWidth + (start * 10) + 10, y); ...
Cache - Web APIs
Web › API › Cache
Cache. You are also responsible for periodically purging cache entries. Each browser has a hard limit on the amount of cache storage that a given origin can use. Cache quota usage estimates are available via the StorageEstimate API. The browser does its best to manage disk space, but it may delete the Cache storage for an origin. The browser will generally delete all of the data for an origin or none of the data for an origin. Make sure to version caches by name and use the caches only from the version of the script that they can safely operate on. See Deleting old caches for more information. Note: The key matching algorithm depends on the VARY header in the value. So matching a new key requires looking at both key and value for entries in the Cache. Note: The caching API doesn't honor ...
CacheStorage.keys() - Web APIs
Web › API › CacheStorage › keys
romise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created. Use this method to iterate over a list of all Cache objects. You can access CacheStorage through the global caches property. Syntax caches.keys().then(function(keyList) { //do something with your keyList }); Parameters None. Return value a Promise that resolves with an array of the Cache names inside the CacheStorage object. Examples In this code snippet we wait for an activate event, and then run a waitUntil() block that clears up any old, unused caches before a new service worker is activated. Here we have a whitelist containing the names of the caches we want to keep (cacheWhitelist). We return the keys of th...
CanvasPattern.setTransform() - Web APIs
ons started to support DOMMatrix as an input to setTransform(), so for example you could replace the SVGMatrix in the above example with the following: const matrix = new DOMMatrix([1, .2, .8, 1, 0, 0]); Edit the code below and see your changes update live in the canvas: Playable code <canvas id="canvas" width="400" height="200" class="playable-canvas"></canvas> <svg id="svg1" style="display:none"></svg> <div class="playable-buttons"> <input id="edit" type="button" value="Edit" /> <input id="reset" type="button" value="Reset" /> </div> <textarea id="code" class="playable-code" style="height:120px"> var img = new Image(); img.src = 'https://mdn.mozillademos.org/files/222/Canvas_createpattern.png'; img.onload = function() { var pattern = ctx.createPattern(img, 'repeat'); pattern.set...
CanvasRenderingContext2D.drawImage() - Web APIs
_STATE_ERR The image has no image data. TYPE_MISMATCH_ERR The specified source element isn't supported. NS_ERROR_NOT_AVAILABLE The image is not loaded yet. Use .complete === true and .onload to determine when it is ready. Examples Drawing an image to the canvas This example draws an image to the canvas using the drawImage() method. HTML <canvas id="canvas"></canvas> <div style="display:none;"> <img id="source" src="https://udn.realityripple.com/samples/db/f374e9c6fc.jpg" width="300" height="227"> </div> JavaScript The source image is taken from the coordinates (33, 71), with a width of 104 and a height of 124. It is drawn to the canvas at (21, 20), where it is given a width of 87 and a height of 104. const canvas = document.getElementById('canvas'); const ctx = c...
CanvasRenderingContext2D.getTransform() - Web APIs
Return value A DOMMatrix object. The transformation matrix is described by: [acebdf001]\left[ \begin{array}{ccc} a & c & e \\ b & d & f \\ 0 & 0 & 1 \end{array} \right] Note: The returned object is not live, so updating it will not affect the current transformation matrix, and updating the current transformation matrix will not affect an already returned DOMMatrix. ...
Applying styles and colors - Web APIs
gles. A miter limit equal to 1.0 is valid but will disable all miters. Values below 1.0 are invalid for the miter limit. Here's a little demo in which you can set miterLimit dynamically and see how this effects the shapes on the canvas. The blue lines show where the start and endpoints for each of the lines in the zig-zag pattern are. ...
Basic animations - Web APIs
-size: -webkit-xxx-large; font-weight: 900; color: #fff; transition: .5s; opacity: .1; border-radius: 7px } .keypress { position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; display: flex; flex-wrap: wrap; justify-content: space-around; opacity: 1; user-select: none } .keypress>div:hover { opacity: 1 } .touch { background: #8bc34a } .off { background: #f44336 } .hide { opacity: 0 } </style> </html> Javascript function tmz() { var e = new Date(t), i = new Date, n = Math.abs(i.getMinutes() - e.getMinutes()), o = Math.abs(i.getSeconds() - e.getS...
Client.frameType - Web APIs
Web › API › Client › frameType
The frameType read-only property of the Client interface indicates the type of browsing context of the current Client. This value can be one of "auxiliary", "top-level", "nested", or "none". Syntax var myFrameType = client.frameType; Example TBD Specifications Specification Status Comment Service WorkersThe definition of 'frameType' in that specification. Working Draft Initial definition. ...
Clients.claim() - Web APIs
Web › API › Clients › claim
at become controlled by this service worker. When a service worker is initially registered, pages won't use it until they next load. The claim() method causes those pages to be controlled immediately. Be aware that this results in your service worker controlling pages that loaded regularly over the network, or possibly via a different service worker. Syntax await clients.claim(); Parameters None. Return value A Promise that resolves to undefined. Example The following example uses claim() inside service worker's "activate" event listener so that clients loaded in the same scope do not need to be reloaded before their fetches will go through this service worker. self.addEventListener('activate', event => { event.waitUntil(clients.claim()); }); Specifications Specificatio...
Clipboard.read() - Web APIs
Web › API › Clipboard › read
the clipboard, you must first have the "clipboard-read" permission. Note: The asynchronous Clipboard and Permissions APIs are still in the process of being integrated into most browsers, so they often deviate from the official rules for permissions and the like. Be sure to review the compatibility table before using these methods. Syntax var promise = navigator.clipboard.read(); Parameters None. Return value A Promise that resolves with a DataTransfer object containing the clipboard's contents. The promise is rejected if permission to access the clipboard is not granted. Example After using navigator.permissions.query() to find out if we have (or if the user will be prompted to allow) "clipboard-read" access, this example fetches the data currently on the clipboard. If it's not a pn...
Clipboard.readText() - Web APIs
Return value A Promise that resolves with a DOMString containing the textual contents of the clipboard. ...
Console.groupEnd() - Web APIs
Web › API › Console › groupEnd
Exits the current inline group in the Web Console. See Using groups in the console in the console documentation for details and examples. Note: This feature is available in Web Workers. Syntax console.groupEnd(); Parameters None. Specifications Specification Status Comment Console APIThe definition of 'console.groupEnd()' in that specification. Living Standard Initial definition ...
CountQueuingStrategy.CountQueuingStrategy() - Web APIs
tegy object instance. Syntax var countQueuingStrategy = new CountQueuingStrategy({highWaterMark}); Parameters {highWaterMark} An object containing a highWaterMark property. This is a non-negative integer defining the total number of chunks that can be contained in the internal queue before backpressure is applied. Return value An instance of the CountQueuingStrategy object. Exceptions None. Examples const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 }); const writableStream = new WritableStream({ // Implement the sink write(chunk) { ... }, close() { ... }, abort(err) { console.log("Sink error:", err); } }, queuingStrategy); var size = queuingStrategy.size(); Specifications Specification Status Comment StreamsT...
CountQueuingStrategy.size() - Web APIs
Return value 1. Examples const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 }); const writableStream = new WritableStream({ // Implement the sink write(chunk) { ... }, close() { ... ...
CountQueuingStrategy - Web APIs
Methods CountQueuingStrategy.size() Returns 1. Examples const queueingStrategy = new CountQueuingStrategy({ highWaterMark: 1 }); const writableStream = new WritableStream({ // Implement the sink write(chunk) { ... }, close() { ... ...
Credential - Web APIs
ust decision. Properties Credential.id Read only Returns a DOMString containing the credential's identifier. This might be any one of a GUID, username, or email address. Credential.type Read only Returns a DOMString containing the credential's type. Valid values are password, federated and public-key. (For PasswordCredential, FederatedCredential and PublicKeyCredential) Event handlers None. Methods None. Examples // TBD Specifications Specification Status Comment Credential Management Level 1 Working Draft Initial definition. ...
CredentialsContainer.preventSilentAccess() - Web APIs
rming a user of an account login status. This method is typically called after a user signs out of a website, ensuring this user's login information is not automatically passed on the next site visit. Earlier versions of the spec called this method requireUserMediation(). See Browser compatibility for support details. Syntax var Promise = CredentialsContainer.preventSilentAccess() Parameters None. Returns An empty Promise. Specifications Specification Status Comment Credential Management Level 1The definition of 'preventSilentAccess()' in that specification. Working Draft Initial definition. ...
DOMException.code - Web APIs
Web › API › DOMException › code
This field is used for historical reasons. New DOM exceptions don't use this anymore: they put this info in the DOMException.name attribute. Syntax var domExceptionCode = domExceptionInstance.code; Value A short number. Specifications Specification Status Comment Web IDLThe definition of 'code' in that specification. Candidate Recommendation Browser Compatibility The compatibility table on this page is generated from structured data. ...
DOMException - Web APIs
This is basically how error conditions are described in web APIs. Each exception has a name, which is a short "CamelCase" style string identifying the error or abnormal condition. Constructor DOMException() Returns a DOMException object with a specified message and name. Properties DOMException.code Read only Returns a short that contains one of the error code constants, or 0 if none match. This field is used for historical reasons. New DOM exceptions don't use this anymore: they put this info in the DOMException.name attribute. DOMException.message Read only Returns a DOMString representing a message or description associated with the given error name. DOMException.name Read only Returns a DOMString that contains one of the strings associated with an error name. Erro...
DOMMatrixReadOnly - Web APIs
of a 4x4 matrix which are required in order to perform 2D rotations and translations. These are aliases for specific components of a 4x4 matrix, as shown below. 2D 3D equivalent a m11 b m12 c m21 d m22 e m41 f m42 Methods This interface doesn't inherit any methods. None of the following methods alter the original matrix. DOMMatrixReadOnly.flipX() Returns a new DOMMatrix created by flipping the source matrix around its X-axis. This is equivalent to multiplying the matrix by DOMMatrix(-1, 0, 0, 1, 0, 0). The original matrix is not modified. DOMMatrixReadOnly.flipY() Returns a new DOMMatrix created by flipping the source matrix around its Y-axis. This is equ...
DOMParser() - Web APIs
Return Value A new DOMParser object. ...
DOMPointReadOnly.toJSON() - Web APIs
Return value A new DOMPointInit object whose properties are set to the values in the DOMPoint or DOMPointReadOnly on which the method was called. Example This example creates a DOMPoint object representing the top-left corner of the current window, in screen coordinates, then converts that to JSON. ...
DOMRect - Web APIs
Web › API › DOMRect
ink:href="/docs/Web/API/DOMRectReadOnly" target="_top"><rect x="1" y="1" width="150" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="76" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">DOMRectReadOnly</text></a><polyline points="151,25 161,20 161,30 151,25" stroke="#D4DDE4" fill="none"/><line x1="161" y1="25" x2="191" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/DOMRect" target="_top"><rect x="191" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="228.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">DOMRect</text></a></svg></div> ...
DOMTokenList.keys() - Web APIs
Web › API › DOMTokenList › keys
Return value Returns an iterator. Examples In the following example we retrieve the list of classes set on a <span> element as a DOMTokenList using Element.classList. We when retrieve an iterator containing the keys using values(), then iterate through those keys using a for ... of loop, writing each one to the <span>'s Node.textContent. ...
DOMTokenList.values() - Web APIs
Return value Returns an iterator. Examples In the following example we retrieve the list of classes set on a <span> element as a DOMTokenList using Element.classList. We when retrieve an iterator containing the values using values(), then iterate through those values using a for ... ...
DataTransfer() - Web APIs
The DataTransfer constructor creates a new DataTransfer object instance. Syntax var dataTrans = new DataTransfer() Parameters None. Specifications Specification Status Comment HTML Living StandardThe definition of 'the DataTransfer() constructor' in that specification. Living Standard Initial definition. ...
DataTransfer.dropEffect - Web APIs
tance, if the desired dropEffect is "move", then the data being dragged should be removed from the source. Syntax dataTransfer.dropEffect; Values A DOMString representing the drag operation effect. The possible values are: copy A copy of the source item is made at the new location. move An item is moved to a new location. link A link is established to the source at the new location. none The item may not be dropped. Assigning any other value to dropEffect has no effect and the old value is retained. Example This example shows the use of the dropEffect and effectAllowed properties. HTML Content <div> <p id="source" ondragstart="dragstart_handler(event);" draggable="true"> Select this element, drag it to the Drop Zone and then release the selection to move the element.
DataTransfer.effectAllowed - Web APIs
dragover event handlers, this property will be set to whatever value was assigned during the dragstart event, thus effectAllowed may be used to determine which effect is permitted. Assigning a value to effectAllowed in events other than dragstart has no effect. Syntax dataTransfer.effectAllowed; Values A DOMString representing the drag operation that is allowed. The possible values are: none The item may not be dropped. copy A copy of the source item may be made at the new location. copyLink A copy or link operation is permitted. copyMove A copy or move operation is permitted. link A link may be established to the source at the new location. linkMove A link or move operation is permitted. move An item may be moved to a new location. all All operations are permitted. u...
DataTransfer - Web APIs
more information about drag and drop, see HTML Drag and Drop API. This object is available from the dataTransfer property of all drag events. Constructor DataTransfer() Creates and returns a new DataTransfer object. Properties Standard properties DataTransfer.dropEffect Gets the type of drag-and-drop operation currently selected or sets the operation to a new type. The value must be none, copy, link or move. DataTransfer.effectAllowed Provides all of the types of operations that are possible. Must be one of none, copy, copyLink, copyMove, link, linkMove, move, all or uninitialized. DataTransfer.files Contains a list of all the local files available on the data transfer. If the drag operation doesn't involve dragging files, this property is an empty list. DataTransfer.items R...
DataTransferItem.getAsFile() - Web APIs
Return value File If the drag data item is a file, a File object is returned; otherwise null is returned. Example This example shows the use of the getAsFile() method in a drop event handler. ...
DataTransferItem.webkitGetAsEntry() - Web APIs
ntry() returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it. If the item isn't a file, null is returned. This function is implemented as webkitGetAsEntry() in non-WebKit browsers including Firefox at this time; it may be renamed to simply getAsEntry() in the future, so you should code defensively, looking for both. Syntax DataTransferItem.webkitGetAsEntry(); Parameters None. Return value A FileSystemEntry-based object describing the dropped item. This will be either FileSystemFileEntry or FileSystemDirectoryEntry. Example In this example, a drop zone is created, which responds to the drop event by scanning through the dropped files and directories, outputting a hierarchical directory listing. HTML content The HTML establishes the drop zone itself, which is a <...
DataTransferItemList.clear() - Web APIs
sferItemList method clear() removes all DataTransferItem objects from the drag data items list, leaving the list empty. The drag data store in which this list is kept is only writable while handling the dragstart event. While handling drop, the drag data store is in read-only mode, and this method silently does nothing. No exception is thrown. Syntax DataTransferItemList.clear(); Parameters None. Return value undefined Example This example shows the use of the clear() method. HTML <div> <p id="source" ondragstart="dragstart_handler(event);" ondragend="dragend_handler(event);" draggable="true"> Select this element, drag it to the Drop Zone and then release the selection to move the element.</p> </div> <div id="target" ondrop="drop_handler(event);" ondragover="dragover_han...
DirectoryReaderSync - Web APIs
tAllEntries(fs.root.createReader()); self.postMessage({entries: paths}); } catch (e) { onError(e); } }; Method overview EntrySync readEntries () raises (FileException); Method readEntries() Returns a lost of entries from a specific directory. Call this method until an empty array is returned. EntrySync readEntries ( ) raises (FileException); Returns Parameter None Exceptions This method can raise a FileException with the following codes: Exception Description NOT_FOUND_ERR The directory does not exist. INVALID_STATE_ERR The directory has been modified since the first call to readEntries was processed. SECURITY_ERR The browser determined that it was not safe to look up the metadata. Browser compa...
Document.createExpression() - Web APIs
This method compiles an XPathExpression which can then be used for (repeated) evaluations. Syntax xpathExpr = document.createExpression(xpathText, namespaceURLMapper); Parameters xpathText is a string which is the XPath expression to be compiled. namespaceURLMapper is a function which maps a namespace prefix to a namespace URL (or null if none needed). Firefox 3 note Prior to Firefox 3, you could call this method on documents other than the one you planned to run the XPath against. Under Firefox 3, you must call it on the same document. Return value XPathExpression ...
Document.defaultView - Web APIs
Syntax var win = document.defaultView; This property is read-only. Specifications Specification Status Comment HTML Living StandardThe definition of 'Document.defaultView' in that specification. ...
Document: dragexit event - Web APIs
The dragexit event is fired when an element is no longer the drag operation's immediate selection target. Bubbles Yes Cancelable No Default action None. Interface DragEvent Event handler property ondragexit Examples See the drag event for example code or this JSFiddle demo. Specifications Specification Status Comment HTML Living StandardThe definition of 'dragexit' in that specification. Living Standard ...
Document: dragleave event - Web APIs
Interface DragEvent Event handler property ondragleave Examples See the drag event for example code or this JSFiddle demo. ...
Document: dragover event - Web APIs
The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). The event is fired on the drop target(s). Bubbles Yes Cancelable Yes Default action Reset the current drag operation to "none". Interface DragEvent Event handler property ondragover Examples See the drag event for example code or this JSFiddle demo. Specifications Specification Status Comment HTML Living StandardThe definition of 'dragover' in that specification. Living Standard ...
Document.exitFullscreen() - Web APIs
The Document method exitFullscreen() requests that the element on this document which is currently being presented in full-screen mode be taken out of full-screen mode, restoring the previous state of the screen. This usually reverses the effects of a previous call to Element.requestFullscreen(). Syntax exitPromise = document.exitFullscreen(); Parameters None. Return value A Promise which is resolved once the user agent has finished exiting full-screen mode. If an error occurs while attempting to exit full-screen mode, the catch() handler for the promise is called. Example This example causes the current document to toggle in and out of a full-screen presentation whenever the mouse button is clicked within it. document.onclick = function (event) { if (document.fullscreenElement) {...
Document.getAnimations() - Web APIs
The getAnimations() method of the Document interface returns an array of all Animation objects currently in effect whose target elements are descendants of the document. This array includes CSS Animations, CSS Transitions, and Web Animations. Syntax var allAnimations = Document.getAnimations(); Parameters None. Return value An Array of Animation objects, each representing one animation currently associated with elements which are descendants of the Document on which it's called. Examples The following code snippet will slow down all animations on a page by halving their Animation.playbackRate. document.getAnimations().forEach( function (animation) { animation.playbackRate *= .5; } ); Specifications Specification Status Comment Web AnimationsTh...
Document.hasStorageAccess() - Web APIs
Return value A Promise that resolves with a boolean value indicating whether the document has access to its first-party storage. ...
Document.open() - Web APIs
Web › API › Document › open
Return value A Document object instance. ...
Document: readystatechange event - Web APIs
d</button> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> CSS body { display: grid; grid-template-areas: "control log"; } .controls { grid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } #reload { height: 2rem; } JS const log = document.querySelector('.event-log-contents'); const reload = document.querySelector('#reload'); reload.addEventListener('click', () => { log.textContent =''; window.setTimeout(() => { window.location.reload(true); }, 200); }); window.addEventListener('load', (event) => { log.textContent = l...
Document.requestStorageAccess() - Web APIs
of storage access grants at which users will begin to receive prompts. For example, if you want to configure Firefox to automatically grant access on the first site where requestStorageAccess() is called and then prompt afterwards, you should adjust the value of the dom.storage_access.max_concurrent_auto_grants preference to 1. Syntax var promise = document.requestStorageAccess(); Parameters None. Return value A Promise that fulfills with undefined if the access to first-party storage was granted, and rejects if access was denied. When the promise gets resolved, the resolve handler will run as if a user gesture is being processed, whether the promise was fulfilled or rejected: In the former case, code can then start to call APIs that require user activation and things can move forwa...
Document: transitionend event - Web APIs
The transitionend event is fired when a CSS transition has completed. In the case where a transition is removed before completion, such as if the transition-property is removed or display is set to none, then the event will not be generated. Bubbles Yes Cancelable Yes Interface TransitionEvent Event handler property ontransitionend The transitionend event is fired in both directions - as it finishes transitioning to the transitioned state, and when it fully reverts to the default or non-transitioned state. If there is no transition delay or duration, if both are 0s or neither is declared, there is no transition, and none of the transition events are fired. If the transitioncancel event is fired, the transitionend event will not fire. Th...
DocumentOrShadowRoot.elementFromPoint() - Web APIs
e element at the specified point belongs to another document (for example, the document of an <iframe>), that document's parent element is returned (the <iframe> itself). If the element at the given point is anonymous or XBL generated content, such as a textbox's scroll bars, then the first non-anonymous ancestor element (for example, the textbox) is returned. Elements with pointer-events set to none will be ignored, and the element below it will be returned. If the method is run on another document (like an <iframe>'s subdocument), the coordinates are relative to the document where the method is being called. If the specified point is outside the visible bounds of the document or either coordinate is negative, the result is null. If you need to find the specific position inside the elemen...
DocumentOrShadowRoot.getSelection() - Web APIs
Returns A Selection object. ...
Examples of web and XML development using the DOM - Web APIs
o the console. var ss = document.styleSheets; for(var i = 0; i < ss.length; i++) { for(var j = 0; j < ss[i].cssRules.length; j++) { dump( ss[i].cssRules[j].selectorText + "\n" ); } } For a document with a single stylesheet in which the following three rules are defined: body { background-color: darkblue; } p { font-face: Arial; font-size: 10pt; margin-left: .125in; } #lumpy { display: none; } This script outputs the following: BODY P #LUMPY Example 5: Event Propagation This example demonstrates how events fire and are handled in the DOM in a very simple way. When the BODY of this HTML document loads, an event listener is registered with the top row of the TABLE. The event listener handles the event by executing the function stopEvent, which changes the value in the bottom cel...
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
mycurrent_cell.appendChild(currenttext); mycurrent_row.appendChild(mycurrent_cell); // set the cell background color // if the column is 0. ...
EXT_disjoint_timer_query.beginQueryEXT() - Web APIs
The EXT_disjoint_timer_query.beginQueryEXT() method of the WebGL API starts a timer query. Syntax void ext.beginQueryEXT(target, query); Parameters target A GLenum specifying the target of the time query. Must be ext.TIME_ELAPSED_EXT. query A WebGLQuery object for which to start the time querying. Return value None. Examples var ext = gl.getExtension('EXT_disjoint_timer_query'); var query = ext.createQueryEXT(); ext.beginQueryEXT(ext.TIME_ELAPSED_EXT, query); // ... Specifications Specification Status Comment EXT_disjoint_timer_queryThe definition of 'EXT_disjoint_timer_query' in that specification. Working Draft Initial definition. ...
EXT_disjoint_timer_query.createQueryEXT() - Web APIs
Return value A WebGLQuery object. ...
EXT_disjoint_timer_query.deleteQueryEXT() - Web APIs
Examples var ext = gl.getExtension('EXT_disjoint_timer_query'); var query = ext.createQueryEXT(); // ... ...
EXT_disjoint_timer_query.endQueryEXT() - Web APIs
Examples var ext = gl.getExtension('EXT_disjoint_timer_query'); var query = ext.createQueryEXT(); ext.beginQueryEXT(ext.TIME_ELAPSED_EXT, query); // ... ...
EXT_disjoint_timer_query.queryCounterEXT() - Web APIs
The EXT_disjoint_timer_query.queryCounterEXT() method of the WebGL API records the current time into the corresponding query object. Syntax void ext.queryCounterEXT(query, target); Parameters query A WebGLQuery object for which to record the current time. target A GLenum specifying the target of the time query. Must be ext.TIMESTAMP_EXT. Return value None. Examples var ext = gl.getExtension('EXT_disjoint_timer_query'); var startQuery = ext.createQueryEXT(); var endQuery = ext.createQueryEXT(); ext.queryCounterEXT(startQuery, ext.TIMESTAMP_EXT); // ... ext.queryCounterEXT(endQuery, ext.TIMESTAMP_EXT); Specifications Specification Status Comment EXT_disjoint_timer_queryThe definition of 'EXT_disjoint_timer_query' in that specification. Working Draf...
EffectTiming - Web APIs
ional The number of milliseconds to delay after the end of an animation. This is primarily of use when sequencing animations based on the end time of another animation. Defaults to 0. fill Optional Dictates whether the animation's effects should be reflected by the element(s) prior to playing ("backwards"), retained after the animation has completed playing ("forwards"), or both. Defaults to "none". iterationStart Optional Describes at what point in the iteration the animation should start. 0.5 would indicate starting halfway through the first iteration for example, and with this value set, an animation with 2 iterations would end halfway through a third iteration. Defaults to 0.0. iterations Optional The number of times the animation should repeat. Defaults to 1, and can also take a v...
Element: afterscriptexecute event - Web APIs
...
Element.animate() - Web APIs
Web › API › Element › animate
ional The number of milliseconds to delay after the end of an animation. This is primarily of use when sequencing animations based on the end time of another animation. Defaults to 0. fill Optional Dictates whether the animation's effects should be reflected by the element(s) prior to playing ("backwards"), retained after the animation has completed playing ("forwards"), or both. Defaults to "none". iterationStart Optional Describes at what point in the iteration the animation should start. 0.5 would indicate starting halfway through the first iteration for example, and with this value set, an animation with 2 iterations would end halfway through a third iteration. Defaults to 0.0. iterations Optional The number of times the animation should repeat. Defaults to 1, and can also take a v...
Element: beforescriptexecute event - Web APIs
...
Element.computedStyleMap() - Web APIs
Return value A StylePropertyMapReadOnly interface. Examples We start with some simple HTML: a paragraph with a link, and a definition list to which we will add all the CSS Property / Value pairs. ...
Element: error event - Web APIs
ad-img" /> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> CSS body { display: grid; grid-template-areas: "control log"; } .controls { grid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } button { height: 2rem; margin: .5rem; } img { width: 0; height: 0; } JS const log = document.querySelector('.event-log-contents'); const badImg = document.querySelector('.bad-img'); badImg.addEventListener('error', (event) => { log.textContent = log.textContent + `${event.type}: Loading image\n`; console.log(event) }); const imgError...
Element.getClientRects() - Web APIs
dth and height properties to the TextRectangle object. The amount of scrolling that has been done of the viewport area (or any other scrollable element) is taken into account when computing the rectangles. The returned rectangles do not include the bounds of any child elements that might happen to overflow. For HTML <area> elements, SVG elements that do not render anything themselves, display:none elements, and generally any elements that are not directly rendered, an empty list is returned. Rectangles are returned even for CSS boxes that have empty border-boxes. The left, top, right, and bottom coordinates can still be meaningful. Fractional pixel offsets are possible. Examples These examples draw client rects in various colors. Note that the JavaScript function that paints the client...
Element.msZoomTo() - Web APIs
Web › API › Element › msZoomTo
igns the specified y-coordinate of the viewport to the element's contentY value. scaleFactor[in]: Floating-point. The scale factor (msContentZoomFactor) to zoom to. If no value is specified, defaults to the current zoom level (no additional zoom occurs).This argument is ignored if the element is not zoomable. animate[in]: The type of animation to use. default: Uses the default animation. none: No animation is used. This method has no scrolling effect on non-scrollable elements and no zooming effect on non-zoomable elements (e.g., elements with "-ms-content-zooming: none"). This method has no effect if called from a parent document to scroll or zoom content hosted in an iframe. Return value This method does not return a value. Example /* Zooming in on an element while still keep...
ErrorEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ErrorEvent" target="_top"><rect x="116" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="166" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ErrorEvent</text></a></svg></div>...
Event.composedPath() - Web APIs
Return value An array of EventTarget objects representing the objects on which an event listener will be invoked. ...
Event.stopPropagation() - Web APIs
Return value undefined. ...
EventSource.close() - Web APIs
Web › API › EventSource › close
Return value Void. ...
EventTarget() - Web APIs
Return value An instance of the EventTarget object. ...
ExtendableEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a></...
FeaturePolicy.allowedFeatures() - Web APIs
The allowedFeatures() method of the FeaturePolicy interface returns a list of directive names of all features allowed by the feature policy.enables introspection of individual directives of the Feature Policy it is run on. As such, allowedFeatures() method returns a subset of directives returned by features(). Syntax const allowed = FeaturePolicy.allowedFeatures() Parameters None. Return value An array of strings representing the Feature Policy directive names that are allowed by the Feature Policy this method is called on. Example The followin example logs all the allowed directives for the current document. Please note that these features might be restricted by the Permissions API, if the user did not grant the corrsponding permission yet. // First, get the Feature Policy object...
FeaturePolicy.features() - Web APIs
The features() method of the FeaturePolicy interface returns a list of names of all features supported by the User Agent. Feature whose name appears on the list might not be allowed by the Feature Policy of the current execution context and/or might not be accessible because of user's permissions. Syntax const supportedFeatures = FeaturePolicy.features() Parameters None. Return value A list of strings that represent names of all Feature Policy directives supported by the User Agent. Example The followin example logs all the supported directives in the console. // Get the Feature Policy object const featurePolicy = document.featurePolicy // Retreive the list of all supported Feature Policy directives const supportedDirectives = featurePolicy.features() // Print out each d...
FederatedCredential - Web APIs
Constructor FederatedCredential() Creates a new FederatedCredential object. Properties Inherits properties from its ancestor, Credential. FederatedCredential.provider Read only Returns a USVString containing a credential's federated identity provider. FederatedCredential.protocol Read only Returns a DOMString containing a credential's federated identity protocol. Event handlers None. Methods None. Examples var cred = new FederatedCredential({ id: id, name: name, provider: 'https://account.google.com', iconURL: iconUrl }); // Store it navigator.credentials.store(cred) .then(function() { // Do something else. }); Specifications Specification Status Comment Credential Management Level 1 Working Draft Initial definition. Br...
Fetch basic concepts - Web APIs
re abstracted as JavaScript objects, it is easy for other APIs to make use of such functionality. Service Workers is an example of an API that makes heavy use of Fetch. Fetch takes the asynchronous nature of such requests one step further. The API is completely Promise-based. Guard Guard is a feature of Headers objects, with possible values of immutable, request, request-no-cors, response, or none, depending on where the header is used. When a new Headers object is created using the Headers() constructor, its guard is set to none (the default). When a Request or Response object is created, it has an associated Headers object whose guard is set as summarized below: new object's type creating constructor guard setting of associated Headers object Request Requ...
File - Web APIs
Web › API › File
tio="xMinYMin meet"><a xlink:href="/docs/Web/API/Blob" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Blob</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/File" target="_top"><rect x="116" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">File</text></a></svg></div> a:hove...
FileReader() - Web APIs
The FileReader() constructor creates a new FileReader. For details about how to use FileReader, see Using files from web applications. Syntax var reader = new FileReader(); Parameters None. Example The following code snippet shows creation of a FileReader object using the FileReader() constructor and subsequent usage of the object: function printFile(file) { var reader = new FileReader(); reader.onload = function(evt) { console.log(evt.target.result); }; reader.readAsText(file); } Specifications Specification Status Comment File API Working Draft Initial definition ...
FileReader: abort event - Web APIs
contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } JS const fileInput = document.querySelector('input[type="file"]'); const preview = document.querySelector('img.preview'); const eventLog = document.querySelector('.event-log-contents'); const reader = new FileReader(); function handleEvent(event) { eventLog.textContent = eventLog.textContent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { ...
FileReader: load event - Web APIs
contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } JS const fileInput = document.querySelector('input[type="file"]'); const preview = document.querySelector('img.preview'); const eventLog = document.querySelector('.event-log-contents'); const reader = new FileReader(); function handleEvent(event) { eventLog.textContent = eventLog.textContent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { ...
FileReader: loadend event - Web APIs
contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } JS const fileInput = document.querySelector('input[type="file"]'); const preview = document.querySelector('img.preview'); const eventLog = document.querySelector('.event-log-contents'); const reader = new FileReader(); function handleEvent(event) { eventLog.textContent = eventLog.textContent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { ...
FileReader: loadstart event - Web APIs
contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } JS const fileInput = document.querySelector('input[type="file"]'); const preview = document.querySelector('img.preview'); const eventLog = document.querySelector('.event-log-contents'); const reader = new FileReader(); function handleEvent(event) { eventLog.textContent = eventLog.textContent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { ...
FileReader: progress event - Web APIs
contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } JS const fileInput = document.querySelector('input[type="file"]'); const preview = document.querySelector('img.preview'); const eventLog = document.querySelector('.event-log-contents'); const reader = new FileReader(); function handleEvent(event) { eventLog.textContent = eventLog.textContent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { ...
FileReader.readyState - Web APIs
1 LOADING A read method has been called. 2 DONE The operation is complete. EMPTY The FileReader has been created, but no readAs method was called yet. LOADING A readAs method was invoked. ...
FileRequest - Web APIs
nterface to provide some extra properties necessary for the LockedFile objects. Properties FileRequest.lockedFile Read only The LockedFile object from which the request was started. FileRequest.onprogress A callback handler called repeatedly while the operation represented by the FileRequest is in progress. The FileRequest interface also inherits from the DOMRequest interface. Methods None. Specifications Specification Status Comment FileSystem API Editor's Draft Draft proposal. ...
FileSystemDirectoryEntry.createReader() - Web APIs
Return value A FileSystemDirectoryReader object which can be used to read the directory's entries. Example This example creates a method called readDirectory(), which fetches all of the entries in the specified FileSystemDirectoryEntry and returns them in an array. ...
FontFace.load - Web APIs
Web › API › FontFace › load
The load() method of the FontFace interface loads a font based on current object's constructor-passed requirements, including a location or source buffer, and returns a Promise that resolves with the current FontFace object. Syntax var promise = FontFace.load(); Parameters None. Return value A Promise that resolves with a reference to the current FontFace object when the font loads or rejects with a NetworkError if the loading process fails. Exceptions NetworkError Indicates that the attempt to load the font failed. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'load' in that specification. Working Draft Initial definition. ...
FontFaceSet.ready - Web APIs
Web › API › FontFaceSet › ready
The ready readonly property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet. Syntax fontFaceSet.ready.then(function(fontFaceSet) { // ... }); Returns A Promise that resolves to the given FontFaceSet. Parameters None. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'FontFaceSet' in that specification. Working Draft Initial definition ...
FormData.append() - Web APIs
Web › API › FormData › append
ng set of values. Note: This method is available in Web Workers. Syntax There are two versions of this method: a two and a three parameter version: formData.append(name, value); formData.append(name, value, filename); Parameters name The name of the field whose data is contained in value. value The field's value. This can be a USVString or Blob (including subclasses such as File). If none of these are specified the value is converted to a string. filename Optional The filename reported to the server (a USVString), when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename. Note: If you specify a Blob as the data to append to the FormData object, the filename that will be ...
FormData.set() - Web APIs
Web › API › FormData › set
existing set of values. Note: This method is available in Web Workers. Syntax There are two versions of this method: a two and a three parameter version: formData.set(name, value); formData.set(name, value, filename); Parameters name The name of the field whose data is contained in value. value The field's value. This can be a USVString or Blob (including subclasses such as File). If none of these are specified the value is converted to a string. filename Optional The filename reported to the server (a USVString), when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename. Note: If you specify a Blob as the data to append to the FormData object, the filename that will be ...
Using the Gamepad API - Web APIs
h; i++) { var p = document.createElement("progress"); p.className = "axis"; //p.id = "a" + i; p.setAttribute("max", "2"); p.setAttribute("value", "1"); p.innerHTML = i; a.appendChild(p); } d.appendChild(a); // See https://github.com/luser/gamepadtest/blob/master/index.html var start = document.getElementById("start"); if (start) { start.style.display = "none"; } document.body.appendChild(d); requestAnimationFrame(updateStatus); } function disconnecthandler(e) { removegamepad(e.gamepad); } function removegamepad(gamepad) { var d = document.getElementById("controller" + gamepad.index); document.body.removeChild(d); delete controllers[gamepad.index]; } function updateStatus() { if (!haveEvents) { scangamepads(); } var i = 0;...
GlobalEventHandlers.onanimationend - Web APIs
For information about why, and how to support running an animation more than once, see Run an animation again in CSS Animations tips and tricks. Result Assembled together, you get this: Specific...
GlobalEventHandlers.onanimationstart - Web APIs
For information about why, and how to support running an animation more than once, see Run an animation again in CSS Animations tips and tricks. Result Assembled together, you get this: Specific...
GlobalEventHandlers.onpointerdown - Web APIs
ely simple: <div id="target"> Tap me, click me, or touch me! </div> CSS The CSS simply sets up the appearance of the target, and doesn't affect its functionality at all. #target { width: 400px; height: 30px; text-align: center; font: 16px "Open Sans", "Helvetica", sans-serif; color: white; background-color: blue; border: 2px solid darkblue; cursor: pointer; user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; } Result The resulting output is shown below. Try tapping, clicking, or touching the box and see what happens. For full effect, try it with a variety of pointer types. Specifications Specification Status Comment Pointer Events - Level 2The definition of 'onpointerdown' in that speci...
GlobalEventHandlers.ontransitionend - Web APIs
rocesses transitionend events. The transitionend event is sent to when a CSS transition completes. If the transition is removed from its target node before the transition completes execution, the transitionend event won't be generated. One way this can happen is by changing the value of the transition-property attribute which applies to the target. Another is if the display attribute is set to none. Syntax var transitionEndHandler = target.ontransitionend; target.ontransitionend = Function Value A Function to be called when a transitionend event occurs indicating that a CSS transition has completed on the target, where the target object is an HTML element (HTMLElement), document (Document), or window (Window). The function receives as input a single parameter: a TransitionEvent objec...
HTMLCanvasElement.mozFetchAsStream() - Web APIs
nternal method used to create a new input stream that, when ready, would provide the contents of the canvas as image data. However, this non-standard and internal method has been removed. Syntax void canvas.mozFetchAsStream(callback, type); Parameters callback An nsIInputStreamCallback. type Optional A DOMString indicating the image format. The default type is image/png. Return value None. Examples Save to disk with mozFetchAsStream (Chrome context only) This technique also converts it to ico, however it will not work in Windows XP as WinXP cannot convert from PNG to ICO. It saves to the desktop it uses FileUtils.jsm. Also uses NetUtil.jsm var canvas = document.getElementById('canvas'); var d = canvas.width; ctx = canvas.getContext('2d'); ctx.beginPath(); ctx.moveTo(d / 2, 0)...
HTMLCanvasElement.toBlob() - Web APIs
gle argument. mimeType Optional A DOMString indicating the image format. The default type is image/png. qualityArgument Optional A Number between 0 and 1 indicating image quality if the requested type is image/jpeg or image/webp. If this argument is anything else, the default values 0.92 and 0.80 are used for image/jpeg and image/webp respectively. Other arguments are ignored. Return value None. Exceptions SecurityError The canvas's bitmap is not origin clean; at least some of its contents come from secure Examples Getting a file representing the canvas Once you have drawn content into a canvas, you can convert it into a file of any supported image format. The code snippet below, for example, takes the image in the <canvas> element whose ID is "canvas", obtains a copy of it as ...
HTMLCanvasElement: webglcontextcreationerror event - Web APIs
lcontextcreationerror event of the WebGL API is fired if the user agent is unable to create a WebGLRenderingContext context. This event has a WebGLContextEvent.statusMessage property, which can contain a platform dependent string with more information about the failure. ...
HTMLCanvasElement: webglcontextlost event - Web APIs
The webglcontextlost event of the WebGL API is fired if the user agent detects that the drawing buffer associated with a WebGLRenderingContext object has been lost. Bubbles Yes Cancelable Yes Interface WebGLContextEvent Event handler property none Example With the help of the WEBGL_lose_context extension, you can simulate the webglcontextlost event: const canvas = document.getElementById('canvas'); const gl = canvas.getContext('webgl'); canvas.addEventListener('webglcontextlost', (event) => { console.log(event); }); gl.getExtension('WEBGL_lose_context').loseContext(); // "webglcontextlost" event is logged. Specifications Specification Status Comment WebGL 1.0The definition of 'webglcontextlost' in that ...
HTMLCanvasElement: webglcontextrestored event - Web APIs
buffer for a WebGLRenderingContext object. Once the context is restored, WebGL resources such as textures and buffers that were created before the context was lost are no longer valid. You need to reinitialize the state of your WebGL application and recreate resources. Bubbles Yes Cancelable Yes Interface WebGLContextEvent Event handler property none Example With the help of the WEBGL_lose_context extension, you can simulate the webglcontextrestored event: var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); canvas.addEventListener('webglcontextrestored', function(e) { console.log(e); }, false); gl.getExtension('WEBGL_lose_context').restoreContext(); // "webglcontextrestored" event is logged. Spe...
HTMLDetailsElement: toggle event - Web APIs
Examples This example logs chapters that are open. Chapters are removed from the log when they are closed. ...
HTMLDialogElement.show() - Web APIs
Return value Void. Examples The following example shows a simple button that, when clicked, opens a <dialog> containing a form via the show() method. From there you can click the Cancel button to close the dialog (via the HTMLDialogElement.close() method), or submit the form via the submit button. ...
HTMLDialogElement.showModal() - Web APIs
Return value Void. Exceptions If the dialog is already open (i.e. ...
HTMLElement: beforeinput event - Web APIs
teditable enabled, and to any element when designMode is turned on. In the case of contenteditable and designMode, the event target is the editing host. If these properties apply to multiple elements, the editing host is the nearest ancestor element whose parent isn't editable. Bubbles Yes Cancelable Yes Interface InputEvent Event handler property None Sync / Async Sync Composed Yes Default Action Update the DOM element Examples This example logs current value of the element immediately before replacing that value with the new one applied to the <input> element. HTML <input placeholder="Enter some text" name="name"/> <p id="values"></p> JavaScript const input = document.querySelector('input'); con...
HTMLElement.innerText - Web APIs
nt property. Example This example compares innerText with Node.textContent. Note how innerText is aware of things like <br> elements, and ignores hidden elements. ...
HTMLElement.offsetHeight - Web APIs
scrollbars (if rendered). It does not include the height of pseudo-elements such as ::before or ::after. For the document body object, the measurement includes total linear content height instead of the element's CSS height. Floated elements extending below other linear content are ignored. If the element is hidden (for example, by setting style.display on the element or one of its ancestors to "none"), then 0 is returned. This property will round the value to an integer. If you need a fractional value, use element.getBoundingClientRect(). Syntax var intElemOffsetHeight = element.offsetHeight; intElemOffsetHeight is a variable storing an integer corresponding to the offsetHeight pixel value of the element. The offsetHeight property is read-only. Example The example imag...
HTMLElement.offsetParent - Web APIs
ence to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element. If there is no positioned ancestor element, the nearest ancestor td, th, table will be returned, or the body if there are no ancestor table elements either. NOTE: offsetParent returns null in the following situations: The element or its parent element has the display property set to none. The element has the position property set to fixed (firefox returns <body>). The element is <body> or <html>. offsetParent is useful because offsetTop and offsetLeft are relative to its padding edge. Syntax parentObj = element.offsetParent; parentObj is an object reference to the element in which the current element is offset. Specification Specification Status Comme...
HTMLElement.offsetTop - Web APIs
Full support 1Samsung Internet Android Full support 1.0Legend Full support Full support In compliance with the specification, this property will return null on Webkit if the element is hidden (the style.display of this element or any ancestor is "none") or if the style.position of the element itself is set to "fixed". This property will return null on Internet Explorer (9) if the style.position of the element itself is set to "fixed". (Having display:none does not affect this browser.) ...
HTMLElement.offsetWidth - Web APIs
property returns the layout width of an element as an integer. Typically, offsetWidth is a measurement in pixels of the element's CSS width, including any borders, padding, and vertical scrollbars (if rendered). It does not include the width of pseudo-elements such as ::before or ::after. If the element is hidden (for example, by setting style.display on the element or one of its ancestors to "none"), then 0 is returned. Syntax var intElemOffsetWidth = element.offsetWidth; intElemOffsetWidth is a variable storing an integer corresponding to the offsetWidth pixel value of the element. The offsetWidth property is a read-only. This property will round the value to an integer. If you need a fractional value, use element.getBoundingClientRect(). Example Specification Specifi...
HTMLElement: transitioncancel event - Web APIs
ancel fired'; }); el.addEventListener('transitionend', function() { message.textContent = 'transitionend fired'; }); The transitioncancel event is fired if the transition is cancelled in either direction after the transitionrun event occurs and before the transitionend is fired. If there is no transition delay or duration, if both are 0s or neither is declared, there is no transition, and none of the transition events are fired. If the transitioncancel event is fired, the transitionend event will not fire. Specifications Specification Status Comment CSS TransitionsThe definition of 'transitioncancel' in that specification. Working Draft Initial definition. ...
HTMLFormControlsCollection - Web APIs
xlink:href="/docs/Web/API/HTMLCollection" target="_top"><rect x="1" y="1" width="140" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLCollection</text></a><polyline points="141,25 151,20 151,30 141,25" stroke="#D4DDE4" fill="none"/><line x1="151" y1="25" x2="181" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLFormControlsCollection" target="_top"><rect x="181" y="1" width="260" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="311" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLFormControls...
HTMLFormElement.requestSubmit() - Web APIs
ing a specific submit button. Syntax htmlFormElement.requestSubmit(submitter); Parameters submitter Optional The submit button whose attributes describe the method by which the form is to be submitted. This may be either an <input> or <button> element whose type attribute is submit. If you omit the submitter parameter, the form element itself is used as the submitter. Return value None. Exceptions TypeError The specified submitter is not a submit button. NotFoundError The specified submitter isn't a member of the form on which requestSubmit() was called. The submitter must be either a descendant of the form element or must have an form attribute referring to the form. Usage notes The obvious question is: Why does this method exist, when we've had the submit() method s...
HTMLHyperlinkElementUtils.host - Web APIs
The HTMLHyperlinkElementUtils.host property is a USVString containing the host, that is the hostname, and then, if the port of the URL is nonempty, a ':', and the port of the URL. Syntax string = object.host; object.host = string; Examples var anchor = document.createElement("a"); anchor.href = "https://developer.mozilla.org/HTMLHyperlinkElementUtils.host" anchor.host == "developer.mozilla.org" anchor.href = "https://developer.mozilla.org:443/HTMLHyperlinkElementUtils.host" anchor.host == "developer.mozilla.org" // The port number is not included because 443 is the scheme's default port anchor.href = "https://developer.mozilla.org:4097/HTMLHyperlinkElementUtils.host" anchor.host == "developer.mozilla.org:4097" Specifications Specification Status Comment HTML...
HTMLImageElement.decode() - Web APIs
sed to initiate loading of the image prior to attaching it to an element in the DOM (or adding it to the DOM as a new element), so that the image can be rendered immediately upon being added to the DOM. This, in turn, prevents the rendering of the next frame after adding the image to the DOM from causing a delay while the image loads. Syntax var promise = HTMLImageElement.decode(); Parameters None. Return value A Promise which is resolved once the image data is ready to be used. Exceptions EncodingError A DOMException indicating that an error occurred while decoding the image. Usage notes One potential use case for decode(): when loading very large images (for example, in an online photo album), you can present a low resolution thumbnail image initially and then replace that imag...
HTMLImageElement.srcset - Web APIs
which the indicated image should be used. Space characters, other than the whitespace separating the URL and the corresponding condition descriptor, are ignored; this includes both leading and trailing space, as well as space before or after each comma. If the condition descriptor is not provided (in other words, the image candidate provides only a URL), the candidate is used as the fallback if none of the other candidates match. Otherwise, the condition descriptor may take one of two forms: To indicate that the image resource specified by the image candidate string should be used when the image is being rendered with a particular width in pixels, provide a width descriptor comprised the number giving that width in pixels followed by the lower case letter "w". For example, to provide an i...
HTMLInputElement.setSelectionRange() - Web APIs
d as pointing to the end of the value. selectionEnd The 0-based index of the character after the last selected character. An index greater than the length of the element's value is treated as pointing to the end of the value. selectionDirection Optional A string indicating the direction in which the selection is considered to have been performed. Possible values: "forward" "backward" "none" if the direction is unknown or irrelevant. Default value. Example Click the button in this example to select the third, fourth, and fifth characters in the text box ("zil" in the word "Mozilla"). HTML <input type="text" id="text-box" size="20" value="Mozilla"> <button onclick="selectText()">Select text</button> JavaScript function selectText() { const input = document.getElementByI...
HTMLMediaElement: canplay event - Web APIs
The canplay event is fired when the user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.oncanplay Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's canplay event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('canplay', (event) => { console.log('Video can start, but not sure it will play th...
HTMLMediaElement: canplaythrough event - Web APIs
The canplaythrough event is fired when the user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.oncanplaythrough Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's canplaythrough event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('canplaythrough', (event) => { console.log('I think I can play th...
HTMLMediaElement.captureStream() - Web APIs
The captureStream() property of the HTMLMediaElement interface returns a MediaStream object which is streaming a real-time capture of the content being rendered in the media element. This can be used, for example, as a source for a WebRTC RTCPeerConnection. Syntax var mediaStream = mediaElement.captureStream() Parameters None. Return value A MediaStream object which can be used as a source for audio and/or video data by other media processing code, or as a source for WebRTC. Example In this example, an event handler is established so that clicking a button starts capturing the contents of a media element with the ID "playback" into a MediaStream. The stream can then be used for other purposes--like a source for streaming over WebRTC, to allow sharing prerecorded videos with another p...
HTMLMediaElement: durationchange event - Web APIs
The durationchange event is fired when the duration attribute has been updated. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.ondurationchange Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's durationchange event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('durationchange', (event) => { console.log('Not sure why, but the duration of the video has changed.'); }); Using the ondurationchange event handler property: const video = document.querySelect...
HTMLMediaElement: emptied event - Web APIs
The emptied event is fired when the media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onemptied Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's emptied event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('emptied', (event) => { console.log('Uh oh. The media is empty. Did you call load()?'); });...
HTMLMediaElement: ended event - Web APIs
t is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available. This event occurs based upon HTMLMediaElement (<audio> and <video>) fire ended when playback of the media reaches the end of the media. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onended Specification HTML5 media This event is also defined in Media Capture and Streams and Web Audio API Examples These examples add an event listener for the HTMLMediaElement's ended event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = docum...
HTMLMediaElement.fastSeek() - Web APIs
Example This example quickly seeks to 20-second position of the video element. ...
HTMLMediaElement.load() - Web APIs
ethod is generally only useful when you've made dynamic changes to the set of sources available for the media element, either by changing the element's src attribute or by adding or removing <source> elements nested within the media element itself. load() will reset the element and rescan the available sources, thereby causing the changes to take effect. Syntax mediaElement.load(); Parameters None. Return value undefined. Usage notes Calling load() aborts all ongoing operations involving this media element, then begins the process of selecting and loading an appropriate media resource given the options specified in the <audio> or <video> element and its src attribute or child <source> element(s). This is described in more detail in Supporting multiple formats in Video and audio content...
HTMLMediaElement: loadeddata event - Web APIs
The loadeddata event is fired when the frame at the current playback position of the media has finished loading; often the first frame. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onloadeddata Specification HTML5 media Note that this event will not fire in mobile/tablet devices if data-saver is on in browser settings. Examples These examples add an event listener for the HTMLMediaElement's loadeddata event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('loadeddata', (event) => { console.log('Ya...
HTMLMediaElement: loadedmetadata event - Web APIs
mozSampleRate Read only int The sample rate per second. ...
HTMLMediaElement.pause() - Web APIs
The HTMLMediaElement.pause() method will pause playback of the media, if the media is already in a paused state this method will have no effect. Syntax HTMLMediaElement.pause() Parameters None. Return value None. Exceptions None. Specifications Specification Status Comment HTML Living StandardThe definition of 'pause()' in that specification. Living Standard Initial definition; living specification. HTML5The definition of 'pause()' in that specification. Recommendation Initial definition. ...
HTMLMediaElement: pause event - Web APIs
ctivity has entered its paused state, most commonly after the media has been paused through a call to the element's pause() method. The event is sent once the pause() method returns and after the media element's paused property has been changed to true. General info Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onpause Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's pause event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('pause', (event) => { cons...
HTMLMediaElement.play() - Web APIs
Return value A Promise which is resolved when playback has been started, or is rejected if for any reason playback cannot be started. ...
HTMLMediaElement: play event - Web APIs
The play event is fired when the paused property is changed from true to false, as a result of the play method, or the autoplay attribute. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onplay Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's play event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('play', (event) => { console.log('The Boolean paused property is now false. Either the ' + 'play() method was called or the autoplay attribute was toggled...
HTMLMediaElement: playing event - Web APIs
The playing event is fired when playback is ready to start after having been paused or delayed due to lack of data. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onplaying Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's playing event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('playing', (event) => { console.log('Video is no longer paused'); }); Using the onplaying event handler property: const video = document.querySelector('video'); video.onp...
HTMLMediaElement: ratechange event - Web APIs
The ratechange event is fired when the playback rate has changed. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onratechange Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's ratechange event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('ratechange', (event) => { console.log('The playback rate changed.'); }); Using the onratechange event handler property: const video = document.querySelector('video'); video.onratechange = (event) => { console.lo...
HTMLMediaElement: seeked event - Web APIs
The seeked event is fired when a seek operation completed, the current playback position has changed, and the Boolean seeking attribute is changed to false. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onseeked Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's seeked event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('seeked', (event) => { console.log('Video found the playback position it was looking for.'); }); Using the onseeked event handler pro...
HTMLMediaElement: seeking event - Web APIs
The seeking event is fired when a seek operation starts, meaning the Boolean seeking attribute has changed to true and the media is seeking a new position. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onseeking Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's seeking event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('seeking', (event) => { console.log('Video is seeking a new position.'); }); Using the onseeking event handler property: const vide...
HTMLMediaElement: stalled event - Web APIs
The stalled event is fired when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onstalled Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's stalled event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('stalled', (event) => { console.log('Failed to fetch data, but trying.'); }); Using the onstalled event handler property: const video = document.querySelector('video')...
HTMLMediaElement: suspend event - Web APIs
The suspend event is fired when media data loading has been suspended. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onsuspend Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's suspend event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('suspend', (event) => { console.log('Data loading has been suspended.'); }); Using the onsuspend event handler property: const video = document.querySelector('video'); video.onsuspend = (event) => { console.log('D...
HTMLMediaElement: timeupdate event - Web APIs
run). User agents are encouraged to vary the frequency of the event based on the system load and the average cost of processing the event each time, so that the UI updates are not any more frequent than the user agent can comfortably handle while decoding the video. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.ontimeupdate Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's timeupdate event, then post a message when that event handler has reacted to the event firing. Remember, the event frequency is dependant on the system load. Using addEventListener(): const video = document.que...
HTMLMediaElement: volumechange event - Web APIs
The volumechange event is fired when the volume has changed. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onvolumechange Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's volumechange event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('volumechange', (event) => { console.log('The volume changed.'); }); Using the onvolumechange event handler property: const video = document.querySelector('video'); video.onvolumechange = (event) => { console.log(...
HTMLMediaElement: waiting event - Web APIs
The waiting event is fired when playback has stopped because of a temporary lack of data. Bubbles No Cancelable No Interface Event Target Element Default Action None Event handler property GlobalEventHandlers.onwaiting Specification HTML5 media Examples These examples add an event listener for the HTMLMediaElement's waiting event, then post a message when that event handler has reacted to the event firing. Using addEventListener(): const video = document.querySelector('video'); video.addEventListener('waiting', (event) => { console.log('Video is waiting for more data.'); }); Using the onwaiting event handler property: const video = document.querySelector('video'); video.onwaiting = (event) => ...
HTMLObjectElement.checkValidity - Web APIs
The checkValidity() method of the HTMLObjectElement interface returns a Boolean that always is true, because object objects are never candidates for constraint validation. Syntax const valid = HTMLObjectElement.checkValidity(); Parameters None. Return value true Exceptions None. Specifications Specification Status Comment HTML Living StandardThe definition of 'checkValidity' in that specification. Living Standard Initial definition. ...
HTMLObjectElement.setCustomValidity - Web APIs
Examples In this example, we pass the ID of an input element, and set different error messages depending on whether the value is missing, too low or too high. Additionally you must call the reportValidity method on the same element or nothing will happen. ...
HTMLOptionsCollection - Web APIs
xlink:href="/docs/Web/API/HTMLCollection" target="_top"><rect x="1" y="1" width="140" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLCollection</text></a><polyline points="141,25 151,20 151,30 141,25" stroke="#D4DDE4" fill="none"/><line x1="151" y1="25" x2="181" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLOptionsCollection" target="_top"><rect x="181" y="1" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="286" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLOptionsCollection...
HTMLSelectElement.form - Web APIs
the calling form element. For SELECT, the two possible values are "select-one" or "select-multiple", depending on the type of selection list. The below code gives all SELECT elements in a particular form a CSS class of "selectclass": <script type="text/javascript"> var form_element = document.getElementById('subscribe_form'); var vist = form_element.style; if (vist.display=='' || vist.display=='none') { vist.display = 'block'; } else { vist.display = 'none'; } </script> Specifications Specification Status Comment HTML Living StandardThe definition of 'form' in that specification. Living Standard HTML5The definition of 'HTMLSelectElement' in that specification. Recommendation Initial definition, snapshot of HTML Living Standard. ...
HTMLSelectElement.item() - Web APIs
In JavaScript, using the array bracket syntax with an unsigned long, like selectElt[index] is equivalent to selectElt.namedItem(index). Syntax var item = collection.item(index); var item = collection[index]; Parameters index is an unsigned long. Return value item is a HTMLOptionElement. ...
HTMLSlotElement: slotchange event - Web APIs
The slotchange event is fired on an HTMLSlotElement instance (<slot> element) when the node(s) contained in that slot change. Note: the slotchange event doesn't fire if the children of a slotted node change -- only if you change (e.g. add or delete) the actual nodes themselves. Bubbles Yes Cancelable No Interface Event Event handler property None In order to trigger a slotchange event, one has to set or remove the slot attribute. Examples element.setAttribute('slot', slotName); // element.assignedSlot = $slot element.removeAttribute('slot'); // element.assignedSlot = null The following snippet is taken from our slotchange example (see it live also). let slots = this.shadowRoot.querySelectorAll('slot'); slots[1].addEventListener('...
HTMLTableElement.rules - Web APIs
The HTMLTableElement.rules property indicates which cell borders to render in the table. ...
msStereo3DPackingMode - Web APIs
every user. There may also be large incompatibilities between implementations and the behavior may change in the future. msStereo3DPackingMode is a read/write property which gets or sets the frame-packing mode for stereo 3-D video content. This proprietary property is specific to Internet Explorer and Microsoft Edge. Syntax HTMLVideoElement.msStereo3DPackingMode(topbottom, sidebyside, none); Value The following values return, or set, the stereo 3-D content packing as "topbottom", "sidebyside", or "none" for regular 2-D video. none (0): Specifies regular 2-D video. topbottom (1): Specifies stereo 3-D content packing and that the views are packed side-by-side in a single frame. sidebyside (2): Specifies sidebyside stereo 3-D content packing and that the views are packed top-...
Using microtasks in JavaScript with queueMicrotask() - Web APIs
otasks in the microtask queue. The microtask queue is, then, processed multiple times per iteration of the event loop, including after handling events and other callbacks. Second, if a microtask adds more microtasks to the queue by calling queueMicrotask(), those newly-added microtasks execute before the next task is run. That's because the event loop will keep calling microtasks until there are none left in the queue, even if more keep getting added. Warning: Since microtasks can themselves enqueue more microtasks, and the event loop continues processing microtasks until the queue is empty, there's a real risk of getting the event loop endlessly processing microtasks. Be cautious with how you go about recursively adding microtasks. Using microtasks Before getting farther into this, it's...
Dragging and Dropping Multiple Items - Web APIs
ct consistent data. To check if multiple files are being dragged, check the mozItemCount property. It will be set to the number of items being dragged. If a particular drop target only supports dropping a single item, it could either reject the dragged items or it could just use just the first item. To reject the items, either don't cancel the dragover event, or set the effectAllowed property to none. You may wish to do both in case another listener has already cancelled the event. To just take the first item being dropped, use the getData() method as with a single item. This is convenient as drop targets which only need to support a single item do not need to do anything extra. However, use the mozGetDataAt() method to retrieve a specific item from the data transfer. The following example ...
HashChangeEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HashChangeEvent" target="_top"><rect x="116" y="1" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HashChangeEvent</text></a></...
Headers - Web APIs
Web › API › Headers
() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. For security reasons, some headers can only be controlled by the user agent. These headers include the forbidden header names and forbidden response header names. A Headers object also has an associated guard, which takes a value of immutable, request, request-no-cors, response, or none. This affects whether the set(), delete(), and append() methods will mutate the header. For more information see Guard. You can retrieve a Headers object via the Request.headers and Response.headers properties, and create a new Headers object using the Headers.Headers() constructor. An object implementing Headers can directly be used in a for...of structure, instead of entries(): for (var p of ...
IDBCursorWithValue - Web APIs
Min meet"><a xlink:href="/docs/Web/API/IDBCursor" target="_top"><rect x="1" y="1" width="90" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="46" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBCursor</text></a><polyline points="91,25 101,20 101,30 91,25" stroke="#D4DDE4" fill="none"/><line x1="101" y1="25" x2="131" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBCursorWithValue" target="_top"><rect x="131" y="1" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBCursorWithValue</text...
IDBDatabase - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBDatabase" target="_top"><rect x="151" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="206" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBDatabase</text></a></svg></d...
IDBRequest - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBRequest" target="_top"><rect x="151" y="1" width="100" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="201" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBRequest</text></a></svg></div...
IDBTransaction.commit() - Web APIs
t when all outstanding requests have been satisfied and no new requests have been made. commit() can be used to start the commit process without waiting for events from outstanding requests to be dispatched. If it is called on a transaction that is not active, it throws an InvalidStateError DOMException. Note: This feature is available in Web Workers. Syntax transaction.commit(); Parameters None. Return value Void. Exceptions Exception Description InvalidStateError The transaction state is not active. Examples // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["myDB"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerHTML += '<li>T...
IDBTransaction - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBTransaction" target="_top"><rect x="151" y="1" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBTransaction</text></a></s...
Using IndexedDB - Web APIs
ting an index using IDBObjectStore.createIndex() (check out its parameters.) In such cases, when a cursor is then used to iterate through the dataset, and you want to specify locale-aware sorting, you can use a specialized IDBLocaleAwareKeyRange. IDBIndex has also had new properties added to it to specify if it has a locale specified, and what it is: locale (returns the locale if any, or null if none is specified) and isAutoLocale (returns true if the index was created with an auto locale, meaning that the platform's default locale is used, false otherwise.) Note: This feature is currently hidden behind a flag -- to enable it and experiment, go to about:config and enable dom.indexedDB.experimental. Full IndexedDB example HTML Content <script type="text/javascript" src="https://ajax.goog...
InputDeviceCapabilities - Web APIs
ces. This allows, for example, touchscreen keyboards and physical keyboards to be represented the same way when they produce the same input. Constructors InputDeviceCapabilities.InputDeviceCapabilities() Creates an InputDeviceCapabilities object. Properties InputDeviceCapabilities.firesTouchEventsRead only A Boolean that indicates whether the device dispatches touch events. Methods None. Specifications Specification Status Comment InputDeviceCapabilitiesThe definition of 'sourceCapabilities' in that specification. Draft Initial definition. ...
InputEvent.getTargetRanges() - Web APIs
Return value An array of StaticRange objects. Specifications Specification Status Comment Input Events Level 2The definition of 'getTargetRanges()' in that specification. Working Draft Initial definition. ...
enabled - Web APIs
The method reflects the value of the Software Installation preference in the user interface, and of the xpinstall.enabled preference in pref.js. ...
IntersectionObserver.disconnect() - Web APIs
Return value undefined. ...
IntersectionObserver.takeRecords() - Web APIs
were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback. Note: If you use the callback to monitor these changes, you don't need to call this method. Calling this method clears the pending intersection list, so the callback will not be run. Syntax intersectionObserverEntries = intersectionObserver.takeRecords(); Parameters None. Return value An array of IntersectionObserverEntry objects, one for each target element whose intersection with the root has changed since the last time the intersections were checked. Examples <<<...>>> Specifications Specification Status Comment Intersection ObserverThe definition of 'IntersectionObserver.takeRecords()' in that specification. Working Dra...
Timing element visibility with the Intersection Observer API - Web APIs
r to be placed in the top row of the site's grid. More interesting is our use of grid-column here; here we specify that we want the column to start in the first column and ends in the first column past the last grid line--in other words, the header spans across all of the columns within the grid. Perfect for our needs. The sidebar Our sidebar is used to present links to other pages on the site. None of them work in our example here, but they exist to help with the presentation of a blog-like experience. The sidebar is represented using an <aside> element, and is styled as follows: aside { grid-column: 1; grid-row: 2; background-color: cornsilk; padding: 5px 10px; } aside ul { padding-left: 0; } aside ul li { list-style: none; } aside ul li a { text-decoration: none; } The ...
Keyboard.getLayoutMap() - Web APIs
Return value A Promise that resolves with an instance of KeyboardLayoutMap. ...
Keyboard.unlock() - Web APIs
Web › API › Keyboard › unlock
The unlock() method of the Keyboard interface unlocks all keys captured by the Keyboard.lock() method and returns synchronously. Syntax Keyboard.unlock() Parameters None. Return value undefined Specifications Specification Status Comment Keyboard MapThe definition of 'Keyboard' in that specification. Editor's Draft Defines the Keyboard interface. Keyboard LockThe definition of 'unlock()' in that specification. Editor's Draft Initial definition. ...
Keyboard - Web APIs
Web › API › Keyboard
Methods Keyboard.getLayoutMap() Returns a Promise that resolves with an instance of KeyboardLayoutMap which is a map-like object with functions for retrieving the strings associated with specific physical keys. ...
KeyframeEffect.KeyframeEffect() - Web APIs
ional The number of milliseconds to delay after the end of an animation. This is primarily of use when sequencing animations based on the end time of another animation. Defaults to 0. fill Optional Dictates whether the animation's effects should be reflected by the element(s) prior to playing ("backwards"), retained after the animation has completed playing ("forwards"), or both. Defaults to "none". iterationStart Optional Describes at what point in the iteration the animation should start. 0.5 would indicate starting halfway through the first iteration for example, and with this value set, an animation with 2 iterations would end halfway through a third iteration. Defaults to 0.0. iterations Optional The number of times the animation should repeat. Defaults to 1, and can also take a v...
KeyframeEffect.getKeyframes() - Web APIs
Return value Returns a sequence of objects with the following format: property value pairs As many property value pairs as are contained in each keyframe of the animation. offset The offset of the keyframe specified as a number between 0.0 and 1.0 inclusive or null. ...
KeyframeEffectOptions - Web APIs
ional The number of milliseconds to delay after the end of an animation. This is primarily of use when sequencing animations based on the end time of another animation. Defaults to 0. fill Optional Dictates whether the animation's effects should be reflected by the element(s) prior to playing ("backwards"), retained after the animation has completed playing ("forwards"), or both. Defaults to "none". iterationStart Optional Describes at what point in the iteration the animation should start. 0.5 would indicate starting halfway through the first iteration for example, and with this value set, an animation with 2 iterations would end halfway through a third iteration. Defaults to 0.0. iterations Optional The number of times the animation should repeat. Defaults to 1, and can also take a v...
LinkStyle - Web APIs
Web › API › LinkStyle
The LinkStyle interface provides access to the associated CSS style sheet of a node. LinkStyle is a raw interface and no object of this type can be created; it is implemented by HTMLLinkElement and HTMLStyleElement objects. Properties There is no inherited property. LinkStyle.sheet Read only Returns the CSSStyleSheet object associated with the given element, or null if there is none. Methods This interface implements no method. Specifications Specification Status Comment CSS Object Model (CSSOM)The definition of 'LinkStyle' in that specification. Working Draft LinkStyle.sheet returns more specialized CSSStyleSheet instead of StyleSheet Document Object Model (DOM) Level 2 Style SpecificationThe definition of 'LinkStyle' in that specification.
Location: host - Web APIs
Web › API › Location › host
The host property of the Location interface is a USVString containing the host, that is the hostname, and then, if the port of the URL is nonempty, a ':', and the port of the URL. Syntax string = object.host; object.host = string; Examples var anchor = document.createElement("a"); anchor.href = "https://developer.mozilla.org/Location.host" anchor.host == "developer.mozilla.org" anchor.href = "https://developer.mozilla.org:443/Location.host" anchor.host == "developer.mozilla.org" // The port number is not included because 443 is the scheme's default port anchor.href = "https://developer.mozilla.org:4097/Location.host" anchor.host == "developer.mozilla.org:4097" Specifications Specification Status Comment HTML Living StandardThe definition of 'host' in that sp...
LockManager.query() - Web APIs
Web › API › LockManager › query
Return value A Promise that resolves with a LockManagerSnapshot containing the following properties. held: An array of Lock objects for held locks. pending: An array of Lock objects for pending lock requests. ...
MIDIInput - Web APIs
Web › API › MIDIInput
Event handlers MIDIInput.onmidimessage When the current port receives a MIDIMessage it triggers a call to this event handler. ...
MediaDeviceInfo - Web APIs
nfo.labelRead only Returns a DOMString that is a label describing this device (for example "External USB Webcam"). For security reasons, the label field is always blank unless an active media stream exists or the user has granted persistent permission for media device access. The set of device labels could otherwise be used as part of a fingerprinting mechanism to identify a user. Methods None. Example Here's an example that uses enumerateDevices() to get a list of devices. if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices) { console.log("enumerateDevices() not supported."); return; } // List cameras and microphones. navigator.mediaDevices.enumerateDevices() .then(function(devices) { devices.forEach(function(device) { console.log(device.kind + ": " ...
MediaDevices.getSupportedConstraints() - Web APIs
The getSupportedConstraints() method of the MediaDevices interface returns an object based on the MediaTrackSupportedConstraints dictionary, whose member fields each specify one of the constrainable properties the user agent understands. Syntax var supportedConstraints = navigator.mediaDevices.getSupportedConstraints(); Parameters None. Return value A new object based on the MediaTrackSupportedConstraints dictionary listing the constraints supported by the user agent. Because only constraints supported by the user agent are included in the list, each of these Boolean properties has the value true. Example This example outputs a list of the constraints supported by your browser. HTML <p>The following media constraints are supported by your browser:</p> <ul id="constraintList"> </ul...
MediaDevices.ondevicechange - Web APIs
let videoElement = document.getElementById("video"); let logElement = document.getElementById("log"); function log(msg) { logElement.innerHTML += msg + "<br>"; } document.getElement...
MediaError - Web APIs
f what the error code means, but actual diagnostic information to help in understanding what exactly went wrong. This text and its format is not defined by the specification and will vary from one user agent to another. If no diagnostics are available, or no explanation can be provided, this value is an empty string (""). Methods This interface doesn't implement or inherit any methods, and has none of its own. Specifications Specification Status Comment HTML Living StandardThe definition of 'MediaError' in that specification. Living Standard ...
MediaKeyMessageEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaKeyMessageEvent" target="_top"><rect x="116" y="1" width="200" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="216" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaKeyMessageEvent</t...
MediaKeySession.onkeystatuseschange - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaKeySession" target="_top"><rect x="151" y="1" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaKeySession</text></a><...
MediaKeySession.onmessage - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaKeySession" target="_top"><rect x="151" y="1" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaKeySession</text></a><...
MediaKeyStatusMap.entries() - Web APIs
Returns Exceptions Specifications Specification Status Comment Encrypted Media Extensions Recommendation Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
MediaKeyStatusMap.get() - Web APIs
Syntax var value = mediaKeyStatusMap.get(key); Parameters key The key whose value you want returned. Returns The value associated with the given key, or undefined. Specifications Specification Status Comment Encrypted Media Extensions Recommendation Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
MediaKeyStatusMap.keys() - Web APIs
Returns A new iterator. Specifications Specification Status Comment Encrypted Media Extensions Recommendation Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
MediaKeyStatusMap.values() - Web APIs
Returns A new iterator. Specifications Specification Status Comment Encrypted Media Extensions Recommendation Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
MediaKeyStatusMap - Web APIs
ining an array of [key, value] for each element in the status map, in insertion order. MediaKeyStatusMap.forEach(callback[, argument]) Read only Calls callback once for each key-value pair in the status map, in insertion order. If argument is present it will be passed to the callback. MediaKeyStatusMap.get() Read only Returns the value associated with the given key, or undefined if there is none. MediaKeyStatusMap.has() Read only Returns a boolean asserting whether a value has been associated with the given key. MediaKeyStatusMap.keys() Read only Returns a new Iterator object containing keys for each element in the status map, in insertion order. MediaKeyStatusMap.values() Read only Returns a new Iterator object containing values for each element in the status map, in insertion ...
MediaKeys - Web APIs
Web › API › MediaKeys
Methods MediaKeys.createSession() Returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM). MediaKeys.setServerCertificate() Returns a Promise to a server certificate to be used to encrypt messages to the license server. ...
MediaRecorder.mimeType - Web APIs
This is the file format of the file that would result from writing all of the recorded data to disk. Keep in mind that not all codecs are supported by a given container; if you write media using a codec that is not supported by a given media container, the resulting file may not work reliably if at all when you try to play it back. See our media type and format guide for information about container and codec support across browsers. ...
MediaRecorder.onpause - Web APIs
Specifications Specification Status Comment MediaStream RecordingThe definition of 'MediaRecorder.onpause' in that specification. Working Draft Initial definition ...
MediaRecorder.onresume - Web APIs
Specifications Specification Status Comment MediaStream RecordingThe definition of 'MediaRecorder.onresume' in that specification. Working Draft Initial definition ...
MediaRecorder.onstart - Web APIs
starts being gathered into a Blob. Syntax MediaRecorder.onstart = function(event) { ... } MediaRecorder.addEventListener('start', function(event) { ... }) Example ... record.onclick = function() { mediaRecorder.start(); console.log("recorder started"); } mediaRecorder.onstart = function() { // do something in response to // recording being started } ... Properties None. Specifications Specification Status Comment MediaStream RecordingThe definition of 'MediaRecorder.onstart' in that specification. Working Draft Initial definition ...
MediaSession.playbackState - Web APIs
The playbackState property of the MediaSession interface indicates whether the current media session is playing or paused. Syntax let playbackState = mediaSession.playbackState; mediaSession.playbackState = playbackState; Value A DOMString indicating the current playback state of the media session. The value may be one of the following: none The browsing context doesn't currently know the current playback state, or the playback state is not available at this time. paused The browser's media session is currently paused. Playback may be resumed. playing The browser's media session is currently playing media, which can be paused. Example The following example sets up event handlers, for pausing and playing: var audio = document.querySelector("#player"); audio.src = "song.mp3"; n...
MediaSession - Web APIs
es controls for media. A browser on that device might deliver the metadata provided by calling MediaSession to the device in order to be controllable using the global user interface. Properties metadata Returns an instance of MediaMetadata which contains rich media metadata, for display in a platform UI. playbackState Indicates whether the current media session is playing. Valid values are none, paused, or playing. Methods setActionHandler() Sets an event handler for a media session action, such as play or pause. See the method page for a full list. setPositionState() Sets the current playback position and speed of the media currently being presented. Examples The following example creates a new media session and assigns action handlers to it: if ('mediaSession' in navigator...
MediaSource.MediaSource() - Web APIs
The MediaSource() constructor of the MediaSource interface constructs and returns a new MediaSource object with no associated source buffers. Syntax var mediaSource = new MediaSource(); Parameters None. Example The following snippet is taken from a simple example written by Nick Desaulniers (view the full demo live, or download the source for further investigation.) var video = document.querySelector('video'); var assetURL = 'frag_bunny.mp4'; // Need to be specific for Blink regarding codecs // ./mp4info frag_bunny.mp4 | grep Codec var mimeCodec = 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'; if ('MediaSource' in window && MediaSource.isTypeSupported(mimeCodec)) { var mediaSource = new MediaSource; //console.log(mediaSource.readyState); // closed video.src = URL.creat...
MediaSource.clearLiveSeekableRange() - Web APIs
The clearLiveSeekableRange() method of the MediaSource interface clears a seekable range previously set with a call to setLiveSeekableRange(). Syntax mediaSource.clearLiveSeekableRange() Parameters None. Return value undefined Specifications Specification Status Comment Media Source ExtensionsThe definition of 'clearLiveSeekableRange()' in that specification. Recommendation Initial definition. ...
MediaSource - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaSource" target="_top"><rect x="151" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="206" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaSource</text></a></svg></d...
MediaStream.clone() - Web APIs
Web › API › MediaStream › clone
The clone() method of the MediaStream interface creates a duplicate of the MediaStream. This new MediaStream object has a new unique id and contains clones of every MediaStreamTrack contained by the MediaStream on which clone() was called. Syntax var stream = MediaStream.clone(); Parameters None. Return value A new MediaStream instance which has a new unique ID and contains clones of every MediaStreamTrack contained by the MediaStream on which clone() was called. Specifications Specification Status Comment Media Capture and StreamsThe definition of 'MediaStream.clone()' in that specification. Candidate Recommendation Initial definition. ...
MediaStream.getAudioTracks() - Web APIs
Return value An array of MediaStreamTrack objects, one for each audio track contained in the stream. Audio tracks are those tracks whose kind property is audio. The array is empty if the stream contains no audio tracks. ...
MediaStream.getTracks() - Web APIs
Return value An array of MediaStreamTrack objects. ...
MediaStream.getVideoTracks() - Web APIs
Return value An array of MediaStreamTrack objects, one for each video track contained in the media stream. Video tracks are those tracks whose kind property is video. The array is empty if the stream contains no video tracks. ...
MediaStreamTrackEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaStreamTrackEvent" target="_top"><rect x="116" y="1" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaStreamTrackEvent<...
Recording a media element - Web APIs
Setting up global variables...
MediaStream Recording API - Web APIs
console.log("data-available"); if (event.data.size > 0) { recordedChunks.push(event.data); console.log(recordedChunks); download(); } else { // ... ...
MediaTrackConstraints.cursor - Web APIs
rsor be visible when in motion, falling back to always being visible if the user agent doesn't support in-motion only cursor rendering. let displayMediaOptions = { cursor: ["motion", "always"] }; Example: Require that the cursor not be visible This constraints object explicitly requires that the cursor not be rendered into the video track. let displayMediaOptions = { cursor: { exact: "none" } }; Specifications Specification Status Comment Screen CaptureThe definition of 'MediaTrackConstraints.cursor' in that specification. Unknown Initial specification. ...
MediaTrackSettings - Web APIs
perty, specifying the height of the track's video data in pixels. width A long integer value indicating the current value of the width property, specifying the width of the track's video data in pixels. resizeMode A DOMString indicating the current value of the resizeMode property, specifying the mode used by the user agent to derive the resolution of the track. The value will be one of: "none" The track has the resolution offered by the camera, its driver or the OS. "crop-and-scale" The track's resolution might be the result of the user agent using cropping or downscaling from a higher camera resolution. Properties of shared screen tracks Tracks containing video shared from a user's screen (regardless of whether the screen data comes from the entire screen or a portion of...
Using the Media Capabilities API - Web APIs
id</option> </select> </li> <li> <label for="size">Select a size</label> <select id="size"> <option>7680x4320</option> <option>3840x2160</option> <option>2560x1440</option> <option>1920x1080</option> <option>1280x720</option> <option selected>800x600</option> <option>640x480</option> <option>320x240</option> <option value=" x ">none</option> </select> </li> <li> <label for="framerate">Select a framerate</label> <select id="framerate"> <option>60</option> <option>50</option> <option>30</option> <option>24</option> <option selected>15</option> </select> </li> <li> <label for="bitrate">Select a bitrate</label> <select id="bitrate"> <option>4000</option> ...
MessageEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MessageEvent" target="_top"><rect x="116" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="176" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MessageEvent</text></a></svg></...
MessagePort.close() - Web APIs
Web › API › MessagePort › close
Example In the following code block, you can see a handleMessage handler function, run when a message is sent back to this document using EventTarget.addEventListener. ...
MessagePort.start() - Web APIs
Web › API › MessagePort › start
The start() method of the MessagePort interface starts the sending of messages queued on the port. This method is only needed when using EventTarget.addEventListener; it is implied when using MessageChannel.onmessage. Note: This feature is available in Web Workers. Syntax port.start() Returns Void. Parameters None. Example In the following code block, you can see a handleMessage handler function, run when a message is sent back to this document using onmessage: channel.port1.onmessage = handleMessage; function handleMessage(e) { para.innerHTML = e.data; } Another option would be to do this using EventTarget.addEventListener, however, when this method is used, you need to explicitly call start() to begin the flow of messages to this document: channel.port1.addEventListener('me...
MimeType - Web APIs
Web › API › MimeType
The MimeType interface provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. Properties MimeType.type Returns the MIME type of the associated plugin. MimeType.description Returns a description of the associated plugin or an empty string if there is none. MimeType.suffixes A string containing valid file extensions for the data displayed by the plugin, or an empty string if an extension is not valid for the particular module. For example, a browser's content decryption module may appear in the plugin list but support more file extensions than can be anticipated. It might therefore return an empty string. MimeType.enabledPlugin Returns an instance of Plugin containing information about the plu...
MutationObserver.disconnect() - Web APIs
Return value undefined. Note: All notifications of mutations that have already been detected, but not yet reported to the observer, are discarded. Usage notes If the element being observed is removed from the DOM, and then subsequently released by the browser's garbage collection mechanism, the MutationObserver is likewise deleted. ...
MutationObserver.observe() - Web APIs
The MutationObserver method observe() configures the MutationObserver callback to begin receiving notifications of changes to the DOM that match the given options. Depending on the configuration, the observer may watch a single Node in the DOM tree, or that node and some or all of its descendant nodes. To stop the MutationObserver (so that none of its callbacks will be triggered any longer), call MutationObserver.disconnect(). Syntax mutationObserver.observe(target, options) Parameters target A DOM Node (which may be an Element) within the DOM tree to watch for changes, or to be the root of a subtree of nodes to be watched. options A MutationObserverInit object providing options that describe which DOM mutations should be reported to mutationObserver's callback. Return value ...
MutationObserver.takeRecords() - Web APIs
een detected but not yet processed by the observer's callback function, leaving the mutation queue empty. The most common use case for this is to immediately fetch all pending mutation records immediately prior to disconnecting the observer, so that any pending mutations can be processed when stopping down the observer. Syntax const mutationRecords = mutationObserver.takeRecords() Parameters None. Return value An array MutationRecord objects, each describing one change applied to the observed portion of the document's DOM tree. Note: The queue of mutations which have occurred, but not been delivered to the observer's callback is left empty after calling takeRecords(). Example In this example, we demonstrate how to handle any undelivered MutationRecords by calling takeRecords() just...
NDEFReader() - Web APIs
The NDEFReader() constructor of the Web NFC API returns a newly constructed NDEFReader object used to read NDEF messages from compatiable NFC devices, e.g. NDEF tags, within the reader's magnetic induction field. Syntax writer = new NDEFReader(); Parameters None. Return value A new NDEFReader. Specifications Specification Status Comment Web NFC, NDEFReader Draft Initial definition. ...
NDEFReadingEvent - Web APIs
sents events despatched on new NFC readings obtained by NDEFReader. Constructor NDEFReadingEvent.NDEFReadingEvent() Creates an NDEFReadingEvent event with the given parameters. Properties Also inherits properties from its parent Event. NDEFReadingEvent.serialNumber Read only Represents the serial number of the device used for anti-collision and identification, or empty string in case none is available. NDEFReadingEvent.message Read only Represents the received message as an NDEFMessage object. Methods Inherits methods from its parent Event. Specifications Specification Status Comment Web NFC, NDEFReadingEvent Draft Initial definition. ...
NDEFRecord.toRecords() - Web APIs
The toRecords() method of the NDEFRecord interface of Web NFC API parses record payload NDEFRecord.data besed on NDEFRecord.recordType and returns the result. In practice, it's possible to implement the parsing mechanism manually, but this method simplifies the process. Syntax NDEFRecord.toRecords() Parameters None. Return value A list of NDEFRecords. Exceptions NotSupported The User Agent does not know how to parse this combination of NDEFRecord.data and NDEFRecord.recordType. Specifications Specification Status Comment Web NFC, NDEFRecord.toRecords() Draft Initial definition. ...
NDEFWriter() - Web APIs
The NDEFWriter() constructor of the Web NFC API returns a newly constructed NDEFWriter object used to write NDEF messages to compatiable NFC devices, e.g. NDEF tags, within the reader's magnetic induction field. Syntax writer = new NDEFWriter(); Parameters None. Return value A new NDEFWriter. Specifications Specification Status Comment Web NFC, NDEFWriter Draft Initial definition. ...
Navigator.canShare() - Web APIs
The Navigator.canShare() method of the Web Share API returns true if a call to Navigator.share() would succeed. Syntax var canShare = navigator.canShare(data); Parameters data Optional An object containing data to share that matches what you would pass to Navigator.share(). Return value A Boolean. True if data can be shared with Navigator.share(). Exceptions None. Examples if(navigator.canShare(data)) { // We can use share() to share the data! Woop! } Specifications Specification Status Comment Web Share API - Level 2The definition of 'canShare' in that specification. Draft Initial definition. ...
Navigator.cookieEnabled - Web APIs
hird-party cookies, and navigator.cookieEnabled is invoked inside a third-party iframe, it returns true in Safari, Edge Spartan and IE (while trying to set a cookie in such scenario would fail). It returns false in Firefox and Chromium-based browsers. Note: Web browsers may prevent writing certain cookies in certain scenarios. For example, Chrome 80+ does not allow creating cookies with SameSite=None attribute, unless they are created over HTTPS and with Secure attribute. Example if (!navigator.cookieEnabled) { // The browser does not support or is blocking cookies from being set. } Specifications Specification Status Comment HTML Living StandardThe definition of 'Navigator.cookieEnabled' in that specification. Living Standard Initial definition ...
Navigator.requestMediaKeySystemAccess() - Web APIs
er: mediaKeySystemAccess A MediaKeySystemAccess object representing the media key system configuration described by keySystem and supportedConfigurations Exceptions In case of an error, the returned Promise is rejected with a DOMException whose name indicates what kind of error occurred. NotSupportedError Either the specified keySystem isn't supported by the platform or the browser, or none of the configurations specified by supportedConfigurations can be satisfied (if, for example, none of the codecs specified in contentType are available). TypeError Either keySystem is an empty string or the supportedConfigurations array is empty. Specifications Specification Status Comment Encrypted Media ExtensionsThe definition of 'requestMediaKeySystemAccess()' in ...
NetworkInformation.type - Web APIs
The NetworkInformation.type read-only property returns the type of connection a device is using to communicate with the network. Note: This feature is available in Web Workers. Syntax var type = netInfo.type Return value An enumerated value that is one of the following values: "bluetooth" "cellular" "ethernet" "none" "wifi" "wimax" "other" "unknown" Specifications Specification Status Comment Network Information APIThe definition of 'type' in that specification. Draft Initial definition ...
NetworkInformation - Web APIs
me of the current connection, rounded to the nearest multiple of 25 milliseconds. NetworkInformation.saveData Read only Returns true if the user has set a reduced data usage option on the user agent. NetworkInformation.type Read only Returns the type of connection a device is using to communicate with the network. It will be one of the following values: bluetooth cellular ethernet none wifi wimax other unknown Event handlers NetworkInformation.onchange The event that's fired when connection information changes and the change is fired on this object. Methods This interface also inherits methods of its parent, EventTarget. Specifications Specification Status Comment Network Information APIThe definition of 'NetworkInformation' in...
Node.setUserData() - Web APIs
Web › API › Node › setUserData
rted, renamed, as well as if deleted or adopted; a function can be used or an object implementing the handle method (part of the UserDataHandler interface). The handler will be passed five arguments: an operation type integer (e.g., 1 to indicate a clone operation), the user key, the data on the node, the source node (null if being deleted), the destination node (the newly created node or null if none).If no handler is desired, one must specify null. userData is the object to associate to userKey on someNode. If null, any previously registered object and UserDataHandler associated to userKey on this node will be removed. Example var d = document.implementation.createDocument('', 'test', null); d.documentElement.setUserData('key', 15, {handle:function (o, k, d, s, ds) {console.log(o+'::'+k+...
Node - Web APIs
Web › API › Node
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a></svg></div> a:hov...
NodeIterator - Web APIs
the flag being true, or after, the flag being false, the anchor node. Methods This interface doesn't inherit any method. NodeIterator.detach() This operation is a no-op. It doesn't do anything. Previously it was telling the engine that the NodeIterator was no more used, but this is now useless. NodeIterator.previousNode() Returns the previous Node in the document, or null if there are none. NodeIterator.nextNode() Returns the next Node in the document, or null if there are none. Specifications Specification Status Comment DOMThe definition of 'NodeIterator' in that specification. Living Standard Added the referenceNode and pointerBeforeReferenceNode properties. Removed the expandEntityReferences property. The method detach() has been cha...
Notification.close() - Web APIs
ve the notification from any notification tray, preventing users from interacting with it after it was initially shown. A valid use for this API would be to remove a notification that is no longer relevant (e.g. the user already read the notification on the webpage in the case of a messaging app or the following song is already playing in a music app). Syntax Notification.close(); Parameters None. Returns Void. Examples In the following snippet, we have a simple function that when called creates an options object and then a new notification. At the end of the function, it also calls close() inside a addEventListener() function to remove the notification when the relevant content has been read on the webpage. function spawnNotification(theBody, theIcon, theTitle) { var options = { ...
Using the Notifications API - Web APIs
we make sure Chrome stores the information if(!('permission' in Notification)) { Notification.permission = permission; } // set the button to shown or hidden, depending on what the user answers if(Notification.permission === 'denied' || Notification.permission === 'default') { notificationBtn.style.display = 'block'; } else { notificationBtn.style.display = 'none'; } } // Let's check if the browser supports notifications if (!('Notification' in window)) { console.log("This browser does not support notifications."); } else { if(checkNotificationPromise()) { Notification.requestPermission() .then((permission) => { handlePermission(permission); }) } else { Notification.requestPermission(function(permis...
OES_vertex_array_object.bindVertexArrayOES() - Web APIs
Examples var ext = gl.getExtension('OES_vertex_array_object'); var vao = ext.createVertexArrayOES(); ext.bindVertexArrayOES(vao); // ... ...
OES_vertex_array_object.createVertexArrayOES() - Web APIs
The OES_vertex_array_object.createVertexArrayOES() method of the WebGL API creates and initializes a WebGLVertexArrayObject object that represents a vertex array object (VAO) pointing to vertex array data and which provides names for different sets of vertex data. Syntax WebGLVertexArrayObjectOES ext.createVertexArrayOES(); Parameters None. Return value A WebGLVertexArrayObject representing a vertex array object (VAO) which points to vertex array data. Examples var ext = gl.getExtension('OES_vertex_array_object'); var vao = ext.createVertexArrayOES(); ext.bindVertexArrayOES(vao); // ... // calls to bindBuffer or vertexAttribPointer // which will be "recorded" in the VAO // ... Specifications Specification Status Comment OES_vertex_array_objectThe definitio...
OES_vertex_array_object.deleteVertexArrayOES() - Web APIs
The OES_vertex_array_object.deleteVertexArrayOES() method of the WebGL API deletes a given WebGLVertexArrayObject object. Syntax void ext.deleteVertexArrayOES(arrayObject); Parameters arrayObject A WebGLVertexArrayObject (VAO) object to delete. Return value None. Examples var ext = gl.getExtension('OES_vertex_array_object'); var vao = ext.createVertexArrayOES(); ext.bindVertexArrayOES(vao); // ... ext.deleteVertexArrayOES(vao); Specifications Specification Status Comment OES_vertex_array_objectThe definition of 'OES_vertex_array_object' in that specification. Recommendation Initial definition. ...
OVR_multiview2.framebufferTextureMultiviewOVR() - Web APIs
NT: Depth and stencil buffer data storage. texture A WebGLTexture object whose image to attach. level A GLint specifying the mipmap level of the texture image to be attached. Must be 0. baseViewIndex A GLint specifying the base view index of the framebuffer object attachment. numViews A GLsizei specifying the number of views of the framebuffer object attachment. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if target is not gl.FRAMEBUFFER. attachment is not one of the accepted attachment points. A gl.INVALID_VALUE error is thrown if level is not 0. if numViews is less than one or more than MAX_VIEWS_OVR. A gl.INVALID_OPERATION error is thrown if texture isn't 0 or the name of an existing texture object. Examples ext...
OVR_multiview2 - Web APIs
hment. MAX_VIEWS_OVR The maximum number of views. Most VR headsets have two views, but there are prototypes of headset with ultra-wide FOV using 4 views which is currently the maximum number of views supported by multiview. FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR If baseViewIndex is not the same for all framebuffer attachment points where the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is not NONE, the framebuffer is considered incomplete. Calling checkFramebufferStatus for a framebuffer in this state returns FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR. Methods framebufferTextureMultiviewOVR() Simultaneously renders to multiple elements of a 2D texture array. Examples This example is taken from the specification. See also this three.js demo for a live multiview example. const gl = do...
OfflineAudioContext: complete event - Web APIs
The complete event of the OfflineAudioContext interface is fired when the rendering of an offline audio context is complete. ...
OfflineAudioContext.resume() - Web APIs
ioContext interface resumes the progression of time in an audio context that has been suspended. The promise resolves immediately because the OfflineAudioContext does not require the audio hardware. If the context is not currently suspended or the rendering has not started, the promise is rejected with InvalidStateError. Syntax OfflineAudioContext.resume().then(function() { ... }); Parameters None. Returns A Promise resolving to void. Exceptions The promise is rejected when the following exception is encountered. InvalidStateError if the context is not currently suspended or the rendering has not started. Specifications Specification Status Comment Web Audio APIThe definition of 'resume()' in that specification. Working Draft Initial definition. ...
OfflineAudioContext.startRendering() - Web APIs
he former will eventually be removed, but currently both mechanisms are provided for legacy reasons. Syntax Event-based version: offlineAudioCtx.startRendering(); offlineAudioCtx.oncomplete = function(e) { // e.renderedBuffer contains the output buffer } Promise-based version: offlineAudioCtx.startRendering().then(function(buffer) { // buffer contains the output buffer }); Parameters None. Returns Void. Example In this simple example, we declare both an AudioContext and an OfflineAudioContext object. We use the AudioContext to load an audio track via XHR (AudioContext.decodeAudioData), then the OfflineAudioContext to render the audio into an AudioBufferSourceNode and play the track through. After the offline audio graph is set up, you need to render it to an AudioBuffer using ...
OscillatorNode.onended - Web APIs
Specifications Specification Status Comment Web Audio APIThe definition of 'onended' in that specification. Working Draft ...
OverconstrainedError - Web APIs
dError() Creates a new OverconstrainedError object. Properties OverconstrainedError.constraint Read only Returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied. OverconstrainedError.message Read only Returns the text supplied in the constructor. OverconstrainedError.name Read only Will always return OverconstrainedError. Methods None. Specifications Specification Status Comment Media Capture and StreamsThe definition of 'OverconstrainedError' in that specification. Candidate Recommendation Initial definition. ...
PageTransitionEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PageTransitionEvent" target="_top"><rect x="116" y="1" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PageTransitionEvent</tex...
Page Visibility API - Web APIs
the tab into the background, and resume playback when the user returns to the tab. The user doesn't lose their place in the video, the video's soundtrack doesn't interfere with audio in the new foreground tab, and the user doesn't miss any of the video in the meantime. Visibility states of an <iframe> are the same as the parent document. Hiding an <iframe> using CSS properties (such as display: none;) doesn't trigger visibility events or change the state of the document contained within the frame. Use cases Let's consider a few use cases for the Page Visibility API. A site has an image carousel that shouldn't advance to the next slide unless the user is viewing the page An application showing a dashboard of information doesn't want to poll the server for updates when the page isn't vis...
PaintWorklet - Web APIs
Methods This interface inherits methods from Worklet. ...
ParentNode - Web APIs
Returns the number of children of this ParentNode which are elements. ParentNode.children Read only Returns a live HTMLCollection containing all of the Element objects that are children of this ParentNode, omitting all of its non-element nodes. ParentNode.firstElementChild Read only Returns the first node which is both a child of this ParentNode and is also an Element, or null if there is none. ParentNode.lastElementChild Read only Returns the last node which is both a child of this ParentNode and is an Element, or null if there is none. Methods ParentNode.append() Inserts a set of Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as equivalent Text nodes. ParentNode.prepend() Inserts a set of Node objects or DOMStri...
PasswordCredential - Web APIs
d Read only Secure context A USVString containing the password of the credential. PasswordCredential.passwordName Secure context A USVString representing the name that will be used for the password field when submitting the current object to a remote endpoint via fetch. This property defaults to 'password', but may be overridden to match whatever the backend service expects. Event handlers None. Methods None. Examples var cred = new PasswordCredential({ id: id, password: password, name: name, iconURL: iconUrl }); navigator.credentials.store(cred) .then(function() { // Do something else. }); Specifications Specification Status Comment Credential Management Level 1 Working Draft Initial definition. Browser Compatibility The compatib...
PaymentAddress.toJSON() - Web APIs
Return value A JSON object. Specifications Specification Status Comment Web IDLThe definition of 'toJSON()' in that specification. Candidate Recommendation Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
PaymentRequest.abort() - Web APIs
The PaymentRequest.abort() method of the PaymentRequest interface causes the user agent to end the payment request and to remove any user interface that might be shown. Syntax PaymentRequest.abort(); Returns Void. Parameters None Examples The following example sets up a timeout to clear the payment request that might have been abandoned or neglected. var request = new PaymentRequest(supportedInstruments, details, options); var paymentTimeout = window.setTimeout(() => { window.clearTimeout(paymentTimeout); request.abort().then(() => { print('Payment timed out after 20 minutes.'); }).catch(() => { print('Unable to abort, because the user is currently in the process ' + 'of paying.'); }); }, 20 * 60 * 1000); /* 20 minutes */ Specifications Spec...
PaymentRequest.canMakePayment() - Web APIs
uest.canMakePayment(); Returns A Promise to a Boolean that resolves to true if the user agent supports any of the payment methods supplied when instantiating the request using the PaymentRequest constructor. If the payment can't be processed, the promise receives a value of false. Note: If you call this too often, the browser may reject the returned promise with a DOMException. Parameters None Examples In the following example, is excerpted from a demo that asynchronously builds a PaymentRequest object for both Apple Pay and credit cards. It wraps the call to canMakePayment() in feature detection, and calls an appropriate callback depending on the resolution of the Promise. async function initPaymentRquest() { const details = { total: { label: "Total", amount: { ...
PaymentRequest.prototype.id - Web APIs
Web › API › PaymentRequest › id
Example This example shows how to give a PaymentRequest instance a custom id. ...
PaymentRequest - Web APIs
ary access point into the API, and lets web content and apps accept payments from the end user on behalf of the operator of the site or the publisher of the app. Constructor PaymentRequest() Secure context Creates a new PaymentRequest object. Properties PaymentRequest.id Read only Secure context An unique identifier for a particular PaymentRequest, which can be set via details.id. When none is set, it defaults to a UUID. PaymentRequest.shippingAddress Read only Secure context If requested via payment options, returns the shipping address chosen by the user for the purposes of calculating shipping. This property is only populated if the constructor is called with the requestShipping flag set to true. Additionally, in some browsers, the parts of the address will be redacted for pri...
PaymentRequestUpdateEvent.PaymentRequestUpdateEvent() - Web APIs
The PaymentRequestUpdateEvent constructor creates a new PaymentRequestUpdateEvent object which enables a web page to update the details of a PaymentRequest in response to a user action. Actual updates are made by passing options to the updateWith() method. Syntax var paymentRequestUpdateEvent = new PaymentRequestUpdateEvent() Parameters None. Return value A new PaymentRequestUpdateEvent object.Payment Request APIThe definition of 'PaymentRequestUpdateEvent' in that specification. Specifications Specification Status Comment Payment Request APIThe definition of 'PaymentRequestUpdateEvent()' in that specification. Candidate Recommendation Initial definition. ...
performance.clearResourceTimings() - Web APIs
ormance entries with an entryType of "resource" from the browser's performance data buffer and sets the size of the performance data buffer to zero. To set the size of the browser's performance data buffer, use the Performance.setResourceTimingBufferSize() method. Note: This feature is available in Web Workers. Syntax performance.clearResourceTimings(); Arguments void Return value none This method has no return value. Example function load_resource() { var image = new Image(); image.src = "https://developer.mozilla.org/static/img/opengraph-logo.png"; } function clear_performance_timings() { if (performance === undefined) { log("Browser does not support Web Performance"); return; } // Create a resource timing performance entry by loading an image load_res...
Performance.memory - Web APIs
...
performance.setResourceTimingBufferSize() - Web APIs
rmance entry type objects. A browser's recommended resource timing buffer size is at least 150 performance entry objects. Note: This feature is available in Web Workers. Syntax performance.setResourceTimingBufferSize(maxSize); Arguments maxSize A number representing the maximum number of performance entry objects the browser should hold in its performance entry buffer. Return value none This method has no return value. Example function setResourceTimingBufferSize(maxSize) { if (performance === undefined) { log("Browser does not support Web Performance"); return; } var supported = typeof performance.setResourceTimingBufferSize == "function"; if (supported) { log("... Performance.setResourceTimingBufferSize() = Yes"); performance.setResourceTimingBuffer...
performance.toJSON() - Web APIs
The toJSON() method of the Performance interface is a standard serializer: it returns a JSON representation of the performance object's properties. Note: This feature is available in Web Workers. Syntax myPerf = performance.toJSON() Arguments None Return value myPerf A JSON object that is the serialization of the Performance object. Example var js; js = window.performance.toJSON(); console.log("json = " + JSON.stringify(js)); Specifications Specification Status Comment High Resolution Time Level 2The definition of 'toJSON() serializer' in that specification. Recommendation Defines toJson(). ...
PerformanceEntry.toJSON() - Web APIs
Example The following example shows the use of the toJSON() method. function run_PerformanceEntry() { log("PerformanceEntry support ..."); if (performance.mark === undefined) { log("... ...
PerformanceLongTaskTiming - Web APIs
k:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PerformanceLongTaskTiming" target="_top"><rect x="201" y="1" width="250" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceLongTa...
PerformanceMark - Web APIs
k:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PerformanceMark" target="_top"><rect x="201" y="1" width="150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="276" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceMark</text></a><...
PerformanceMeasure - Web APIs
k:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PerformanceMeasure" target="_top"><rect x="201" y="1" width="180" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="291" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceMeasure</text...
PerformanceNavigationTiming.toJSON() - Web APIs
The toJSON() method is a serializer - it returns a JSON representation of the PerformanceNavigationTiming object. Syntax json = resourcePerfEntry.toJSON(); Arguments None Return value json A JSON object that is the serialization of the PerformanceNavigationTiming object as a map with entries from the closest inherited interface and with entries for each of the serializable attributes. Example // Get a resource performance entry var perfEntries = performance.getEntriesByType("navigation"); var entry = perfEntries[0]; // Get the JSON and log it var json = entry.toJSON(); var s = JSON.stringify(json); console.log("PerformanceNavigationTiming.toJSON() = " + s); Specifications Specification Status Comment Navigation Timing Level 2The definiti...
PerformanceNavigationTiming - Web APIs
k:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PerformanceNavigationTiming" target="_top"><rect x="201" y="1" width="270" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="336" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceNavi...
PerformanceObserver.takeRecords() - Web APIs
Return value A list of PerformanceEntry objects. ...
PerformancePaintTiming - Web APIs
k:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PerformancePaintTiming" target="_top"><rect x="201" y="1" width="220" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="311" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformancePaintTimi...
PerformanceResourceTiming.toJSON() - Web APIs
The toJSON() method is a serializer that returns a JSON representation of the PerformanceResourceTiming object. Syntax json = resourcePerfEntry.toJSON(); Arguments None Return value json A JSON object that is the serialization of the PerformanceResourceTiming object as a map with entries from the closest inherited interface and with entries for each of the serializable attributes. Example // Get a resource performance entry var perfEntries = performance.getEntriesByType("resource"); var entry = perfEntries[0]; // Get the JSON and log it var json = entry.toJSON(); var s = JSON.stringify(json); console.log("PerformanceEntry.toJSON = " + s); Specifications Specification Status Comment Resource Timing Level 2The definition of 'toJSON' in that specific...
PerformanceResourceTiming - Web APIs
k:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PerformanceResourceTiming" target="_top"><rect x="201" y="1" width="250" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceResour...
PerformanceServerTiming.toJSON - Web APIs
The toJSON() method of the PerformanceServerTiming interface returns a DOMString that is the JSON representation of the PerformanceServerTiming object. Syntax var json = PerformanceServerTiming.toJSON() Parameters None. Return value A DomString containing JSON. Exceptions None. Specifications Specification Status Comment Server TimingThe definition of 'toJSON' in that specification. Working Draft Initial definition. ...
PeriodicWave - Web APIs
calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). Constructor PeriodicWave.PeriodicWave() Creates a new PeriodicWave object instance using the default values for all properties. If you wish to establish custom property values at the outset, use the AudioContext.createPeriodicWave() factory method instead. Properties None; also, PeriodicWave doesn't inherit any properties. Methods None; also, PeriodicWave doesn't inherit any methods. Example The following example illustrates simple usage of createPeriodicWave(), to create a PeriodicWave object containing a simple sine wave. var real = new Float32Array(2); var imag = new Float32Array(2); var ac = new AudioContext(); var osc = ac.createOscillator(); real[0] = ...
PointerEvent.getCoalescedEvents() - Web APIs
Returns A sequence of PointerEvent instances. Specifications Specification Status Comment Pointer Events - Level 3The definition of 'getCoalescedEvents()' in that specification. Editor's Draft Initial definition. ...
Multi-touch interaction - Web APIs
round(ev); ev.target.style.border = "1px solid black"; } Application UI The application uses <div> elements for the touch areas and provides buttons to enable logging and to clear the log. To prevent the browser's default touch behavior from overriding this application's pointer handling, the touch-action property is applied to the <body> element. ...
Pinch zoom gestures - Web APIs
racker if (evCache.length < 2) { prevDiff = -1; } } Application UI The application uses a <div> element for the touch area and provides buttons to enable logging and to clear the log. To prevent the browser's default touch behavior from overriding this application's pointer handling, the touch-action property is applied to the <body> element. ...
Using Pointer Events - Web APIs
his may be a finger (or elbow, ear, nose, whatever, but typically a finger), stylus, mouse, or any other method for specifying a single point on the surface. Example The text below uses the term "finger" when describing the contact with the surface, but it could, of course, also be a stylus, mouse, or other method of pointing at a location. Create a canvas The touch-action property is set to none to prevent the browser from applying its default touch behavior to the application. <canvas id="canvas" width="600" height="600" style="border:solid black 1px; touch-action:none"> Your browser does not support canvas element. </canvas> <br> <button onclick="startup()">Initialize</button> <br> Log: <pre id="log" style="border: 1px solid #ccc;"></pre> Setting up the event handlers When the pa...
ProgressEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ProgressEvent" target="_top"><rect x="116" y="1" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="181" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ProgressEvent</text></a></svg>...
PromiseRejectionEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PromiseRejectionEvent" target="_top"><rect x="116" y="1" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PromiseRejectionEvent<...
PublicKeyCredential.getClientExtensionResults() - Web APIs
different browsers may recognize different extensions. All extensions are optional for the client to process them: if a browser does not know of a given extension, that will not cause any failure. Note: This method may only be used in top-level contexts and will not be available in an <iframe> for example. Syntax mapArrayBuffer = publicKeyCredential.getClientExtensionResults() Parameters None. Return value An ArrayBuffer containing the result of the processing of the different extensions by the client. This object contains a map between the extensions' identifiers and their results from the processing. Warning! As of March 2019, only appId (used during creation with PublicKeyCredentialRequestOptions.extensions) is supported by Chrome and Edge. Firefox does not seem to support any ...
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() - Web APIs
user in order to identify them. At the time of this writing, this method's result only resolves to true on Windows when Windows Hello capabilities are available (on recent versions of this OS). Note: This method may only be used in top-level contexts and will not be available in an <iframe> for example. Syntax PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() Parameters None. Return value A Promise which resolves to a Boolean indicating whether or a not a user-verifying platform authenticator is available. As of today (March 2019), this is basically indicating if Windows Hello may be used with the Web Authentication API and that the user has accepted its use. Note: This is a static method which is directly called on the PublicKeyCredential interface and not on an...
PublicKeyCredentialRequestOptions - Web APIs
.userVerification Optional A string qualifying how the user verification should be part of the authentication process. PublicKeyCredentialRequestOptions.extensions Optional An object with several client extensions' inputs. Those extensions are used to request additional processing (e.g. dealing with legacy FIDO APIs credentials, prompting a specific text on the authenticator, etc.). Methods None. Examples var options = { challenge: new Uint8Array([/* bytes sent from the server */]), rpId: "example.com", /* will only work if the current domain is something like foo.example.com */ userVerification: "preferred", timeout: 60000, // Wait for a minute allowCredentials: [ { transports: "usb", type: "public-key", id: new Uint8Array(2...
PushManager.getSubscription() - Web APIs
The PushManager.getSubscription() method of the PushManager interface retrieves an existing push subscription. It returns a Promise that resolves to a PushSubscription object containing details of an existing subscription. If no existing subscription exists, this resolves to a null value. Syntax PushManager.getSubscription().then(function(pushSubscription) { ... } ); Parameters None. Returns A Promise that resolves to a PushSubscription object or null. Example This code snippet is taken from a push messaging and notification sample. (No live demo is available.) // We need the service worker registration to check for a subscription navigator.serviceWorker.ready.then(function(serviceWorkerRegistration) { // Do we already have a push message subscription? serviceWorkerRegis...
PushMessageData.arrayBuffer() - Web APIs
Returns An ArrayBuffer. Examples self.addEventListener('push', function(event) { var buffer = event.data.arrayBuffer(); // do something with your array buffer }); Specifications Specification Status Comment Push APIThe definition of 'arrayBuffer()' in that specification. Working Draft Initial definition. ...
PushMessageData.blob() - Web APIs
Returns A Blob. Examples self.addEventListener('push', function(event) { var blob = event.data.blob(); // do something with your Blob }); Specifications Specification Status Comment Push APIThe definition of 'blob()' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
PushMessageData.json() - Web APIs
Returns The result of parsing push event data as JSON. This could be anything that can be represented by JSON -- an object, an array, a string, a number... ...
PushMessageData.text() - Web APIs
Returns A USVString. Examples self.addEventListener('push', function(event) { var textObj = event.data.text(); // do something with your text }); Specifications Specification Status Comment Push APIThe definition of 'text()' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
PushMessageData - Web APIs
data sent by a server in various formats. Unlike the similar methods in the Fetch API, which only allow the method to be invoked once, these methods can be called multiple times. Messages received through the Push API are sent encrypted by push services and then automatically decrypted by browsers before they are made accessible through the methods of the PushMessageData interface. Properties None. Methods PushMessageData.arrayBuffer() Extracts the data as an ArrayBuffer object. PushMessageData.blob() Extracts the data as a Blob object. PushMessageData.json() Extracts the data as a JSON object. PushMessageData.text() Extracts the data as a plain text string. Examples self.addEventListener('push', function(event) { var obj = event.data.json(); if(obj.action === 'subscribe...
PushSubscription.toJSON() - Web APIs
Returns A JSON object. It currently only contains the subscription endpoint, as an endpoint member. ...
PushSubscription.unsubscribe() - Web APIs
Returns A Promise that resolves to a Boolean when the current subscription is successfully unsubscribed. ...
RTCDTMFSender - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/RTCDTMFSender" target="_top"><rect x="151" y="1" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="216" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">RTCDTMFSender</text></a></svg...
RTCDTMFToneChangeEvent.tone - Web APIs
he DTMF character which has just begun to play, or an empty string (""). if all queued tones have finished playing (that is, RTCDTMFSender.toneBuffer is empty). Syntax var tone = dtmfToneChangeEvent.tone; Example This example establishes a handler for the tonechange event which updates an element to display the currently playing tone in its content, or, if all tones have played, the string "<none>". dtmfSender.ontonechange = function( ev ) { let tone = ev.tone; if (tone === "") { tone = "&lt;none&gt;" } document.getElementById("playingTone").innerText = tone; }; Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCDTMFToneChangeEvent.tone' in that specification. Candidate Recomm...
RTCDataChannel.close() - Web APIs
closed. The RTCDataChannel.readyState property is set to "closed". If the transport was closed with an error, the RTCDataChannel is sent a NetworkError event. A close event is sent to the channel. In Firefox, the RTCDataChannel interface was implemented under the name DataChannel until Firefox 24, so this method was called DataChannel.close(). Syntax RTCDataChannel.close(); Parameters None. Return value undefined. Example var pc = new RTCPeerConnection(); var dc = pc.createDataChannel("my channel"); dc.onmessage = function (event) { console.log("received: " + event.data); dc.close(); // We decided to close after the first received message }; dc.onopen = function () { console.log("datachannel open"); }; dc.onclose = function ( console.log("datachannel close"); }; // ...
RTCDataChannel.protocol - Web APIs
ng the data channel. The ability for each channel to have a defined subprotocol lets your app, for example, use JSON objects as messages on one channel while another channel is plaintext and another is raw binary or even some other format. Syntax var subProtocol = aDataChannel.protocol; Value A string identifying the app-defined subprotocol being used for exchanging data on the channel. If none has been established, this is an empty string (""). Example var pc = new RTCPeerConnection(); var dc = pc.createDataChannel("my channel", { protocol: "json" }); function handleChannelMessage(dataChannel, msg) { switch(dataChannel.protocol) { case "json": /* process JSON data */ break; case "raw": /* process raw binary data */ break; } } Specifica...
RTCIceTransport.getLocalCandidates() - Web APIs
s, one for each of the candidates that have been gathered by the local device during the current ICE agent session. The local candidates are placed in this list by the ICE agent prior to being delivered to the local client's code in an icecandidate event so that the client can forward the candidates to the remote peer. Syntax localCandidates = RTCIceTransport.getLocalCandidates(); Parameters None. Return value A JavaScript Array containing one RTCIceCandidate object for each candidate that has been identified so far during the ICE candidate gathering session. You can't correlate these local candidates with matching remote candidates. To find the best match found so far, call RTCIceTransport.getSelectedCandidatePair(). Example This simple example gets the local candidate list from the...
RTCIceTransport.getLocalParameters() - Web APIs
nsport method getLocalParameters() returns an RTCIceParameters object which provides information uniquely identifying the local peer for the duration of the ICE session. The local peer's parameters are obtained during ICE signaling and delivered to the transport when the client calls RTCPeerConnection.setLocalDescription(). Syntax parameters = RTCIceTransport.getLocalParameters(); Parameters None. Return value An RTCIceParameters object indicating the usernameFragment and password which uniquely identify the local peer for the duration of the ICE session. Returns null if the parameters have not yet been received. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCIceTransport.getLocalParame...
RTCIceTransport.getRemoteCandidates() - Web APIs
TCIceCandidate for each of the candidates that have been received from the remote peer so far during the current ICE gathering session. Each time your signaling code calls RTCPeerConnection.addIceCandidate() to add a received candidate to the ICE session, the ICE agent places it in the list returned by this function. Syntax remoteCandidates = RTCIceTransport.getRemoteCandidates(); Parameters None. Return value An array containing one RTCIceCandidate object for each candidate that has been received so far from the remote peer during the current ICE candidate gathering session. It's important to keep in mind that there's no way to correlate these remote candidates with compatible local candidates. To find the best match found so far, call RTCIceTransport.getSelectedCandidatePair(). Exam...
RTCIceTransport.getRemoteParameters() - Web APIs
t method getRemoteParameters() returns an RTCIceParameters object which provides information uniquely identifying the remote peer for the duration of the ICE session. The remote peer's parameters are received during ICE signaling and delivered to the transport when the client calls RTCPeerConnection.setRemoteDescription(). Syntax parameters = RTCIceTransport.getRemoteParameters(); Parameters None. Return value An RTCIceParameters object indicating the usernameFragment and password which uniquely identify the remote peer for the duration of the ICE session. Returns null if the parameters haven't been received yet. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCIceTransport.getRemoteParam...
RTCIceTransport.getSelectedCandidatePair() - Web APIs
Return value A RTCIceCandidatePair object describing the configurations of the currently-selected candidate pair's two endpoints. ...
RTCInboundRtpStreamStats - Web APIs
eceiver has sent to the sender. This is an indicator of how often the stream has lagged, requiring frames to be skipped in order to catch up. This value is only available for video streams. framesDecoded A long integer value indicating the total number of frames of video which have been correctly decoded so far for this media source. This is the number of frames that would have been rendered if none were dropped. Only valid for video streams. lastPacketReceivedTimestamp A DOMHighResTimeStamp indicating the time at which the last packet was received for this source. The timestamp property, on the other hand, indicates the time at which the statistics object was generated. nackCount An integer value indicating the total number of Negative ACKnolwedgement (NACK) packets this receiver has se...
RTCOutboundRtpStreamStats.qualityLimitationReason - Web APIs
This quality reduction may include changes such as reduced frame rate or resolution, or an increase in compression factor. The amount of time the encoded media has had its quality reduced in each of the potential ways that can be done can be found in qualityLimitationDurations. ...
RTCPeerConnection.addStream() - Web APIs
t to closed, an InvalidStateError is raised. If the signalingState is set to stable, the event negotiationneeded is sent on the RTCPeerConnection to indicate that ICE negotiation must be repeated to consider the new stream. Syntax rtcPeerConnection.addStream(mediaStream); Parameters mediaStream A MediaStream object indicating the stream to add to the WebRTC peer connection. Return value None. Example This simple example adds the audio and video stream coming from the user's camera to the connection. navigator.mediaDevices.getUserMedia({video:true, audio:true}, function(stream) { var pc = new RTCPeerConnection(); pc.addStream(stream); }); Migrating to addTrack() Compatibility allowing, you should update your code to instead use the addTrack() method: navigator.getUserMedia({...
RTCPeerConnection.currentLocalDescription - Web APIs
rConnection.localDescription, this value represents the actual current state of the local end of the connection; localDescription may specify a description which the connection is currently in the process of switching over to. Syntax sessionDescription = RTCPeerConnection.currentLocalDescription; Return value The current description of the local end of the connection, if one has been set. If none has been successfully set, this value is null. Example This example looks at the currentLocalDescription and displays an alert containing the RTCSessionDescription object's type and sdp fields. var pc = new RTCPeerConnection(); ... var sd = pc.currentLocalDescription; if (sd) { alert("Local session: type='" + sd.type + "'; sdp description='" + sd.sdp + "'"); } else { alert(...
RTCPeerConnection.currentRemoteDescription - Web APIs
nection.remoteDescription, this value represents the actual current state of the local end of the connection; remoteDescription may specify a description which the connection is currently in the process of switching over to. Syntax sessionDescription = RTCPeerConnection.currentRemoteDescription; Return value The current description of the remote end of the connection, if one has been set. If none has been successfully set, this value is null. Example This example looks at the currentRemoteDescription and displays an alert containing the RTCSessionDescription object's type and sdp fields. var pc = new RTCPeerConnection(); ... var sd = pc.currentRemoteDescription; if (sd) { alert("Local session: type='" + sd.type + "'; sdp description='" + sd.sdp + "'"); } else { aler...
RTCPeerConnection.getDefaultIceServers() - Web APIs
The getDefaultIceServers() method of the RTCPeerConnection interface returns an array of objects based on the RTCIceServer dictionary, which indicates what, if any, ICE servers the browser will use by default if none are provided to the RTCPeerConnection in its RTCConfiguration. However, browsers are not required to provide any default ICE servers at all. Syntax var defaultIceServers = RTCPeerConnection.getDefaultIceServers(); Return value An array of ICE servers, specified as objects based on RTCIceServer, which the browser will use if none are specified in the configuration of the RTCPeerConnection. If there are no defaults provided by the browser, the returned array is empty; this property's value is never null. Example var pc = new RTCPeerConnection(); var iceServers = pc.getDefa...
RTCPeerConnection.getTransceivers() - Web APIs
Return value An array of the RTCRtpTransceiver objects representing the transceivers handling sending and receiving all media on the RTCPeerConnection. The list is in the order in which the transceivers were added to the connection. ...
RTCPeerConnection: icecandidateerror event - Web APIs
Bubbles No Cancelable No Interface RTCPeerConnectionIceErrorEvent Event handler property RTCPeerConnection.onicecandidateerror Description The error object's errorCode property is one of the numeric STUN error codes. There is one additional, WebRTC-specific, error which lies outside the valid STUN error code range: 701. Error 701 indicates that none of the ICE candidates were able to successfully make contact with the STUN or TURN server. The 701 error is fired only once per server URL from the list of available STUN or TURN servers provided when creating the RTCPeerConnection. These errors occur only when the connection's ICE gathering state is gathering. Example The following example establishes a handler for icecandidateerrors that occ...
RTCPeerConnection.restartIce() - Web APIs
ue to rollback or because incoming offers are in the process of being negotiated--the RTCPeerConnection will remember that you requested ICE restart. The next time the connection's signalingState changes to stable, the connection will fire the negotiationneeded event. This process continues until an ICE restart has been successfully completed. Syntax rtcPeerConnection.restartIce(); Parameters None. Return value undefined. Usage notes After calling restartIce(), the next offer created using createOffer() will initiate ICE restart once sent to the remote peer over your signaling mechanism. Restarting ICE essentially resets ICE so that it creates all new candidates using new credentials. Existing media transmissions continue uninterrupted during this process. For details about how ICE re...
RTCRtpReceiver.getContributingSources() - Web APIs
Return value An array of RTCRtpContributingSource instances. ...
RTCRtpReceiver.getParameters() - Web APIs
Return value An RTCRtpReceiveParameters object indicating the current configuration of the receiver. Examples This example obtains the canonical name (CNAME) being used for RTCP on an RTCRtpReceiver. ...
RTCRtpReceiver.getSynchronizationSources() - Web APIs
Return value An array of RTCRtpSynchronizationSource instances. ...
RTCRtpSender.getParameters() - Web APIs
Return value An RTCRtpSendParameters object indicating the current configuration of the sender. ...
RTCRtpSender.setStreams() - Web APIs
Stream objects. Syntax rtcRtpSender.setStreams(mediaStream); rtcRtpSender.setStreams([mediaStream...]); Parameters mediaStream or [mediaStream...] Optional An MediaStream object--or an array of multiple MediaStream objects--identifying the streams to which the RTCRtpSender's track belongs. If this parameter isn't specified, no new streams will be associated with the track. Return value None. Exceptions InvalidStateError The sender's connection is closed. Description setStreams() is purely additive. It doesn't remove the track from any streams; it simply adds it to new ones. If you specify streams to which the track already belongs, that stream is unaffected. Once the track has been added to all of the streams, renegotiation of the connection will be triggered by the negotia...
RTCRtpTransceiver.stop() - Web APIs
nd RTCRtpReceiver. Note: Until recently, the stopped property was provided to return true if the connection is stopped. That property has been deprecated and will be removed at some point. Instead, check the value of currentDirection. If it's stopped, the transceiver has been stopped. This method does nothing if the transceiver is already stopped. Syntax RTCRtpTransceiver.stop() Paramters None. Return value undefined Exceptions InvalidStateError The RTCPeerConnection of which the transceiver is a member is closed. Usage notes When you call stop() on a transceiver, the sender immediately stops sending media and each of its RTP streams are closed using the RTCP "BYE" message. The receiver then stops receiving media; the receiver's track is stopped, and the transceiver's directi...
RadioNodeList.value - Web APIs
If the underlying element collection contains radio buttons, the RadioNodeList.value property represents the checked radio button. On retrieving the value property, the value of the currently checked radio button is returned as a string. If the collection does not contain any radio buttons or none of the radio buttons in the collection is in checked state, the empty string is returned. On setting the value property, the first radio button input element whose value property is equal to the new value will be set to checked. Syntax value = radioNodeList.value; radioNodeList.value = string; Example HTML <form> <label><input type="radio" name="color" value="blue">Blue</label> <label><input type="radio" name="color" value="red">Red</label> </form> JavaScript // Get the form const form =...
Range.extractContents() - Web APIs
entFragment = range.extractContents(); document.body.appendChild(documentFragment); Moving items between containers This example lets you move items between two containers. Select one or more item, and then click "swap" to move them to the opposite container. ...
ReadableByteStreamController.close() - Web APIs
Return value undefined. ...
ReadableByteStreamController - Web APIs
ReadableByteStreamController instances are created automatically during ReadableStream construction. Properties ReadableByteStreamController.byobRequest Read only Returns the current BYOB pull request. ReadableByteStreamController.desiredSize Read only Returns the desired size required to fill the stream's internal queue. ...
ReadableStream.tee() - Web APIs
and stream it to the browser, but also stream it to the ServiceWorker cache. Since a response body cannot be consumed more than once, you'd need two copies to do this. To cancel the stream you then need to cancel both resulting branches. Teeing a stream will generally lock it for the duration, preventing other readers from locking it. Syntax var teedStreams = readableStream.tee(); Parameters None. Return value An Array containing two ReadableStream instances. Exceptions TypeError The source stream is not a ReadableStream. Examples In the following simple example, a previously-created stream is teed, then both resulting streams (contained in two members of a generated array) are passed to a function that reads the data out of the two streams and prints each stream's chunks sequen...
ReadableStreamBYOBReader.releaseLock() - Web APIs
leased, the reader will appear errored in that same way subsequently; otherwise, the reader will appear closed. A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by the reader's ReadableStreamBYOBReader.read() method has not finished. This will result in a TypeError being thrown. Syntax readableStreamBYOBReader.releaseLock(); Parameters None. Return value undefined. Exceptions TypeError The source object is not a ReadableStreamBYOBReader, or a read request is pending. Examples TBD. Specifications Specification Status Comment StreamsThe definition of 'releaseLock()' in that specification. Living Standard Initial definition. ...
ReadableStreamBYOBRequest - Web APIs
ReadableStreamBYOBRequest instance is created automatically by ReadableByteStreamController as needed. ...
ReadableStreamDefaultController.close() - Web APIs
nterface closes the associated stream. Readers will still be able to read any previously-enqueued chunks from the stream, but once those are read, the stream will become closed. If you want to completely get rid of the stream and discard any enqueued chunks, you'd use ReadableStream.cancel() or ReadableStreamDefaultReader.cancel(). Syntax readableStreamDefaultController.close(); Parameters None. Return value undefined. Exceptions TypeError The source object is not a ReadableStreamDefaultController. Examples In the following simple example, a custom ReadableStream is created using a constructor (see our Simple random stream example for the full code). The start() function generates a random string of text every second and enqueues it into the stream. A cancel() function is also...
ReadableStreamDefaultController - Web APIs
ReadableStreamDefaultController instances are created automatically during ReadableStream construction. Properties ReadableStreamDefaultController.desiredSize Read only Returns the desired size required to fill the stream's internal queue. ...
ReadableStreamDefaultReader.read() - Web APIs
Return value A Promise, which fulfills/rejects with a result depending on the state of the stream. The different possibilities are as follows: If a chunk is available, the promise will be fulfilled with an object of the form { value: theChunk, done: false }. ...
ReadableStreamDefaultReader.releaseLock() - Web APIs
, the reader will appear errored in that same way subsequently; otherwise, the reader will appear closed. A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by the reader's ReadableStreamDefaultReader.read() method has not finished. This will result in a TypeError being thrown. Syntax readableStreamDefaultReader.releaseLock(); Parameters None. Return value undefined. Exceptions TypeError The source object is not a ReadableStreamDefaultReader, or a read request is pending. Examples function fetchStream() { const reader = stream.getReader(); ... reader.releaseLock() ... } Specifications Specification Status Comment StreamsThe definition of 'releaseLock()' in that specification. Living St...
Request.cache - Web APIs
Web › API › Request › cache
/ }); // Download a resource with cache busting, but update the HTTP // cache with the downloaded resource. 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 ETag // 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. fetch("some.json", {cache: "no-cache"}) .then(function(response) { /* consume the response */ }); // Download a resource with economics in mind! Prefer a cached // albeit stale response to conserve as much bandwidth as possible. fetch("some.json", {cache: "force-cache"}) .then(function(response)...
Request.clone() - Web APIs
Web › API › Request › clone
clone() method of the Request interface creates a copy of the current Request object. clone() throws a TypeError if the response Body has already been used. In fact, the main reason clone() exists is to allow multiple uses of Body objects (when they are one-use only.) If intend to modify the request, you may prefer the Request constructor. Syntax var newRequest = request.clone(); Parameters None. Return value A Request object, which is an exact copy of the Request that clone() was called on. Example In the following snippet, we create a new request using the Request.Request() constructor (for an image file in the same directory as the script), then clone the request. var myRequest = new Request('flowers.jpg'); var newRequest = myRequest.clone(); // a copy of the request is now store...
ResizeObserver.disconnect() - Web APIs
The disconnect() method of the ResizeObserver interface unobserves all observed Element or SVGElement targets. Syntax resizeObserver.disconnect(); Parameters None. Return value Void. Exceptions None. Examples btn.addEventListener('click', () => { resizeObserver.disconnect(); }) Specifications Specification Status Comment Resize ObserverThe definition of 'disconnect()' in that specification. Editor's Draft Initial definition. ...
ResizeObserver.observe() - Web APIs
); Parameters target A reference to an Element or SVGElement to be observed. options Optional An options object allowing you to set options for the observation. Currently this only has one possible option that can be set: box Sets which box model the observer will observe changes to. Possible values are content-box (the default), and border-box. Return value Void. Exceptions None. Examples The following snippet is taken from the resize-observer-text.html (see source) example: const resizeObserver = new ResizeObserver(entries => { for (let entry of entries) { if(entry.contentBoxSize) { h1Elem.style.fontSize = Math.max(1.5, entry.contentBoxSize.inlineSize/200) + 'rem'; pElem.style.fontSize = Math.max(1, entry.contentBoxSize.inlineSize/600) + 'rem'; ...
ResizeObserver.unobserve() - Web APIs
The unobserve() method of the ResizeObserver interface ends the observing of a specified Element or SVGElement. Syntax void unobserve(target); Parameters target A reference to an Element or SVGElement to be unobserved. Return value Void. Exceptions None. Examples The following snippet is taken from the resize-observer-text.html (see source) example: const resizeObserver = new ResizeObserver(entries => { for (let entry of entries) { if(entry.contentBoxSize) { h1Elem.style.fontSize = Math.max(1.5, entry.contentBoxSize.inlineSize/200) + 'rem'; pElem.style.fontSize = Math.max(1, entry.contentBoxSize.inlineSize/600) + 'rem'; } else { h1Elem.style.fontSize = Math.max(1.5, entry.contentRect.width/200) + 'rem'; pElem.style.fontSize = Math.max(1, entry.
ResizeObserver - Web APIs
s infinite callback loops and cyclic dependencies that are often created when resizing via a callback function. It does this by only processing elements deeper in the DOM in subsequent frames. Implementations should, if they follow the specification, invoke resize events before paint and after layout. Constructor ResizeObserver() Creates and returns a new ResizeObserver object. Properties None. Methods ResizeObserver.disconnect() Unobserves all observed Element targets of a particular observer. ResizeObserver.observe() Initiates the observing of a specified Element. ResizeObserver.unobserve() Ends the observing of a specified Element. Examples In the resize-observer-text.html (see source) example, we use the resize observer to change the font-size of a header and paragraph ...
ResizeObserverEntry - Web APIs
eb compat reasons, and may be deprecated in future versions. ResizeObserverEntry.target Read only A reference to the Element or SVGElement being observed. Note: The content box is the box in which content can be placed, meaning the border box minus the padding and border width. The border box encompasses the content, padding, and border. See The box model for further explanation. Methods None. Examples The following snippet is taken from the resize-observer-text.html (see source) example. This uses a simple feature detection test to see if the browser supports the newer contentBoxSize property -- if so, it uses that to get the sizing data it needs. If not, it uses the older contentRect property. const resizeObserver = new ResizeObserver(entries => { for (let entry of entries) { ...
Response.clone() - Web APIs
Web › API › Response › clone
Value A Response object. ...
Response.error() - Web APIs
Web › API › Response › error
rns a new Response object associated with a network error. Note: This is mainly relevant to ServiceWorkers; the error method is used to return an error if you so wish it. An error response has its type set to error. Note: An "error" Response never really gets exposed to script: such a response to a fetch() would reject the promise. Syntax var errorResponse = Response.error(); Parameters None. Return value A Response object. Example TBD (does not yet appear to be supported anywhere). Specifications Specification Status Comment FetchThe definition of 'error()' in that specification. Living Standard ...
SVGAnimatedAngle - Web APIs
SVG animated angle interface The SVGAnimatedAngle interface is used for attributes of basic type <angle> which can be animated. Interface overview Also implement None Methods None Properties readonly SVGAngle baseVal readonly SVGAngle animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal SVGAngle The base value of the given attribute before applying any animations. animVal SVGAngle A read only SVGAngle representing the current animated value of the given attribute. If the given attribute is not currently being animated, then the SVGAngle will have the same contents as baseVal. The object referenced by animVal will always be di...
SVGAnimatedBoolean - Web APIs
SVG animated boolean interface The SVGAnimatedBoolean interface is used for attributes of type boolean which can be animated. Interface overview Also implement None Methods None Properties readonly boolean baseVal readonly boolean animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal boolean The base value of the given attribute before applying any animations. animVal boolean If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as baseVal. Methods The SVGAnimated...
SVGAnimatedEnumeration - Web APIs
SVG animated enumeration interface The SVGAnimatedEnumeration interface is used for attributes whose value must be a constant from a particular enumeration and which can be animated. Interface overview Also implement None Methods None Properties unsigned short baseVal readonly unsigned short animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal unsigned short The base value of the given attribute before applying any animations. animVal unsigned short If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being a...
SVGAnimatedInteger - Web APIs
SVG animated integer interface The SVGAnimatedInteger interface is used for attributes of basic type <integer> which can be animated. Interface overview Also implement None Methods None Properties readonly long baseVal readonly long animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal long The base value of the given attribute before applying any animations. animVal long If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as baseVal. Methods The SVGAnimatedInte...
SVGAnimatedLength - Web APIs
SVG animated length interface The SVGAnimatedLength interface is used for attributes of basic type <length> which can be animated. Interface overview Also implement None Methods None Properties readonly SVGLength baseVal readonly SVGLength animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal SVGLength The base value of the given attribute before applying any animations. animVal SVGLength If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as baseVal. Methods Th...
SVGAnimatedLengthList - Web APIs
SVG animated length list interface The SVGAnimatedLengthList interface is used for attributes of type SVGLengthList which can be animated. Interface overview Also implement None Methods None Properties readonly SVGLengthList baseVal readonly SVGLengthList animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal SVGLengthList The base value of the given attribute before applying any animations. animVal SVGLengthList A read only SVGLengthList representing the current animated value of the given attribute. If the given attribute is not currently being animated, then the SVGLengthList will have the same contents as baseVal. The objec...
SVGAnimatedNumber - Web APIs
SVG animated number interface The SVGAnimatedNumber interface is used for attributes of basic type <Number> which can be animated. Interface overview Also implement None Methods None Properties float baseVal readonly float animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal float The base value of the given attribute before applying any animations. animVal float If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as baseVal. Methods The SVGAnimatedNumber inter...
SVGAnimatedNumberList - Web APIs
SVG animated number list interface The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. Interface overview Also implement None Methods None Properties readonly SVGNumberList baseVal readonly SVGNumberList animVal Normative document SVG 1.1 (2nd Edition) Properties SVGAnimatedNumberList.baseVal Read only Is a SVGNumberList that represents the base value of the given attribute before applying any animations. SVGAnimatedNumberList.animVal Read only Is a read only SVGNumberList that represents the current animated value of the given attribute. If the given attribute is not currently being animated, then the SVGNumberList will have the same contents ...
SVGAnimatedPoints - Web APIs
face supports elements which have a points attribute which holds a list of coordinate values and which support the ability to animate that attribute. Additionally, the points attribute on the original element accessed via the XML DOM (e.g., using the getAttribute() method call) will reflect any changes made to the SVGAnimatedPoints.points attribut. Interface overview Also implement None Methods None Properties readonly SVGPointList points readonly SVGPointList animatedPoints Normative document SVG 1.1 (2nd Edition) Properties Name Type Description points SVGPointList Provides access to the base (i.e., static) contents of the points attribute. animatedPoints SVGPoint...
SVGAnimatedPreserveAspectRatio - Web APIs
SVG animated preserveAspectRatio interface The SVGAnimatedPreserveAspectRatio interface is used for attributes of type SVGPreserveAspectRatio which can be animated. Interface overview Also implement None Methods None Properties readonly float baseVal readonly float animVal Normative document SVG 1.1 (2nd Edition) Properties SVGAnimatedPreserveAspectRatio.baseVal Read only Is a SVGPreserveAspectRatio that represents the base value of the given attribute before applying any animations. SVGAnimatedPreserveAspectRatio.animVal Read only Is a SVGPreserveAspectRatio that represents the current animated value of the given attribute. If the given attribute is not currently being animated, then the SVGPreserveAsp...
SVGAnimatedTransformList - Web APIs
SVG animated transform list interface The SVGAnimatedTransformList interface is used for attributes which take a list of numbers and which can be animated. Interface overview Also implement None Methods None Properties readonly SVGTransformList baseVal readonly SVGTransformList animVal Normative document SVG 1.1 (2nd Edition) Properties Name Type Description baseVal SVGTransformList The base value of the given attribute before applying any animations. animVal SVGTransformList A read only SVGTransformList representing the current animated value of the given attribute. If the given attribute is not currently being animated, then the SVGTransformList will have the ...
SVGImageElement.decode - Web APIs
The decode() method of the SVGImageElement interface initiates asynchronous decoding of an image, returning a Promise that resolves once the image data is ready for use. Syntax var promise = svgImageElement.decode(); Parameters None. Return value A Promise which resolves once the image data is ready to be used, such as by appending it to the DOM, replacing an existing image, and so forth. Exceptions None. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2 Candidate Recommendation Initial definition. HTML Living StandardThe definition of 'decode()' in that specification. Living Standard ...
SVGLength - Web APIs
Web › API › SVGLength
SVG length interface The SVGLength interface correspond to the <length> basic data type. An SVGLength object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
SVGLengthList - Web APIs
SVG length list interface The SVGLengthList defines a list of SVGLength objects. An SVGLengthList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
SVGMarkerElement - Web APIs
SVG path segment interface The SVGMarkerElement interface corresponds to the marker element. ...
SVGNumberList - Web APIs
SVG number list interface The SVGNumberList defines a list of SVGNumber objects. An SVGNumberList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. Note: Starting in Gecko 5.0,the SVGNumberList DOM interface is now indexable and can be accessed like arrays. ...
SVGPathSegList - Web APIs
SVG path segment list interface This interface defines a list of SVGPathSeg objects. ...
SVGPointList - Web APIs
SVG point list interface The SVGPointList defines a list of SVGPoint objects. An SVGPointList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
SVGStringList - Web APIs
SVG string list interface The SVGStringList defines a list of DOMString objects. An SVGStringList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
SVGStylable - Web APIs
SVG stylable interface The SVGStylable interface is implemented on all objects corresponding to SVG elements that can have style, class and presentation attributes specified on them. Interface overview Also implement None Methods CSSValue getPresentationAttribute(in DOMString name) Properties readonly SVGAnimatedString className readonly CSSStyleDeclaration style Normative document SVG 1.1 (2nd Edition) Properties Name Type Description className SVGAnimatedString Corresponds to attribute class on the given element. style CSSStyleDeclaration Corresponds to attribute style on the given element. Methods Name & Arguments Retur...
SVGTransform - Web APIs
interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(...) or matrix(...)) within a transform attribute. An SVGTransform object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
SVGTransformList - Web APIs
transform list interface The SVGTransformList defines a list of SVGTransform objects. An SVGTransformList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. ...
SVGTransformable - Web APIs
SVG transformable interface Interface SVGTransformable contains properties and methods that apply to all elements which have attribute transform. Interface overview Also implement None Methods None Properties readonly SVGAnimatedTransformList transform Normative document SVG 1.1 (2nd Edition) Properties Name Type Description transform SVGAnimatedTransformList Corresponds to attribute transform on the given element. Methods The SVGTransformable interface do not provide any specific methods. Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-co...
ScreenOrientation.unlock() - Web APIs
Return value Void. Specifications Specification Status Comment Screen Orientation APIThe definition of 'unlock()' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
Using the Screen Capture API - Web APIs
stream. motion The cursor should only be visible while moving, and, at the discretion of the user agent, for a brief time before after moving. Then the cursor is removed from the stream. never The cursor should never be visible in the generated stream. logicalSurface A Boolean which if true indicates that the capture should include offscreen areas of the source, if there are any. None of the constraints are applied in any way until after the content to capture has been selected. The contraints alter what you see in the resulting stream. For example, if you specify a width constraint for the video, it's applied by scaling the video after the user selects the area to share. It doesn't establish a restriction on the size of the source itself. Note: Constraints never cause chan...
ScriptProcessorNode: audioprocess event - Web APIs
The audioprocess event of the ScriptProcessorNode interface is fired when an input buffer of a script processor is ready to be processed. ...
Selection.collapseToEnd() - Web APIs
The Selection.collapseToEnd() method collapses the selection to the end of the last range in the selection. If the content of the selection is focused and editable, the caret will blink there. Syntax sel.collapseToEnd() Parameters None. Specifications Specification Status Comment Selection APIThe definition of 'Selection.collapseToEnd()' in that specification. Working Draft Current ...
Selection.collapseToStart() - Web APIs
The Selection.collapseToStart() method collapses the selection to the start of the first range in the selection. If the content of the selection is focused and editable, the caret will blink there. Syntax sel.collapseToStart() Parameters None. Specifications Specification Status Comment Selection APIThe definition of 'Selection.collapseToStart()' in that specification. Working Draft Current ...
Selection.deleteFromDocument() - Web APIs
Example This example lets you delete selected text by clicking a button. Upon clicking the button, the Window.getSelection() method gets the selected text, and the deleteFromDocument() method removes it. HTML <p>Try highlighting some of the text in this paragraph. ...
Selection.removeAllRanges() - Web APIs
Specifications Specification Status Comment Selection APIThe definition of 'Selection.removeAllRanges()' in that specification. Working Draft Current Browser compatibility The compatibility table on this page is generated from structured data. ...
Selection.type - Web APIs
Web › API › Selection › type
Caret: The selection is collapsed (i.e. the caret is placed on some text, but no range has been selected). Range: A range has been selected. Example In this example, the event handler will fire each time a new selection is made. ...
Sensor.start() - Web APIs
Web › API › Sensor › start
The start method activates one of the sensors based on Sensor. Syntax Sensor.start() Parameters None. Return value undefined Specifications Specification Status Comment Generic Sensor APIThe definition of 'start' in that specification. Candidate Recommendation Initial definition. ...
Sensor.stop() - Web APIs
Web › API › Sensor › stop
The stop method of the Sensor interface deactivates the current sensor. Syntax Sensor.stop() Parameters None. Return value undefined Example // TBD Specifications Specification Status Comment Generic Sensor APIThe definition of 'stop' in that specification. Candidate Recommendation Initial definition. ...
ServiceWorkerContainer.getRegistrations() - Web APIs
The getRegistrations() method of the ServiceWorkerContainer interface gets all ServiceWorkerRegistrations associated with a ServiceWorkerContainer, in an array. The method returns a Promise that resolves to an array of ServiceWorkerRegistration. Syntax serviceWorkerContainer.getRegistrations().then(function(serviceWorkerRegistrations) { ... }); Parameters None. Return value A Promise that resolves to an array of ServiceWorkerRegistration objects. Example navigator.serviceWorker.getRegistrations().then(function(registrations) { document.querySelector('#status').textContent = 'ServiceWorkerRegistrations found.'; }); Specifications Specification Status Comment Service WorkersThe definition of 'getRegistrations()' in that specification. Working Draft Init...
ServiceWorkerContainer.startMessages() - Web APIs
ample if you've invoked a message handler using EventTarget.addEventListener() before the page has finished loading, but want to start processing the messages right away. Note: The messages start being sent automatically when setting the handler directly using ServiceWorkerContainer.onmessage. In this you don't need startMessages(). Syntax serviceWorkerContainer.startMessages(); Parameters None. Return value undefined. Examples if('serviceWorker' in navigator) { navigator.serviceWorker .register('/sw.js') .then(function() { console.log('Service Worker Registered'); }); } // ... navigator.serviceWorker.addEventListener('message', (e) => { // ... }); navigator.serviceWorker.startMessages(); Specifications Specification Status Comment ...
ServiceWorkerRegistration.unregister() - Web APIs
esolves to true irrespective of whether unregistration happened or not (it may not unregister if someone else just called ServiceWorkerContainer.register() with the same scope.) The service worker will finish any ongoing operations before it is unregistered. Note: This feature is available in Web Workers. Syntax serviceWorkerRegistration.unregister().then(function(boolean) { }); Parameters None. Return value Promise resolves with a boolean indicating whether the service worker has unregistered or not. Example The following simple example registers a service worker example, but then immediately unregisters it again: if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw-test/sw.js', {scope: 'sw-test'}).then(function(registration) { // registration worked ...
ServiceWorkerRegistration.update() - Web APIs
interface attempts to update the service worker. It fetches the worker's script URL, and if the new worker is not byte-by-byte identical to the current worker, it installs the new worker. The fetch of the worker bypasses any browser caches if the previous fetch occurred over 24 hours ago. Note: This feature is available in Web Workers. Syntax serviceWorkerRegistration.update(); Parameters None. Return value A Promise that resolves with a ServiceWorkerRegistration object. Example The following simple example registers a service worker example then adds an event handler to a button so you can explicitly update the service worker whenever desired: if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw-test/sw.js', {scope: 'sw-test'}).then(function(registration) {...
Using Service Workers - Web APIs
e getting rid of old caches. This is also useful for removing data that is no longer needed to avoid filling up too much disk space -- each browser has a hard limit on the amount of cache storage that a given service worker can use. The browser does its best to manage disk space, but it may delete the Cache storage for an origin. The browser will generally delete all of the data for an origin or none of the data for an origin. Promises passed into waitUntil() will block other events until completion, so you can rest assured that your clean-up operation will have completed by the time you get your first fetch event on the new service worker. self.addEventListener('activate', (event) => { var cacheKeeplist = ['v2']; event.waitUntil( caches.keys().then((keyList) => { return Prom...
Slottable - Web APIs
Web › API › Slottable
Specifications Specification Status Comment DOMThe definition of 'Slottable' in that specification. Living Standard Initial definition. ...
SourceBuffer.abort() - Web APIs
Return value undefined. Exceptions Exception Explanation InvalidStateError The MediaSource.readyState property of the parent media source is not equal to open, or this SourceBuffer has been removed from the MediaSource. Example The spec description of abort() is somewhat confusing -- consider for example step 1 of reset parser state. ...
SourceBuffer.appendBuffer() - Web APIs
The appendBuffer() method of the SourceBuffer interface appends media segment data from an ArrayBuffer or ArrayBufferView object to the SourceBuffer. Syntax sourceBuffer.appendBuffer(source); Parameters source A BufferSource (that is, either an ArrayBufferView or ArrayBuffer) which contains the media segment data you want to add to the SourceBuffer. Return value undefined. Exceptions None. Example TBD. Specifications Specification Status Comment Media Source ExtensionsThe definition of 'appendBuffer()' in that specification. Recommendation Initial definition. ...
SourceBuffer.appendStream() - Web APIs
Example TBD. ...
SourceBuffer - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SourceBuffer" target="_top"><rect x="151" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SourceBuffer</text></a></svg><...
SourceBufferList - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SourceBufferList" target="_top"><rect x="151" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SourceBufferList</text></a...
SpeechGrammar.SpeechGrammar() - Web APIs
The SpeechGrammar constructor of the SpeechGrammar interface creates a new SpeechGrammar object instance. Syntax var mySpeechGrammar = new SpeechGrammar(); Parameters None. Examples var grammar = '#JSGF V1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green | indigo | ivory | khaki | lavender | lime | linen | magenta | maroon | moccasin | navy | olive | orange | orchid | peru | pink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new SpeechRecognition(); var speechRecognitionList = new SpeechGrammarList(); speechRecognitionList.addFromString(grammar, 1); reco...
SpeechGrammarList.SpeechGrammarList() - Web APIs
Examples In our simple Speech color changer example, we create a new SpeechRecognition object instance using the SpeechRecognition() constructor, create a new SpeechGrammarList, add our grammar string to it using the SpeechGrammarList.addFromString method, and set it to be the grammar that will be recognised by the SpeechRecognition instance using the SpeechRecognition.grammars property. ...
SpeechRecognition() - Web APIs
Examples This code is excerpted from our Speech color changer example. ...
SpeechRecognition.abort() - Web APIs
The abort() method of the Web Speech API stops the speech recognition service from listening to incoming audio, and doesn't attempt to return a SpeechRecognitionResult. Syntax mySpeechRecognition.abort(); Returns Void. Parameters None. Examples var grammar = '#JSGF V1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green | indigo | ivory | khaki | lavender | lime | linen | magenta | maroon | moccasin | navy | olive | orange | orchid | peru | pink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new SpeechRecognition(); var speechRecognitionList = new SpeechGra...
SpeechRecognition.start() - Web APIs
Return value Void. ...
SpeechRecognition.stop() - Web APIs
The stop() method of the Web Speech API stops the speech recognition service from listening to incoming audio, and attempts to return a SpeechRecognitionResult using the audio captured so far. Syntax mySpeechRecognition.stop(); Returns Void. Parameters None. Examples var grammar = '#JSGF V1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green | indigo | ivory | khaki | lavender | lime | linen | magenta | maroon | moccasin | navy | olive | orange | orchid | peru | pink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new SpeechRecognition(); var speechRecognit...
SpeechSynthesis.cancel() - Web APIs
The cancel() method of the SpeechSynthesis interface removes all utterances from the utterance queue. If an utterance is currently being spoken, speaking will stop immediately. Syntax speechSynthesisInstance.cancel(); Returns Void. Parameters None. Examples var synth = window.speechSynthesis; var utterance1 = new SpeechSynthesisUtterance('How about we say this now? This is quite a long sentence to say.'); var utterance2 = new SpeechSynthesisUtterance('We should say another sentence too, just to be on the safe side.'); synth.speak(utterance1); synth.speak(utterance2); synth.cancel(); // utterance1 stops being spoken immediately, and both are removed from the queue Specifications Specification Status Comment Web Speech APIThe definition of 'cance...
SpeechSynthesis.getVoices() - Web APIs
Return value A list (array) of SpeechSynthesisVoice objects. Note: The spec wrongly lists this method as returning as a SpeechSynthesisVoiceList object, but this was in fact removed from the spec. ...
SpeechSynthesis.pause() - Web APIs
The pause() method of the SpeechSynthesis interface puts the SpeechSynthesis object into a paused state. Syntax speechSynthesisInstance.pause(); Returns Void. Parameters None. Examples var synth = window.speechSynthesis; var utterance1 = new SpeechSynthesisUtterance('How about we say this now? This is quite a long sentence to say.'); var utterance2 = new SpeechSynthesisUtterance('We should say another sentence too, just to be on the safe side.'); synth.speak(utterance1); synth.speak(utterance2); synth.pause(); // pauses utterances being spoken Specifications Specification Status Comment Web Speech APIThe definition of 'pause()' in that specification. Draft ...
SpeechSynthesis.resume() - Web APIs
The resume() method of the SpeechSynthesis interface puts the SpeechSynthesis object into a non-paused state: resumes it if it was already paused. Syntax speechSynthesisInstance.resume(); Returns Void. Parameters None. Examples var synth = window.speechSynthesis; var utterance1 = new SpeechSynthesisUtterance('How about we say this now? This is quite a long sentence to say.'); var utterance2 = new SpeechSynthesisUtterance('We should say another sentence too, just to be on the safe side.'); synth.speak(utterance1); synth.speak(utterance2); synth.pause(); // pauses utterances being spoken synth.resume() // resumes speaking Specifications Specification Status Comment Web Speech APIThe definition of 'resume()' in that specification. Draft ...
StaticRange.toRange() - Web APIs
Return value A new Range object. ...
StaticRange - Web APIs
a xlink:href="/docs/Web/API/AbstractRange" target="_top"><rect x="1" y="1" width="130" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="66" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AbstractRange</text></a><polyline points="131,25 141,20 141,30 131,25" stroke="#D4DDE4" fill="none"/><line x1="141" y1="25" x2="171" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/StaticRange" target="_top"><rect x="171" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">StaticRange</text></a></svg></d...
StorageEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/StorageEvent" target="_top"><rect x="116" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="176" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">StorageEvent</text></a></svg></...
StorageManager.estimate() - Web APIs
age Manager for how much storage the current origin takes up (usage), and how much space is available (quota). This method operates asynchronously, so it returns a Promise which resolves once the information is available. The promise's fulfillment handler is called with a StorageEstimate containing the usage and quota data. Syntax const estimatePromise = StorageManager.estimate(); Parameters None. Return value A Promise that resolves to an object which conforms to the StorageEstimate dictionary. This dictionary contains estimates of how much space is available to the origin in StorageEstimate.quota, as well as how much is currently used in StorageEstimate.usage. The returned values are not exact; between compression, deduplication, and obfuscation for security reasons, they will be im...
StorageManager.persist() - Web APIs
Return value A Promise that resolves to a Boolean. ...
StorageManager.persisted() - Web APIs
Returns A Promise that resolves to a Boolean. ...
StorageQuota.queryInfo - Web APIs
The queryInfo() property of the StorageQuota interface returns a StorageInfo object containting the current data usage and available quota information for the application. Syntax StorageQuota.queryInfo().then(function(storageInfo) { ... }) Parameters None. Returns A reference to a StorageInfo object. Specifications Specification Status Comment Quota Management APIThe definition of 'queryInfo()' in that specification. Obsolete Initial definition. ...
StorageQuota.requestPersistentQuota - Web APIs
The requestPersistentQuota() property of the StorageQuota interface requests persistent storage for the requesting application and returns a Promise to an instance of StorageInfo. There is no guarantee that the requested space will be granted by the user agent. Syntax StorageQuota.requestPersistentQuota().then(function(storageInfo) { ... }) Parameters None. Returns A reference to a StorageInfo object. Specifications Specification Status Comment Quota Management APIThe definition of 'requestPersistentQuota()' in that specification. Obsolete Initial definition. ...
StylePropertyMap.clear() - Web APIs
The clear() method of the StylePropertyMap interface removes all declarations in the StylePropertyMap. Syntax StylePropertMap.clear() Parameters None. Return value undefined Example // TBD Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'clear()' in that specification. Working Draft Initial definition. ...
StylePropertyMapReadOnly.entries() - Web APIs
The StylePropertyMapReadOnly.entries() method returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well). Syntax StylePropertyMapReadOnly.entries() Parameters None. Return value An array of the given StylePropertyMapReadOnly object's own enumerable property [key, value] pairs. Example // TBD Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'entries()' in that specification. Working Draft Initial definition. ...
StylePropertyMapReadOnly.keys() - Web APIs
Return value A new Array. ...
StylePropertyMapReadOnly.values() - Web APIs
The StylePropertyMapReadOnly.values() method returns a new Array Iterator containing the values for each index in the StylePropertyMapReadOnly object. Syntax StylePropertyMapReadOnly.values() Parameters None. Return value A new Array. Example // TBD Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'values()' in that specification. Working Draft Initial definition. ...
SyncManager.getTags() - Web APIs
...
SyncManager - Web APIs
Methods SyncManager.register Create a new sync registration and return a Promise. SyncManager.getTags Return a list of developer-defined identifiers for SyncManager registration. ...
TaskAttributionTiming - Web APIs
k:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/TaskAttributionTiming" target="_top"><rect x="201" y="1" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">TaskAttributionTiming...
TimeEvent - Web APIs
Web › API › TimeEvent
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/TimeEvent" target="_top"><rect x="116" y="1" width="90" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="161" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">TimeEvent</text></a></svg></div> ...
TransformStream - Web APIs
The TransformStream interface of the Streams API represents a set of transformable data. Constructor TransformStream() Creates and returns a transform stream object from the given handlers. Properties TransformStream.readable Read only The readable end of a TransformStream. TransformStream.writable Read only The writable end of a TransformStream. Methods None Examples Anything-to-uint8array stream In the following example, a transform stream passes through all chunks it receives as Uint8Array values. const transformContent = { start() {}, // required. async transform(chunk, controller) { chunk = await chunk switch (typeof chunk) { case 'object': // just say the stream is done I guess if (chunk === null) controller.terminate() els...
TreeWalker.firstChild() - Web APIs
d. If no such child exists, returns null and the current node is not changed. Syntax node = treeWalker.firstChild; Example var treeWalker = document.createTreeWalker( document.body, NodeFilter.SHOW_ELEMENT, { acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } }, false ); var node = treeWalker.firstChild(); // returns the first child of the root element, or null if none Specifications Specification Status Comment DOMThe definition of 'TreeWalker.firstChild' in that specification. Living Standard No change from Document Object Model (DOM) Level 2 Traversal and Range Specification Document Object Model (DOM) Level 2 Traversal and Range SpecificationThe definition of 'TreeWalker.firstChild' in that specification. Obsole...
UIEvent - Web APIs
Web › API › UIEvent
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a></svg></div> ...
URL.host - Web APIs
Web › API › URL › host
Note: This feature is available in Web Workers. Syntax const host = url.host url.host = newHost Value A USVString. ...
URLSearchParams.entries() - Web APIs
Return value Returns an iterator. ...
URLSearchParams.keys() - Web APIs
Return value Returns an iterator. ...
URLSearchParams.sort() - Web APIs
e URLSearchParams.sort() method sorts all key/value pairs contained in this object in place and returns undefined. The sort order is according to unicode code points of the keys. This method uses a stable sorting algorithm (i.e. the relative order between key/value pairs with equal keys will be preserved). Note: This feature is available in Web Workers. Syntax searchParams.sort(); Parameters None. Return value undefined. Examples // Create a test URLSearchParams object var searchParams = new URLSearchParams("c=4&a=2&b=3&a=1"); // Sort the key/value pairs searchParams.sort(); // Display the sorted query string console.log(searchParams.toString()); The result is: a=2&a=1&b=3&c=4 Specifications Specification Status Comment URLThe definition of 'sort()' in t...
URLSearchParams.toString() - Web APIs
Return value A DOMString, without the question mark. ...
URLSearchParams.values() - Web APIs
Return value Returns an iterator. ...
USB.getDevices() - Web APIs
Web › API › USB › getDevices
Return value A Promise that resolves with an array of USBDevice objects. Example The following example logs the product name and serial number of paired devices to the console. For information on pairing devices, see USB.requestDevice(). ...
USB - Web APIs
Web › API › USB
Event handlers USB.onconnect An event handler called whenever a previously paired device is connected. USB.ondisconnect An event handler called whenever a paired device is disconnected. Methods USB.getDevices() Returns a Promise that resolves with an array of USBDevice objects for paired attached devices. USB.requestDevice() Returns a Promise that resolves with an instance of USBDevice if the specified device is found. Calling this function triggers the user agent's pairing flow. ...
USBDevice.close() - Web APIs
Web › API › USBDevice › close
The close() method of the USBDevice interface returns a promise that resolves when all open interfaces are released and the device session has ended. Syntax var promise = USBDevice.close() Parameters None. Return value A promise. Specifications Specification Status Comment WebUSBThe definition of 'close()' in that specification. Draft Initial definition. ...
USBDevice.open() - Web APIs
Web › API › USBDevice › open
The open() method of the USBDevice interface returns a promise that resolves when a device session has started. Syntax var promise = USBDevice.open() Parameters None. Return value A promise. Specifications Specification Status Comment WebUSBThe definition of 'open()' in that specification. Draft Initial definition. ...
USBDevice.reset() - Web APIs
Web › API › USBDevice › reset
The reset() method of the USBDevice interface returns a promise that resolves when the device is reset and all app operations canceled and their promises rejected. Syntax var promise = USBDevice.reset() Parameters None. Return value A promise. Specifications Specification Status Comment WebUSBThe definition of 'reset()' in that specification. Draft Initial definition. ...
UserDataHandler - Web APIs
g user data with a key on a node, Node.setUserData() can also accept, in its third argument, a handler which will be called when the object is cloned, imported, deleted, renamed, or adopted. Per the specification, exceptions should not be thrown in a UserDataHandler. In both document.importNode() and Node.cloneNode(), although user data is not copied over, the handler will be called. Properties None. Methods handle (operation, key, data, src, dst) (no return value) This method is a callback which will be called if a node is being cloned, imported, renamed and as well, if deleted or adopted. operation (unsigned short) is an operation type integer (see below). key (DOMString) is the user key. data (DOMUserData) is the user data. src (Node) is the source node (null if being deleted). ...
VTTCue - Web APIs
Web › API › VTTCue
lies. endTime The time, in seconds and fractions of a second, that describes the end of the range of the media data to which the cue applies. text The raw text of the cue, and rules for its interpretation. Properties This interface also inherits properties from TextTrackCue. VTTCue.region A VTTRegion object describing the video's sub-region that the cue will be drawn onto, or null if none is assigned. VTTCue.vertical Returns an enum representing the cue writing direction. VTTCue.snapToLines Returns true if the VTTCue.line attribute is an integer number of lines or a percentage of the video size. VTTCue.line Returns the line positioning of the cue. This can be the string auto or a number whose interpretation depends on the value of VTTCue.snapToLines. VTTCue.lineAlign Retur...
VisualViewport - Web APIs
ple bit of code that will hide an overlaid box (which might contain an advert, say) when the user zooms in. This is a nice way to improve the user experience when zooming in on pages. A live sample is also available. var bottomBar = document.getElementById('bottombar'); var viewport = window.visualViewport; function resizeHandler() { if (viewport.scale > 1.3) bottomBar.style.display = "none"; else bottomBar.style.display = "block"; } window.visualViewport.addEventListener('resize', resizeHandler); Simulating position: device-fixed This example, also taken from the Visual Viewport README, shows how to use this API to simulate position: device-fixed, which fixes elements to the visual viewport. A live sample is also available. var bottomBar = document.getElementById('botto...
WakeLockSentinel.release() - Web APIs
Return value Returns a Promise that resolves with undefined Exceptions No exceptions are thrown. You should always listen for the onrelease event to check if a wake lock has been released. Examples In this example, when a user clicks a button the WakeLockSentinel is released. ...
WaveShaperNode.WaveShaperNode() - Web APIs
Parameters Inherits parameters from the AudioNodeOptions dictionary. context A reference to an AudioContext. options Optional Options are as follows: curve: The shaping curve used for the waveshaping effect. The input signal is nominally within the range [-1;1]. oversample: Specifies what type of oversampling (if any) should be used when applying the shaping curve. Valid values are 'none', '2x', or '4x'. The default is 'none'. Return value A new WaveShaperNode object instance. Specifications Specification Status Comment Web Audio APIThe definition of 'WaveShaperNode()' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like t...
WaveShaperNode.oversample - Web APIs
be used. Oversampling is a technique for creating more samples (up-sampling) before applying a distortion effect to the audio signal. Once applied, the number of samples is reduced to its initial numbers. This leads to better results by avoiding some aliasing, but comes at the expense of a lower precision shaping curve. The possible oversample values are: Value Effect 'none' Do not perform any oversampling. '2x' Double the amount of samples before applying the shaping curve. '4x' Multiply by 4 the amount of samples before applying the shaping curve. Syntax distortion.oversample = enumeratedValue; Values distortion is a WaveShaperNode. enumeratedValue is one of 'none', '2x', or '4x'. Example The following example shows basi...
WebGL2RenderingContext.beginQuery() - Web APIs
bject is visible (whether the scoped drawing commands pass the depth test and if so, how many samples pass). gl.ANY_SAMPLES_PASSED_CONSERVATIVE: Same as above above, but less accurate and faster version. gl.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: Number of primitives that are written to transform feedback buffers. query A WebGLQuery object for which to start the querying. Return value None. Examples var query = gl.createQuery(); gl.beginQuery(gl.ANY_SAMPLES_PASSED, query); // ... Specifications Specification Status Comment WebGL 2.0The definition of 'beginQuery' in that specification. Editor's Draft Initial definition. OpenGL ES 3.0The definition of 'glBeginQuery' in that specification. Standard Man page of the (similar) OpenGL API...
WebGL2RenderingContext.beginTransformFeedback() - Web APIs
ontext.beginTransformFeedback() method of the WebGL 2 API starts a transform feedback operation. Syntax void gl.beginTransformFeedback(primitiveMode); Parameters primitiveMode A GLenum specifying the output type of the primitives that will be recorded into the buffer objects that are bound for transform feedback. Possible values: gl.POINTS gl.LINES gl.TRIANGLES Return value None. Examples var transformFeedback = gl.createTransformFeedback(); gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); gl.beginTransformFeedback(gl.TRIANGLES); gl.drawArrays(gl.TRIANGLES, 0, 3); Specifications Specification Status Comment WebGL 2.0The definition of 'beginTransformFeedback' in that specification. Editor's Draft Initial definition for...
WebGL2RenderingContext.bindBufferBase() - Web APIs
er to a given binding point (target) at a given index. Syntax void gl.bindBufferBase(target, index, buffer); Parameters target A Glenum specifying the target for the bind operation. Possible values: gl.TRANSFORM_FEEDBACK_BUFFER gl.UNIFORM_BUFFER index A GLuint specifying the index of the target. buffer A WebGLBuffer which to bind to the binding point (target). Return value None. Examples gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, buffer); Specifications Specification Status Comment WebGL 2.0The definition of 'bindBufferBase' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glBindBufferBase' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.bindBufferRange() - Web APIs
Glenum specifying the target for the bind operation. Possible values: gl.TRANSFORM_FEEDBACK_BUFFER gl.UNIFORM_BUFFER index A GLuint specifying the index of the target. buffer A WebGLBuffer which to bind to the binding point (target). offset A GLintptr specifying the starting offset. size A GLsizeiptr specifying the amount of data that can be read from the buffer. Return value None. Examples gl.bindBufferRange(gl.TRANSFORM_FEEDBACK_BUFFER, 1, buffer, 0, 4); Specifications Specification Status Comment WebGL 2.0The definition of 'bindBufferRange' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glBindBufferRange' in that specification. Standard Man page of the (similar) OpenGL...
WebGL2RenderingContext.bindSampler() - Web APIs
The WebGL2RenderingContext.bindSampler() method of the WebGL 2 API binds a passed WebGLSampler object to the texture unit at the passed index. Syntax void gl.bindSampler(unit, sampler); Parameters unit A GLuint specifying the index of the texture unit to which to bind the sampler to. sampler A WebGLSampler object to bind. Return value None. Examples var sampler = gl.createSampler(); gl.bindSampler(0, sampler); Specifications Specification Status Comment WebGL 2.0The definition of 'bindSampler' in that specification. Editor's Draft Initial definition. OpenGL ES 3.0The definition of 'glBindSampler' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.bindTransformFeedback() - Web APIs
The WebGL2RenderingContext.bindTransformFeedback() method of the WebGL 2 API binds a passed WebGLTransformFeedback object to the current GL state. Syntax void gl.bindTransformFeedback(target, transformFeedback); Parameters target A GLenum specifying the target (binding point). Must be gl.TRANSFORM_FEEDBACK. transformFeedback A WebGLTransformFeedback object to bind. Return value None. Examples var transformFeedback = gl.createTransformFeedback(); gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); Specifications Specification Status Comment WebGL 2.0The definition of 'bindTransformFeedback' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glBindTransformFeedback' in ...
WebGL2RenderingContext.bindVertexArray() - Web APIs
Examples var vao = gl.createVertexArray(); gl.bindVertexArray(vao); // ... // calls to bindBuffer or vertexAttribPointer // which will be "recorded" in the VAO // ... ...
WebGL2RenderingContext.blitFramebuffer() - Web APIs
tY1 A GLint specifying the bounds of the destination rectangle. mask A GLbitfield specifying a bitwise OR mask indicating which buffers are to be copied. Possible values: gl.COLOR_BUFFER_BIT gl.DEPTH_BUFFER_BIT gl.STENCIL_BUFFER_BIT filter A GLenum specifying the interpolation to be applied if the image is stretched. Possible values: gl.NEAREST gl.LINEAR Return value None. Examples gl.blitFramebuffer(0, 0, canvas.width, canvas.height, 0, 0, canvas.width, canvas.height, gl.COLOR_BUFFER_BIT, gl.NEAREST); Specifications Specification Status Comment WebGL 2.0The definition of 'blitFramebuffer' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition...
WebGL2RenderingContext.clearBuffer[fiuv]() - Web APIs
buffers (used with clearBufferfi). drawBuffer A GLint specifying the draw buffer to clear. values An Array of GLint, GLuint or GLfloat values or an Int32Array, Uint32Array or Float32Array specifying the values to clear to. depth A GLfloat specifying the value to clear a depth render buffer to. stencil A GLint specifying the value to clear the stencil render buffer to. Return value None. Examples gl.clearBufferiv(gl.COLOR, 0, new Int32Array([r, g, b, a])); gl.clearBufferuiv(gl.COLOR, 0, new Uint32Array([r, g, b, a])); gl.clearBufferfv(gl.COLOR, 0, new Float32Array([r, g, b, a])); gl.clearBufferfv(gl.COLOR, 0, [0.0, 0.0, 0.0, 0.0]); gl.clearBufferfi(gl.DEPTH_STENCIL, 0, 1.0, 0); Specifications Specification Status Comment WebGL 2.0The definition of 'c...
WebGL2RenderingContext.compressedTexSubImage3D() - Web APIs
PHA1_ETC2 gl.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 imageSize A GLint specifying the number of bytes to read from the buffer bound to gl.PIXEL_UNPACK_BUFFER. offset A GLint specifying the offset in bytes from which to read from the buffer bound to gl.PIXEL_UNPACK_BUFFER. srcData An ArrayBufferView that be used as a data store for the compressed image data in memory. Return value None. Examples gl.compressedTexSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 512, 512, 512, gl.COMPRESSED_R11_EAC, textureData); Specifications Specification Status Comment WebGL 2.0The definition of 'compressedTexSubImage3D' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glCompressedTexSubImage3D' in that specificat...
WebGL2RenderingContext.copyBufferSubData() - Web APIs
g uniform blocks. gl.PIXEL_PACK_BUFFER: Buffer used for pixel transfer operations. gl.PIXEL_UNPACK_BUFFER: Buffer used for pixel transfer operations. readOffset writeOffset A GLintptr specifying the byte offset from which to start reading from or writing to the buffer. size A GLsizei in bytes specifying the size of the data to be copied from readTarget to writeTarget. Return value None. Examples var srcBuffer = gl.createBuffer(); var dstBuffer = gl.createBuffer(); var data = new Float32Array(vertices); var length = vertices.length * 4; gl.bindBuffer(gl.ARRAY_BUFFER, srcBuffer); gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW); gl.bindBuffer(gl.COPY_READ_BUFFER, srcBuffer); gl.bindBuffer(gl.ARRAY_BUFFER, dstBuffer); gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(length...
WebGL2RenderingContext.copyTexSubImage3D() - Web APIs
within the texture image. zoffset A GLint specifying the z offset within the texture image. x A GLint specifying the x coordinate of the lower left corner where to start copying. y A GLint specifying the y coordinate of the lower left corner where to start copying. width A GLsizei specifying the width of the texture. height A GLsizei specifying the height of the texture. Return value None. Examples gl.copyTexSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, 0, 0, 16, 16); Specifications Specification Status Comment WebGL 2.0The definition of 'copyTexSubImage3D' in that specification. Editor's Draft Initial definition. OpenGL ES 3.0The definition of 'glCopyTexSubImage3D' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.createQuery() - Web APIs
Return value A WebGLQuery object. Examples gl must be a WebGL2RenderingContext. WebGLQuery objects are not available in WebGL 1. ...
WebGL2RenderingContext.createSampler() - Web APIs
Return value A WebGLSampler object. Examples gl must be a WebGL2RenderingContext. WebGLSampler objects are not available in WebGL 1. var sampler = gl.createSampler(); Specifications Specification Status Comment WebGL 2.0The definition of 'createSampler' in that specification. ...
WebGL2RenderingContext.createTransformFeedback() - Web APIs
Return value A WebGLTransformFeedback object. Examples gl must be a WebGL2RenderingContext. WebGLTransformFeedback objects are not available in WebGL 1. ...
WebGL2RenderingContext.createVertexArray() - Web APIs
The WebGL2RenderingContext.createVertexArray() method of the WebGL 2 API creates and initializes a WebGLVertexArrayObject object that represents a vertex array object (VAO) pointing to vertex array data and which provides names for different sets of vertex data. Syntax WebGLVertexArrayObject gl.createVertexArray(); Parameters None. Return value A WebGLVertexArrayObject representing a vertex array object (VAO) which points to vertex array data. Examples var vao = gl.createVertexArray(); gl.bindVertexArray(vao); // ... // calls to bindBuffer or vertexAttribPointer // which will be "recorded" in the VAO // ... Specifications Specification Status Comment WebGL 2.0The definition of 'createVertexArray' in that specification. Editor's Draft Initia...
WebGL2RenderingContext.deleteQuery() - Web APIs
Examples gl must be a WebGL2RenderingContext. WebGLQuery objects are not available in WebGL 1. var query = gl.createQuery(); // ... ...
WebGL2RenderingContext.deleteSampler() - Web APIs
Examples gl must be a WebGL2RenderingContext. WebGLSampler objects are not available in WebGL 1. var sampler = gl.createSampler(); // ... ...
WebGL2RenderingContext.deleteSync() - Web APIs
Examples gl must be a WebGL2RenderingContext. WebGLSync objects are not available in WebGL 1. var sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0); // ... ...
WebGL2RenderingContext.deleteTransformFeedback() - Web APIs
Examples gl must be a WebGL2RenderingContext. WebGLTransformFeedback objects are not available in WebGL 1. var transformFeedback = gl.createTransformFeedback(); // ... ...
WebGL2RenderingContext.deleteVertexArray() - Web APIs
Examples var vao = gl.createVertexArray(); gl.bindVertexArray(vao); // ... ...
WebGL2RenderingContext.drawArraysInstanced() - Web APIs
a line between a pair of vertices. gl.TRIANGLE_STRIP gl.TRIANGLE_FAN gl.TRIANGLES: Draws a triangle for a group of three vertices. first A GLint specifying the starting index in the array of vector points. count A GLsizei specifying the number of indices to be rendered. instanceCount A GLsizei specifying the number of instances of the range of elements to execute. Return value None. Examples gl.drawArraysInstanced(gl.POINTS, 0, 8, 4); Specifications Specification Status Comment WebGL 2.0The definition of 'drawArraysInstanced' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glDrawArraysInstanced' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.drawElementsInstanced() - Web APIs
array buffer. Possible values are: gl.UNSIGNED_BYTE gl.UNSIGNED_SHORT When using the OES_element_index_uint extension: gl.UNSIGNED_INT offset A GLintptr specifying an offset in the element array buffer. Must be a valid multiple of the size of the given type. instanceCount A GLsizei specifying the number of instances of the set of elements to execute. Return value None. Exceptions If mode is not one of the accepted values, a gl.INVALID_ENUM error is thrown. If offset is a valid multiple of the size of the given type, a gl.INVALID_OPERATION error is thrown. If count or instanceCount are negative, a gl.INVALID_VALUE error is thrown. Examples gl.drawElementsInstanced(gl.POINTS, 2, gl.UNSIGNED_SHORT, 0, 4); Specifications Specification Statu...
WebGL2RenderingContext.drawRangeElements() - Web APIs
index contained in offset. count A GLsizei specifying the number of elements to be rendered. type A GLenum specifying the type of the values in the element array buffer. Possible values are: gl.UNSIGNED_BYTE gl.UNSIGNED_SHORT gl.UNSIGNED_INT offset A GLintptr specifying an offset in the element array buffer. Must be a valid multiple of the size of the given type. Return value None. Exceptions If mode is not one of the accepted values, a gl.INVALID_ENUM error is thrown. If offset is a valid multiple of the size of the given type, a gl.INVALID_OPERATION error is thrown. If count is negative, a gl.INVALID_VALUE error is thrown. Examples gl.drawRangeElements(gl.POINTS, 0, 7, 8, gl.UNSIGNED_BYTE, 0); Specifications Specification Status Comment ...
WebGL2RenderingContext.endQuery() - Web APIs
ecifies an occlusion query: these queries detect whether an object is visible (whether the scoped drawing commands pass the depth test and if so, how many samples pass). gl.ANY_SAMPLES_PASSED_CONSERVATIVE: Same as above above, but less accurate and faster version. gl.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: Number of primitives that are written to transform feedback buffers. Return value None. Examples var query = gl.createQuery(); gl.beginQuery(gl.ANY_SAMPLES_PASSED, query); // ... gl.endQuery(gl.ANY_SAMPLES_PASSED); Specifications Specification Status Comment WebGL 2.0The definition of 'endQuery' in that specification. Editor's Draft Initial definition. OpenGL ES 3.0The definition of 'glEndQuery' in that specification. Standard Man...
WebGL2RenderingContext.endTransformFeedback() - Web APIs
Examples var transformFeedback = gl.createTransformFeedback(); gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); gl.beginTransformFeedback(gl.TRIANGLES); gl.drawArrays(gl.TRIANGLES, 0, 3); gl.endTransformFeedback(); Specifications Specification Status Comment WebGL 2.0The definition of 'endTransformFeedback' in that specification. ...
WebGL2RenderingContext.framebufferTextureLayer() - Web APIs
ture to the framebuffer's depth buffer. gl.STENCIL_ATTACHMENT: Attaches the texture to the framebuffer's stencil buffer. gl.DEPTH_STENCIL_ATTACHMENT: depth and stencil buffer. texture A WebGLTexture object whose image to attach. level A GLint specifying the mipmap level of the texture image to attach. layer A GLint specifying the layer of the texture image to attach. Return value None. Examples gl.framebufferTextureLayer(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, texture, 0, 8); Specifications Specification Status Comment WebGL 2.0The definition of 'framebufferTextureLayer' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glFramebufferTextureLayer' in that speci...
WebGL2RenderingContext.getBufferSubData() - Web APIs
ACK_BUFFER: Buffer used for pixel transfer operations. srcByteOffset A GLintptr specifying the byte offset from which to start reading from the buffer. dstData An ArrayBuffer or SharedArrayBuffer to which to write the buffer data. srcOffset Optional A GLuint specifying the element index offset where to start reading the buffer. length Optional A GLuint defaulting to 0. Return value None. Exceptions An INVALID_VALUE error is generated if: offset + returnedData.byteLength would extend beyond the end of the buffer returnedData is null offset is less than zero. An INVALID_OPERATION error is generated if: zero is bound to target target is TRANSFORM_FEEDBACK_BUFFER, and any transform feedback object is currently active. Examples var buffer = gl.createBuffer(); gl.bindB...
WebGL2RenderingContext.invalidateFramebuffer() - Web APIs
m specifying the attachment points to invalidate. Possible values: gl.COLOR_ATTACHMENT{0-15}: Invalidates one of the framebuffer's color buffers. gl.DEPTH_ATTACHMENT: Invalidates the framebuffer's depth buffer. gl.STENCIL_ATTACHMENT: Invalidates the framebuffer's stencil buffer. gl.DEPTH_STENCIL_ATTACHMENT: Invalidates both the framebuffer's depth and stencil buffer. Return value None. Examples gl.invalidateFramebuffer(gl.READ_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); Specifications Specification Status Comment WebGL 2.0The definition of 'invalidateFramebuffer' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glInvalidateFramebuffer' in that...
WebGL2RenderingContext.invalidateSubFramebuffer() - Web APIs
HMENT: Invalidates both the framebuffer's depth and stencil buffer. x A GLint specifying the left origin of the pixel rectangle to invalidate. y A GLint specifying the bottom origin of the pixel rectangle to invalidate. width A GLsizei specifying the width of the pixel rectangle to invalidate. height A GLsizei specifying the height of the pixel rectangle to invalidate. Return value None. Examples gl.invalidateSubFramebuffer(gl.READ_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1], 0, 0, 256, 256); Specifications Specification Status Comment WebGL 2.0The definition of 'invalidateSubFramebuffer' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3...
WebGL2RenderingContext.pauseTransformFeedback() - Web APIs
Examples var transformFeedback = gl.createTransformFeedback(); gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); gl.beginTransformFeedback(gl.TRIANGLES); gl.pauseTransformFeedback(); //... ...
WebGL2RenderingContext.readBuffer() - Web APIs
The WebGL2RenderingContext.readBuffer() method of the WebGL 2 API selects a color buffer as the source for pixels for subsequent calls to copyTexImage2D, copyTexSubImage2D, copyTexSubImage3D or readPixels. Syntax void gl.readBuffer(src); Parameters src A GLenum specifying a color buffer. Possible values: gl.BACK: Reads from the back color buffer. gl.NONE: Reads from no color buffer. gl.COLOR_ATTACHMENT{0-15}: Reads from one of the 16 color attachment buffers. Return value None. Examples gl.readBuffer(gl.COLOR_ATTACHMENT0); Specifications Specification Status Comment WebGL 2.0The definition of 'readBuffer' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glReadBuffer' ...
WebGL2RenderingContext.renderbufferStorageMultisample() - Web APIs
I gl.RGBA8I gl.RGB10_A2UI gl.RGBA16UI gl.RGBA16I gl.RGBA32I gl.RGBA32UI gl.DEPTH_COMPONENT16 gl.DEPTH_COMPONENT24 gl.DEPTH_COMPONENT32F gl.DEPTH_STENCIL gl.DEPTH24_STENCIL8 gl.DEPTH32F_STENCIL8 gl.STENCIL_INDEX8 width A GLsizei specifying the width of the renderbuffer in pixels. height A GLsizei specifying the height of the renderbuffer in pixels. Return value None. Examples gl.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.RBGA4, 256, 256); Specifications Specification Status Comment WebGL 2.0The definition of 'glRenderbufferStorageMultisample' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glRenderbufferStorageMultisample' in that specification. Stan...
WebGL2RenderingContext.samplerParameter[if]() - Web APIs
GLenum specifying the texture wrapping function for the texture coordinate r. gl.TEXTURE_WRAP_S: A GLenum specifying the texture wrapping function for the texture coordinate s. gl.TEXTURE_WRAP_T: A GLenum specifying the texture wrapping function for the texture coordinate t. param A GLint (samplerParameteri) or a GLfloat (samplerParameterf) specifying a value for pname. Return value None. Examples var sampler = gl.createSampler(); gl.samplerParameteri(sampler, gl.TEXTURE_MAG_FILTER, gl.NEAREST); Specifications The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid w...
WebGL2RenderingContext.texImage3D() - Web APIs
One of the following objects can be used as a pixel source for the texture: ArrayBufferView, ImageBitmap, ImageData, HTMLImageElement, HTMLCanvasElement, HTMLVideoElement. offset A GLintptr byte offset into the WebGLBuffer's data store. Used to upload data to the currently bound WebGLTexture from the WebGLBuffer bound to the PIXEL_UNPACK_BUFFER target. Return value None. Examples gl.texImage3D(gl.TEXTURE_3D, 0, // level gl.RGBA, // internalFormat 1, // width 1, // height 1, // depth ...
WebGL2RenderingContext.texStorage2D() - Web APIs
.COMPRESSED_RG11_EAC gl.COMPRESSED_SIGNED_RG11_EAC gl.COMPRESSED_RGB8_ETC2 gl.COMPRESSED_RGBA8_ETC2_EAC gl.COMPRESSED_SRGB8_ETC2 gl.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC gl.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 gl.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 width A GLsizei specifying the width of the texture. height A GLsizei specifying the height of the texture. Return value None. Examples gl.texStorage2D(gl.TEXTURE_2D, 1, gl.RGB8, 256, 256); Specifications Specification Status Comment WebGL 2.0The definition of 'texStorage2D' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glTexStorage2D' in that specification. Standard Man page of the (similar) OpenGL ES 3.0 API. ...
WebGL2RenderingContext.texStorage3D() - Web APIs
gl.COMPRESSED_RGB8_ETC2 gl.COMPRESSED_RGBA8_ETC2_EAC gl.COMPRESSED_SRGB8_ETC2 gl.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC gl.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 gl.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 width A GLsizei specifying the width of the texture. height A GLsizei specifying the height of the texture. depth A GLsizei specifying the depth of the texture. Return value None. Examples gl.texStorage3D(gl.TEXTURE_3D, 1, gl.RGB8, 256, 256, 256); Specifications Specification Status Comment WebGL 2.0The definition of 'texStorage3D' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glTexStorage3D' in that specification. Standard Man page of the (similar) OpenGL ES 3.0 API. ...
WebGL2RenderingContext.texSubImage3D() - Web APIs
SHORT_5_5_5_1, or ext.HALF_FLOAT_OES. A Float32Array must be used if type is gl.FLOAT. ImageBitmap, ImageData, HTMLImageElement, HTMLCanvasElement, HTMLVideoElement. offset A GLintptr byte offset into the WebGLBuffer's data store. Used to upload data to the currently bound WebGLTexture from the WebGLBuffer bound to the PIXEL_UNPACK_BUFFER target. Return value None. Examples gl.texSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, image.width, image.height, 1, gl.RGBA, gl.UNSIGNED_BYTE, image); Specifications Specification Status Comment WebGL 2.0The definition of 'texSubImage3D' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glTexSubImage2D' in that specification. Standa...
WebGL2RenderingContext.transformFeedbackVaryings() - Web APIs
in WebGLTransformFeedback buffers. Syntax void gl.transformFeedbackVaryings(program, varyings, bufferMode); Parameters program A WebGLProgram. varyings An Array of DOMString specifying the the names of the varying variables to use. bufferMode A GLenum specifying the mode to use when capturing the varying variables. Either gl.INTERLEAVED_ATTRIBS or gl.SEPARATE_ATTRIBS. Return value None. Examples var transformFeedback = gl.createTransformFeedback(); gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, transformFeedback); var transformFeedbackOutputs = ['gl_Position', 'anotherOutput']; gl.transformFeedbackVaryings(shaderProg, transformFeedbackOutputs, gl.INTERLEAVED_ATTRIBS); gl.linkProgram(shaderProg); Specifications Specification Status...
WebGL2RenderingContext.uniform[1234][uif][v]() - Web APIs
A WebGLUniformLocation object containing the location of the uniform attribute to modify. data, v0, v1, v2, v3 A new value to be used for the uniform variable. Possible types: A Number for unsigned integer values (methods with ui), for integer values (methods with i), or for floats (methods with f). A Uint32Array for unsigned integer vector methods (methods with uiv). Return value None. Specifications Specification Status Comment WebGL 2.0The definition of 'uniform' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glUniform' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.uniformBlockBinding() - Web APIs
s. Syntax void gl.uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); Parameters program A WebGLProgram containing the active uniform block whose binding to assign. uniformBlockIndex A GLuint specifying the index of the active uniform block within the program. uniformBlockBinding A GLuint specifying the binding point to which to bind the uniform block. Return value None. Examples gl.uniformBlockBinding(program, 0, 1); Specifications Specification Status Comment WebGL 2.0The definition of 'uniformBlockBinding' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glUniformBlockBinding' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.uniformMatrix[234]x[234]fv() - Web APIs
pose, data, optional srcOffset, optional srcLength); void gl.uniformMatrix4fv(location, transpose, data, optional srcOffset, optional srcLength); Parameters location A WebGLUniformLocation object containing the location of the uniform attribute to modify. transpose A GLboolean specifying whether to transpose the matrix. Must be false. data A Float32Array of float values. Return value None. Examples gl.uniformMatrix2x3fv(loc, false, [1, 2, 3, 4, 5, 6]); Specifications Specification Status Comment WebGL 2.0The definition of 'uniformMatrix' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glUniformMatrix' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.vertexAttribDivisor() - Web APIs
d() and gl.drawElementsInstanced(). Note: When using WebGL 1, the ANGLE_instanced_arrays extension can provide this method, too. Syntax void gl.vertexAttribDivisor(index, divisor); Parameters index A GLuint specifying the index of the generic vertex attributes. divisor A GLuint specifying the number of instances that will pass between updates of the generic attribute. Return value None. Examples gl.vertexAttribDivisor(0, 2); Specifications Specification Status Comment WebGL 2.0The definition of 'vertexAttribDivisor' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glVertexAttribDivisor' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.vertexAttribI4[u]i[v]() - Web APIs
4ui(index, v0, v1, v2, v3); void gl.vertexAttribI4iv(index, value); void gl.vertexAttribI4uiv(index, value); Parameters index A GLuint specifying the position of the vertex attribute to be modified. v0, v1, v2, v3 An integer Number for the vertex attribute value. value A Uint32Array/Int32Array or sequences of GLuint/ GLint for integer vector vertex attribute values. Return value None. Examples gl.vertexAttribI4i(a_foobar, 10); Specifications Specification Status Comment WebGL 2.0The definition of 'vertexAttribI' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glVertexAttribI' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGL2RenderingContext.vertexAttribIPointer() - Web APIs
the data type of each component in the array. Must be one of: gl.BYTE, gl.UNSIGNED_BYTE, gl.SHORT, gl.UNSIGNED_SHORT, gl.INT, or gl.UNSIGNED_INT. stride A GLsizei specifying the offset in bytes between the beginning of consecutive vertex attributes. offset A GLintptr specifying an offset in bytes of the first component in the vertex attribute array. Must be a multiple of type. Return value None. Description Very similar to WebGLRenderingContext.vertexAttribPointer(). The main difference is that while values specified by vertexAttribPointer are always interpreted as floating-point values in the shader (even if they were originally specified as integers in the buffer), this method allows specifying values which are interpreted as integers in the shader. Examples Linear Blend Skinning...
WebGL2RenderingContext.waitSync() - Web APIs
n multiple GL contexts. Syntax void gl.waitSync(sync, flags, timeout); Parameters sync A WebGLSync object on which to wait on. flags A GLbitfield specifying a bitwise combination of flags controlling the flushing behavior. Must be 0 (exists for extensions only). timeout A GLint64 specifying a timeout the server should wait before continuing. Must be gl.TIMEOUT_IGNORED. Return value None. Examples var sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0); gl.waitSync(sync, 0, gl.TIMEOUT_IGNORED); Specifications Specification Status Comment WebGL 2.0The definition of 'waitSync' in that specification. Editor's Draft Initial definition for WebGL. OpenGL ES 3.0The definition of 'glWaitSync' in that specification. Standard Man page of ...
WebGLContextEvent - Web APIs
o="xMinYMin meet"><a xlink:href="/docs/Web/API/Event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/WebGLContextEvent" target="_top"><rect x="116" y="1" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="201" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">WebGLContextEvent</text></...
WebGLRenderingContext.activeTexture() - Web APIs
The WebGLRenderingContext.activeTexture() method of the WebGL API specifies which texture unit to make active. Syntax void gl.activeTexture(texture); Parameters texture The texture unit to make active. The value is a gl.TEXTUREI where I is within the range from 0 to gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1. Return value None. Exceptions If texture is not one of gl.TEXTUREI, where I is within the range from 0 to gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1, a gl.INVALID_ENUM error is thrown. Examples The following call selects gl.TEXTURE1 as the current texture. Subsequent calls that modify the texture state will affect this texture. gl.activeTexture(gl.TEXTURE1); The number of texture units is implementation dependent, you can get this number with the help of the MAX_COMBINED_TEXT...
WebGLRenderingContext.bindAttribLocation() - Web APIs
ribute variable. Syntax void gl.bindAttribLocation(program, index, name); Parameters program A WebGLProgram object to bind. index A GLuint specifying the index of the generic vertex to bind. name A DOMString specifying the name of the variable to bind to the generic vertex index. This name cannot start with "webgl_" or "_webgl_", as these are reserved for use by WebGL. Return value None. Examples gl.bindAttribLocation(program, colorLocation, 'vColor'); Specifications Specification Status Comment WebGL 1.0The definition of 'bindAttribLocation' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glBindAttribLocation' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGLRenderingContext.bindBuffer() - Web APIs
BUFFER: Buffer for copying from one buffer object to another. gl.TRANSFORM_FEEDBACK_BUFFER: Buffer for transform feedback operations. gl.UNIFORM_BUFFER: Buffer used for storing uniform blocks. gl.PIXEL_PACK_BUFFER: Buffer used for pixel transfer operations. gl.PIXEL_UNPACK_BUFFER: Buffer used for pixel transfer operations. buffer A WebGLBuffer to bind. Return value None. Exceptions Only one target can be bound to a given WebGLBuffer. An attempt to bind the buffer to another target will throw an INVALID_OPERATION error and the current buffer binding will remain the same. A WebGLBuffer which has been marked for deletion with deleteBuffer cannot be (re-)bound. An attempt to do so will generate an INVALID_OPERATION error, and the current binding will remain untou...
WebGLRenderingContext.bindFramebuffer() - Web APIs
ncil buffers used to render an image. When using a WebGL 2 context, the following values are available additionally: gl.DRAW_FRAMEBUFFER: Equivalent to gl.FRAMEBUFFER. Used as a destination for drawing, rendering, clearing, and writing operations. gl.READ_FRAMEBUFFER: Used as a source for reading operations. framebuffer A WebGLFramebuffer object to bind. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if target is not gl.FRAMEBUFFER, gl.DRAW_FRAMEBUFFER, or gl.READ_FRAMEBUFFER. Examples Binding a frame buffer var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var framebuffer = gl.createFramebuffer(); gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer); Getting current bindings To check the current frame buffer...
WebGLRenderingContext.bindRenderbuffer() - Web APIs
the WebGL API binds a given WebGLRenderbuffer to a target, which must be gl.RENDERBUFFER. Syntax void gl.bindRenderbuffer(target, renderbuffer); Parameters target A GLenum specifying the binding point (target). Possible values: gl.RENDERBUFFER: Buffer data storage for single images in a renderable internal format. renderbuffer A WebGLRenderbuffer object to bind. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if target is not gl.RENDERBUFFER. Examples Binding a renderbuffer var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var renderbuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderbuffer); Getting current bindings To check the current renderbuffer binding, query the RENDERBUFFER_BINDIN...
WebGLRenderingContext.bindTexture() - Web APIs
ing the binding point (target). Possible values: gl.TEXTURE_2D: A two-dimensional texture. gl.TEXTURE_CUBE_MAP: A cube-mapped texture. When using a WebGL 2 context, the following values are available additionally: gl.TEXTURE_3D: A three-dimensional texture. gl.TEXTURE_2D_ARRAY: A two-dimensional array texture. texture A WebGLTexture object to bind. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if target is not gl.TEXTURE_2D, gl.TEXTURE_CUBE_MAP, gl.TEXTURE_3D, or gl.TEXTURE_2D_ARRAY. Examples Binding a texture var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); Getting current bindings To check the current texture binding, que...
WebGLRenderingContext.blendColor() - Web APIs
rce and destination blending factors. Syntax void gl.blendColor(red, green, blue, alpha); Parameters red A GLclampf for the red component in the range of 0 to 1. green A GLclampf for the green component in the range of 0 to 1. blue A GLclampf for the blue component in the range of 0 to 1. alpha A GLclampf for the alpha component (transparency) in the range of 0 to 1. Return value None. Examples To set the blend color, use: gl.blendColor(0, 0.5, 1, 1); To get the blend color, query the BLEND_COLOR constant which returns a Float32Array. gl.getParameter(gl.BLEND_COLOR); // Float32Array[0, 0.5, 1, 1] Specifications Specification Status Comment WebGL 1.0The definition of 'blendColor' in that specification. Recommendation Initial definition. ...
WebGLRenderingContext.blendEquation() - Web APIs
tination, ext.MAX_EXT: Maximum of source and destination. When using a WebGL 2 context, the following values are available additionally: gl.MIN: Minimum of source and destination, gl.MAX: Maximum of source and destination. default value: gl.FUNC_ADD Exception If mode is not one of the three possible values, a gl.INVALID_ENUM error is thrown. Return value None. Examples To set the blend equation, use: gl.blendEquation(gl.FUNC_ADD); gl.blendEquation(gl.FUNC_SUBTRACT); gl.blendEquation(gl.FUNC_REVERSE_SUBTRACT); To get the blend equations, query the BLEND_EQUATION, BLEND_EQUATION_RGB and BLEND_EQUATION_ALPHA constants which return gl.FUNC_ADD, gl.FUNC_SUBTRACT, gl.FUNC_REVERSE_SUBTRACT, or if the EXT_blend_minmax is enabled: ext.MIN_EXT or ext.MAX_E...
WebGLRenderingContext.blendEquationSeparate() - Web APIs
E_SUBTRACT: destination - source, When using the EXT_blend_minmax extension: ext.MIN_EXT: Minimum of source and destination, ext.MAX_EXT: Maximum of source and destination. When using a WebGL 2 context, the following values are available additionally: gl.MIN: Minimum of source and destination, gl.MAX: Maximum of source and destination. Return value None. Exceptions If mode is not one of the three possible values, a gl.INVALID_ENUM error is thrown. Examples To set the blend equations, use: gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_SUBTRACT); To get the current blend equations, query the BLEND_EQUATION, BLEND_EQUATION_RGB and BLEND_EQUATION_ALPHA constants which return gl.FUNC_ADD, gl.FUNC_SUBTRACT, gl.FUNC_REVERSE_SUBTRACT, or if the E...
WebGLRenderingContext.blendFunc() - Web APIs
ion is used for blending pixel arithmetic. Syntax void gl.blendFunc(sfactor, dfactor); Parameters sfactor A GLenum specifying a multiplier for the source blending factors. The default value is gl.ONE. For possible values, see below. dfactor A GLenum specifying a multiplier for the destination blending factors. The default value is gl.ZERO. For possible values, see below. Return value None. Exceptions If sfactor or dfactor is not one of the listed possible values, a gl.INVALID_ENUM error is thrown. If a constant color and a constant alpha value are used together as source and destination factors, a gl.INVALID_ENUM error is thrown. Constants The following constants can be used for sfactor and dfactor. The formula for the blending color can be described like this: color(RGBA...
WebGLRenderingContext.blendFuncSeparate() - Web APIs
destination blending factors. The default value is gl.ZERO. For possible values, see below. srcAlpha A GLenum specifying a multiplier for the alpha source blending factor. The default value is gl.ONE. For possible values, see below. dstAlpha A GLenum specifying a multiplier for the alpha destination blending factor. The default value is gl.ZERO. For possible values, see below. Return value None. Exceptions If srcRGB, dstRGB, srcAlpha, or dstAlpha is not one of the listed possible values, a gl.INVALID_ENUM error is thrown. If a constant color and a constant alpha value are used together as source (srcRGB) and destination (dstRGB) factors, a gl.INVALID_ENUM error is thrown. Constants The following constants can be used for srcRGB, dstRGB, srcAlpha, and dstAlpha The formulas for t...
WebGLRenderingContext.bufferData() - Web APIs
WebGL drawing and image specification commands. gl.STREAM_COPY: The contents are intended to be specified once by reading data from WebGL, and used at most a few times as the source for WebGL drawing and image specification commands. srcOffset A GLuint specifying the element index offset where to start reading the buffer. length Optional A GLuint defaulting to 0. Return value None. Exceptions A gl.OUT_OF_MEMORY error is thrown if the context is unable to create a data store with the given size. A gl.INVALID_VALUE error is thrown if size is negative. A gl.INVALID_ENUM error is thrown if target or usage are not one of the allowed enums. Examples Using bufferData var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var buffer = gl.cre...
WebGLRenderingContext.bufferSubData() - Web APIs
dstByteOffset A GLintptr specifying an offset in bytes where the data replacement will start. srcData Optional An ArrayBuffer, SharedArrayBuffer or one of the ArrayBufferView typed array types that will be copied into the data store. srcOffset A GLuint specifying the element index offset where to start reading the buffer. length Optional A GLuint defaulting to 0. Return value None. Exceptions A gl.INVALID_VALUE error is thrown if the data would be written past the end of the buffer or if data is null. A gl.INVALID_ENUM error is thrown if target is not one of the allowed enums. Examples Using bufferSubData var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); gl.b...
WebGLRenderingContext.checkFramebufferStatus() - Web APIs
different among attached renderbuffers, or are non-zero if the attached images are a mix of renderbuffers and textures. When using the OVR_multiview2 extension, the following value can be returned additionally: ext.FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: If baseViewIndex is not the same for all framebuffer attachment points where the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is not NONE, the framebuffer is considered incomplete. Examples var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var framebuffer = gl.createFramebuffer(); // ... gl.checkFramebufferStatus(gl.FRAMEBUFFER); Specifications Specification Status Comment WebGL 1.0The definition of 'checkFramebufferStatus' in that specification. Recommendat...
WebGLRenderingContext.clear() - Web APIs
ues. The preset values can be set by clearColor(), clearDepth() or clearStencil(). The scissor box, dithering, and buffer writemasks can affect the clear() method. Syntax void gl.clear(mask); Parameters mask A GLbitfield bitwise OR mask that indicates the buffers to be cleared. Possible values are: gl.COLOR_BUFFER_BIT gl.DEPTH_BUFFER_BIT gl.STENCIL_BUFFER_BIT Return value None. Exceptions If mask is not one of the listed possible values, a gl.INVALID_ENUM error is thrown. Examples The clear() method accepts multiple values. gl.clear(gl.DEPTH_BUFFER_BIT); gl.clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT); To get the current clear values, query the COLOR_CLEAR_VALUE, DEPTH_CLEAR_VALUE, and STENCIL_CLEAR_VALUE constants. gl.getParameter(gl.COLOR_CLEAR_VALUE); gl...
WebGLRenderingContext.clearColor() - Web APIs
olor buffers are cleared. Default value: 0. green A GLclampf specifying the green color value used when the color buffers are cleared. Default value: 0. blue A GLclampf specifying the blue color value used when the color buffers are cleared. Default value: 0. alpha A GLclampf specifying the alpha (transparency) value used when the color buffers are cleared. Default value: 0. Return value None. Examples gl.clearColor(1, 0.5, 0.5, 3); To get the current clear color, query the COLOR_CLEAR_VALUE constant which returns a Float32Array. gl.getParameter(gl.COLOR_CLEAR_VALUE); // Float32Array[1, 0.5, 0.5, 1] Specifications Specification Status Comment WebGL 1.0The definition of 'clearColor' in that specification. Recommendation Initial definition. ...
WebGLRenderingContext.clearDepth() - Web APIs
The WebGLRenderingContext.clearDepth() method of the WebGL API specifies the clear value for the depth buffer. This specifies what depth value to use when calling the clear() method. The value is clamped between 0 and 1. Syntax void gl.clearDepth(depth); Parameters depth A GLclampf specifying the depth value used when the depth buffer is cleared. Default value: 1. Return value None. Examples gl.clearDepth(0.5); To get the current depth clear value, query the DEPTH_CLEAR_VALUE constant. gl.getParameter(gl.DEPTH_CLEAR_VALUE); // 0.5 Specifications Specification Status Comment WebGL 1.0The definition of 'clearDepth' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glClearDepthf' in that specificati...
WebGLRenderingContext.clearStencil() - Web APIs
The WebGLRenderingContext.clearStencil() method of the WebGL API specifies the clear value for the stencil buffer. This specifies what stencil value to use when calling the clear() method. Syntax void gl.clearStencil(s); Parameters s A GLint specifying the index used when the stencil buffer is cleared. Default value: 0. Return value None. Examples gl.clearStencil(1); To get the current stencil clear value, query the STENCIL_CLEAR_VALUE constant. gl.getParameter(gl.STENCIL_CLEAR_VALUE); // 1 Specifications Specification Status Comment WebGL 1.0The definition of 'clearStencil' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glClearStencil' in that specification. Standard Man page of the Ope...
WebGLRenderingContext.colorMask() - Web APIs
ean specifying whether or not the green color component can be written into the frame buffer. Default value: true. blue A GLboolean specifying whether or not the blue color component can be written into the frame buffer. Default value: true. alpha A GLboolean specifying whether or not the alpha (transparency) component can be written into the frame buffer. Default value: true. Return value None. Examples gl.colorMask(true, true, true, false); To get the current color mask, query the COLOR_WRITEMASK constant which returns an Array. gl.getParameter(gl.COLOR_WRITEMASK); // [true, true, true, false] Specifications Specification Status Comment WebGL 1.0The definition of 'colorMask' in that specification. Recommendation Initial definition. OpenGL...
WebGLRenderingContext.compressedTexImage[23]D() - Web APIs
A GLint specifying the width of the border. Must be 0. imageSize A GLsizei specifying the number of bytes to read from the buffer bound to gl.PIXEL_UNPACK_BUFFER. offset A GLintptr specifying the offset in bytes from which to read from the buffer bound to gl.PIXEL_UNPACK_BUFFER. pixels An ArrayBufferView that be used as a data store for the compressed image data in memory. Return value None. Examples var ext = ( gl.getExtension('WEBGL_compressed_texture_s3tc') || gl.getExtension('MOZ_WEBGL_compressed_texture_s3tc') || gl.getExtension('WEBKIT_WEBGL_compressed_texture_s3tc') ); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); gl.compressedTexImage2D(gl.TEXTURE_2D, 0, ext.COMPRESSED_RGBA_S3TC_DXT5_EXT, 512, 512, 0, textureData); gl.texParameteri(gl.TEX...
WebGLRenderingContext.compressedTexSubImage2D() - Web APIs
ext.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT imageSize A GLsizei specifying the number of bytes to read from the buffer bound to gl.PIXEL_UNPACK_BUFFER. offset A GLintptr specifying the offset in bytes from which to read from the buffer bound to gl.PIXEL_UNPACK_BUFFER. pixels An ArrayBufferView that be used as a data store for the compressed image data in memory. Return value None. Examples var ext = ( gl.getExtension('WEBGL_compressed_texture_s3tc') || gl.getExtension('MOZ_WEBGL_compressed_texture_s3tc') || gl.getExtension('WEBKIT_WEBGL_compressed_texture_s3tc') ); gl.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 256, 256, 512, 512, ext.COMPRESSED_RGBA_S3TC_DXT5_EXT, textureData); Specifications Specification Status Comment WebGL 1.0The defi...
WebGLRenderingContext.copyTexImage2D() - Web APIs
uminance/alpha component. x A GLint specifying the x coordinate of the lower left corner where to start copying. y A GLint specifying the y coordinate of the lower left corner where to start copying. width A GLsizei specifying the width of the texture. height A GLsizei specifying the height of the texture. border A GLint specifying the width of the border. Must be 0. Return value None. Examples gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, 512, 512, 0); Specifications Specification Status Comment WebGL 1.0The definition of 'copyTexImage2D' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glCopyTexImage2D' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGLRenderingContext.copyTexSubImage2D() - Web APIs
the texture image. yoffset A GLint specifying the vertical offset within the texture image. x A GLint specifying the x coordinate of the lower left corner where to start copying. y A GLint specifying the y coordinate of the lower left corner where to start copying. width A GLsizei specifying the width of the texture. height A GLsizei specifying the height of the texture. Return value None. Examples gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0,0, 0, 0, 16, 16); Specifications Specification Status Comment WebGL 1.0The definition of 'copyTexSubImage2D' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glCopyTexSubImage2D' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGLRenderingContext.createBuffer() - Web APIs
Return value A WebGLBuffer storing data such as vertices or colors. ...
WebGLRenderingContext.createFramebuffer() - Web APIs
Return value A WebGLFramebuffer object. Examples Creating a frame buffer var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var framebuffer = gl.createFramebuffer(); Specifications Specification Status Comment WebGL 1.0The definition of 'createFramebuffer' in that specification. ...
WebGLRenderingContext.createProgram() - Web APIs
Return value A WebGLProgram object that is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). These are then linked into a usable program.. ...
WebGLRenderingContext.createRenderbuffer() - Web APIs
Return value A WebGLRenderbuffer object that stores data such an image, or can be source or target of an rendering operation. ...
WebGLRenderingContext.createTexture() - Web APIs
Return value A WebGLTexture object to which images can be bound to. Examples See also the WebGL tutorial on Using textures in WebGL. Creating a texture var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var texture = gl.createTexture(); Specifications Specification Status Comment WebGL 1.0The definition of 'createTexture' in that specification. ...
WebGLRenderingContext.cullFace() - Web APIs
The WebGLRenderingContext.cullFace() method of the WebGL API specifies whether or not front- and/or back-facing polygons can be culled. Syntax void gl.cullFace(mode); Parameters mode A GLenum specifying whether front- or back-facing polygons are candidates for culling. The default value is gl.BACK. Possible values are: gl.FRONT gl.BACK gl.FRONT_AND_BACK Return value None. Examples Polygon culling is disabled by default. To enable or disable culling, use the enable() and disable() methods with the argument gl.CULL_FACE. gl.enable(gl.CULL_FACE); gl.cullFace(gl.FRONT_AND_BACK); To check the current cull face mode, query the CULL_FACE_MODE constant. gl.getParameter(gl.CULL_FACE_MODE) === gl.FRONT_AND_BACK; // true Specifications Specification Status ...
WebGLRenderingContext.deleteBuffer() - Web APIs
Examples Deleting a buffer var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var buffer = gl.createBuffer(); // ... ...
WebGLRenderingContext.deleteFramebuffer() - Web APIs
The WebGLRenderingContext.deleteFramebuffer() method of the WebGL API deletes a given WebGLFramebuffer object. This method has no effect if the frame buffer has already been deleted. Syntax void gl.deleteFramebuffer(framebuffer); Parameters framebuffer A WebGLFramebuffer object to delete. Return value None. Examples Deleting a frame buffer var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var framebuffer = gl.createFramebuffer(); // ... gl.deleteFramebuffer(framebuffer); Specifications Specification Status Comment WebGL 1.0The definition of 'deleteFramebuffer' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glDeleteFramebuffers' in that specification. Standa...
WebGLRenderingContext.deleteProgram() - Web APIs
Examples Deleting a program var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var program = gl.createProgram(); // ... ...
WebGLRenderingContext.deleteRenderbuffer() - Web APIs
The WebGLRenderingContext.deleteRenderbuffer() method of the WebGL API deletes a given WebGLRenderbuffer object. This method has no effect if the render buffer has already been deleted. Syntax void gl.deleteRenderbuffer(renderbuffer); Parameters renderbuffer A WebGLRenderbuffer object to delete. Return value None. Examples Deleting a renderbuffer var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var renderbuffer = gl.createRenderbuffer(); // ... gl.deleteRenderbuffer(renderbuffer); Specifications Specification Status Comment WebGL 1.0The definition of 'deleteRenderbuffer' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glDeleteRenderbuffers' in that specificati...
WebGLRenderingContext.deleteShader() - Web APIs
GL API marks a given WebGLShader object for deletion. It will then be deleted whenever the shader is no longer in use. This method has no effect if the shader has already been deleted, and the WebGLShader is automatically marked for deletion when it is destroyed by the garbage collector. Syntax void gl.deleteShader(shader); Parameters shader A WebGLShader object to delete. Return value None. Examples Deleting a shader gl.deleteShader(shader); Specifications Specification Status Comment WebGL 1.0The definition of 'deleteShader' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glDeleteShader' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGLRenderingContext.deleteTexture() - Web APIs
Examples Deleting a texture var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var texture = gl.createTexture(); // ... ...
WebGLRenderingContext.depthFunc() - Web APIs
er value) gl.LEQUAL (pass if the incoming value is less than or equal to the depth buffer value) gl.GREATER (pass if the incoming value is greater than the depth buffer value) gl.NOTEQUAL (pass if the incoming value is not equal to the depth buffer value) gl.GEQUAL (pass if the incoming value is greater than or equal to the depth buffer value) gl.ALWAYS (always pass) Return value None. Examples The depth testing is disabled by default. To enable or disable depth testing, use the enable() and disable() methods with the argument gl.DEPTH_TEST. gl.enable(gl.DEPTH_TEST); gl.depthFunc(gl.NEVER); To check the current depth function, query the DEPTH_FUNC constant. gl.getParameter(gl.DEPTH_FUNC) === gl.NEVER; // true Specifications Specification Status Comment ...
WebGLRenderingContext.depthMask() - Web APIs
Examples gl.depthMask(false); To get the current depth mask, query the DEPTH_WRITEMASK constant which returns a Boolean. ...
WebGLRenderingContext.depthRange() - Web APIs
nge(zNear, zFar); Parameters zNear A GLclampf specifying the mapping of the near clipping plane to window or viewport coordinates. Clamped to the range 0 to 1 and must be less than or equal to zFar. The default value is 0. zFar A GLclampf specifying the mapping of the far clipping plane to window or viewport coordinates. Clamped to the range 0 to 1. The default value is 1. Return value None. Examples gl.depthRange(0.2, 0.6); To check the current depth range, query the DEPTH_RANGE constant which returns a Float32Array gl.getParameter(gl.DEPTH_RANGE); // Float32Array[0.2, 0.6] Specifications Specification Status Comment WebGL 1.0The definition of 'depthRange' in that specification. Recommendation Initial definition. Unlike OpenGL, WebGL requires z...
WebGLRenderingContext.disable() - Web APIs
LRenderingContext.stencilFunc(). When using a WebGL 2 context, the following values are available additionally: Constant Description gl.RASTERIZER_DISCARD Deactivates that primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage. gl.clear() commands are ignored. Return value None. Examples gl.disable(gl.DITHER); To check if a capability is disabled, use the WebGLRenderingContext.isEnabled() method: gl.isEnabled(gl.DITHER); // false Specifications Specification Status Comment WebGL 1.0The definition of 'disable' in that specification. Recommendation Initial definition for WebGL. OpenGL ES 2.0The definition of 'glDisable' in th...
WebGLRenderingContext.disableVertexAttribArray() - Web APIs
The WebGLRenderingContext.disableVertexAttribArray() method of the WebGL API turns the generic vertex attribute array off at a given index position. Syntax void gl.disableVertexAttribArray(index); Parameters index A GLuint specifying the index of the vertex attribute to disable. Return value None. Examples gl.disableVertexAttribArray(0); Specifications Specification Status Comment WebGL 1.0The definition of 'disableVertexAttribArray' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glDisableVertexAttribArray' in that specification. Standard Man page of the OpenGL API. ...
WebGLRenderingContext.drawArrays() - Web APIs
traight line to the next vertex, and connects the last vertex back to the first. gl.LINES: Draws a line between a pair of vertices. gl.TRIANGLE_STRIP gl.TRIANGLE_FAN gl.TRIANGLES: Draws a triangle for a group of three vertices. first A GLint specifying the starting index in the array of vector points. count A GLsizei specifying the number of indices to be rendered. Return value None. Exceptions If mode is not one of the accepted values, a gl.INVALID_ENUM error is thrown. If first or count are negative, a gl.INVALID_VALUE error is thrown. if gl.CURRENT_PROGRAM is null, a gl.INVALID_OPERATION error is thrown. Examples gl.drawArrays(gl.POINTS, 0, 8); Specifications Specification Status Comment WebGL 1.0The definition of 'drawArrays' in that s...
WebGLRenderingContext.drawElements() - Web APIs
f elements to be rendered. type A GLenum specifying the type of the values in the element array buffer. Possible values are: gl.UNSIGNED_BYTE gl.UNSIGNED_SHORT When using the OES_element_index_uint extension: gl.UNSIGNED_INT offset A GLintptr specifying a byte offset in the element array buffer. Must be a valid multiple of the size of the given type. Return value None. Exceptions If mode is not one of the accepted values, a gl.INVALID_ENUM error is thrown. If offset is not a valid multiple of the size of the given type, a gl.INVALID_OPERATION error is thrown. If count is negative, a gl.INVALID_VALUE error is thrown. Examples gl.drawElements(gl.POINTS, 8, gl.UNSIGNED_BYTE, 0); Specifications Specification Status Comment WebGL...
WebGLRenderingContext.enable() - Web APIs
buffer. See WebGLRenderingContext.stencilFunc(). When using a WebGL 2 context, the following values are available additionally: Constant Description gl.RASTERIZER_DISCARD Primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage. gl.clear() commands are ignored. Return value None. Examples gl.enable(gl.DITHER); To check if a capability is enabled, use the WebGLRenderingContext.isEnabled() method: gl.isEnabled(gl.DITHER); // true Specifications Specification Status Comment WebGL 1.0The definition of 'enable' in that specification. Recommendation Initial definition for WebGL. OpenGL ES 2.0The definition of 'glEnable' in that sp...
WebGLRenderingContext.finish() - Web APIs
The WebGLRenderingContext.finish() method of the WebGL API blocks execution until all previously called commands are finished. Syntax void gl.finish(); Parameters None. Return value None. Specifications Specification Status Comment WebGL 1.0The definition of 'finish' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glFinish' in that specification. Standard Man page of the OpenGL API. ...
WebGLRenderingContext.flush() - Web APIs
The WebGLRenderingContext.flush() method of the WebGL API empties different buffer commands, causing all commands to be executed as quickly as possible. Syntax void gl.flush(); Parameters None. Return value None. Specifications Specification Status Comment WebGL 1.0The definition of 'flush' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glFlush' in that specification. Standard Man page of the OpenGL API. ...
WebGLRenderingContext.framebufferRenderbuffer() - Web APIs
HMENT12_WEBGL ext.COLOR_ATTACHMENT13_WEBGL ext.COLOR_ATTACHMENT14_WEBGL ext.COLOR_ATTACHMENT15_WEBGL renderbuffertarget A GLenum specifying the binding point (target) for the render buffer. Possible values: gl.RENDERBUFFER: Buffer data storage for single images in a renderable internal format. renderbuffer A WebGLRenderbuffer object to attach. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if target is not gl.FRAMEBUFFER, gl.DRAW_FRAMEBUFFER, or gl.READ_FRAMEBUFFER. A gl.INVALID_ENUM error is thrown if renderbuffertarget is not gl.RENDERBUFFER. A gl.INVALID_ENUM error is thrown if attachment is not one of the allowed enums. Examples gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.RENDERBUFFER, renderbuffer);...
WebGLRenderingContext.framebufferTexture2D() - Web APIs
. gl.TEXTURE_CUBE_MAP_NEGATIVE_Y: Image for the negative Y face of the cube. gl.TEXTURE_CUBE_MAP_POSITIVE_Z: Image for the positive Z face of the cube. gl.TEXTURE_CUBE_MAP_NEGATIVE_Z: Image for the negative Z face of the cube. texture A WebGLTexture object whose image to attach. level A GLint specifying the mipmap level of the texture image to be attached. Must be 0. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if target is not gl.FRAMEBUFFER. attachment is not one of the accepted attachment points. textarget is not one of the accepted texture targets. A gl.INVALID_VALUE error is thrown if level is not 0. A gl.INVALID_OPERATION error is thrown if texture isn't 0 or the name of an existing texture object. Examples gl.framebufferText...
WebGLRenderingContext.frontFace() - Web APIs
The WebGLRenderingContext.frontFace() method of the WebGL API specifies whether polygons are front- or back-facing by setting a winding orientation. Syntax void gl.frontFace(mode); Parameters mode A GLenum type winding orientation. The default value is gl.CCW. Possible values: gl.CW: Clock-wise winding. gl.CCW: Counter-clock-wise winding. Return value None. Examples gl.frontFace(gl.CW); Specifications Specification Status Comment WebGL 1.0The definition of 'frontFace' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glFrontFace' in that specification. Standard Man page of the OpenGL API. ...
WebGLRenderingContext.generateMipmap() - Web APIs
ng point (target) of the active texture whose mipmaps will be generated. Possible values: gl.TEXTURE_2D: A two-dimensional texture. gl.TEXTURE_CUBE_MAP: A cube-mapped texture. When using a WebGL 2 context, the following values are available additionally: gl.TEXTURE_3D: A three-dimensional texture. gl.TEXTURE_2D_ARRAY: A two-dimensional array texture. Return value None. Examples gl.generateMipmap(gl.TEXTURE_2D); Specifications Specification Status Comment WebGL 1.0The definition of 'generateMipmap' in that specification. Recommendation Initial definition for WebGL. OpenGL ES 2.0The definition of 'glGenerateMipmap' in that specification. Standard Man page of the (similar) OpenGL ES 2.0 API. OpenGL ES 3.0...
WebGLRenderingContext.getError() - Web APIs
Return value Constant Description gl.NO_ERROR No error has been recorded. The value of this constant is 0. gl.INVALID_ENUM An unacceptable value has been specified for an enumerated argument. The command is ignored and the error flag is set. gl.INVALID_VALUE A numeric argument is out of range. The command is ignored and the error flag is set. gl.INVALID_OPERATION The specified command is not allowed for the current state. ...
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
the framebuffer object attachment. Return value Depends on the requested information (as specified with pname). Either a GLint, a GLenum, a WebGLRenderbuffer, or a WebGLTexture. pname parameter Return value gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE A GLenum indicating the type of the texture. Either gl.RENDERBUFFER, gl.TEXTURE, or if no image is attached, gl.NONE. gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME The texture (WebGLTexture) or renderbuffer (WebGLRenderbuffer) of the attached image. gl.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL A GLint indicating the mipmap level. Default value: 0. gl.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE A GLenum indicating the name of cube-map face of the texture. Possible values: gl.TEX...
WebGLRenderingContext.getParameter() - Web APIs
T Int32Array (with 4 elements) WebGL 2 You can query the following pname parameters when using a WebGL2RenderingContext. Constant Returned type Description gl.COPY_READ_BUFFER_BINDING WebGLBuffer or null See bindBuffer. gl.COPY_WRITE_BUFFER_BINDING WebGLBuffer or null See bindBuffer. gl.DRAW_BUFFERi GLenum gl.BACK, gl.NONE or gl.COLOR_ATTACHMENT{0-15}. See also drawBuffers. gl.DRAW_FRAMEBUFFER_BINDING WebGLFramebuffer or null null corresponds to a binding to the default framebuffer. See also bindFramebuffer. gl.FRAGMENT_SHADER_DERIVATIVE_HINT GLenum gl.FASTEST, gl.NICEST or gl.DONT_CARE. See also hint. gl.MAX_3D_TEXTURE_SIZE GLint gl.MAX_ARRAY_TEXTURE_LAYERS ...
WebGLRenderingContext.getTexParameter() - Web APIs
dditionally available when using a WebGL 2 context gl.TEXTURE_BASE_LEVEL GLint Texture mipmap level Any int values. gl.TEXTURE_COMPARE_FUNC GLenum Comparison function gl.LEQUAL (default value), gl.GEQUAL, gl.LESS, gl.GREATER, gl.EQUAL, gl.NOTEQUAL, gl.ALWAYS, gl.NEVER. gl.TEXTURE_COMPARE_MODE GLenum Texture comparison mode gl.NONE (default value), gl.COMPARE_REF_TO_TEXTURE. gl.TEXTURE_IMMUTABLE_FORMAT GLboolean Immutability of the texture format and size true or false. gl.TEXTURE_IMMUTABLE_LEVELS GLuint ? Any uint values. gl.TEXTURE_MAX_LEVEL GLint Maximum texture mipmap array level Any int values. gl.TEXTURE_MAX_LOD GLfloat Texture...
WebGLRenderingContext.hint() - Web APIs
gl.FRAGMENT_SHADER_DERIVATIVE_HINT: Same as ext.FRAGMENT_SHADER_DERIVATIVE_HINT_OES mode Sets the behavior. The default value is gl.DONT_CARE. The possible values are: gl.FASTEST: The most efficient behavior should be used. gl.NICEST: The most correct or the highest quality option should be used. gl.DONT_CARE: There is no preference for this behavior. Return value None. Examples The following example hints that the quality of filtering when generating mipmap images should be most efficient instead of best quality. gl.hint(gl.GENERATE_MIPMAP_HINT, gl.FASTEST); Specifications Specification Status Comment WebGL 1.0The definition of 'hint' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definit...
WebGLRenderingContext.lineWidth() - Web APIs
widths other than 1.0 since there is no guarantee any user's browser will display any other width. As of January 2017 most implementations of WebGL only support a minimum of 1 and a maximum of 1 as the technology they are based on has these same limits. Syntax void gl.lineWidth(width); Parameters width A GLfloat specifying the width of rasterized lines. Default value: 1. Return value None. Examples Setting the line width: gl.lineWidth(5); Getting the line width: gl.getParameter(gl.LINE_WIDTH); Getting the range of available widths. Returns a Float32Array. gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE); Specifications Specification Status Comment WebGL 1.0The definition of 'lineWidth' in that specification. Recommendation Initial definition. ...
WebGLRenderingContext.linkProgram() - Web APIs
The WebGLRenderingContext interface's linkProgram() method links a given WebGLProgram, completing the process of preparing the GPU code for the program's fragment and vertex shaders. Syntax void gl.linkProgram(program); Parameters program The WebGLProgram to link. Return value None. Examples var program = gl.createProgram(); // Attach pre-existing shaders gl.attachShader(program, vertexShader); gl.attachShader(program, fragmentShader); gl.linkProgram(program); if ( !gl.getProgramParameter( program, gl.LINK_STATUS) ) { var info = gl.getProgramInfoLog(program); throw new Error('Could not compile WebGL program. \n\n' + info); } Specifications Specification Status Comment WebGL 1.0The definition of 'linkProgram' in that specification. Recommendatio...
WebGLRenderingContext.makeXRCompatible() - Web APIs
hich it will be displayed. If necessary, the WebGL layer may reconfigure the context to be ready to render to a different device than it originally was. This is useful if you have an application which can start out being presented on a standard 2D display but can then be transitioned to a 3D immersion system. Syntax let makeCompatPromise = webGLRenderingContext.makeXRCompatible(); Parameters None. Return value A Promise which successfully resolves once the WebGL context is ready to be used for rendering WebXR content. Exceptions This method doesn't throw traditional exceptions; instead, the promise rejects with one of the following errors as the value passed into the rejection handler: AbortError Switching the context over to the WebXR-compatible context failed. InvalidStateError...
WebGLRenderingContext.polygonOffset() - Web APIs
alue is written into the depth buffer. Syntax void gl.polygonOffset(factor, units); Parameters factor A GLfloat which sets the scale factor for the variable depth offset for each polygon. The default value is 0. units A GLfloat which sets the multiplier by which an implementation-specific value is multiplied with to create a constant depth offset. The default value is 0. Return value None. Examples The polygon offset fill is disabled by default. To enable or disable polygon offset fill, use the enable() and disable() methods with the argument gl.POLYGON_OFFSET_FILL. gl.enable(gl.POLYGON_OFFSET_FILL); gl.polygonOffset(2, 3); To check the current polygon offset factor or units, query the POLYGON_OFFSET_FACTOR and POLYGON_OFFSET_UNITS constants. gl.getParameter(gl.POLYGON_OFFSE...
WebGLRenderingContext.readPixels() - Web APIs
NED_INT_10F_11F_11F_REV gl.UNSIGNED_INT_5_9_9_9_REV pixels An ArrayBufferView object to read data into. The array type must match the type of the type parameter. Uint8Array for gl.UNSIGNED_BYTE. Uint16Array for gl.UNSIGNED_SHORT_5_6_5, gl.UNSIGNED_SHORT_4_4_4_4, or gl.UNSIGNED_SHORT_5_5_5_1. Float32Array for gl.FLOAT. dstOffset Optional Offset. Defaults to 0. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if format or type is not an accepted value. A gl.INVALID_OPERATION error is thrown if type is gl.UNSIGNED_SHORT_5_6_5 and format is not gl.RGB. type is gl.UNSIGNED_SHORT_4_4_4_4 and format is not gl.RGBA. type does not match the typed array type of pixels. A gl.INVALID_FRAMEBUFFER_OPERATION error is thrown if the currently bound...
WebGLRenderingContext.renderbufferStorage() - Web APIs
ext.SRGB8_ALPHA8_EXT: 8-bit sRGB and alpha. When using a WebGL 2 context and the EXT_color_buffer_float extension: gl.R16F gl.RG16F gl.RGBA16F gl.R32F gl.RG32F gl.RGBA32F gl.R11F_G11F_B10F width A GLsizei specifying the width of the renderbuffer in pixels. height A GLsizei specifying the height of the renderbuffer in pixels. Return value None. Examples gl.renderbufferStorage(gl.RENDERBUFFER, gl.RGBA4, 256, 256); Specifications Specification Status Comment WebGL 1.0The definition of 'renderbufferStorage' in that specification. Recommendation Initial definition for WebGL. OpenGL ES 2.0The definition of 'glRenderbufferStorage' in that specification. Standard Man page of the OpenGL ES 2 AP...
WebGLRenderingContext.sampleCoverage() - Web APIs
the WebGL API specifies multi-sample coverage parameters for anti-aliasing effects. Syntax void gl.sampleCoverage(value, invert); Parameters value A GLclampf which sets a single floating-point coverage value clamped to the range [0,1]. The default value is 1.0. invert A GLboolean which sets whether or not the coverage masks should be inverted. The default value is false. Return value None. Examples Multi-sampling is disabled by default. To enable or disable multi-sampling, use the enable() and disable() methods with the argument gl.SAMPLE_COVERAGE and gl.SAMPLE_ALPHA_TO_COVERAGE. gl.enable(gl.SAMPLE_COVERAGE); gl.sampleCoverage(0.5, false); To check the sample coverage values, query the SAMPLE_COVERAGE_VALUE and SAMPLE_COVERAGE_INVERT constants. gl.getParameter(gl.SAMPLE_COV...
WebGLRenderingContext.scissor() - Web APIs
inate for the lower left corner of the box. Default value: 0. y A GLint specifying the vertical coordinate for the lower left corner of the box. Default value: 0. width A non-negative Glsizei specifying the width of the scissor box. Default value: width of the canvas. height A non-negative Glsizei specifying the height of the scissor box. Default value: height of the canvas. Return value None. Exceptions If either width or height is a negative value, a gl.INVALID_VALUE error is thrown. Examples When the scissor test is enabled, only pixels within the scissor box can be modified by drawing commands. // turn on scissor test gl.enable(gl.SCISSOR_TEST); // set the scissor rectangle gl.scissor(x, y, width, height); // execute drawing commands in the scissor box (e.g. clear) // turn...
WebGLRenderingContext.shaderSource() - Web APIs
The WebGLRenderingContext.shaderSource() method of the WebGL API sets the source code of a WebGLShader. Syntax void gl.shaderSource(shader, source); Parameters shader A WebGLShader object in which to set the source code. source A DOMString containing the GLSL source code to set. Return value None. Examples var shader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(shader, originalSource); var source = gl.getShaderSource(shader); Specifications Specification Status Comment WebGL 1.0The definition of 'shaderSource' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glShaderSource' in that specification. Standard Man page of the (similar) OpenGL API. ...
WebGLRenderingContext.stencilFunc() - Web APIs
AYS: Always pass. ref A GLint specifying the reference value for the stencil test. This value is clamped to the range 0 to 2n -1 where n is the number of bitplanes in the stencil buffer. The default value is 0. mask A GLuint specifying a bit-wise mask that is used to AND the reference value and the stored stencil value when the test is done. The default value is all 1. Return value None. Examples The stencil testing is disabled by default. To enable or disable stencil testing, use the enable() and disable() methods with the argument gl.STENCIL_TEST. gl.enable(gl.STENCIL_TEST); gl.stencilFunc(gl.LESS, 0, 0b1110011); To get the current stencil function, reference value, or other stencil information, query the following constants with getParameter(). gl.getParameter(gl.STENCI...
WebGLRenderingContext.stencilFuncSeparate() - Web APIs
AYS: Always pass. ref A GLint specifying the reference value for the stencil test. This value is clamped to the range 0 to 2n -1 where n is the number of bitplanes in the stencil buffer. The default value is 0. mask A GLuint specifying a bit-wise mask that is used to AND the reference value and the stored stencil value when the test is done. The default value is all 1. Return value None. Examples The stencil testing is disabled by default. To enable or disable stencil testing, use the enable() and disable() methods with the argument gl.STENCIL_TEST. gl.enable(gl.STENCIL_TEST); gl.stencilFuncSeparate(gl.FRONT, gl.LESS, 0.2, 1110011); To get the current stencil function, reference value, or other stencil information, query the following constants with getParameter(). gl.getP...
WebGLRenderingContext.stencilMask() - Web APIs
both the front and back writing of individual bits in the stencil planes. The WebGLRenderingContext.stencilMaskSeparate() method can set front and back stencil writemasks to different values. Syntax void gl.stencilMask(mask); Parameters mask A GLuint specifying a bit mask to enable or disable writing of individual bits in the stencil planes. By default, the mask is all 1. Return value None. Examples gl.stencilMask(110101); To get the current stencil masks, query the STENCIL_WRITEMASK, STENCIL_BACK_WRITEMASK, or STENCIL_BITS constants. gl.getParameter(gl.STENCIL_WRITEMASK); // 110101 gl.getParameter(gl.STENCIL_BACK_WRITEMASK); // 110101 gl.getParameter(gl.STENCIL_BITS); // 0 Specifications Specification Status Comment WebGL 1.0The definition of 'stenc...
WebGLRenderingContext.stencilMaskSeparate() - Web APIs
e at the same time. Syntax void gl.stencilMaskSeparate(face, mask); Parameters face A GLenum specifying whether the front and/or back stencil writemask is updated. The possible values are: gl.FRONT gl.BACK gl.FRONT_AND_BACK mask A GLuint specifying a bit mask to enable or disable writing of individual bits in the stencil planes. By default, the mask is all 1. Return value None. Examples gl.stencilMaskSeparate(gl.FRONT, 110101); To get the current stencil masks, query the STENCIL_WRITEMASK, STENCIL_BACK_WRITEMASK, or STENCIL_BITS constants. gl.getParameter(gl.STENCIL_WRITEMASK); // 110101 gl.getParameter(gl.STENCIL_BACK_WRITEMASK); // 110101 gl.getParameter(gl.STENCIL_BITS); // 0 Specifications Specification Status Comment WebGL 1.0The de...
WebGLRenderingContext.stencilOp() - Web APIs
he default value is gl.KEEP. zfail A GLenum specifying the function to use when the stencil test passes, but the depth test fails. The default value is gl.KEEP. zpass A GLenum specifying the function to use when both the stencil test and the depth test pass, or when the stencil test passes and there is no depth buffer or depth testing is disabled. The default value is gl.KEEP. Return value None. Constants gl.KEEP Keeps the current value. gl.ZERO Sets the stencil buffer value to 0. gl.REPLACE Sets the stencil buffer value to the reference value as specified by WebGLRenderingContext.stencilFunc(). gl.INCR Increments the current stencil buffer value. Clamps to the maximum representable unsigned value. gl.INCR_WRAP Increments the current stencil buffer value. Wraps stencil buff...
WebGLRenderingContext.stencilOpSeparate() - Web APIs
he default value is gl.KEEP. zfail A GLenum specifying the function to use when the stencil test passes, but the depth test fails. The default value is gl.KEEP. zpass A GLenum specifying the function to use when both the stencil test and the depth test pass, or when the stencil test passes and there is no depth buffer or depth testing is disabled. The default value is gl.KEEP. Return value None. Constants gl.KEEP Keeps the current value. gl.ZERO Sets the stencil buffer value to 0. gl.REPLACE Sets the stencil buffer value to the reference value as specified by WebGLRenderingContext.stencilFunc(). gl.INCR Increments the current stencil buffer value. Clamps to the maximum representable unsigned value. gl.INCR_WRAP Increments the current stencil buffer value. Wraps stencil buff...
WebGLRenderingContext.texImage2D() - Web APIs
SIGNED_INT_24_8_WEBGL. A Float32Array must be used if type is gl.FLOAT. ImageData, HTMLImageElement, HTMLCanvasElement, HTMLVideoElement, ImageBitmap. offset (WebGL 2 only) A GLintptr byte offset into the WebGLBuffer's data store. Used to upload data to the currently bound WebGLTexture from the WebGLBuffer bound to the PIXEL_UNPACK_BUFFER target. Return value None. Examples gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image); Specifications Specification Status Comment WebGL 1.0The definition of 'texImage2D' in that specification. Recommendation Initial definition for WebGL. OpenGL ES 2.0The definition of 'glTexImage2D' in that specification. Standard Man page of the (similar) OpenGL ...
WebGLRenderingContext.texSubImage2D() - Web APIs
or ext.HALF_FLOAT_OES. A Float32Array must be used if type is gl.FLOAT. ImageData, HTMLImageElement, HTMLCanvasElement, HTMLVideoElement, ImageBitmap. offset (WebGL 2 only) A GLintptr byte offset into the WebGLBuffer's data store. Used to upload data to the currently bound WebGLTexture from the WebGLBuffer bound to the PIXEL_UNPACK_BUFFER target. Return value None. Examples gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, image); Specifications Specification Status Comment WebGL 1.0The definition of 'texSubImage2D' in that specification. Recommendation Initial definition for WebGL. OpenGL ES 2.0The definition of 'glTexSubImage2D' in that specification. Standard Man page of the (similar) O...
WebGLRenderingContext.uniform[1234][fi][v]() - Web APIs
he uniform variable. Possible types: A floating point Number for floating point values (methods with "f"). A sequence of floating point numbers (for example a Float32Array or an Array of numbers) for floating point vector methods (methods with "fv"). An integer Number for integer values (methods with "i"). An Int32Array for integer vector methods (methods with "iv"). Return value None. Examples gl.uniform1f(u_alpha, 0.8); Specifications Specification Status Comment WebGL 1.0The definition of 'uniform' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glUniform' in that specification. Standard Main page of the OpenGL API. ...
WebGLRenderingContext.useProgram() - Web APIs
The WebGLRenderingContext.useProgram() method of the WebGL API sets the specified WebGLProgram as part of the current rendering state. Syntax void gl.useProgram(program); Parameters program A WebGLProgram to use. Return value None. Examples var program = gl.createProgram(); // Attach pre-existing shaders gl.attachShader(program, vertexShader); gl.attachShader(program, fragmentShader); gl.linkProgram(program); gl.useProgram(program); Specifications Specification Status Comment WebGL 1.0The definition of 'useProgram' in that specification. Recommendation Initial definition. OpenGL ES 2.0The definition of 'glUseProgram' in that specification. Standard Man page of the OpenGL API. ...
WebGLRenderingContext.validateProgram() - Web APIs
The WebGLRenderingContext.validateProgram() method of the WebGL API validates a WebGLProgram. It checks if it is successfully linked and if it can be used in the current WebGL state. Syntax void gl.validateProgram(program); Parameters program A WebGLProgram to validate. Return value None. Examples var program = gl.createProgram(); // Attach pre-existing shaders gl.attachShader(program, vertexShader); gl.attachShader(program, fragmentShader); gl.linkProgram(program); gl.validateProgram(program); if ( !gl.getProgramParameter( program, gl.LINK_STATUS) ) { var info = gl.getProgramInfoLog(program); throw 'Could not compile WebGL program. \n\n' + info; } gl.useProgram(program); Specifications Specification Status Comment WebGL 1.0The definition of 'va...
WebGLRenderingContext.vertexAttrib[1234]f[v]() - Web APIs
b1fv(index, value); void gl.vertexAttrib2fv(index, value); void gl.vertexAttrib3fv(index, value); void gl.vertexAttrib4fv(index, value); Parameters index A GLuint specifying the position of the vertex attribute to be modified. v0, v1, v2, v3 A floating point Number for the vertex attribute value. value A Float32Array for floating point vector vertex attribute values. Return value None. Description While vertex attributes are usually used to specify values which are different for each vertex (using vertexAttribPointer), it can be useful to specify a constant value. For example, if you have a shader which has a color vertex attribute, but you want to draw everything in a single color, you can use vertexAttrib to achieve that without creating a buffer filled with only one value...
WebGLRenderingContext.vertexAttribPointer() - Web APIs
255. If stride is 0, the attribute is assumed to be tightly packed, that is, the attributes are not interleaved but each attribute is in a separate block, and the next vertex' attribute follows immediately after the current vertex. offset A GLintptr specifying an offset in bytes of the first component in the vertex attribute array. Must be a multiple of the byte length of type. Return value None. Exceptions A gl.INVALID_VALUE error is thrown if offset is negative. A gl.INVALID_OPERATION error is thrown if stride and offset are not multiples of the size of the data type. A gl.INVALID_OPERATION error is thrown if no WebGLBuffer is bound to the ARRAY_BUFFER target. When using a WebGL 2 context, a gl.INVALID_OPERATION error is thrown if this vertex attribute is defined as a integer in...
WebGLRenderingContext.viewport() - Web APIs
r left corner of the viewport origin. Default value: 0. y A GLint specifying the vertical coordinate for the lower left corner of the viewport origin. Default value: 0. width A non-negative Glsizei specifying the width of the viewport. Default value: width of the canvas. height A non-negative Glsizei specifying the height of the viewport. Default value: height of the canvas. Return value None. Errors thrown If either width or height is a negative value, a gl.INVALID_VALUE error is thrown. Examples When you first create a WebGL context, the size of the viewport will match the size of the canvas. However, if you resize the canvas, you will need to tell the WebGL context a new viewport setting. In this situation, you can use gl.viewport. gl.viewport(0, 0, canvas.width, canvas.height...
WebGLRenderingContext - Web APIs
esult. In the second, the square has the wrong shape, size, and position. ...
Basic scissoring - Web APIs
been satisfactorily tweaked, we execute the drawing command (in this case, clear()) that starts the processing of fragments down the graphics pipeline. ...
Boilerplate 1 - Web APIs
ee Function). The function declaration and invocation will also be hidden. HTML <p>[ Some descriptive text about the example. ]</p> <button>[ Optional button element. ...
Canvas size and WebGL - Web APIs
ult. In the second, the square has the wrong shape, size, and position. ...
Clearing by clicking - Web APIs
The event handler removes // itself, because it only needs to run once. window.removeEventListener(evt.type, setupWebGL, false); // Adding the same click ev...
Clearing with colors - Web APIs
e, clearColor() takes four arguments. <p>A very simple WebGL program that shows some color.</p> <!-- Text within a canvas element is displayed only if canvas is not supported. --> <canvas>Your browser does not seem to support HTML5 canvas.</canvas> body { text-align : center; } canvas { display : block; width : 280px; height : 210px; margin : auto; padding : 0; border : none; background-color : black; } // Run everything inside window load event handler, to make sure // DOM is fully loaded and styled before trying to manipulate it, // and to not mess up the global scope. We are giving the event // handler a name (setupWebGL) so that we can refer to the // function object within the function itself. window.addEventListener("load", function setupWebGL (evt) { "us...
Color masking - Web APIs
the color mask. ...
Hello GLSL - Web APIs
ut remember to read through the explanations and code on this page, before moving on to the next. Hello World program in GLSL A very simple first shader program. ...
Hello vertex attributes - Web APIs
ow to send input to a shader program by saving data in GPU memory. <p>First encounter with attributes and sending data to GPU. ...
Raining rectangles - Web APIs
rames, and keeping the animation responsive to user input. Here, the game loop is implemented using timeouts. <p>You caught <strong>0</strong>. ...
Scissor animation - Web APIs
var gl, color = getRandomColor(), position; function setupAnimation (evt) { window.removeEv...
Simple color animation - Web APIs
var timer; // Click event handlers. var button = document.que...
Textures from code - Web APIs
objects. Drawing textures with code Texturing a point sprite with calculations done per-pixel in the fragment shader. <p>Texture from code. ...
WebGL constants - Web APIs
OBJECT_TYPE 0x8CD0 FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 COLOR_ATTACHMENT0 0x8CE0 DEPTH_ATTACHMENT 0x8D00 STENCIL_ATTACHMENT 0x8D20 DEPTH_STENCIL_ATTACHMENT 0x821A NONE 0 FRAMEBUFFER_COMPLETE 0x8CD5 FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9 FRAMEBUFFER_UNSUPPORTED 0x8CDD FRAMEBUFFER_BINDING 0x8CA6 RENDERBUFFER_BINDING 0x8CA7 MAX_RENDERBUFFER...
Taking still photos with WebRTC - Web APIs
t available.</video> <button id="startbutton">Take photo</button> </div> This is straightforward, and we'll see how it ties together when we get into the JavaScript code. Next, we have a <canvas> element into which the captured frames are stored, potentially manipulated in some way, and then converted into an output image file. 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 stage. We also have an <img> element into which we will draw the image -- this is the final display shown to the user. <canvas id="canvas"> </canvas> <div class="output"> <img id="photo" alt="The screen capture will appear in this box."> </div> That's all of the relevant HTML. The rest is just som...
Web Video Text Tracks Format (WebVTT) - Web APIs
TTRegion object which can then be used for containing the multiple cues. There are several properties of VTTRegion which are width, lines, regionAnchorX, RegionAnchorY, viewportAnchorX, viewportAnchorY and scroll that can be used to specify the look and feel of this VTT region. ...
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
epresenting one perspective on the scene. In current WebXR implementations, there will never be more than two entries in this list: one describing the position and viewing angle of the left eye and another doing the same for the right. You can tell which eye a given XRView represents by checking the value of its eye property, which is a string whose value is left or right (a third possible value, none, theoretically may be used to represent another point of view, but support for this is not entirely available in the current API). Example frame callback A fairly basic (but typical) callback for rendering frames might look like this: function myAnimationFrameCallback(time, frame) { let adjustedRefSpace = applyPositionOffsets(xrReferenceSpace); let pose = frame.getViewerPose(adjustedRefSpa...
Advanced techniques: Creating and sequencing audio - Web APIs
ading screen that disappears when the file has been fetched and decoded, then we can allow the scheduler to start using the play button click event. ...
Controlling multiple parameters with ConstantSourceNode - Web APIs
"0.0" max="1.0" step="0.01" value="0.8" name="volume" id="volumeControl"> </div> </div> <p>Use the button above to start and stop the tones, and the volume control to change the volume of the notes E and G in the chord.</p> CSS .controls { width: 400px; position: relative; vertical-align: middle; height: 44px; } .button { font-size: 32px; cursor: pointer; user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -o-user-select: none; } .right { width: 50%; font: 14px "Open Sans", "Lucida Grande", "Arial", sans-serif; position: absolute; right: 0; display: table-cell; vertical-align: middle; } .right span { vertical-align: middle; } .right input { vertical-align: baseline; } .left { width: 50%; posit...
Using IIR filters - Web APIs
to filter from (or cut off). There's more information on how biquad filters work here. When you are using an IIRFilterNode instead of a BiquadFilterNode you are creating the filter yourself, rather than just choosing a pre-programmed type. So you can create a highpass filter, or a lowpass filter, or a more bespoke one. And this is where the IIR filter node is useful -- you can create your own if none of the alaready available settings is right for what you want. As well as this, if your audio graph needed a highpass and a bandpass filter within it, you could just use one IIR filter node in place of the two biquad filter nodes you would otherwise need for this. With the IIRFIlter node it's up to you to set what feedforward and feedback values the filter needs -- this determines the characteri...
Attestation and Assertion - Web APIs
rmat. Android Key Attestation - one of the features added in Android O was Android Key Attestation, which enables the Android operating system to attest to keys. Android SafetyNet -prior to Android Key Attestation, the only option for Android devices was to create Android SafetyNet attestations FIDO U2F - security keys that implement the FIDO U2F standard use this format none - browsers may prompt users whether they want a site to be allowed to see their attestation data and/or may remove attestation data from the authenticator's response if the `attestation` parameter in `navigator.credentials.create()` is set to `none` The purpose of attestation is to cryptographically prove that a newly generated key pair came from a specific device. This provides a root of tru...
Window: DOMContentLoaded event - Web APIs
The DOMContentLoaded event fires when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading. Bubbles Yes Cancelable Yes (although specified as a simple event that isn't cancelable) Interface Event Event handler property None The original target for this event is the Document that has loaded. You can listen for this event on the Window interface to handle it in the capture or bubbling phases. For full details on this event please see the page on the Document: DOMContentLoaded event. A different event, load, should be used only to detect a fully-loaded page. It is a common mistake to use load where DOMContentLoaded would be more appropriate. Examples Bas...
Window.back() - Web APIs
Web › API › Window › back
The obsolete and non-standard method back() on the window interface returns the window to the previous item in the history. This was a Firefox-specific method and was removed in Firefox 31. Note: Use the standard history.back method instead. Syntax window.back(); Parameters None. Return value undefined. Example This simple example handles a click on a "Back" button by calling back(). function handleMyBackButton() { if (canGoBack) { window.back(); } } Specification This is not part of any specification. ...
Window: clipboardchange event - Web APIs
The clipboardchange event fires when the system clipboard content changes. Bubbles No Cancelable No Interface ClipboardEvent Event handler property None Examples JavaScript window.addEventListener('clipboardchange', () => { console.log('Clipboard contents changed'); }); Specifications Specification Status Clipboard API and eventsThe definition of 'clipboardchange event' in that specification. Working Draft ...
Window.content - Web APIs
Web › API › Window › content
time, and you should use content in any new code. Syntax var windowObject = window.content; Example Executing the following code in a chrome XUL window with a <browser type="content-primary"/> element in it draws a red border around the first div on the page currently displayed in the browser: content.document.getElementsByTagName("div")[0].style.border = "solid red 1px"; Specification None. See also Working with windows in chrome code When accessing content documents from privileged code, be aware of XPCNativeWrappers. ...
Window: error event - Web APIs
ad-img" /> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> CSS body { display: grid; grid-template-areas: "control log"; } .controls { grid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } button { height: 2rem; margin: .5rem; } img { width: 0; height: 0; } JS const log = document.querySelector('.event-log-contents'); window.addEventListener('error', (event) => { log.textContent = log.textContent + `${event.type}: ${event.message}\n`; console.log(event) }); const scriptError = document.querySelector('#script-error'); s...
Window.forward() - Web APIs
Web › API › Window › forward
Moves the window one document forward in history. This was a Firefox-specific method and was removed in Firefox 31. Note: Use the standard window.history.forward() method instead. Syntax window.forward(); Parameters None Return value undefined. Example function goForward() { if (canGoForward) { window.forward(); } } Specification This is not part of any specification. ...
Window.getDefaultComputedStyle() - Web APIs
with pseudo-elements The getDefaultComputedStyle() method can pull style info from pseudo-elements (e.g., ::before or ::after). <style> h3:after { content: ' rocks!'; } </style> <h3>generated content</h3> <script> var h3 = document.querySelector('h3'), result = getDefaultComputedStyle(h3, ':after').content; console.log('the generated content is: ', result); // returns 'none' </script> Notes The returned value is, in certain known cases, expressly incorrect by deliberate intent. In particular, to avoid the so called CSS History Leak security issue, browsers may expressly "lie" about the used value for a link and always return values as if a user has never visited the linked site, and/or limit the styles that can be applied using the :visited pseudo-selector. See h...
Window.getSelection() - Web APIs
returns a Selection object representing the range of text selected by the user or the current position of the caret. Syntax selection = window.getSelection(); Return value A Selection object. When cast to string, either by appending an empty string ("") or using Selection.toString(), this object returns the text selected. When called on an <iframe> that is not displayed (eg. where display: none is set) Firefox will return null, whereas other browsers will return a Selection object with Selection.type set to None. Examples function foo() { var selObj = window.getSelection(); alert(selObj); var selRange = selObj.getRangeAt(0); // do stuff with the range } Notes String representation of the Selection object In JavaScript, when an object is passed to a function expectin...
Window: load event - Web APIs
Web › API › Window › load event
d</button> </div> <div class="event-log"> <label>Event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> CSS body { display: grid; grid-template-areas: "control log"; } .controls { grid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } #reload { height: 2rem; } JS const log = document.querySelector('.event-log-contents'); const reload = document.querySelector('#reload'); reload.addEventListener('click', () => { log.textContent =''; window.setTimeout(() => { window.location.reload(true); }, 200); }); window.addEventListener('load', (event) => { log.textContent = lo...
Privileged features - Web APIs
nt windows are not implemented on MacOS X, this option will be ignored. The dependent feature is currently under revision to be removed (bug 214867) In MSIE 6, the nearest equivalent to this feature is the showModelessDialog() method. chrome If on, the page is loaded as window's only content, without any of the browser's interface elements. There will be no context menu defined by default and none of the standard keyboard shortcuts will work. The page is supposed to provide a user interface of its own, usually this feature is used to open XUL documents (standard dialogs like the JavaScript Console are opened this way). dialog The dialog feature removes all icons (restore, minimize, maximize) from the window's titlebar, leaving only the close button. Mozilla 1.2+ and Netscape 7.1 will r...
Window.open() - Web APIs
Web › API › Window › open
xcept that it will not have access back to the originating window (via Window.opener -- it returns null). In addition, the window.open() call will also return null, so the originating window will not have access to the new one either. This is useful for preventing untrusted sites opened via window.open() from tampering with the originating window, and vice versa. Note that when noopener is used, nonempty target names other than _top, _self, and _parent are all treated like _blank in terms of deciding whether to open a new window/tab. This is supported in modern browsers including Chrome, and Firefox 52+. See rel="noopener" for more information and for browser compatibility details, including information about ancillary effects. noreferrer If this feature is set, the request to load the c...
Window: transitionend event - Web APIs
The transitionend event is fired when a CSS transition has completed. In the case where a transition is removed before completion, such as if the transition-property is removed or display is set to none, then the event will not be generated. Bubbles Yes Cancelable Yes Interface TransitionEvent Event handler property ontransitionend The transitionend event is fired in both directions - as it finishes transitioning to the transitioned state, and when it fully reverts to the default or non-transitioned state. If there is no transition delay or duration, if both are 0s or neither is declared, there is no transition, and none of the transition events are fired. If the transitioncancel event is fired, the transitionend event will not fire. Th...
WindowClient.focus() - Web APIs
Return value A Promise that resolves to the existing WindowClient. ...
self.createImageBitmap() - Web APIs
rectangle from which the ImageBitmap will be extracted. This value can be negative. sh The height of the rectangle from which the ImageBitmap will be extracted. This value can be negative. options Optional An object that sets options for the image's extraction. The available options are: imageOrientation: Specifies whether the image should be presented as is or flipped vertically. Either none (default) or flipY. premultiplyAlpha: Specifies whether the bitmap's color channels should be premultiplied by the alpha channel. One of none, premultiply, or default (default). colorSpaceConversion: Specifies whether the image should be decoded using color space conversion. Either none or default (default). The value default indicates that implementation-specific behavior is used. resizeWi...
Worker.terminate() - Web APIs
Web › API › Worker › terminate
Returns Void. Example The following code snippet shows creation of a Worker object using the Worker() constructor, which is then immediately terminated. ...
WorkerGlobalScope.importScripts() - Web APIs
The importScripts() method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope. Syntax self.importScripts('foo.js'); self.importScripts('foo.js', 'bar.js', ...); Parameters A comma-separated list of DOMString objects representing the scripts to be imported. These paths are relative to html document base URL. Return value None. Exceptions NetworkError Imported scripts were not served with a valid JavaScript MIME type (i.e. text/javascript). Example If you had some functionality written in a separate script called foo.js that you wanted to use inside worker.js, you could import it using the following line: importScripts('foo.js'); importScripts() and self.importScripts() are effectively equivalent -- both represent importScripts()...
WritableStream.getWriter() - Web APIs
Return value A WritableStreamDefaultWriter object instance. Exceptions TypeError The stream you are trying to create a writer for is not a WritableStream. ...
WritableStreamDefaultController - Web APIs
The WritableStreamDefaultController interface of the the Streams API represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. Constructor None. WritableStreamDefaultController instances are created automatically during WritableStream construction. Properties None. Methods WritableStreamDefaultController.error() Causes any future interactions with the associated stream to error. Examples const writableStream = new WritableStream({ start(controller) { // do stuff with controller // error stream if necessary controller.error('My stream is broken'); }, write(chunk, controller) { ... }, close(controller)...
WritableStreamDefaultWriter.close() - Web APIs
The close() method of the WritableStreamDefaultWriter interface closes the associated writable stream. The underlying sink will finish processing any previously-written chunks, before invoking the close behavior. During this time any further attempts to write will fail (without erroring the stream). Syntax var promise = writableStreamDefaultWriter.close(); Parameters None. Return value A Promise, which fulfills with the undefined if all remaining chunks were successfully written before the close, or rejects with an error if a problem was encountered during the process. Exceptions TypeError The stream you are trying to close is not a WritableStream. Examples The following example shows the creation of a WritableStream with a custom sink and an API-supplied queuing strategy. ...
WritableStreamDefaultWriter.releaseLock() - Web APIs
) method of the WritableStreamDefaultWriter interface releases the writer's lock on the corresponding stream. After the lock is released, the writer is no longer active. If the associated stream is errored when the lock is released, the writer will appear errored in the same way from now on; otherwise, the writer will appear closed. Syntax writableStreamDefaultWritere.releaseLock() Parameters None. Return value undefined. Examples const writableStream = new WritableStream({ write(chunk) { ... }, close() { ... }, abort(err) { ... } }, queuingStrategy); ... const writer = writableStream.getWriter(); ... // release writer's lock on the stream when desired writer.releaseLock(); Specifications Specification Status Comment StreamsThe defi...
XMLHttpRequest() - Web APIs
Return value A new XMLHttpRequest object. The object must be prepared by at least calling open() to initialize it before calling send() to send the request to the server. Non-standard Firefox syntax Firefox 16 added a non-standard parameter to the constructor that can enable anonymous mode (see bug 692677). ...
XMLHttpRequest.abort() - Web APIs
Return value undefined Example This example begins loading content from the MDN home page, then due to some condition, aborts the transfer by calling abort(). ...
XMLHttpRequest.getAllResponseHeaders() - Web APIs
etAllResponseHeaders() returns all the response headers, separated by CRLF, as a string, or returns null if no response has been received. If a network error happened, an empty string is returned. Note: For multipart requests, this returns the headers from the current part of the request, not from the original channel. Syntax var headers = XMLHttpRequest.getAllResponseHeaders(); Parameters None. Return value A ByteString representing all of the response's headers (except those whose field name is Set-Cookie or Set-Cookie2) separated by CRLF, or null if no response has been received. If a network error happened, an empty string is returned. An example of what a raw header string looks like: date: Fri, 08 Dec 2017 21:04:30 GMT\r\n content-encoding: gzip\r\n x-content-type-options: nos...
XMLHttpRequestEventTarget - Web APIs
t"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/XMLHttpRequestEventTarget" target="_top"><rect x="151" y="1" width="250" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="276" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">XMLHttpRequestEve...
XPathNSResolver.lookupNamespaceURI() - Web APIs
The lookupNamespaceURI method looks up the namespace URI associated to the given namespace prefix within an XPath expression evaluated by the XPathEvaluator interface. Syntax DOMString XPathNSResolver.lookupNamespaceURI(prefix); Parameters prefix A DOMString representing the prefix to look for. Return value A DOMString representing the associated namespace URI or null if none is found. Specifications Specification Status Comment Document Object Model (DOM) Level 3 XPath SpecificationThe definition of 'XPathNSResolver.lookupNamespaceURI()' in that specification. Recommendation Initial definition ...
XREnvironmentBlendMode - Web APIs
onmentBlendMode defines strings used to identify if and how to blend the rendered virtual content with the real world. Its values are used by the XRSession interface's environmentBlendMode property. Values opaque The rendered image is drawn without allowing any pass-through imagery. This is primarily used by fully-immersive VR headsets, which totally obscure the surrounding environment, with none of the real world shown to the user at all. The alpha values specified in the XRSession's renderState property's baseLayer field are ignored since the alpha values for the rendered imagery are all treated as being 1.0 (fully opaque). additive Primarily used by AR devices with transparent lenses which directly allow reality to pass through to the user's eyes, the additive blending mode is design...
XRFrameRequestCallback - Web APIs
ain the current time and the current XRFrame. Syntax function XRFrameRequestCallback(time, XRFrame){ // Process XRFrame here } XRSession.requestAnimationFrame(XRFrameRequestCallback) Parameters DOMHighResTimeStamp A timestamp corresponding to the returned XRFrame. XRFrame An XRFrame representing a snapshot of the state of all of the tracked objects for the XRSession. Return Value None. Specifications Specification Status Comment WebXR Device APIThe definition of 'XRFrameRequestCallback' in that specification. Working Draft Initial definition. ...
XRHandedness - Web APIs
left The input controller is being held in, worn on, or is attached to the user's left hand. ...
XRInputSource - Web APIs
r as if they're held in the hand indicated by handedness. The orientation of this space indicates the angle at which the hand is gripping the object. Read on in the main article on gripSpace for more details on how to use this space. handednessRead only A DOMString that indicates which hand the device represented by this XRInputSource is being used in, if any. The value will be left, right, or none. profilesRead only An array of DOMString objects, each specifying the name of an input profile describing the preferred visual representation and behavior of this input source. targetRayModeRead only A DOMString indicating the methodology used to produce the target ray: gaze, tracked-pointer, or screen. targetRaySpaceRead only An XRSpace object defining the origin of the target ray a...
XRInputSourceArray.entries() - Web APIs
) method returns a JavaScript iterator which can then be used to iterate over the key/value pairs in the input source array. Each item in the array is an XRInputSource object. Most frequently, you will use this in tandem with statements such as for...of. Syntax let inputSourceIterator = xrInputSourceArray.entries(); for (let entry of xrInputSourceArray.entries()) { /* ... */ } Parameters None. Return value An iterator which can be used to walk through the list of XRInputSource objects included in the input source array. Examples This example snippet gets the list of inputs for a session and tries to handle each type of input device it supports using. let sources = xrSession.inputSources; for (let input of sources.entries()) { if (input.gamepad) { checkGamepad(input.gamepad...
XRInputSourceArray.keys() - Web APIs
Return value A JavaScript iterator that can be used to walk through the keys for each entry in the list of input sources. The values returned by the iterator are the indexes of each entry in the list; that is, the numbers 0, 1, 2, and so forth through the index of the last item in the list. ...
XRInputSourceArray.values() - Web APIs
Return value A JavaScript iterator that can be used to walk through the list of XRInputSource objects in the array, starting with the first entry (at index 0) and proceeding straight through the list. Examples This example snippet walks through each input and calls the function checkInput() with each returned value. ...
XRReferenceSpace - Web APIs
blishes the edges of the area the user is able to move around in, whether due to physical obstacles or due to limitations of the XR hardware. See the article Using bounded reference spaces to protect the viewer for more on using boundaries to keep the user from colliding with obstacles both physical and virtual. Properties In addition to the properties inherited from XRSpace (of which there are none at this time), XRReferenceSpace also inherits the properties of EventTarget. XRReferenceSpace defines no additional properties. Methods In addition to the methods inherited from its parent interface, XRSpace (there are none at this time), XRReferenceSpace inherits methods from EventTarget. XRReferenceSpace also provides the following methods. getOffsetReferenceSpace() Creates and returns ...
XRSession.cancelAnimationFrame() - Web APIs
The cancelAnimationFrame() method of the XRSession interface cancels an animation frame which was previously requested by calling requestAnimationFrame. Syntax xrSession.cancelAnimationFrame(handle); Parameters handle The unique value returned by the call to requestAnimationFrame() that previously scheduled the animation callback. Return value None. Usage notes This function has no effect if the specified handle cannot be found. Example In the example below we see code which starts up a WebXR session if immersive VR mode is supported. Once started, the session schedules its first frame to be rendered by calling requestAnimationFrame(). The pauseXR() function shown at the bottom can be called to suspend the WebVR session, in essence, by canceling any pending animation...
XRSession.end() - Web APIs
Web › API › XRSession › end
Return value A promise that resolves without a value after any platform-specific steps related to shutting down the session have completed. You can use the promise to do things like update UI elements to reflect the shut down connection, trigger application shut down, or whatever else you might need to do. ...
XRSession.environmentBlendMode - Web APIs
e value is one of the strings found in the enumerated type XREnvironmentBlendMode, defining if--and if so, how--virtual, rendered content is overlaid atop the image of the real world. Permitted values are: opaque The rendered image is drawn without allowing any pass-through imagery. This is primarily used by fully-immersive VR headsets, which totally obscure the surrounding environment, with none of the real world shown to the user at all. The alpha values specified in the XRSession's renderState property's baseLayer field are ignored since the alpha values for the rendered imagery are all treated as being 1.0 (fully opaque). additive Primarily used by AR devices with transparent lenses which directly allow reality to pass through to the user's eyes, the additive blending mode is design...
XRSession.updateRenderState() - Web APIs
e default field of view, in radians, to be used when computing the projection matrix for an inline XRSession. The projection matrix calculation also takes into account the output canvas's aspect ratio. This property must not be specified for immersive sessions, so the value is null by default for immersive sessions. The default value is otherwise ? * 0.5 (half of the value of pi). Return value None. Exceptions This method may throw any of the following exceptions. These are true exceptions, since this method does not return a promise. InvalidStateError This may occur for one of the following reasons: The XRSession has already ended, so you cannot change its render state. The baseLayer specified in newState was created by an XRSession other than the one on which updateRenderSt...
XRSessionInit - Web APIs
optionalFeatures Optional An array of values identifying features which the returned XRSession may optionally support. ...
XRView.eye - Web APIs
Web › API › XRView › eye
The XRView interface's read-only eye property is a string taken from the XREye enumerated type, indicating which eye's viewpoint the XRView represents: left or right. For views which represent neither eye, such as monoscopic views, this property's value is none. Syntax let eye = xrView.eye; Value A DOMString whose value is one of the strings enumerated by the XREye type: left The XRView represents the point-of-view of the viewer's left eye. right The view represents the viewer's right eye. none The XRView describes a monoscopic view, or the view otherwise doesn't represent a particular eye's point-of-view. Usage notes The primary purpose of this property is to allow the correct area of any pre-rendered stereo content to be presented to the correct eye. For dynamically-render...
XRView - Web APIs
Web › API › XRView
r's eyes. This allows the two views, when projected in isolation into the appropriate eyes, to simulate a 3D world. Properties eye Read only Which of the two eyes (left) or (right) for which this XRView represents the perspective. This value is used to ensure that any content which is pre-rendered for presenting to a specific eye is distributed or positioned correctly. The value can also be none if the XRView is presenting monoscopic data (such as a 2D image, a full-screen view of text. or a close-up view of something that doesn't need to appear in 3D). projectionMatrix Read only The projection matrix that will transform the scene to appear correctly given the point-of-view indicated by eye. This matrix should be used directly in order to avoid presentation distortions that may lead t...
XSLTProcessor - Web APIs
heets from the XSLTProcessor. Properties Non-Web-exposed properties The following properties are [ChromeOnly] and not exposed to Web content: [ChromeOnly] attribute unsigned long XSLTProcessor.flags Flags that tweak the behavior of the processor. Not reset by calling XSLTProcessor.reset(). Default value: 0 Possible values are: Name Value Effect (None) 0 None DISABLE_ALL_LOADS 1 Disable loading external documents (via e.g. <xsl:import> and document()) Examples Basic example Advanced example Additional example Specifications Not part of any specification. This is a proprietary interface that originated in Gecko. Gecko IDL XSLTProcessor.webidl nsIXSLTProcessor.idl ...
Using the alert role - Accessibility
existing alert can be "reused" multiple times. Note: In most cases this approach is not recommended, because it's not ideal to hide error or alert text that is currently not applicable. Users of older assistive technology may still be able to perceive the alert text even when the alert does not currently applies, causing users to incorrectly believe that there is a problem. ...
Using the presentation role - Accessibility
> </li> <li role="presentation"> <a role="tab" href="#">Tab 2</a> </li> <li role="presentation"> <a role="tab" href="#">Tab 3</a> </li> </ul> Working Examples: Notes ARIA attributes used Related ARIA techniques Compatibility TBD: Add support information for common UA and AT product combinations Additional resources Using Aria - 2.9 Use of Role=presentation or Role=none: https://www.w3.org/TR/using-aria/#presentation ...
Using ARIA: Roles, states, and properties - Accessibility
optional child roles. ...
ARIA Test Cases - Accessibility
its ordinary highlight color mechanism. Fail - - VoiceOver (Leopard) n/a n/a - fail Window-Eyes Fail Fail - - NVDA Pass n/a - - Zoom (Leopard) pass n/a pass pass ZoomText - - - - Orca - - - - describedby aria-describedby aria-describedby with display: none aria-describedby with visibility: hidden aria-describedby on img's with role="button" Expected AT Behavior: When the textfield is focused, this description should be spoken after the label "Minutes": "Allows you to specify the number of minutes of inactivity after which your computer should shut down." (AL) The describedby text should be spoken whether it is hidden or not. (AL) Alternativ...
ARIA: tabpanel role - Accessibility
at nicely shows a typical usage of the property, then perhaps some more complex examples. <div role="tablist"> <div role="tab" aria-selected="true" aria-controls="tabpanel-id" id="tab-id" tabindex="0">Tab label</div> Accessibility concerns Optionally, warn of any potential accessibility concerns that exist with using this property, and how to work around them. Remove this section if there are none to list. Best practices Optionally, here list any best practices that exist for this role. Remove the section if none exist. Added benefits Any additional benefits this feature has for non-typical screen reader users, like Google or mobile speech recognition. Specifications Specification Status Accessible Rich Internet Applications (WAI-ARIA) 1.1The definition of 'tabpa...
ARIA: banner role - Accessibility
n. Each page may have a banner landmark, but each page should be limited to only one header with the role of banner. In the case of a page containing nested document and/or application roles, each nested document or application role may also have one banner landmark. If a page includes more than one banner landmark, each should have a unique label. Associated ARIA roles, states, and properties None Keyboard interactions None Required JavaScript features None Examples Here's a fake simple banner with a skip to navigation link, a logo, a title and a subtitle. As this is the main header for the site, we've added the banner landmark role to the container element. <div role="banner"> <a href="#nav" id="skipToMenu" class="skiptocontent">Skip To Keyboard Navigation</a> <img src="images/...
ARIA: document role - Accessibility
collapsible. tabindex="0" Used to make it focusable so the assistive technology user can tab to it and start reading right away. Keyboard interactions The element should be made focusable by setting the tabindex="0" attribute / value pair on it. This way, the user can tab to it, reading mode is invoked automatically, and the content can be read right away. Required JavaScript features None, except as required by any attributes. For example, if the document is collapsible, then the state and the value of aria-expanded must be maintained. Examples An example is Gmail and the single conversation view. GMail is a web application. When in GMail, most user agent interactions are usurped by the application. However, when the Keyboard focus is set on the starting heading on a single conv...
ARIA: feed role - Accessibility
article. Each article element has aria-posinset set to a value that represents its position in the feed and an aria-setsize set to a value that represents either the total number of articles that have been loaded or the total number in the feed, depending on which value is more helpful to users. If the total number in the feed is not known, set aria-setsize="-1". Required JavaScript features None, except as required by any attributes. For example, setting aria-busy to true during the update operation if needed, and then to false upon completion. Examples Example Implementation of Feed Pattern Specifications Specification Status Accessible Rich Internet Applications (WAI-ARIA) 1.1The definition of 'feed' in that specification. Recommendation Screen reader...
ARIA: List role - Accessibility
ll example. Associated WAI-ARIA Roles, States, and Properties listitem A single item in a list or directory. Elements with role listitem can only be found in an element with the role list or group. group A collection of related objects, limited to list items when nested in a list, not important enough to have their own place in a pages table of contents. Keyboard Interactions None. Required JavaScript features None. Examples ARIA Lists -- some useful examples and thoughts by Scott O'Hara Best practices Only use role="list" and role="listitem" if you have to -- for example if you don't have control over your HTML but are able to improve accessibility dynamically after the fact with JavaScript. Unlike the HTML <ol> and <ul>, the ARIA list roles doesn't distinguish be...
ARIA: Listitem role - Accessibility
ms. Elements with role list must have one or more elements with the role listitem as children, a one or more elements with the role of group that have one or more elements with the listitem role as children. group A collection of related objects, limited to list items when nested in a list, not important enough to have their own place in a pages table of contents. Keyboard Interactions None. Required JavaScript features None. Examples ARIA Lists -- some useful examples and thoughts by Scott O'Hara Best practices Only use role="list" and role="listitem" if you have to -- for example if you don't have control over your HTML but are able to improve accessibility dynamically after the fact with JavaScript. If at all possible, you should use the appropriate semantic HTML elements...
ARIA: Navigation Role - Accessibility
atically communicate a section has a role of navigation. Developers should always prefer using the correct semantic HTML element over using ARIA. Associated WAI-ARIA Roles, States, and Properties aria-label A brief description of the purpose of the navigation, omitting the term "navigation", as the screen reader will read both the role and the contents of the label. Keyboard Interactions None. Required JavaScript features None. Examples <div role="navigation" aria-label="Customer service"> <ul> <li><a href="#">Help</a></li> <li><a href="#">Order tracking</li> <li><a href="#">Shipping &amp; Delivery</a></li> <li><a href="#">Returns</a></li> <li><a href="#">Contact us</a></li> <li><a href="#">Find a store</a></li> </ul> </div> Accessibility concerns La...
ARIA: button role - Accessibility
e: </label> <input type="text" id="newName"> <span role="button" tabindex="0" onclick="handleCommand()" onKeyDown="handleCommand()">Add Name</span> CSS [role="button"] { padding: 2px; background-color: navy; color: white; cursor: default; } [role="button"]:hover, [role="button"]:focus, [role="button"]:active { background-color: white; color: navy; } ul { list-style: none; } JavaScript function handleCommand(event) { // Handles both mouse clicks and keyboard // activate with Enter or Space // Get the new name value from the input element let newNameInput = document.getElementById('newName'); let name = newNameInput.value; newNameInput.value = ''; // clear the text field newNameInput.focus(); // give the text field focus to enable en...
ARIA: textbox role - Accessibility
tes whether and how the user's input into the field could trigger display of a prediction of the intended value. It supports the following values: inline: Predicted text is inserted after the caret. list: Predicted text is presented as a collection of values. both: Predicted text is presented as a collection of values, with the text needed to complete one value inserted after the caret. none (default): Predicted text is not offered. If list or both is set, the aria-controls and aria-haspopup attributes should also be included. The value of aria-controls is the ID of the element that contains the list of suggested values. Additionally, either the textbox or a containing element with role combobox has a value for aria-haspopup that matches the role of the element that contains the ...
Web applications and ARIA FAQ - Accessibility
ive HTML defines the semantic meaning and behavior of an element, with ARIA attributes acting as a layer on top to help support the AT API. Though on its own ARIA will not change any styles, as with any HTML attributes, CSS can take advantage of ARIA attributes as element selectors. This may provide a convenient mechanism to style ARIA-enabled widgets. .tab-panel[aria-hidden="true"] { display: none; } .tab-panel[aria-hidden="false"] { display: block; } What about validation? The new attributes introduced in ARIA, such as role and those prefixed with aria-, aren't officially part of the HTML 4 or XHTML 4 specifications. As a result, pages that include ARIA may not validate using tools such as the W3C's Markup Validator. The first potential solution to this problem is to avoid plac...
Accessibility: What users can do to browse more safely - Accessibility
able Content Blockers; Gets rid of ads, reduces and/or removes distractions Enables text-to-speech In certain browsers, enable fonts by choice Enable Page Zoom Turn off animated GIFs in the browser Browsers offer much power to their users; it's just a matter of knowing where to go. Using Firefox as an example, it explains that by changing the value the image.animation_mode from "normal" to "none", all animated images will be blocked. To reverse it, you will have to change the value back to "normal" Use browser extensions Gif Blocker For Chrome, GIF Blocker is an extension available at the web store. Gif Scrubber Gif Scrubber is a chrome extension that allows you to control gifs like a video player. There is a Github repository for it at https://github.com/0ui/gif-scrubber Beeline...
Cognitive accessibility - Accessibility
The user should be able to postpone or suppress interruptions, except situations involving altering a person to an emergency. This provides access to people with cognitive disabilities by enabling them to focus on the main purpose of the content. Enable the user to postpone content updates by providing a way to request content updates rather than updating automatically. Also, enable a way to make nonessential alerts optional. Ensure that people can continue an activity without loss of data after re-authenticating an expired session, for example, saving the state of a questionnaire. Make sure to save data in such a way that it can be modified after a user re-authenticates. Before re-authenticating, encode the data as hidden or encrypted. Providing warnings about inactivity that could result i...
Accessibility documentation index - Accessibility
tify major groups of links used for navigating through a website or page content. 49 ARIA: Region role ARIA, ARIA Role, Accessibility, Reference, landmark role, role-region The region landmark role is used to identify an area in the document that the author has identified as significant. It is used to provide a generic landmark for people to be able to navigate to easily when none of the other landmark roles are appropriate. 50 ARIA: Suggestion role ARIA, ARIA Role, Reference, annotations, suggestion The suggestion landmark role semantically denotes a single proposed change to an editable document. This should be used on an element that wraps an element with an insertion role, and one with a deletion role. 51 ARIA: alert role ARIA, ARIA ...
Understanding the Web Content Accessibility Guidelines - Accessibility
ser needs in these areas: Mobile Accessibility Low Vision Cognitive Read more about WCAG 2.1: Deque: WCAG 2.1: What is Next for Accessibility Guidelines TPG: Web Content Accessibility Guidelines (WCAG) 2.1 Legal standing This guide is intended to provide practical information to help you build better, more accessible websites. However, we are not lawyers, and none of this constitutes legal advice. If you are worried about the legal implications of web accessibility, we'd recommend that you check the specific legislation governing accessibility for the web/public resources in your country or locale, and seek the advice of a qualified lawyer. What is accessibility? and particularity the Accessibility guidelines and the law section provide more related infor...
-moz-context-properties - CSS: Cascading Style Sheets
rties: initial; -moz-context-properties: unset; Values fill Expose the fill value set on the image to the embedded SVG. stroke Expose the stroke value set on the image to the embedded SVG. fill-opacity Expose the fill-opacity value set on the image to the embedded SVG. stroke-opacity Expose the stoke-opacity value set on the image to the embedded SVG. Formal definition Initial valuenoneApplies toAny element that can have an image applied to it, for example as a background-image, border-image, or list-style-image.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | [ fill | fill-opacity | stroke | stroke-opacity ]# Examples Exposing fill and stroke to an SVG image In this example we have a simple SVG embedded using an <img> element. You first ne...
-webkit-box-reflect - CSS: Cascading Style Sheets
eature is not intended to be used by Web sites. To achieve reflection on the Web, the standard way is to use the CSS element() function. Syntax Values above, below, right, left Are keywords indicating in which direction the reflection is to happen. <length> Indicates the size of the reflection. <image> Describes the mask to be applied to the reflection. ...
-webkit-mask-box-image - CSS: Cascading Style Sheets
-webkit-mask-box-image sets the mask image for an element's border box. Initial value: none Applies to: all elements Inherited: no Media: visual Computed value: as specified Syntax -webkit-mask-box-image: <mask-box-image> [<top> <right> <bottom> <left> <x-repeat> <y-repeat>] Where: <mask-box-image> <uri> | <gradient> | none <top> <right> <bottom> <left> <length> | <percentage> <x-repeat> <y-repeat> repeat | stretch | round | space Values <uri> The location of the image resource to be used as a mask image. <gradient> A -webkit-gradient function to be used as a mask image. none Used to specify that a border box is to have no mask image. <length> The size of the mask image's offset. See <length> for possible units. <percentage> The mask image's offs...
-webkit-text-security - CSS: Cascading Style Sheets
-webkit-text-security is a non-standard CSS property that obfuscates characters in a <form> field (such as <input> or <textarea>) by replacing them with a shape. It only affects fields that are not of type=password. Syntax -webkit-text-security: circle; -webkit-text-security: disc; -webkit-text-security: square; -webkit-text-security: none; Formal definition Value not found in DB! Formal syntax Syntax not found in DB! Examples Obscuring a text input Try typing in the field below. If your browser supports this property, the characters should be visually replaced with squares. HTML <label for="name">Name:</label> <input type="text" name="name" id="name" /> CSS input { -webkit-text-security: square; } Result Specifications Not part of any standard. ...
::-moz-color-swatch - CSS: Cascading Style Sheets
...
::-webkit-meter-optimum-value - CSS: Cascading Style Sheets
value is inside the low-high range. Green is the default color. Syntax ::-webkit-meter-optimum-value Specifications Not part of any standard. ...
::-webkit-outer-spin-button - CSS: Cascading Style Sheets
::-webkit-outer-spin-button CSS pseudo-element is used to style the outer part of the spinner button of number picker <input> elements. Syntax ::-webkit-outer-spin-button Examples These examples only works on browsers based on WebKit or Blink. Hiding the spinner This example uses input::-webkit-outer-spin-button to find <input> elements' spinner widgets and set their -webkit-appearance to none, thus hiding them. HTML <input type="number"> CSS input::-webkit-outer-spin-button { -webkit-appearance: none; } Result Specifications Not part of any standard. ...
::-webkit-progress-value - CSS: Cascading Style Sheets
The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element. Note: In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element. Syntax ::-webkit-progress-value Examples This example will only work in browsers based on Blink or WebKit. HTML <progress value="10" max="50"> CSS progress { -webkit-appearance: none; } ::-webkit-progress-value { background-color: orange; } Result Result screenshot A progress bar using the style above would look like this: Specifications Not part of any standard. ...
::-webkit-scrollbar - CSS: Cascading Style Sheets
ar, where both horizontal and vertical scrollbars meet. ::-webkit-resizer -- the draggable resizing handle that appears at the bottom corner of some elements. ...
::first-letter (:first-letter) - CSS: Cascading Style Sheets
HTML <h2>My heading</h2> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor...
:checked - CSS: Cascading Style Sheets
Web › CSS › :checked
text]</td><td>[cell text]</td><td>[cell text]</td></tr> <tr class="expandable"><td>[more text]</td><td>[more text]</td><td>[more text]</td></tr> <tr class="expandable"><td>[more text]</td><td>[more text]</td><td>[more text]</td></tr> </tbody> </table> <label for="expand-toggle" id="expand-btn">Toggle hidden rows</label> CSS /* Hide the toggle checkbox */ #expand-toggle { display: none; } /* Hide expandable content by default */ .expandable { visibility: collapse; background: #ddd; } /* Style the button */ #expand-btn { display: inline-block; margin-top: 12px; padding: 5px 11px; background-color: #ff7; border: 1px solid; border-radius: 3px; } /* Show hidden content when the checkbox is checked */ #expand-toggle:checked ~ * .expandable { visibility: visible;...
:defined - CSS: Cascading Style Sheets
Web › CSS › :defined
tinctive backgrounds p { background: yellow; } simple-custom { background: cyan; } // Both the custom and the built-in element are given italic text :defined { font-style: italic; } Then provide the following two rules to hide any instances of our custom element that are not defined, and display instances that are defined as block level elements: simple-custom:not(:defined) { display: none; } simple-custom:defined { display: block; } This is useful if you have a complex custom element that takes a while to load into the page -- you might want to hide instances of the element until definition is complete, so that you don't end up with flashes of ugly unstyled elements on the page Specifications Specification Status Comment HTML Living StandardThe de...
:focus-visible - CSS: Cascading Style Sheets
can use :focus-visible to selectively apply a focus indicator only on keyboard-focus. This matches the native focus behavior for controls like <button>. ...
:focus - CSS: Cascading Style Sheets
Web › CSS › :focus
the visual focus indicator can be seen by people with low vision. This will also benefit anyone use a screen in a brightly lit space (like outside in the sun). WCAG 2.1 SC 1.4.11 Non-Text Contrast requires that the visual focus indicator be at least 3 to 1. Accessible Visual Focus Indicators: Give Your Site Some Focus! Tips for Designing Useful and Usable Focus Indicators :focus { outline: none; } Never just remove the focus outline (visible focus indicator) without replacing it with a focus outline that will pass WCAG 2.1 SC 1.4.11 Non-Text Contrast. Quick Tip: Never remove CSS outlines Specifications Specification Status Comment HTML Living StandardThe definition of ':focus' in that specification. Living Standard Defines HTML-specific semantics...
:in-range - CSS: Cascading Style Sheets
Web › CSS › :in-range
of such a limitation, the element can neither be "in-range" nor "out-of-range." Syntax :in-range Examples HTML <form action="" id="form1"> <ul>Values between 1 and 10 are valid. ...
:invalid - CSS: Cascading Style Sheets
Web › CSS › :invalid
is accompanied by an additional indicator that does not rely on color to convey meaning. Typically, descriptive text and/or an icon are used. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.1 | W3C Understanding WCAG 2.0 Notes Radio buttons If any one of the radio buttons in a group is required, the :invalid pseudo-class is applied to all of them if none of the buttons in the group is selected. (Grouped radio buttons share the same value for their name attribute.) Gecko defaults By default, Gecko does not apply a style to the :invalid pseudo-class. However, it does apply a style (a red "glow" using the box-shadow property) to the :-moz-ui-invalid pseudo-class, which applies in a subset of cases for :invalid. Specifications Specificat...
:out-of-range - CSS: Cascading Style Sheets
mitation, the element can neither be "in-range" nor "out-of-range." Syntax :out-of-range Examples HTML <form action="" id="form1"> <p>Values between 1 and 10 are valid.</p> <ul> <li> <input id="value1" name="value1" type="number" placeholder="1 to 10" min="1" max="10" value="12"> <label for="value1">Your value is </label> </li> </ul> </form> CSS li { list-style: none; margin-bottom: 1em; } input { border: 1px solid black; } input:in-range { background-color: rgba(0, 255, 0, 0.25); } input:out-of-range { background-color: rgba(255, 0, 0, 0.25); border: 2px solid red; } input:in-range + label::after { content: 'okay.'; } input:out-of-range + label::after { content: 'out of range!'; } Result Specifications Specification Statu...
:read-only - CSS: Cascading Style Sheets
ample below. The :read-only pseudo-class is used to remove all the styling that makes the inputs look like clickable fields, making them look more like read-only paragraphs.The :read-write pseudo-class on the other hand is used to provide some nicer styling to the editable <textarea>. input:-moz-read-only, textarea:-moz-read-only, input:read-only, textarea:read-only { border: 0; box-shadow: none; background-color: white; } textarea:-moz-read-write, textarea:read-write { box-shadow: inset 1px 1px 3px #ccc; border-radius: 5px; } You can find the full source code at readonly-confirmation.html; this renders like so: Styling read-only non-form controls This selector doesn't just select <input>/<textarea> elements -- it will select any element that cannot be edited by the user. <p...
:read-write - CSS: Cascading Style Sheets
ample below. The :read-only pseudo-class is used to remove all the styling that makes the inputs look like clickable fields, making them look more like read-only paragraphs.The :read-write pseudo-class on the other hand is used to provide some nicer styling to the editable <textarea>. ...
:target - CSS: Cascading Style Sheets
Web › CSS › :target
nd eu, semper vel sem.</figcaption> </figure> </div> <div class="lightbox" id="example2"> <figure> <a href="#" class="close"></a> <figcaption>Cras risus odio, pharetra nec ultricies et, mollis ac augue. Nunc et diam quis sapien dignissim auctor. ...
suffix - CSS: Cascading Style Sheets
Candidate Recommendation Initial definition. ...
display-mode - CSS: Cascading Style Sheets
n include other UI elements such as a status bar. minimal-ui minimal-ui The application will look and feel like a standalone application, but will have a minimal set of UI elements for controlling navigation. The elements will vary by browser. browser browser The application opens in a conventional browser tab or new window, depending on the browser and platform. (none) Examples @media all and (display-mode: fullscreen) { body { margin: 0; border: 5px solid black; } } Specifications Specification Status Comment Web App ManifestThe definition of 'display-mode' in that specification. Working Draft Initial definition. ...
forced-colors - CSS: Cascading Style Sheets
The forced-colors CSS media feature is used to detect if the user agent has enabled a forced colors mode where it enforces a user-chosen limited color palette on the page. Note: This feature is not supported by any user agent and its specifics are subject to change. Syntax The forced-colors media feature indicates whether or not the browser is currently in forced-colors mode. Values none Forced colors mode is not active; the page's colors are not being forced into a limited palette. active Indicates that forced colors mode is active. The browser provides the color palette to authors through the CSS system color keywords and, if appropriate, it triggers the appropriate value of prefers-color-scheme so that authors can adapt the page. Usage notes Properties affected by forced-col...
hover - CSS: Cascading Style Sheets
Web › CSS › @media › hover
hover The primary input mechanism can conveniently hover over elements. ...
monochrome - CSS: Cascading Style Sheets
Web › CSS › @media › monochrome
me buffer. If the device is not a monochrome device, the value is zero. It is a range feature, meaning that you can also use the prefixed min-monochrome and max-monochrome variants to query minimum and maximum values, respectively. Examples HTML <p class="mono">Your device supports monochrome pixels!</p> <p class="no-mono">Your device doesn't support monochrome pixels.</p> CSS p { display: none; } /* Any monochrome device */ @media (monochrome) { p.mono { display: block; color: #333; } } /* Any non-monochrome device */ @media (monochrome: 0) { p.no-mono { display: block; color: #ee3636; } } Result Specifications Specification Status Comment Media Queries Level 4The definition of 'monochrome' in that specification. Candidate R...
overflow-block - CSS: Cascading Style Sheets
scroll Content that overflows the block axis can be seen by scrolling to it. ...
overflow-inline - CSS: Cascading Style Sheets
scroll Content that overflows the inline axis can be seen by scrolling to it. Examples HTML <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. ...
update - CSS: Cascading Style Sheets
Example: documents printed on paper. slow The layout may change dynamically according to the usual rules of CSS, but the output device is not able to render or display changes quickly enough for them to be perceived as a smooth animation. ...
Coordinate systems - CSS: Cascading Style Sheets
how in the MDN window, to allow you to scroll it horizontally. The "inner" box is the one that we track events in and in which we show the mouse coordinates. .outer { width: 1000px; height: 200px; background-color: red; } .inner { position: relative; width: 500px; height: 150px; top: 25px; left: 100px; background-color: blue; color: white; cursor: crosshair; user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-user-select: none; } .log { position: relative; width: 100%; text-align: center; } Result Here you can see the results in action. As you mouse in and around the blue box, watch the values of the mouse's X and Y coordinates change in the various coordinate systems in which you can obtain the values. Note also the effect of scr...
Detecting CSS animation support - CSS: Cascading Style Sheets
tion to false. We set the animationstring to animation which is the property we want to set later on. We create an array of browser prefixes to loop over and we set pfx to an empty string. Then we check if the CSS animation-name property on the style collection for the element specified by the variable elem is set. This means the browser supports CSS animation without any prefix, which, to date, none of them do. If the browser does not support non-prefixed animation and animation is still false, we iterate over all the possible prefixes, since all the major browsers are currently prefixing this property and changing its name to AnimationName instead. Once this code is finished running, the value of animation will be false if CSS animation support isn't available, or it will be true. If it i...
CSS Animations tips and tricks - CSS: Cascading Style Sheets
a keyframe animation that goes through the full animation in one forward repetition. Use JavaScript and clear the animation being used when the animationiteration event fires. ...
Using URL values for the cursor property - CSS: Cascading Style Sheets
r. If that file does not exist or is not valid for some other reason, bar.gif is tried, and if that can't be used either, auto will be used. Support for the CSS 3 syntax for cursor values got added in Gecko 1.8 (Firefox 1.5): cursor: [ <uri> [ <x> <y> ]? , ]* <keyword> It allows specifying the coordinates of the cursor's hotspot, which will be clamped to the boundaries of the cursor image. If none are specified, the coordinates of the hotspot are read from the file itself (for CUR and XBM files) or are set to the top left corner of the image. An example of the CSS3 syntax is: .foo { cursor: auto; cursor: url(cursor1.png) 4 12, auto; } .bar { cursor: pointer; cursor: url(cursor2.png) 2 2, pointer; } /* Falls back onto 'auto' and 'pointer' in IE, but must be set separately */ ...
Spanning and Balancing Columns - CSS: Cascading Style Sheets
inside an <article> element, yet still spans the content as expected. When a spanner is introduced, it breaks the flow of columns and columns restart after the spanner, effectively creating a new set of column boxes. The content does not jump over a spanning element. Limitations of column-span In the current level 1 specification there are only two allowable values for column-span. The value none is the initial value and means the item does not span, remaining within a column. The value all means the item spans all of the columns. You cannot cause an item to span two out of three columns for example. Things to watch out for If the spanning element is inside another element which has margins, padding and a border or a background color, it is possible to end up with the top of the box app...
CSS Display - CSS: Cascading Style Sheets
' in that specification. Candidate Recommendation Added run-in, flow, flow-root, contents and multi-keyword values. CSS Level 2 (Revision 1)The definition of 'display' in that specification. Recommendation Added the table model values and inline-block. CSS Level 1The definition of 'display' in that specification. Recommendation Initial definition. Basic values: none, block, inline and list-item. In addition to the CSS Display Specification Level 3, further specifications define the behavior of various values of display. ...
Mastering Wrapping of Flex Items - CSS: Cascading Style Sheets
item. If you add more content to the second item, it changes row once it gets long enough. That top row then only becomes as tall as a single line of text. If this causes a problem for your layout it may require a rethinking of the structure, for example putting each row into a separate flex container in order that they can't shift rows. The difference between visibility: hidden and display: none When you set an item to display: none in order to hide it, the item is removed from the formatting structure of the page. What this means in practice is that counters ignore it, and things like transitions do not run. Using visibility: hidden keeps the box in the formatting structure which is useful in that it still behaves as if it were part of the layout even though the user can't see it. ...
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
iner is single-lined or multi-lined and the direction of the cross-axis, which determines the direction in which the new lines are stacked in. Values: nowrap (default) | wrap | wrap-reverse Spec: https://drafts.csswg.org/css-flexbox/#flex-wrap-property @mixin flex-wrap($value: nowrap) { // No Webkit/FF Box fallback. -webkit-flex-wrap: $value; @if $value == nowrap { -ms-flex-wrap: none; } @else { -ms-flex-wrap: $value; } flex-wrap: $value; } Flexbox flow (shorthand) The flex-flow property is shorthand for setting the flex-direction and flex-wrap properties, which together define the flex container's main and cross axes. Values: row (default) | nowrap Spec: https://drafts.csswg.org/css-flexbox/#flex-flow-property @mixin flex-flow($values: (row nowrap)) { //...
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
in your grid. In my image gallery example I have some landscape and some portrait images. I have set landscape images - with a class of landscape to span two column tracks. I then use grid-auto-flow: dense to create a densely packed grid. ...
CSS grids, logical values, and writing modes - CSS: Cascading Style Sheets
in documents that are otherwise ltr. In this next example I have a grid layout with a set of links down one side. I've used writing modes to turn these on their side in the column track: .wrapper { display: grid; grid-gap: 20px; grid-template-columns: 1fr auto; font: 1em Helvetica, Arial, sans-serif; } .wrapper nav { writing-mode: vertical-lr; } .wrapper ul { list-style: none; margin: 0; padding: 1em; display: flex; justify-content: space-between; } .wrapper a { text-decoration: none; } <div class="wrapper"> <div class="content"> <p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisi...
Consistent list indentation - CSS: Cascading Style Sheets
ndentation, then you still have to zero out both padding and margin: ul {margin-left: 0; padding-left: 0;} Remember, though, that in so doing, you'll have the bullets hanging outside the list and its parent element. If the parent is the body, there's a strong chance your bullets will be completely outside the browser window, and thus will not be visible. Conclusion In the end, we can see that none of the browsers mentioned in this article is right or wrong about how they lay out lists. They use different default styles, and that's where the problems creep in. By making sure you style both the left padding and left margin of lists, you can find much greater cross-browser consistency in your list indentation. Recommendations When altering the indentation of lists, make sure to set both t...
CSS Miscellaneous - CSS: Cascading Style Sheets
These pages contain CSS properties that are highly experimental or don't fit in any other categories. Reference Properties all text-rendering Guides None. Specifications These properties are mostly unrelated to each other. Consult their individual pages for specifications. ...
The stacking context - CSS: Cascading Style Sheets
older desktop). Element that is a child of a flex (flexbox) container, with z-index value other than auto. Element that is a child of a grid (grid) container, with z-index value other than auto. Element with a opacity value less than 1 (See the specification for opacity). Element with a mix-blend-mode value other than normal. Element with any of the following properties with value other than none: transform filter perspective clip-path mask / mask-image / mask-border Element with a isolation value isolate. Element with a -webkit-overflow-scrolling value touch. Element with a will-change value specifying any property that would create a stacking context on non-initial value (see this post). Element with a contain value of layout, or paint, or a composite value th...
CSS Text Decoration - CSS: Cascading Style Sheets
marks. Reference Properties letter-spacing text-align text-decoration text-decoration-color text-decoration-line text-decoration-offset text-decoration-skip-ink text-decoration-style text-decoration-thickness text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-rendering text-shadow text-transform white-space word-spacing Guides None. Examples .under { text-decoration: underline red; } .over { text-decoration: wavy overline lime; } .line { text-decoration: line-through; } .plain { text-decoration: none; } .underover { text-decoration: dashed underline overline; } .thick { text-decoration: solid underline purple 4px; } .blink { text-decoration: blink; } <p class="under">This text has a line underneath i...
Grid wrapper - CSS: Cascading Style Sheets
Accessibility concerns Although Grid enables u...
Pagination - CSS: Cascading Style Sheets
ainer in order that we can center the list inside using the justify-content property. The list itself also becomes a flex container to lay the items out as a row. To space the items out we will use a margin on the flex items. Alternative methods Once the column-gap property has implementation in browsers this could be used instead of margins to space out the items. .pagination { list-style: none; margin: 0; padding: 0; display: flex; column-gap: 2px; } Accessibility concerns We want to ensure that a person using a screenreader understands what this navigation does, and where they will go when clicking a link. To help with this we have added aria-label="pagination" on the <nav> element. We have also added some additional content that would be read by a screenreader but is hid...
Using Media Queries for Accessibility - CSS: Cascading Style Sheets
on-essential movement is removed. Example This example has an annoying animation unless you turn on Reduce Motion in your accessibility preferences. HTML <div class="animation">animated box</div> CSS .animation { -webkit-animation: vibrate 0.3s linear infinite both; animation: vibrate 0.3s linear infinite both; } @media (prefers-reduced-motion: reduce) { .animation { animation: none; } } High Contrast Mode The -ms-high-contrast CSS media feature is a Microsoft extension that describes whether the application is being displayed in high contrast mode, and with what color variation. This will help not only users with low vision and contrast sensitivity issues but also users that are working on a computer or phone with direct sunlight. Syntax The -ms-high-contrast med...
Using media queries - CSS: Cascading Style Sheets
an be prefixed with "min-" or "max-" to express "minimum condition" or "maximum condition" constraints. For example, this CSS will apply styles only if your browser's viewport width is equal to or narrower than 12450px: @media (max-width: 12450px) { ... } If you create a media feature query without specifying a value, the nested styles will be used as long as the feature's value is not zero (or none, in Level 4). For example, this CSS will apply to any device with a color screen: @media (color) { ... } If a feature doesn't apply to the device on which the browser is running, expressions involving that media feature are always false. For example, the styles nested inside the following query will never be used, because no speech-only device has a screen aspect ratio: @media speech and (aspe...
Mozilla CSS extensions - CSS: Cascading Style Sheets
-numeric -moz-gujarati -moz-gurmukhi -moz-hangul -moz-hangul-consonant -moz-japanese-formal -moz-japanese-informal -moz-kannada -moz-khmer -moz-lao -moz-malayalam -moz-myanmar -moz-oriya -moz-persian -moz-simp-chinese-formal -moz-simp-chinese-informal -moz-tamil -moz-telugu -moz-thai -moz-trad-chinese-formal -moz-trad-chinese-informal -moz-urdu overflow -moz-scrollbars-none -moz-scrollbars-horizontal -moz-scrollbars-vertical -moz-hidden-unscrollable text-align -moz-center -moz-left -moz-right text-decoration -moz-anchor-decoration -moz-user-select -moz-all -moz-none width, min-width, and max-width -moz-min-content -moz-fit-content -moz-max-content -moz-available Pseudo-elements and pseudo-classes A - D ::-m...
Scaling of SVG backgrounds - CSS: Cascading Style Sheets
ecifies a fixed dimension (that is, percentages and relative units are fixed by their context), that dimension wins. If the image has an intrinsic ratio (that is, its width:height ratio is constant, such as 16:9, 4:3, 2.39:1, 1:1, and so forth), the rendered size preserves that ratio. If the image specifies a size, and the size isn't modified by constrain or cover, that specified size wins. If none of the above cases are met, the image is rendered at the same size as the background area. It's worth noting that the sizing algorithm only cares about the image's dimensions and proportions, or lack thereof. An SVG image with fixed dimensions will be treated just like a raster image of the same size. Source image examples Before diving in to look at the results of using different kinds of so...
Shorthand properties - CSS: Cascading Style Sheets
uding CSS3 properties. Font properties The following declarations ... font-style: italic; font-weight: bold; font-size: .8em; line-height: 1.2; font-family: Arial, sans-serif; ... can be shortened to the following: font: italic bold .8em/1.2 Arial, sans-serif; This shorthand declaration is actually equivalent to the longhand declarations above plus font-variant: normal and font-size-adjust: none (CSS2.0 / CSS3), font-stretch: normal (CSS3). Border properties With borders, the width, color, and style can be simplified into one declaration. For example, the following CSS ... border-width: 1px; border-style: solid; border-color: #000; ... can be simplified as: border: 1px solid #000; Margin and padding properties Shorthand versions of margin and padding values work similarly; the mar...
Specificity - CSS: Cascading Style Sheets
div.</p> </div> </div> ... appears on the screen like this: The :where() exception The specificity-adjustment pseudo-class :where() always has its specificity replaced with zero. This chunk of CSS ... div:where(.outer) p { color: orange; } div p { color: blueviolet; } #no-where-support { margin: 0.5em; border: 1px solid red; } #no-where-support:where(*) { display: none !important; } ... when used with the following HTML ... <div id="no-where-support"> ? Your browser doesn't support the <code><a href="/docs/Web/CSS/:where" target="_top">:where()</a></code> pseudo-class. </div> <div class="outer"> <p>This is in the outer div.</p> <div class="inner"> <p>This text is in the inner div.</p> </div> </div> ... appears on the screen like this: For...
Visual formatting model - CSS: Cascading Style Sheets
one or more boxes, one of them is the principal box, which contains its descendant boxes and generated content in the box tree, and is also the box involved in any positioning scheme. Some elements may generate additional boxes in addition to the principal box, for example display: list-item generates more than one box (e.g. a principal block box and a child marker box). And some values (such as none or contents) cause the element and/or its descendants to not generate any boxes at all. Anonymous boxes An anonymous box is created when there is not an HTML element to use for the box. This situation happens when, for example, you declare display: flex on a parent element, and directly inside there is a run of text not contained in another element. In order to fix the box tree, an anonymous bo...
all - CSS: Cascading Style Sheets
Web › CSS › all
ample is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* Global values */ all: initial; all: inherit; all: unset; /* CSS Cascading and Inheritance Level 4 */ all: revert; The all property is specified as one of the CSS global keyword values. Note that none of these values affect the unicode-bidi and direction properties. Values initial Specifies that all the element's properties should be changed to their initial values. inherit Specifies that all the element's properties should be changed to their inherited values. unset Specifies that all the element's properties should be changed to their inherited values if they inherit by default, or ...
background-clip - CSS: Cascading Style Sheets
egions (due to border-style or border-image); otherwise, the border masks the difference. Note: Because the root element has a different background painting area, the background-clip property has no effect when specified on it. See "The backgrounds of special elements." Note: For documents whose root element is an HTML element: if the computed value of background-image on the root element is none and its background-color is transparent, user agents must instead propagate the computed values of the background properties from that element's first HTML <body> child element. The used values of that <body> element's background properties are their initial values, and the propagated values are treated as if they were specified on the root element. It is recommended that authors of HTML document...
<basic-shape> - CSS: Cascading Style Sheets
and another, the rules below are applied. The values in the shape functions interpolate as a simple list. The list values interpolate as <length>, <percentage>, or calc() where possible. If list values are not one of those types but are identical, those values do interpolate. Both shapes must use the same reference box. If both shapes are the same type, that type is ellipse() or circle(), and none of the radii use the closest-side or farthest-side keywords, interpolate between each value in the shape functions. If both shapes are of type inset(), interpolate between each value in the shape functions. If both shapes are of type polygon(), both polygons have the same number of vertices, and use the same <fill-rule>, interpolate between each value in the shape functions. If both shapes are...
border-block-end-style - CSS: Cascading Style Sheets
x /* <'border-style'> values */ border-block-end-style: dashed; border-block-end-style: dotted; border-block-end-style: groove; Related properties are border-block-start-style, border-inline-start-style, and border-inline-end-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. ...
border-block-end-width - CSS: Cascading Style Sheets
ated properties are border-block-start-width, border-inline-start-width, and border-inline-end-width, which define the other border widths of the element. Values <'border-width'> The width of the border. See border-width. ...
border-block-start-style - CSS: Cascading Style Sheets
* <'border-style'> values */ border-block-start-style: dashed; border-block-start-style: dotted; border-block-start-style: groove; Related properties are border-block-end-style, border-inline-start-style, and border-inline-end-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. ...
border-block-style - CSS: Cascading Style Sheets
d text-orientation. /* <'border-style'> values */ border-block-style: dashed; border-block-style: dotted; border-block-style: groove; The border style in the other dimension can be set with border-inline-style, which sets border-inline-start-style, and border-inline-end-style. Syntax Values <'border-style'> The line style of the border. See border-style. ...
border-block-width - CSS: Cascading Style Sheets
The border width in the other dimension can be set with border-inline-width, which sets border-inline-start-width, and border-inline-end-width. Syntax Values <'border-width'> The width of the border. See border-width. ...
border-bottom-width - CSS: Cascading Style Sheets
ss denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
border-color - CSS: Cascading Style Sheets
CSS Backgrounds and Borders Module Level 3The definition of 'border-color' in that specification. Candidate Recommendation The transparent keyword has been removed as it is now a part of the <color> data ty...
border-inline-end-style - CSS: Cascading Style Sheets
/* <'border-style'> values */ border-inline-end-style: dashed; border-inline-end-style: dotted; border-inline-end-style: groove; Related properties are border-block-start-style, border-block-end-style, and border-inline-start-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. ...
border-inline-start-width - CSS: Cascading Style Sheets
Related properties are border-block-start-width, border-block-end-width, and border-inline-end-width, which define the other border widths of the element. Values <'border-width'> The width of the border. See border-width. ...
border-inline-style - CSS: Cascading Style Sheets
d text-orientation. /* <'border-style'> values */ border-inline-style: dashed; border-inline-style: dotted; border-inline-style: groove; The border style in the other dimension can be set with border-block-style, which sets border-block-start-style, and border-block-end-style. Syntax Values <'border-style'> The line style of the border. See border-style. ...
border-inline-width - CSS: Cascading Style Sheets
ck; The border width in the other dimension can be set with border-block-width, which sets border-block-start-width, and border-block-end-width. Syntax Values <'border-width'> The width of the border. See border-width. ...
border-left-width - CSS: Cascading Style Sheets
ness denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
border-radius - CSS: Cascading Style Sheets
length, percentage or calc(); Formal syntax <length-percentage>{1,4} [ / <length-percentage>{1,4} ]?where <length-percentage> = <length> | <percentage> Examples border: solid 10px; /* the border will curve into a 'D' */ border-radius: 10px 40px 40px 10px; border: groove 1em red; border-radius: 2em; background: gold; border: ridge gold; border-radius: 13em/3em; border: none; border-radius: 40px 10px; border: none; border-radius: 50%; border: dotted; border-width: 10px 4px; border-radius: 10px 40px; border: dashed; border-width: 2px 4px; border-radius: 40px; Live Samples Sample 1 : http://jsfiddle.net/Tripad/qnGKj/2/ Sample 2 : http://jsfiddle.net/Tripad/qnGKj/3/ Sample 3 : http://jsfiddle.net/Tripad/qnGKj/4/ Sample 4 : http://jsfiddle...
border-right-width - CSS: Cascading Style Sheets
ess denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
border-top-width - CSS: Cascading Style Sheets
kness denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
box-pack - CSS: Cascading Style Sheets
Web › CSS › box-pack
specified as one of the keyword values listed below. Values start The box packs contents at the start, leaving any extra space at the end. center The box packs contents in the center, dividing any extra space equally between the start and the end. end The box packs contents at the end, leaving any extra space at the start. justify The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the value as if it were start. Notes The edge of the box designated the start for packing purposes depends on the box's orientation and direction: Normal Reverse Horizontal left right Vertical top bottom The edge opposite to the start...
column-rule-width - CSS: Cascading Style Sheets
The column-rule-width property is specified as a single <'border-width'> value. Values <'border-width'> Is a keyword defined by border-width describing the width of the rule. It may be either a <length> or one of the thin, medium, or thick keywords. Formal definition Initial valuemediumApplies tomulticol elementsInheritednoComputed valuethe absolute length; 0 if the column-rule-style is none or hiddenAnimation typea length Formal syntax <'border-width'> Examples Setting a thick column rule HTML <p>This is a bunch of text split into three columns. The `column-rule-width` property is used to change the width of the line that is drawn between columns. Don't you think that's wonderful?</p> CSS p { column-count: 3; column-rule-style: solid; column-rule-width: thick;...
counter() - CSS: Cascading Style Sheets
Web › CSS › counter
port for properties other than content is experimental, and support for the type-or-unit parameter is sparse. Check the Browser compatibility table carefully before using this in production. Syntax Values <custom-ident> A name identifying the counter, which is the same case-sensitive name used for the counter-reset and counter-increment. The name cannot start with two dashes and can't be none, unset, initial, or inherit. <counter-style> A counter style name or symbols() function, where a counter style name is a numeric, alphabetic, or symbolic simple predefined counter style, a complex longhand east Asian or Ethiopic predefined counter style, or other predefined counter style. If omitted, the counter-style defaults to decimal Formal syntax counter( <custom-ident>, <counter-style>...
counters() - CSS: Cascading Style Sheets
Web › CSS › counters
ort for properties other than content is experimental, and support for the type-or-unit parameter is sparse. Check the Browser compatibility table carefully before using this in production. Syntax Values <custom-ident> A name identifying the counters, which is the same case-sensitive name used for the counter-reset and counter-increment. The name cannot start with two dashes and can't be none, unset, initial, or inherit. <counter-style> A counter style name or symbols() function, where a counter style name is a numeric, alphabetic, or symbolic simple predefined counter style, a complex longhand east Asian or Ethiopic predefined counter style, or other predefined counter style. If omitted, the counter-style defaults to decimal <string> Any number of text characters. Non-Latin chara...
<custom-ident> - CSS: Cascading Style Sheets
not be placed between single or double quotes as this would be identical to a <string>. Moreover, the first character must not be a decimal digit, nor a hyphen (-) followed by a decimal digit or another hyphen. To prevent ambiguity, each property that uses <custom-ident> forbids the use of specific values: animation-name Forbids the global CSS values (unset, initial, and inherit), as well as none. counter-reset counter-increment Forbids the global CSS values (unset, initial, and inherit), as well as none. @counter-style list-style-type Forbids the global CSS values (unset, initial, and inherit), as well as the values none, inline, and outside. Also, quite a few predefined values are implemented by the different browsers: disc, circle, square, decimal, cjk-decimal, decimal-leading-ze...
flex-basis - CSS: Cascading Style Sheets
ex-basis test</li> <li class="flex flex2">2: flex-basis test</li> <li class="flex flex3">3: flex-basis test</li> <li class="flex flex4">4: flex-basis test</li> <li class="flex flex5">5: flex-basis test</li> </ul> <ul class="container"> <li class="flex flex6">6: flex-basis test</li> </ul> CSS .container { font-family: arial, sans-serif; margin: 0; padding: 0; list-style-type: none; display: flex; flex-wrap: wrap; } .flex { background: #6AB6D8; padding: 10px; margin-bottom: 50px; border: 3px solid #2E86BB; color: white; font-size: 14px; text-align: center; position: relative; } .flex:after { position: absolute; z-index: 1; left: 0; top: 100%; margin-top: 10px; width: 100%; color: #333; font-size: 12px; } .flex1 { flex-basis: auto; } ...
font-family - CSS: Cascading Style Sheets
<family-name> and the second with a <generic-name>: font-family: Gill Sans Extrabold, sans-serif; Values <family-name> The name of a font family. For example, "Times" and "Helvetica" are font families. Font family names containing whitespace should be quoted. <generic-name> Generic font families are a fallback mechanism, a means of preserving some of the style sheet author's intent when none of the specified fonts are available. Generic family names are keywords and must not be quoted. A generic font family should be the last item in the list of font family names. The following keywords are defined: serif Glyphs have finishing strokes, flared or tapering ends, or have actual serifed endings. E.g. Lucida Bright, Lucida Fax, Palatino, "Palatino Linotype", Palladio, "URW Pallad...
font-smooth - CSS: Cascading Style Sheets
on of anti-aliasing when fonts are rendered. Syntax /* Keyword values */ font-smooth: auto; font-smooth: never; font-smooth: always; /* <length> value */ font-smooth: 2em; WebKit implements a similar property, but with different values: -webkit-font-smoothing. It only works on Mac OS X/macOS. auto - Let the browser decide (Uses subpixel anti-aliasing when available; this is the default) none - Turn font smoothing off; display text with jagged sharp edges. antialiased - Smooth the font on the level of the pixel, as opposed to the subpixel. Switching from subpixel rendering to antialiasing for light text on dark backgrounds makes it look lighter. subpixel-antialiased - On most non-retina displays, this will give the sharpest text. Firefox implements a similar property, but with d...
font-variant-east-asian - CSS: Cascading Style Sheets
values specify a set of logographic glyph variants which should be used for display. Possible values are: Keyword Standard defining the glyphs OpenType equivalent jis78 JIS X 0208:1978 jp78 jis83 JIS X 0208:1983 jp83 jis90 JIS X 0208:1990 jp90 jis04 JIS X 0213:2004 jp04 simplified None, use the simplified Chinese glyphs smpl traditional None, use the traditional Chinese glyphs trad <east-asian-width-values> These values control the sizing of figures used for East Asian characters. Two values are possible: proportional-width activating the set of East Asian characters which vary in width. It corresponds to the OpenType values pwid. full...
<image> - CSS: Cascading Style Sheets
Web › CSS › image
e default object size for that missing value. If the specified size defines neither the width nor the height, the concrete object size is calculated so that it matches the intrinsic aspect ratio of the image but without exceeding the default object size in any dimension. If the image has no intrinsic aspect ratio, the intrinsic aspect ratio of the object it applies to is used; if this object has none, the missing width or height are taken from the default object size. Note: Not all browsers support every type of image on every property. See the browser compatibility section for details. Accessibility concerns Browsers do not provide any special information on background images to assistive technology. This is important primarily for screen readers, as a screen reader will not announce its...
image() - CSS: Cascading Style Sheets
The image() CSS function defines an <image> in a similar fashion to the <url> function, but with added functionality including specifying the image's directionality, specifying fallback images for when the preferred image is not supported, displaying just a part of that image defined by a media fragment, and specifying a solid color as a fallback in case none of the specified images are able to be rendered. Disambiguation: Image(), the HTMLImageElement constructor. Syntax image( <image-tags>? [ <image-src>? , <color>? ]! )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( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3}...
Inheritance - CSS: Cascading Style Sheets
the element gets the initial value of that property (as specified in the property's summary). A typical example of a non-inherited property is the border property. Given the style rules: p { border: medium solid; } ... and the markup: <p>This paragraph has <em>emphasized text</em> in it.</p> ... the words "emphasized text" will not have a border (since the initial value of border-style is none). Notes The inherit keyword allows authors to explicitly specify inheritance. It works on both inherited and non-inherited properties. You can control inheritance for all properties at once using the all shorthand property, which applies its value to all properties. For example: font { all: revert; font-size: 200%; font-weight: bold; } This reverts the style of the font property to the...
mask-border - CSS: Cascading Style Sheets
mensions of the border mask. Up to two values may be specified. See mask-border-repeat. <'mask-border-mode'> Defines whether the source image is treated as a luminance mask or alpha mask. See mask-border-mode. ...
max-block-size - CSS: Cascading Style Sheets
t; 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> Defines the max-width as an absolute value. <percentage> Defines the max-width as a percentage of the containing block's width. auto The browser will calculate and select a max-width for the specified element. none No limit on the size of the box. max-content The intrinsic preferred max-width. min-content The intrinsic minimum max-width. fit-content(<length-percentage>) Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)). How writing-mode affects directionality The values of writing-mode affect the mapping of m...
min-height - CSS: Cascading Style Sheets
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. <percentage> Defines the min-height as a percentage of the containing block's height. auto The browser will calculate and select a min-height for the specified element. none No limit on the size of the box. max-content The intrinsic preferred min-height. min-content The intrinsic minimum min-height. fit-content(<length-percentage>) Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)). Formal definition Initial valueautoApplies toall elements but non-replaced inline elemen...
min-width - CSS: Cascading Style Sheets
Web › CSS › min-width
es */ 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. <percentage> Defines the min-width as a percentage of the containing block's width. auto The browser will calculate and select a min-width for the specified element. none No limit on the size of the box. max-content The intrinsic preferred min-width. min-content The intrinsic minimum min-width. fit-content(<length-percentage>) Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)). Formal definition Initial valueautoApplies toall elements but non-replaced inline elements...
object-position - CSS: Cascading Style Sheets
s/db/4f9fbd7dfb.svg" alt="MDN Logo"/> <img id="object-position-2" src="https://udn.realityripple.com/samples/db/4f9fbd7dfb.svg" alt="MDN Logo"/> CSS The CSS includes default styling for the <img> element itself, as well as separate styles for each of the two images. img { width: 300px; height: 250px; border: 1px solid black; background-color: silver; margin-right: 1em; object-fit: none; } #object-position-1 { object-position: 10px; } #object-position-2 { object-position: 100% 10%; } The first image is positioned with its left edge inset 10 pixels from the left edge of the element's box. The second image is positioned with its right edge flush against the right edge of the element's box and is located 10% of the way down the height of the element's box. Result Specif...
offset-anchor - CSS: Cascading Style Sheets
<position> A <position> defines an x/y coordinate, to place an item relative to the edges of an element's box. It can be defined using one to four values. For more specifics, see the <position> and background-position reference pages. Note that the 3-value position syntax does not work for any usage of <position>, except for in background(...
outline-width - CSS: Cascading Style Sheets
Typically equivalent to 1px in desktop browsers (including Firefox). medium Depends on the user agent. Typically equivalent to 3px in desktop browsers (including Firefox). thick Depends on the user agent. Typically equivalent to 5px in desktop browsers (including Firefox). ...
overflow - CSS: Cascading Style Sheets
Web › CSS › overflow
box, it looks the same as visible, but still establishes a new block formatting context. Desktop browsers provide scrollbars if content overflows. overlay Behaves the same as auto, but with the scrollbars drawn on top of content instead of taking up space. Only supported in WebKit-based (e.g., Safari) and Blink-based (e.g., Chrome or Opera) browsers. Mozilla extensions -moz-scrollbars-none [1] Use overflow: hidden instead. -moz-scrollbars-horizontal [1] Use overflow-x: scroll and overflow-y: hidden, or overflow: hidden scroll instead. -moz-scrollbars-vertical [1] Use overflow-x: hidden and overflow-y: scroll, or overflow: scroll hidden instead. -moz-hidden-unscrollable Intended mainly for internal use and by themes. Disables scrolling of XML root elements, <html>, and ...
perspective-origin - CSS: Cascading Style Sheets
ve-origin: bottom left; } .pobm { perspective-origin: bottom; } .pobr { perspective-origin: bottom right; } .po200200neg { perspective-origin: -200% -200%; } .po200200pos { perspective-origin: 200% 200%; } .po200200 { perspective-origin: 200% -200%; } /* Define the container div, the cube div, and a generic face */ .container { width: 100px; height: 100px; margin: 24px; border: none; } .cube { width: 100%; height: 100%; backface-visibility: visible; perspective: 300px; transform-style: preserve-3d; } .face { display: block; position: absolute; width: 100px; height: 100px; border: none; line-height: 100px; font-family: sans-serif; font-size: 60px; color: white; text-align: center; } /* Define each face based on direction */ .front { backgrou...
scroll-behavior - CSS: Cascading Style Sheets
syntax auto | smooth Examples Setting smooth scroll behavior HTML <nav> <a href="#page-1">1</a> <a href="#page-2">2</a> <a href="#page-3">3</a> </nav> <scroll-container> <scroll-page id="page-1">1</scroll-page> <scroll-page id="page-2">2</scroll-page> <scroll-page id="page-3">3</scroll-page> </scroll-container> CSS a { display: inline-block; width: 50px; text-decoration: none; } nav, scroll-container { display: block; margin: 0 auto; text-align: center; } nav { width: 339px; padding: 5px; border: 1px solid black; } scroll-container { display: block; width: 350px; height: 200px; overflow-y: scroll; scroll-behavior: smooth; } scroll-page { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 5em; } Resul...
text-decoration-style - CSS: Cascading Style Sheets
text-decoration-style: double; text-decoration-style: dotted; text-decoration-style: dashed; text-decoration-style: wavy; /* Global values */ text-decoration-style: inherit; text-decoration-style: initial; text-decoration-style: unset; Values solid Draws a single line. double Draws a double line. dotted Draws a dotted line. dashed Draws a dashed line. wavy Draws a wavy line. -moz-none Draws no line. Use text-decoration-line: none instead. Formal definition Initial valuesolidApplies toall elements. It also applies to ::first-letter and ::first-line.InheritednoComputed valueas specifiedAnimation typediscrete Formal syntax solid | double | dotted | dashed | wavy Examples Setting a wavy underline .example { -moz-text-decoration-line: underline; -moz-text-de...
transform-box - CSS: Cascading Style Sheets
transform-box: fill-box is used to make the the transform-origin the center of the bounding box, so the rectangle spins in place. Without it, the transform origin is the center of the SVG canvas, and so you get a very different effect. svg{ width:80vh; border:1px solid #d9d9d9; posi...
transform-origin - CSS: Cascading Style Sheets
absolute value, otherwise a percentageAnimation typesimple list of length, percentage, or calc Formal syntax [ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?where <length-percentage> = <length> | <percentage> Examples Code Sample transform: none; <div class="box1">&nbsp;</div> .box1 { margin: 0.5em; width: 3em; height: 3em; border: solid 1px; background-color: palegreen; transform: none; -webkit-transform: none; } transform: rotate(30deg); <div class="box2">&nbsp;</div> .box2 { margin: 0.5em; width: 3em; height: 3em; border: solid 1px; background-color: paleg...
Audio and Video Delivery - Developer guides
ement's networkState attribute. If this is HTMLMediaElement.NETWORK_NO_SOURCE, you know that all the sources failed to load. If at that point you add another source, by inserting a new <source> element as a child of the media element, Gecko attempts to load the specified resource. Showing fallback content when no source could be decoded Another way to show the fallback content of a video, when none of the sources could be decoded in the current browser, is to add an error handler on the last source element. Then you can replace the video with its fallback content: <video controls> <source src="dynamicsearch.mp4" type="video/mp4"></source> <a href="dynamicsearch.mp4"> <img src="dynamicsearch.jpg" alt="Dynamic app search in Firefox OS"> </a> <p>Click image to play a video demo of...
Audio and video manipulation - Developer guides
ent. Read the data from the intermediary <canvas> element and manipulate it. Write the manipulated data to your "display" <canvas>. Pause and repeat. For example, let's process a video to display it in greyscale. In this case, we'll show both the source video and the output greyscale frames. Ordinarily, if you were implementing a "play video in greyscale" feature, you'd probably add display: none to the style for the <video> element, to keep the source video from being drawn to the screen while showing only the canvas showing the altered frames. HTML We can set up our video player and <canvas> element like this: <video id="my-video" controls="true" width="480" height="270" crossorigin="anonymous"> <source src="https://udn.realityripple.com/samples/5b/8cd6da9c65.webm" type="video/webm...
Block formatting context - Developer guides
Absolutely positioned elements (elements where position is absolute or fixed). ...
Challenge solutions - Developer guides
tylesheet so that the inner petals all turn pink when the mouse pointer is over any one of them, without changing the way the outer petals work. Solution Move the position of the :hover pseudo-class from a specific petal, to all petals #inner-petals { --segment-fill-fill-hover: pink; } /* Non-standard way for some older browsers */ #inner-petals:hover .segment-fill { fill: pink; stroke: none; } ...
Creating and triggering events - Developer guides
event) on a checkbox using DOM methods. View the example in action. function simulateClick() { const event = new MouseEvent('click', { view: window, bubbles: true, cancelable: true }); const cb = document.getElementById('checkbox'); const cancelled = !cb.dispatchEvent(event); if (cancelled) { // A handler called preventDefault. alert("cancelled"); } else { // None of the handlers called preventDefault. alert("not cancelled"); } } ...
Constraint validation - Developer guides
valueMissing constraint violation step date An integer number of days Unless the step is set to the any literal, the value must be min + an integral multiple of the step. stepMismatch constraint violation month An integer number of months w...
disabled - HTML: Hypertext Markup Language
control or it's descendant controls. If this attribute is not specified, the control inherits its setting from the containing element, for example fieldset; if there is no containing element with the disabled attribute set, and the control itself does not have the attribute, then the control is enabled. If declared on an <optgroup>, the select is still interactive (unless otherwise disabled), but none of the items in the option group are selectable. Note: If a <fieldset> is disabled, the descendant form controls are all disabled, with the exception of form controls within the <legend>. When a supporting element has the disabled attribute applied, the :disabled pseudo-class also applies to it. Conversely, elements that support the disabled attribute but don't have the attribute set match th...
HTML attribute: rel - HTML: Hypertext Markup Language
Web › HTML › Attributes › rel
ified by the given address) that applies to the current document. Not allowed Link Not allowed The rel attribute is relevant to the <link>, <a>, <area>, and <form> elements, but some values only relevant to a subset of those elements. Like all HTML keyword attribute values, these values are case-insenstive. The rel attribute has no default value. If the attribute is omitted or if none of the values in the attribute are supported, then the document has no particular relationship with the destination resource other than there being a hyperlink between the two. In this case, on <link> and <form>, if the rel attribute is absent, has no keywords, or if not one or more of the space-separated keywords above, then the element does not create any links. <a> and <area> will still create...
HTML attribute: required - HTML: Hypertext Markup Language
l pseudo-class. In the case of a same named group of radio buttons, if a single radio button in the group has the required attribute, a radio button in that group must be check, though it doesn't have to be the one with the attribute is applied. For this reason, to improve code maintenance, it is recommened to either include the required attribute in every same-named radio button in the group or none. In the case of a same named group of checkbox input types, only the checkboxes with the required attribute are required. Note: Setting aria-required="true" tells a screen reader that an element (any element) is required, but has no bearing on the optionality of the element. Attribute interactions Because a read-only field cannot have a value, required does not have any effect on inputs wit...
<h1>–<h6>: The HTML Section Heading elements - HTML: Hypertext Markup Language
6> is the lowest. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, heading content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content; don't use a heading element as a child of the <hgroup> element -- it is now deprecated. Implicit ARIA role heading Permitted ARIA roles tab, presentation or none DOM interface HTMLHeadingElement Attributes These elements only include the...
<a>: The Anchor element - HTML: Hypertext Markup Language
Web › HTML › Element › a
eObsolete since HTML5 The shape of the hyperlink's region in an image map. Note: Use the <area> element for image maps instead. Properties Content categories Flow content, phrasing content, interactive content, palpable content. Permitted content Transparent, containing either flow content (excluding interactive content) or phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content, or any element that accepts flow content, but not other <a> elements. Implicit ARIA role link when href attribute is present, otherwise no corresponding role Permitted ARIA roles When href attribute is present: button checkbox ...
<acronym> - HTML: Hypertext Markup Language
Web › HTML › Element › acronym
e of the author, its default styling varies from one browser to another: Some browsers, like Internet Explorer, do not style it differently than a <span> element. Opera, Firefox, Chrome, and some others add a dotted underline to the content of the element. A few browsers not only add a dotted underline, but also put it in small caps; to avoid this styling, adding something like font-variant: none in the CSS takes care of this case. It is therefore recommended that web authors either explicitly style this element, or accept some cross-browser variation. Specifications Specification Status Comment HTML 4.01 SpecificationThe definition of '<acronym>' in that specification. Recommendation Browser compatibility The compatibility table in this page...
<address>: The Contact Address element - HTML: Hypertext Markup Language
Web › HTML › Element › address
rticle by including an <address> element within the <article>. Content categories Flow content, palpable content. Permitted content Flow content, but with no nested <address> element, no heading content (<hgroup>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>), no sectioning content (<article>, <aside>, <section>, <nav>), and no <header> or <footer> element. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content, but always excluding <address> elements (according to the logical principle of symmetry, if <address> tag, as a parent, can not have nested <address> element, then the same <address> content can not have <address> tag as its parent). Implicit ARIA role No corresponding...
<applet>: The Embed Java Applet element - HTML: Hypertext Markup Language
Web › HTML › Element › applet
element has been deprecated in favor of <object>. Use of Java applets on the Web is deprecated; most browsers no longer support use of plug-ins, including the Java plug-in. Content categories Flow content, phrasing content, embedded content, interactive content, palpable content. Permitted content Zero or more <param> elements, then transparent. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts embedded content. DOM interface HTMLAppletElement Attributes align This attribute is used to position the applet on the page relative to content that might flow around it. The HTML 4.01 specification defines values of bottom, left, middle, right, and top, whereas Microsof...
<area> - HTML: Hypertext Markup Language
Web › HTML › Element › area
s it with a hypertext link. This element is used only within a <map> element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content. Permitted content None, it is an empty element. Tag omission Must have a start tag and must not have an end tag. Permitted parents Any element that accepts phrasing content. The <area> element must have an ancestor <map>, but it need not be a direct parent. Implicit ARIA role link when href attribute is present, otherwise no corresponding role Permitted ARIA roles No role...
<article>: The Article Contents element - HTML: Hypertext Markup Language
Web › HTML › Element › article
given document can have multiple articles in it; for example, on a blog that shows the text of each article one after another as the reader scrolls, each post would be contained in an <article> element, possibly with one or more <section>s within. Content categories Flow content, sectioning content, palpable content Permitted content Flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Note that an <article> element must not be a descendant of an <address> element. Implicit ARIA role article Permitted ARIA roles application, document, feed, main, none, presentation, region DOM interface HTMLElement Attributes This elem...
<aside>: The Aside element - HTML: Hypertext Markup Language
Web › HTML › Element › aside
or call-out boxes. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, sectioning content, palpable content. Permitted content Flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Note that an <aside> element must not be a descendant of an <address> element. Implicit ARIA role complementary Permitted ARIA roles feed, none, note, presentation, region, search DOM interface HTMLElement Attributes This element only in...
<b>: The Bring Attention To element - HTML: Hypertext Markup Language
Web › HTML › Element › b
ecial importance. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Use the <b> for cases like keywords in a summary, product names ...
<base>: The Document Base URL element - HTML: Hypertext Markup Language
Web › HTML › Element › base
The HTML <base> element specifies the base URL to use for all relative URLs in a document. There can be only one <base> element in a document. A document's used base URL can be accessed by scripts with document.baseURI. If the document has no <base> elements, then baseURI defaults to location.href. Content categories Metadata content. Permitted content None, it is an empty element. Tag omission There must be no closing tag. Permitted parents A <head> that doesn't contain another <base> element. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLBaseElement Attributes This element's attributes include the global attributes. If either of the following at...
<bdi>: The Bidirectional Isolate element - HTML: Hypertext Markup Language
Web › HTML › Element › bdi
g element, HTML authors should not use this approach because it is not semantic and browsers are allowed to ignore CSS styling. Embedding the characters in <span dir="auto"> has the same effect as using <bdi>, but its semantics are less clear. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes Like all other HTML elements, this element supports the global attributes, except that the dir attribute behaves differently than ...
<bdo>: The Bidirectional Text Override element - HTML: Hypertext Markup Language
Web › HTML › Element › bdo
/mdn/interactive-examples and send us a pull request. The text's characters are drawn from the starting point in the given direction; the individual characters' orientation is not affected (so characters don't get drawn backward, for example). Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element. Attributes This element's attribu...
<blockquote>: The Block Quotation element - HTML: Hypertext Markup Language
ng the <cite> element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, sectioning root, palpable content. Permitted content Flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLQuoteElement Attributes This element's attributes include the global attributes. cite A URL that designates a source document or message for the info...
<br>: The Line Break element - HTML: Hypertext Markup Language
Web › HTML › Element › br
ng technology. Screen readers may announce the presence of the element, but not any content contained within <br>s. This can be a confusing and frustrating experience for the person using the screen reader. Use <p> elements, and use CSS properties like margin to control their spacing. Technical summary Content categories Flow content, phrasing content. Permitted content None, it is an empty element. Tag omission Must have a start tag, and must not have an end tag. In XHTML documents, write this element as <br />. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles none, presentation DOM interface HTMLBRElement Specifications ...
<canvas>: The Graphics Canvas element - HTML: Hypertext Markup Language
Web › HTML › Element › canvas
the canvas scripting API or the WebGL API to draw graphics and animations. Content categories Flow content, phrasing content, embedded content, palpable content. Permitted content Transparent but with no interactive content descendants except for <a> elements, <button> elements, <input> elements whose type attribute is checkbox, radio, or button. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLCanvasElement Attributes This element's attributes include the global attributes. height The height of the coordinate space in CSS pixels. Defaul...
<caption>: The Table Caption element - HTML: Hypertext Markup Language
Web › HTML › Element › caption
Permitted content Flow content. ...
<cite>: The Citation element - HTML: Hypertext Markup Language
Web › HTML › Element › cite
tation metadata. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element. Attributes This element only incl...
<code>: The Inline Code element - HTML: Hypertext Markup Language
Web › HTML › Element › code
t monospace font. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element. Attributes This element only incl...
<content>: The Shadow DOM Content Placeholder element (obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › content
ons and implemented in several browsers, this element has been removed in later versions of the spec, and should not be used. It is documented here to assist in adapting code written during the time it was included in the spec to work with newer versions of the specification. Content categories Transparent content. Permitted content Flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parent elements Any element that accepts flow content. DOM interface HTMLContentElement Attributes This element includes the global attributes. select A comma-separated list of selectors. These have the same syntax as CSS selectors. They select the content to insert in place of the <content> element. ...
<data> - HTML: Hypertext Markup Language
Web › HTML › Element › data
ent must be used. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLDataElement Attributes This element's attributes include the global attributes. value This attribute specifies the machine-readable translation o...
<datalist>: The HTML Data List element - HTML: Hypertext Markup Language
Web › HTML › Element › datalist
source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content. Permitted content Either phrasing content or zero or more <option> elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role listbox Permitted ARIA roles No role permitted DOM interface HTMLDataListElement Attributes This element has no other attributes than the global attributes, common to all elements. Examples <label for="myBrowser"...
<dd>: The Description Details element - HTML: Hypertext Markup Language
Web › HTML › Element › dd
The HTML <dd> element provides the description, definition, or value for the preceding term (<dt>) in a description list (<dl>). The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Flow content. Tag omission The start tag is required. The end tag may be omitted if the <dd> element is immediately followed by another <dd> element or a <dt> element, or if there is no more content in the parent element. Permitted parents <dl> or (in WHATWG HTML) a <div> that is inside a <dl>. Previous sibling <dt> or another <dd> element.
<del>: The Deleted Text element - HTML: Hypertext Markup Language
Web › HTML › Element › del
tHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. This element is often (but need not be) rendered by applying a strike-through style to the text. Content categories Phrasing content or flow content. Permitted content Transparent. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLModElement Attributes This element's attributes include the global attributes. cite A URI for a resource that explains the change (for example, m...
<dfn>: The Definition element - HTML: Hypertext Markup Language
Web › HTML › Element › dfn
teractive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content, but no <dfn> element must be a descendant. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role term Permitted ARIA roles Any DOM interface HTMLElement Attributes This element's attributes include the global attributes. In HTML5, the title attribute has special meaning, as noted below. Usage notes There ar...
<dialog>: The Dialog element - HTML: Hypertext Markup Language
Web › HTML › Element › dialog
The HTML <dialog> element represents a dialog box or other interactive component, such as a dismissable alert, inspector, or subwindow. Content categories Flow content, sectioning root Permitted content Flow content Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content Implicit ARIA role dialog Permitted ARIA roles alertdialog DOM interface HTMLDialogElement Attributes This element includes the global attributes. The tabindex attribute must not be used on the <dialog> element. open Indicates that the dialog is active and can be interacted with. When the open attribute is not set, the dialog shouldn't be shown to the user. Us...
<div>: The Content Division element - HTML: Hypertext Markup Language
Web › HTML › Element › div
nt as being written in a different language (using the lang attribute), and so on. Content categories Flow content, palpable content. Permitted content Flow content. Or (in WHATWG HTML): If the parent is a <dl> element: one or more <dt> elements followed by one or more <dd> elements, optionally intermixed with <script> and <template> elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Or (in WHATWG HTML): <dl> element. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLDivElement Attributes This element includes the global attributes. Note: The align attribute is obsolete; do not...
<dl>: The Description List element - HTML: Hypertext Markup Language
Web › HTML › Element › dl
ement's children include one name-value group, palpable content. Permitted content Either: Zero or more groups each consisting of one or more <dt> elements followed by one or more <dd> elements, optionally intermixed with <script> and <template> elements. Or: One or more <div> elements, optionally intermixed with <script> and <template> elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role No corresponding role Permitted ARIA roles group, list, none, presentation DOM interface HTMLDListElement Attributes This element only includes the global attributes. Examples Single term and description <dl> <dt>...
<dt>: The Description Term element - HTML: Hypertext Markup Language
Web › HTML › Element › dt
subsequent <dd> (Description Details) element provides the definition or other related text associated with the term specified using <dt>. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Flow content, but with no <header>, <footer>, sectioning content or heading content descendants. Tag omission Must have a start tag. The end tag may be omitted if this element is immediately followed by another <dt> or a <dd> element, or if there is no more content in the parent element. Permitted parents Before a <dt> or a <dd> element, insi...
<element>: The Custom Element element (Obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › element
ion; it was intended to be used to define new custom DOM elements. It was removed in favor of a JavaScript-driven approach for creating new custom elements. Note: This element has been removed from the specification. See this for more information from the editor of the specification. Content categories Transparent content. Permitted content ??? Tag omission None, both the starting and ending tag are mandatory. Permitted parent elements ??? DOM interface HTMLElement Attributes This element includes the global attributes. Specifications The <element> element was formerly in a draft specification of Custom Elements but it has been removed. Browser compatibility The compatibility table in this page is generated from struct...
<em>: The Emphasis element - HTML: Hypertext Markup Language
Web › HTML › Element › em
gree of emphasis. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element. Attributes This element only incl...
<embed>: The Embed External Content element - HTML: Hypertext Markup Language
Web › HTML › Element › embed
ized implementation of the element. Keep in mind that most modern browsers have deprecated and removed support for browser plug-ins, so relying upon <embed> is generally not wise if you want your site to be operable on the average user's browser. Content categories Flow content, phrasing content, embedded content, interactive content, palpable content. Permitted content None, it is an empty element. Tag omission Must have a start tag, and must not have an end tag. Permitted parents Any element that accepts embedded content. Implicit ARIA role No corresponding role Permitted ARIA roles application, document, img, none, presentation DOM interface HTMLEmbedElement Attributes This element's attributes in...
<fieldset>: The Field Set element - HTML: Hypertext Markup Language
Web › HTML › Element › fieldset
"> </div> <div> <label for="pwd">Archetype: </label> <input type="password" id="pwd" value="Wookie"> </div> </fieldset> </form> Technical summary Content categories Flow content, sectioning root, listed, form-associated element, palpable content. Permitted content An optional <legend> element, followed by flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role group Permitted ARIA roles radiogroup, presentation, none DOM interface HTMLFieldSetElement Specifications Specification Status Comment HTML Living StandardThe definition of '<fieldset>' in ...
<figcaption>: The Figure Caption element - HTML: Hypertext Markup Language
ML <figcaption> or Figure Caption element represents a caption or legend describing the rest of the contents of its parent <figure> element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents A <figure> element; the <figcaption> element must be its first or last child. Implicit ARIA role No corresponding role Permitted ARIA roles group, none, presentation DOM interface HTMLElement Attributes...
<figure>: The Figure with Optional Caption element - HTML: Hypertext Markup Language
Web › HTML › Element › figure
u'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, sectioning root, palpable content. Permitted content A <figcaption> element, followed by flow content; or flow content followed by a <figcaption> element; or flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts Flow content. Implicit ARIA role figure Permitted ARIA roles With no figcaption descendant: any, otherwise no permitted roles DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Usually a <figure> is ...
<font> - HTML: Hypertext Markup Language
Web › HTML › Element › font
o the proportional or fixed-width font for that system. size This attribute specifies the font size as either a numeric or relative value. Numeric values range from 1 to 7 with 1 being the smallest and 3 the default. It can be defined using a relative value, like +2 or -3, which set it relative to the value of the size attribute of the <basefont> element, or relative to 3, the default value, if none does exist. DOM interface This element implements the HTMLFontElement interface. ...
<head>: The Document Metadata (Header) element - HTML: Hypertext Markup Language
Web › HTML › Element › head
The HTML <head> element contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets. Note: <head> primarily holds information for machine processing, not human-readability. For human-visible information, like top-level headings and listed authors, see the <header> element. Content categories None. Permitted content If the document is an <iframe> srcdoc document, or if title information is available from a higher level protocol (like the subject line in HTML email), zero or more elements of metadata content. Otherwise, one or more elements of metadata content where exactly one is a <title> element. Tag omission The start tag may be omitted if the first thing inside the <head> element is an ...
<hgroup> - HTML: Hypertext Markup Language
Web › HTML › Element › hgroup
this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, heading content, palpable content. Permitted content One or more <h1>, <h2>, <h3>, <h4>, <h5>, and/or <h6>. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes The <hgroup> element has been removed from the HTML5 (W3C) specificat...
<hr>: The Thematic Break (Horizontal Rule) element - HTML: Hypertext Markup Language
Web › HTML › Element › hr
us a pull request. Historically, this has been presented as a horizontal rule or line. While it may still be displayed as a horizontal rule in visual browsers, this element is now defined in semantic terms, rather than presentational terms, so if you wish to draw a horizontal line, you should do so using appropriate CSS. Content categories Flow content. Permitted content None, it is an empty element. Tag omission It must have start tag, but must not have an end tag. Permitted parents Any element that accepts flow content. Implicit ARIA role separator Permitted ARIA roles presentation or none DOM interface HTMLHRElement Attributes This element's attributes include the global attributes. align Set...
<html>: The HTML Document / Root element - HTML: Hypertext Markup Language
Web › HTML › Element › html
The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element. Content categories None. Permitted content One <head> element, followed by one <body> element. 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. Permitted parents None. This is the root element of a document. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLHtmlElement Attributes This element includes the global attribute...
<i>: The Idiomatic Text element - HTML: Hypertext Markup Language
Web › HTML › Element › i
of this element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Use the <i> element for text that is set off from the normal pro...
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
Web › HTML › Element › iframe
t. Because each browsing context is a complete document environment, every <iframe> in a page requires increased memory and other computing resources. While theoretically you can use as many <iframe>s as you like, check for performance problems. Content categories Flow content, phrasing content, embedded content, interactive content, palpable content. Permitted content None. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts embedded content. Implicit ARIA role No corresponding role Permitted ARIA roles application, document, img, none, presentation DOM interface HTMLIFrameElement Attributes This element includes the global attributes. al...
<input type="button"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › button
TML, the newer <button> element is now the favored way to create buttons. Given that a <button>'s label text is inserted between the opening and closing tags, you can include HTML in the label, even images. Value A DOMString used as the button's label Events click Supported common attributes type, and value IDL attributes value Methods None Value An <input type="button"> elements' value attribute contains a DOMString that is used as the button's label. <input type="button" value="Click Me"> If you don't specify a value, you get an empty button: <input type="button"> Using buttons <input type="button"> elements have no default behavior (their cousins, <input type="submit"> and <input type="reset"> are used to sub...
<input type="checkbox"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › checkbox
the sub-options have a different state than the others, the owning checkbox is in the indeterminate state. This can be seen in the below example (thanks to CSS Tricks for the inspiration). In this example we keep track of the ingredients we are collecting for a recipe. When you check or uncheck an ingredient's checkbox, a JavaScript function checks the total number of checked ingredients: If none are checked, the recipe name's checkbox is set to unchecked. If one or two are checked, the recipe name's checkbox is set to indeterminate. If all three are checked, the recipe name's checkbox is set to checked. So in this case the indeterminate state is used to state that collecting the ingredients has started, but the recipe is not yet complete. var overall = document.querySelector('inpu...
<input type="date"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › date
ativePicker = document.querySelector('.nativeDatePicker'); var fallbackPicker = document.querySelector('.fallbackDatePicker'); var fallbackLabel = document.querySelector('.fallbackLabel'); var yearSelect = document.querySelector('#year'); var monthSelect = document.querySelector('#month'); var daySelect = document.querySelector('#day'); // hide fallback initially fallbackPicker.style.display = 'none'; fallbackLabel.style.display = 'none'; // test whether a new date input falls back to a text input or not var test = document.createElement('input'); try { test.type = 'date'; } catch (e) { console.log(e.description); } // if it does, run the code inside the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativePicker.style.display = 'none'; ...
<input type="hidden"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › hidden
the rendered page, and there is no way to make it visible in the page's content. Note: There is a live example below the following line of code -- if it is working correctly, you should see nothing! <input id="prodId" name="prodId" type="hidden" value="xm234jq"> Value A DOMString representing the value of the hidden data you want to pass back to the server. Events None. Supported Common Attributes autocomplete IDL attributes value Methods None. Note: The input and change events do not apply to this input type. Hidden inputs cannot be focused even using JavaScript (e.g. hiddenInput.focus()). Value The <input> element's value attribute holds a DOMString that contains the hidden data you want to include when the form ...
<input type="reset"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › reset
ou should usually avoid including reset buttons in your forms. They're rarely useful, and are instead more likely to frustrate users who click them by mistake (often while trying to click the submit button). Value A DOMString used as the button's label Events click Supported common attributes type and value IDL attributes value Methods None Value An <input type="reset"> element's value attribute contains a DOMString that is used as the button's label. Buttons such as reset don't have a value otherwise. <input type="reset" value="Reset the form"> If you don't specify a value, you get an button with the default label (typically "Reset," but this will vary depending on the user agent): <input type="reset"> Using res...
<input type="tel"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › tel
inputElems[1].placeholder = "First part"; inputElems[1].pattern = "[0-9]{3}"; inputElems[1].setAttribute("aria-label","First part of number"); inputElems[2].placeholder = "Second part"; inputElems[2].pattern = "[0-9]{4}"; inputElems[2].setAttribute("aria-label","Second part of number"); } else if(selectElem.value === "UK") { inputElems[2].parentNode.style.display = "none"; inputElems[0].placeholder = "Area code"; inputElems[0].pattern = "[0-9]{3,6}"; inputElems[1].placeholder = "Local number"; inputElems[1].pattern = "[0-9]{4,8}"; inputElems[1].setAttribute("aria-label","Local number"); } else if(selectElem.value === "Germany") { inputElems[2].parentNode.style.display = "inline"; inputElems[0].placeholder = "Area code"; inputE...
<ins> - HTML: Hypertext Markup Language
Web › HTML › Element › ins
t has been deleted from the document. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Phrasing content or flow content. Permitted content Transparent. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLModElement Attributes This element includes the global attributes. cite This attribute defines the URI of a resource that explains the change, su...
<kbd>: The Keyboard Input element - HTML: Hypertext Markup Language
Web › HTML › Element › kbd
oject, please clone https://github.com/mdn/interactive-examples and send us a pull request. <kbd> may be nested in various combinations with the <samp> (Sample Output) element to represent various forms of input or output based on visual cues. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Other elements can be used in tandem with <kbd> to represent more ...
<keygen> - HTML: Hypertext Markup Language
Web › HTML › Element › keygen
pected that the <keygen> element will be used in an HTML form along with other information needed to construct a certificate request, and that the result of the process will be a signed certificate. Content categories Flow content, phrasing content, interactive content, listed, labelable, submittable, resettable form-associated element, palpable content. Permitted content None, it is an empty element. Tag omission Must have a start tag and must not have an end tag. Permitted parents Any element that accepts phrasing content. Permitted ARIA roles None DOM interface HTMLKeygenElement Attributes This element includes the global attributes. autofocus This Boolean attribute lets you specify that the control should ...
<label> - HTML: Hypertext Markup Language
Web › HTML › Element › label
technology parses the button input. The same applies for the <button> element. Technical summary Content categories Flow content, phrasing content, interactive content, form-associated element, palpable content. Permitted content Phrasing content, but no descendant label elements. No labelable elements other than the labeled control are allowed. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLLabelElement Specifications Specification Status Comment HTML Living StandardThe definition of '<label>' in...
<legend> - HTML: Hypertext Markup Language
Web › HTML › Element › legend
The HTML <legend> element represents a caption for the content of its parent <fieldset>. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Phrasing content and headings (h1-h6 elements). Tag omission None, both the starting and ending tag are mandatory. Permitted parents A <fieldset> whose first child is this <legend> element Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLLegendElement Attributes This element only includes the global ...
<link>: The External Resource Link element - HTML: Hypertext Markup Language
Web › HTML › Element › link
ll of its imported content has been loaded and parsed, and immediately before the styles start being applied to the content. Preload examples You can find a number of <link rel="preload"> examples in Preloading content with rel="preload". Technical summary Content categories Metadata content. If itemprop is present: Flow content and phrasing content. Permitted content None, it is an empty element. Tag omission As it is a void element, the start tag must be present and the end tag must not be present Permitted parents Any element that accepts metadata elements. If itemprop is present: any element that accepts phrasing content. Implicit ARIA role link with href attribute Permitted ARIA roles No role permitted D...
<main> - HTML: Hypertext Markup Language
Web › HTML › Element › main
repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. A document mustn't have more than one <main> element that doesn't have the hidden attribute specified. Content categories Flow content, palpable content. Permitted content Flow content. Tag omission None; both the starting and ending tags are mandatory. Permitted parents Where flow content is expected, but only if it is a hierarchically correct main element. Implicit ARIA role main Permitted ARIA roles No role permitted DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes The content of a <main...
<map> - HTML: Hypertext Markup Language
Web › HTML › Element › map
ink area). The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Any transparent element. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLMapElement Attributes This element includes the global attributes. name The name attribute gives the map a name so that it can be r...
<mark>: The Mark Text element - HTML: Hypertext Markup Language
Web › HTML › Element › mark
nclosing context. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Typical use cases for <mark> include: When used in a quotation ...
<menu> - HTML: Hypertext Markup Language
Web › HTML › Element › menu
u state: flow content, or alternatively, zero or more occurrences of <li>, <script>, and <template>. (list menu is the default state, unless the parent element is a <menu> in the context menu state.) If the element is in the context menu state: zero or more occurrences, in any order, of <menu> (context menu state only), <menuitem>, <hr>, <script>, and <template>. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role list Permitted ARIA roles directory, group, listbox, menu, menubar, none, presentation, radiogroup, tablist, toolbar or tree DOM interface HTMLMenuElement Attributes This element includes the global attributes. labe...
Standard metadata names - HTML: Hypertext Markup Language
Web › HTML › Element › meta › name
ows the robot to index the page (default). All noindex Requests the robot to not index the page. All follow Allows the robot to follow the links on the page (default). All nofollow Requests the robot to not follow the links on the page. All all Equivalent to index, follow Google none Equivalent to noindex, nofollow Google noarchive Requests the search engine not to cache the page content. Google, Yahoo, Bing nosnippet Prevents displaying any description of the page in search engine results. Google, Bing noimageindex Requests this page not to appear as the referring page of an indexed image. G...
<meta>: The Document-level Metadata element - HTML: Hypertext Markup Language
Web › HTML › Element › meta
Tag omission As it is a void element, the start tag must be present and the end tag must not be present. ...
<meter>: The HTML Meter element - HTML: Hypertext Markup Language
Web › HTML › Element › meter
ub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, labelable content, palpable content. Permitted content Phrasing content, but there must be no <meter> element among its descendants. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLMeterElement Attributes This element includes the global attributes. value The current numeric value. This must be between the mini...
<multicol>: The HTML Multi-Column Layout element (Obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › multicol
...
<nav>: The Navigation Section element - HTML: Hypertext Markup Language
Web › HTML › Element › nav
ents, and indexes. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, sectioning content, palpable content. Permitted content Flow content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role navigation Permitted ARIA roles No role permitted DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes It's not necessary for all links to be contained in a <nav> eleme...
<noscript> - HTML: Hypertext Markup Language
Web › HTML › Element › noscript
nd when it is a descendant of the <head> element: in any order, zero or more <link> elements, zero or more <style> elements, and zero or more <meta> elements. When scripting is disabled and when it isn't a descendant of the <head> element: any transparent content, but no <noscript> element must be among its descendants. Otherwise: flow content or phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content, if there are no ancestor <noscript> element, or in a <head> element (but only for an HTML document), here again if there are no ancestor <noscript> element. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM int...
<object> - HTML: Hypertext Markup Language
Web › HTML › Element › object
ect, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content; phrasing content; embedded content, palpable content; if the element has a usemap attribute, interactive content; listed, submittable form-associated element. Permitted content zero or more <param> elements, then transparent. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts embedded content. Implicit ARIA role No corresponding role Permitted ARIA roles application, document, image DOM interface HTMLObjectElement Attributes This element includes the global attributes. archiveHTML 4 onlyObsolete since HTML5 A space-sep...
<ol>: The Ordered List element - HTML: Hypertext Markup Language
Web › HTML › Element › ol
itory. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, and if the <ol> element's children include at least one <li> element, palpable content. Permitted content Zero or more <li>, <script> and <template> elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role list Permitted ARIA roles directory, group, listbox, menu, menubar, none, presentation, radiogroup, tablist, toolbar, tree DOM interface HTMLOListElement Attributes This element also accepts the global attributes. r...
<option>: The HTML Option element - HTML: Hypertext Markup Language
Web › HTML › Element › option
an <optgroup>, or a <datalist> element. As such, <option> can represent menu items in popups and other lists of items in an HTML document. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Text, possibly with escaped characters (like &eacute;). Tag omission The start tag is mandatory. The end tag is optional if this element is immediately followed by another <option> element or an <optgroup>, or if the parent element has no more content. Permitted parents A <select>, an <optgroup> or a <datalist> element. Implicit ARIA...
<output>: The Output element - HTML: Hypertext Markup Language
Web › HTML › Element › output
The HTML Output element (<output>) is a container element into which a site or app can inject the results of a calculation or the outcome of a user action. Content categories Flow content, phrasing content, listed, labelable, resettable form-associated element, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role status Permitted ARIA roles Any DOM interface HTMLOutputElement Attributes This element includes the global attributes. for A space-separated list of other elements' ids, indicating that those elements contributed input values to (or otherwise...
<p>: The Paragraph element - HTML: Hypertext Markup Language
Web › HTML › Element › p
y provide shortcuts to let their users skip to the next or previous paragraph, letting them skim content like how white space lets visual users skip around. Using empty <p> elements to add space between paragraphs is problematic for people who navigate with screen-reading technology. Screen readers may announce the paragraph's presence, but not any content contained within it -- because there is none. This can confuse and frustrate the person using the screen reader. If extra space is desired, use CSS properties like margin to create the effect: p { margin-bottom: 2em; // increase white space after a paragraph } Specifications Specification Status Comment HTML Living StandardThe definition of '<p>' in that specification. Living Standard No change since...
<param>: The Object Parameter element - HTML: Hypertext Markup Language
Web › HTML › Element › param
Tag omission As it is a void element, the start tag must be present and the end tag must not be present. Permitted parents An <object> before any flow content. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLParamElement Attributes This element includes the global attributes. name Name of the parameter. value Specifies the value of the parameter. ...
<pre>: The Preformatted Text element - HTML: Hypertext Markup Language
Web › HTML › Element › pre
s element is displayed as written. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLPreElement Attributes This element only includes the global attributes. cols Contains the preferred count of characters that a line should have. I...
<progress>: The Progress Indicator element - HTML: Hypertext Markup Language
Web › HTML › Element › progress
repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, labelable content, palpable content. Permitted content Phrasing content, but there must be no <progress> element among its descendants. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role progressbar Permitted ARIA roles No role permitted DOM interface HTMLProgressElement Attributes This element includes the global attributes. max This attribute describes how much work the task indicated by the ...
<q>: The Inline Quotation element - HTML: Hypertext Markup Language
Web › HTML › Element › q
ckquote> element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLQuoteElement Usage note: Most modern browsers will automatically add quotation marks around text inside a <q> element. A style rule may be needed to ...
<rb>: The Ruby Base element - HTML: Hypertext Markup Language
Web › HTML › Element › rb
rb> element should wrap each separate atomic segment of the base text. {{EmbedInteractiveExample("pages/tabbed/rb.html", "tabbed-standard")}} The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content As a child of a <ruby> element. Tag omission The end tag can be omitted if the element is immediately followed by an <rt>, <rtc>, or <rp> element or another <rb> element, or if there is no more content in the parent element. Permitted parents A <ruby> element. Permitted ARIA roles Any DOM interface HTMLElement A...
<rp>: The Ruby Fallback Parenthesis element - HTML: Hypertext Markup Language
Web › HTML › Element › rp
One <rp> element should enclose each of the opening and closing parentheses that wrap the <rt> element that contains the annotation's text. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Text Tag omission The end tag can be omitted if the element is immediately followed by an <rt> or another <rp> element, or if there is no more content in the parent element. Permitted parents A <ruby> element. <rp> must be positioned immediately before or after an <rt> element. Implicit ARIA role No corresponding role Per...
<rt>: The Ruby Text element - HTML: Hypertext Markup Language
Web › HTML › Element › rt
typography. The <rt> element must always be contained within a <ruby> element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. See the article about the <ruby> element for more examples. Content categories None. Permitted content Phrasing content. Tag omission The end tag may be omitted if the <rt> element is immediately followed by an <rt> or <rp> element, or if there is no more content in the parent element Permitted parents A <ruby> element. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLEleme...
<rtc>: The Ruby Text Container element - HTML: Hypertext Markup Language
Web › HTML › Element › rtc
in a ruby of <rb> elements used inside of <ruby> element. <rb> elements can have both pronunciation (<rt>) and semantic (<rtc>) annotations. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Phrasing content or <rt> elements. Tag omission The closing tag can be omitted if it is immediately followed by a <rb>, <rtc> or <rt> element opening tag or by its parent closing tag. Permitted parents A <ruby> element. Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the...
<ruby> - HTML: Hypertext Markup Language
Web › HTML › Element › ruby
Asian characters. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Examples Example 1: Character <ruby> ? <rp>(</rp><rt>Kan</rt><rp>)</rp> ?
<s> - HTML: Hypertext Markup Language
Web › HTML › Element › s
<ins> elements, as appropriate. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Phrasing content or flow content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Implementation note: Up to Gecko 1.9.2 inclusive, Firefox implements the HTMLSp...
<samp>: The Sample Output element - HTML: Hypertext Markup Language
Web › HTML › Element › samp
Lucida Console). The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes You can use a CSS rule to override the browser's default font face...
<script>: The Script element - HTML: Hypertext Markup Language
Web › HTML › Element › script
is used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The <script> element can also be used with other languages, such as WebGL's GLSL shader programming language and JSON. Content categories Metadata content, Flow content, Phrasing content. Permitted content Dynamic script such as text/javascript. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts metadata content, or any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLScriptElement Attributes This element includes the global attributes. asyncHTML5 Fo...
<select>: The HTML Select element - HTML: Hypertext Markup Language
Web › HTML › Element › select
nd the options being indented. The "Hamster" option includes a disabled attribute and therefore can't be selected at all. Technical summary Content categories Flow content, phrasing content, interactive content, listed, labelable, resettable, and submittable form-associated element Permitted content Zero or more <option> or <optgroup> elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role combobox with no multiple attribute and no size attribute greater than 1, otherwise listbox Permitted ARIA roles menu with no multiple attribute and no size attribute greater than 1, otherwise no role permitted DOM interface ...
<shadow>: The obsolete Shadow Root element - HTML: Hypertext Markup Language
Web › HTML › Element › shadow
The HTML <shadow> element--an obsolete part of the Web Components technology suite--was intended to be used as a shadow DOM insertion point. You might have used it if you have created multiple shadow roots under a shadow host. It is not useful in ordinary HTML. Content categories Transparent content Permitted content Flow content Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Permitted ARIA roles None DOM interface HTMLShadowElement Attributes This element includes the global attributes. Example Here is a simple example of using the <shadow> element. It is an HTML file with everything needed in it. Note: This is an experimental tec...
<small>: the side comment element - HTML: Hypertext Markup Language
Web › HTML › Element › small
ller, such as from small to x-small. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content Permitted content Phrasing content Tag omission None, must have both a start tag and an end tag. Permitted parents Any element that accepts phrasing content, or any element that accepts flow content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Examples Basic usage <p>This is the firs...
<source>: The Media or Image Source element - HTML: Hypertext Markup Language
Web › HTML › Element › source
order to provide compatibility with a broad range of browsers given their differing support for image file formats and media file formats. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content None, it is an empty element. Tag omission It must have a start tag, but must not have an end tag. Permitted parents A media element--<audio> or <video>--and it must be placed before any flow content or <track> element. A <picture> element, and it must be placed before the <img> element. Implicit ARIA role No correspon...
<span> - HTML: Hypertext Markup Language
Web › HTML › Element › span
reas a <span> is an inline element. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content, or any element that accepts flow content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLSpanElement (before HTML5, the interface was HTMLElement) Attributes This element only includes the global ...
<strong>: The Strong Importance element - HTML: Hypertext Markup Language
Web › HTML › Element › strong
nts in bold type. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, must have both a start tag and an end tag. Permitted parents Any element that accepts phrasing content, or any element that accepts flow content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes The <strong> element is for c...
<sub>: The Subscript element - HTML: Hypertext Markup Language
Web › HTML › Element › sub
ing smaller text. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes The <sub> element should be used only for typographical reasons--t...
<summary>: The Disclosure Summary element - HTML: Hypertext Markup Language
Web › HTML › Element › summary
ggles the state of the parent <details> element open and closed. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Permitted content Phrasing content or one element of Heading content Tag omission None, both the start tag and the end tag are mandatory. Permitted parents The <details> element. Implicit ARIA role button Permitted ARIA roles No role permitted DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes The <summary> element's contents can be any heading content, plain text, or HTML that...
<sup>: The Superscript element - HTML: Hypertext Markup Language
Web › HTML › Element › sup
ing smaller text. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes The <sup> element should only be used for typographical reasons--t...
<tbody>: The Table Body element - HTML: Hypertext Markup Language
Web › HTML › Element › tbody
ub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. The <tbody> element, along with its cousins <thead> and <tfoot>, provide useful semantic information that can be used when rendering for either screen or printer as well as for accessibility purposes. Content categories None. Permitted content Zero or more <tr> elements. Tag omission The <tbody> element is not a required child element for a parent <table> element to graphically render. However, it must not be present, if its parent <table> element has a <tr> element as a child. Permitted parents Within the required parent <table> element, the <tbody> element can be added after a <c...
<template>: The Content Template element - HTML: Hypertext Markup Language
Web › HTML › Element › template
use in the document. While the parser does process the contents of the <template> element while loading the page, it does so only to ensure that those contents are valid; the element's contents are not rendered, however. Content categories Metadata content, flow content, phrasing content, script-supporting element Permitted content No restrictions Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts metadata content, phrasing content, or script-supporting elements. Also allowed as a child of a <colgroup> element that does not have a span attribute. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLTemplateE...
<tfoot>: The Table Foot element - HTML: Hypertext Markup Language
Web › HTML › Element › tfoot
Permitted content Zero or more <tr> elements. ...
<th> - HTML: Hypertext Markup Language
Web › HTML › Element › th
element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None. Permitted content Flow content, but with no header, footer, sectioning content, or heading content descendants. 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. Permitted parents A <tr> element. Implicit ARIA role colu...
<thead>: The Table Head element - HTML: Hypertext Markup Language
Web › HTML › Element › thead
Permitted content Zero or more <tr> elements. ...
<time> - HTML: Hypertext Markup Language
Web › HTML › Element › time
d time duration. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLTimeElement Attributes Like all other HTML elements, this element supports the global attributes. datetime This attribute indicates the time and/...
<tr>: The Table Row element - HTML: Hypertext Markup Language
Web › HTML › Element › tr
left-justify the member names, and with a somewhat different background color. Justify the balances Finally, since it's standard practice to right-justify currency values in tables, let's do that here. tbody > tr > td:last-of-type { text-align:right; } This just sets the CSS text-align property for the last <td> in each body row to "right". 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...
<track>: The Embed Text Track element - HTML: Hypertext Markup Language
Web › HTML › Element › track
based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files) -- Web Video Text Tracks. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories None Permitted content None, it is an empty element. Tag omission As it is a void element, the start tag must be present and the end tag must not be present. Permitted parents A media element, <audio> or <video>. Implicit ARIA role No corresponding role Permitted ARIA roles No role permitted DOM interface HTMLTrackElement...
<u>: The Unarticulated Annotation (Underline) element - HTML: Hypertext Markup Language
Web › HTML › Element › u
like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. See the Usage notes section for further details on when it's appropriate to use <u> and when it isn't. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Along with other pure styling elements, the original HTML Underlin...
<ul>: The Unordered List element - HTML: Hypertext Markup Language
Web › HTML › Element › ul
itory. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, and if the <ul> element's children include at least one <li> element, palpable content. Permitted content Zero or more <li>, <script> and <template> elements. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content. Implicit ARIA role list Permitted ARIA roles directory, group, listbox, menu, menubar, none, presentation, radiogroup, tablist, toolbar, tree DOM Interface HTMLUListElement Attributes This element includes the global attributes. compa...
<var>: The Variable element - HTML: Hypertext Markup Language
Web › HTML › Element › var
rowser-dependent. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Content categories Flow content, phrasing content, palpable content. Permitted content Phrasing content. Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLElement Attributes This element only includes the global attributes. Usage notes Related elements Other elements that are used in contexts in whic...
autocapitalize - HTML: Hypertext Markup Language
The autocapitalize global attribute is an enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. The attribute must take one of the following values: off or none: No autocapitalization is applied (all letters default to lowercase) on or sentences: The first letter of each sentence defaults to a capital letter; all other letters default to lowercase words: The first letter of each word defaults to a capital letter; all other letters default to lowercase characters: All letters should default to uppercase The autocapitalize attribute doesn't affect behavior when typing on a physical keyboard. Instead, it affects the behavior of other input mechanisms, such as virtual keyboards on mobile devices and voice input. The...
inputmode - HTML: Hypertext Markup Language
For when the page implements its own keyboard input control. text (default value) Standard input keyboard for the user's current locale. decimal Fractional numeric input keyboard containing the digits and decimal separator for the user's locale (typically . or ,). Devices may or may not show a minus key (-). ...
x-ms-format-detection - HTML: Hypertext Markup Language
ction attribute determines whether data formats within the element's text, like phone numbers, are automatically converted to followable links. Existing links, such as ones with the tel: scheme, are unaffected. Links created through format detection do not appear in the DOM. This proprietary property is specific to Internet Explorer and Microsoft Edge. Syntax <html x-ms-format-detection="none"> Value all All supported data formats are detected. none Format detection is turned off. phone Phone number patterns are autolinked. ...
Global attributes - HTML: Hypertext Markup Language
accesskey Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout. autocapitalize Controls whether and how text input is automatically capitalized as it is entered/edited by the user. ...
Link types: noopener - HTML: Hypertext Markup Language
- by not setting the Window.opener property on the opened window (it returns null). This is especially useful when opening untrusted links, in order to ensure they cannot tamper with the originating document via the Window.opener property (see About rel=noopener for more details), while still providing the Referer HTTP header (unless noreferrer is used as well). Note that when noopener is used, nonempty target names other than _top, _self, and _parent are all treated like _blank in terms of deciding whether to open a new window/tab. Specifications Specification Status Comment HTML Living StandardThe definition of 'noopener' in that specification. Living Standard ...
Preloading content with rel="preload" - HTML: Hypertext Markup Language
myscript.js file, but not actually use it yet. To use it, you could do this: var preloadedScript = document.createElement("script"); preloadedScript.src = "myscript.js"; document.body.appendChild(preloadedScript); This is useful when you want to preload a script, but then defer execution until exactly when you need it. Other resource preloading mechanisms Other preloading features exist, but none are quite as fit for purpose as <link rel="preload">: <link rel="prefetch"> has been supported in browsers for a long time, but it is intended for prefetching resources that will be used in the next navigation/page load (e.g. when you go to the next page). This is fine, but isn't useful for the current page! In addition, browsers will give prefetch resources a lower priority than preload ones ...
MIME types (IANA media types) - HTTP
Audio and video ty...
Accept-Patch - HTTP
though not standard. They implement the algorithm used by these two UNIX programs. Note that the first one was discontinued due to patent licensing problems. ...
CSP: base-uri - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: child-src - HTTP
pecific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method compared to using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. You must include the single quotes. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' A whitelist for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline scr...
CSP: connect-src - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: default-src - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: font-src - HTTP
pecific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method compared to using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. You must include the single quotes. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' A whitelist for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline scr...
CSP: frame-src - HTTP
pecific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method compared to using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. You must include the single quotes. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' A whitelist for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline scr...
CSP: img-src - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: manifest-src - HTTP
pecific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method compared to using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. You must include the single quotes. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' A whitelist for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline scr...
CSP: media-src - HTTP
pecific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method compared to using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. You must include the single quotes. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' A whitelist for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline scr...
CSP: prefetch-src - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: script-src-attr - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: script-src-elem - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: script-src - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: style-src-attr - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: style-src-elem - HTTP
enabling specific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method than using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. The single quotes are required. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' An allow-list for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline s...
CSP: worker-src - HTTP
pecific inline event handlers. If you only need to allow inline event handlers and not inline <script> elements or javascript: URLs, this is a safer method compared to using the unsafe-inline expression. 'unsafe-inline' Allows the use of inline resources, such as inline <script> elements, javascript: URLs, inline event handlers, and inline <style> elements. You must include the single quotes. 'none' Refers to the empty set; that is, no URLs match. The single quotes are required. 'nonce-<base64-value>' A whitelist for specific inline scripts using a cryptographic nonce (number used once). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide an unguessable nonce, as bypassing a resource's policy is otherwise trivial. See unsafe inline scr...
Cross-Origin-Embedder-Policy - HTTP
The HTTP Cross-Origin-Embedder-Policy (COEP) response header prevents a document from loading any cross-origin resources that don't explicitly grant the document permission (using CORP or CORS). Header type Response header Forbidden header name no Syntax Cross-Origin-Embedder-Policy: unsafe-none | require-corp Directives unsafe-none This is the default value. Allows the document to fetch cross-origin resources without giving explicit permission through the CORS protocol or the Cross-Origin-Resource-Policy header. require-corp A document can only load resources from the same origin, or resources explicitly marked as loadable from another origin. If a cross origin resource supports CORS, the crossorigin attribute or the Cross-Origin-Resource-Policy head...
If-Modified-Since - HTTP
equested resource, with a 200 status, only if it has been last modified after the given date. If the request has not been modified since, the response will be a 304 without any body; the Last-Modified response header of a previous request will contain the date of last modification. Unlike If-Unmodified-Since, If-Modified-Since can only be used with a GET or HEAD. When used in combination with If-None-Match, it is ignored, unless the server doesn't support If-None-Match. The most common use case is to update a cached entity that has no associated ETag. Header type Request header Forbidden header name no Syntax If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT Directives <day-name> One of "Mon", "Tue", "Wed", "Thu", "Fri", "...
Sec-Fetch-Site - HTTP
lationship between a request initiator's origin and the origin of the resource. Header type Fetch Metadata Request Header Forbidden header name yes, since it has prefix Sec- CORS-safelisted response header CORS-safelisted request header Syntax Sec-Fetch-Site: cross-site Sec-Fetch-Site: same-origin Sec-Fetch-Site: same-site Sec-Fetch-Site: none Values cross-site same-origin same-site none This request does not relate to any context like site, origin, or frame. This can happen when user had initiated this request by, e.g. directly entering a URL in the address bar, opening a bookmark, or draging-and-dropping a file into the browser window. Examples TODO Specifications Specification Title Fetch...
Link prefetching FAQ - HTTP
errer tracking that is commonly used on many sites. For this reason, link prefetching may not be appropriate for all content. However, it is possible to instruct Mozilla to validate a prefetched document when the user follows a href to the prefetched document by specifying the Cache-control: must-revalidate HTTP response header. This header enables caching, but requires an If-Modified-Since or If-None-Match validation request before the serving the document out of the browser's cache. As a server admin, can I distinguish prefetch requests from normal requests? Yes, we send the following header along with each prefetch request: X-moz: prefetch Of course, this request header is not at all standardized, and it may change in future Mozilla releases. Chrome uses "X-Purpose: prefetch" or "Purpos...
HTTP Messages - HTTP
Web › HTTP › Messages
ue, consist of one single line, which can be quite long. There are numerous request headers available. They can be divided in several groups: General headers, like Via, apply to the message as a whole. Request headers, like User-Agent, Accept-Type, modify the request by specifying it further (like Accept-Language), by giving context (like Referer), or by conditionally restricting it (like If-None). Entity headers, like Content-Length which apply to the body of the request. Obviously, there is no such header transmitted if there is no body in the request. Body The final part of the request is its body. Not all requests have one: requests fetching resources, like GET, HEAD, DELETE, or OPTIONS, usually don't need one. Some requests send data to the server in order to update it: as ofte...
Proxy Auto-Configuration (PAC) file - HTTP
"www.mozilla.org"); // returns the string "104.16.41.2" convert_addr() Syntax convert_addr(ipaddr) Parameters ipaddr Any dotted address such as an IP address or mask. Concatenates the four dot-separated bytes into one 4-byte word and converts it to decimal. Example convert_addr("104.16.41.2"); // returns the decimal number 1745889538 myIpAddress() Syntax myIpAddress() Parameters (none) Returns the server IP address of the machine Firefox is running on, as a string in the dot-separated integer format. myIpAddress() returns the same IP address as the server address returned by nslookup localhost on a Linux machine. It does not return the public IP address. Example myIpAddress() //returns the string "127.0.1.1" if you were running Firefox on that localhost dnsDomainLevels(...
304 Not Modified - HTTP
Web › HTTP › Status › 304
The equivalent 200 OK response would have included the headers Cache-Control, Content-Location, Date, ETag, Expires, and Vary. ...
412 Precondition Failed - HTTP
Web › HTTP › Status › 412
In that case, the request, usually an upload or a modification of a resource, cannot be made and this error response is sent back. ...
Equality comparisons and sameness - JavaScript
e comparison as double equals (including the special handling for NaN, -0, and +0) but without type conversion; if the types differ, false is returned. Object.is does no type conversion and no special handling for NaN, -0, and +0 (giving it the same behavior as === except on those special numeric values). Note that the distinction between these all have to do with their handling of primitives; none of them compares whether the parameters are conceptually similar in structure. For any non-primitive objects x and y which have the same structure but are distinct objects themselves, all of the above forms will evaluate to false. Strict equality using === Strict equality compares two values for equality. Neither value is implicitly converted to some other value before being compared. If the va...
Indexed collections - JavaScript
og(cats) // logs []; the cats array is empty cats.length = 3 console.log(cats) // logs [ <3 empty items> ] Iterating over arrays A common operation is to iterate over the values of an array, processing each one in some way. ...
Using Promises - JavaScript
he reason in event.reason */ event.preventDefault(); }, false); By calling the event's preventDefault() method, you tell the JavaScript runtime not to do its default action when rejected promises go unhandled. That default action usually involves logging the error to console, and this is indeed the case for Node. Ideally, of course, you should examine the rejected promises to make sure none of them are actual code bugs before just discarding these events. Creating a Promise around an old callback API A Promise can be created from scratch using its constructor. This should be needed only to wrap old APIs. In an ideal world, all asynchronous functions would already return promises. Unfortunately, some APIs still expect success and/or failure callbacks to be passed in the old way. T...
Inheritance and the prototype chain - JavaScript
{ return this.height * this.width; } set sideLength(newLength) { this.height = newLength; this.width = newLength; } } var square = new Square(2); Performance The lookup time for properties that are high up on the prototype chain can have a negative impact on the performance, and this may be significant in the code where performance is critical. Additionally, trying to access nonexistent properties will always traverse the full prototype chain. Also, when iterating over the properties of an object, every enumerable property that is on the prototype chain will be enumerated. To check whether an object has a property defined on itself and not somewhere on its prototype chain, it is necessary to use the hasOwnProperty method which all objects inherit from Object.prototype. T...
Memory Management - JavaScript
is still needed to determining if an object still has any other objects referencing it. An object is said to be "garbage", or collectible if there are zero references pointing to it. Example var x = { a: { b: 2 } }; // 2 objects are created. One is referenced by the other as one of its properties. // The other is referenced by virtue of being assigned to the 'x' variable. // Obviously, none can be garbage-collected. var y = x; // The 'y' variable is the second thing that has a reference to the object. x = 1; // Now, the object that was originally in 'x' has a unique reference // embodied by the 'y' variable. var z = y.a; // Reference to 'a' property of the object. // This object now has 2 references: one as a property, ...
TypeError: Reduce of empty array with no initial value - JavaScript
s provided, it will use the first element of the Array or TypedArray as the initial value. This error is raised when an empty array is provided because no initial value can be returned in that case. Examples Invalid cases This problem appears frequently when combined with a filter (Array.prototype.filter(), TypedArray.prototype.filter()) which will remove all elements of the list. Thus leaving none to be used as the initial value. var ints = [0, -1, -2, -3, -4, -5]; ints.filter(x => x > 0) // removes all elements .reduce((x, y) => x + y) // no more elements to use for the initial value. Similarly, the same issue can happen if there is a typo in a selector, or an unexpected number of elements in a list: var names = document.getElementsByClassName("names"); var name_list = A...
Array.prototype.find() - JavaScript
rime number (or returns undefined if there is no prime number): function isPrime(element, index, array) { let start = 2; while (start <= Math.sqrt(element)) { if (element % start++ < 1) { return false; } } return element > 1; } console.log([4, 6, 8, 12].find(isPrime)); // undefined, not found console.log([4, 5, 8, 12].find(isPrime)); // 5 The following examples show that nonexistent and deleted elements are visited, and that the value passed to the callback is their value when visited: // Declare array with no elements at indexes 2, 3, and 4 const array = [0,1,,,,5,6]; // Shows all indexes, not just those with assigned values array.find(function(value, index) { console.log('Visited index ', index, ' with value ', value); }); // Shows all indexes, including delete...
Array.prototype.push() - JavaScript
called. Description The push method appends values to an array. push is intentionally generic. This method can be used with call() or apply() on objects resembling arrays. The push method relies on a length property to determine where to start inserting the given values. If the length property cannot be converted into a number, the index used is 0. This includes the possibility of length being nonexistent, in which case length will also be created. Although strings are native, Array-like objects, they are not suitable in applications of this method, as strings are immutable. Similarly for the native, Array-like object arguments. Examples Adding elements to an array The following code creates the sports array containing two elements, then appends two elements to it. The total variable c...
Array - JavaScript
array, if an element in the array satisfies the testing function, or -1 if not found. Array.prototype.forEach() Calls a function for each element in the array. Array.prototype.includes() Determines whether the array contains a value, returning true or false as appropriate. Array.prototype.indexOf() Returns the first (least) index of an element within the array equal to an element, or -1 if none is found. Array.prototype.join() Joins all elements of an array into a string. Array.prototype.keys() Returns a new Array Iterator that contains the keys for each index in the array. Array.prototype.lastIndexOf() Returns the last (greatest) index of an element within the array equal to an element, or -1 if none is found. Array.prototype.map() Returns a new array containing the results of ...
Function.prototype.bind() - JavaScript
arguments properties that throw a TypeError upon get, set, or deletion. (This could be added if the implementation supports Object.defineProperty, or partially implemented [without throw-on-delete behavior] if the implementation supports the __defineGetter__ and __defineSetter__ extensions.) The partial implementation creates functions that have a prototype property. (Proper bound functions have none.) The partial implementation creates bound functions whose length property does not agree with that mandated by ECMA-262: it creates functions with length of 0. A full implementation--depending on the length of the target function and the number of pre-specified arguments--may return a non-zero length. The partial implementation creates bound functions whose name property is not derived from th...
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale. calendar E.g. "gregory" numberingSystem The values requested using the Unicode extension keys "ca" and "nu" or filled in as default values. timeZone The value provided for this property in the options argument; undefined (representing the runtime's default time zone) if none was provided. Warning: Applications should not rely on undefined being returned, as future versions may return a String value identifying the runtime's default time zone instead. hour12 The value provided for this property in the options argument or filled in as a default. weekday era year month day hour minute second timeZoneName The values resulting from format matching between the ...
Intl.DisplayNames() constructor - JavaScript
e "lookup" and "best fit"; the default is "best fit". For information about this option, see the Intl page. style The formatting style to use, the default is "long". "narrow" "short" "long" type The type to use, the default is "language". "language" "region" "script" "currency" fallback The fallback to use, the default is "code". "code" "none" Examples Basic usage In basic use without specifying a locale, a formatted string in the default locale and with default options is returned. console.log((new Intl.DisplayNames()).of('US')); // Expected output: 'us' Specifications Specification Intl.DisplayNamesThe definition of 'the Intl.DisplayNames constructor' in that specification. ...
Intl.DisplayNames.prototype.resolvedOptions() - JavaScript
long"). Its value is either "long", "short", or "narrow". type The value provided for this property in the options argument of the constructor or the default value ("language"). Its value is either "language", "region", "script", or "currency". fallback The value provided for this property in the options argument of the constructor or the default value ("code"). Its value is either "code" or "none". Examples Using resolvedOptions const displayNames = new Intl.DisplayNames(['de-DE'], {type: 'region'}); const usedOptions = displayNames.resolvedOptions(); console.log(usedOptions.locale); // "de-DE" console.log(usedOptions.style); // "long" console.log(usedOptions.type); // "region" console.log(usedOptions.fallback); // "code" Specifications Specification ...
Map - JavaScript
in the Map object. Instance methods Map.prototype.clear() Removes all key-value pairs from the Map object. Map.prototype.delete(key) Returns true if an element in the Map object existed and has been removed, or false if the element does not exist. Map.prototype.has(key) will return false afterwards. Map.prototype.get(key) Returns the value associated to the key, or undefined if there is none. Map.prototype.has(key) Returns a boolean asserting whether a value has been associated to the key in the Map object or not. Map.prototype.set(key, value) Sets the value for the key in the Map object. Returns the Map object. Iteration methods Map.prototype[@@iterator]() Returns a new Iterator object that contains an array of [key, value] for each element in the Map object in insertion o...
Object.defineProperty() - JavaScript
Adding properties and default values It is important to consider the way default values of attributes are applied. There is often a difference between simply using dot notation to assign a value and using Object.defineProperty(), as shown in the example below. var o = {}; o.a = 1; // is equivalent to: Object.definePro...
String.prototype.includes() - JavaScript
...
WeakMap - JavaScript
llection, introducing non-determinism. If you want to have a list of keys, you should use a Map. Constructor WeakMap() Creates a new WeakMap object. Instance methods WeakMap.prototype.delete(key) Removes any value associated to the key. WeakMap.prototype.has(key) will return false afterwards. WeakMap.prototype.get(key) Returns the value associated to the key, or undefined if there is none. WeakMap.prototype.has(key) Returns a Boolean asserting whether a value has been associated to the key in the WeakMap object or not. WeakMap.prototype.set(key, value) Sets the value for the key in the WeakMap object. Returns the WeakMap object. Examples Using WeakMap const wm1 = new WeakMap(), wm2 = new WeakMap(), wm3 = new WeakMap(); const o1 = {}, o2 = function() {}, ...
globalThis - JavaScript
Property attributes of globalThis Writable yes Enumerable no Configurable yes Description Historically, accessing the global object has required different syntax in different JavaScript environments. On the web you can use window, self, or frames - but in Web Workers only self will work. In Node.js none of these work, and you must instead use global. The this keyword could be used inside functions running in non-strict mode, but this will be undefined in Modules and inside functions running in strict mode. You can also use Function('return this')(), but environments that disable eval(), like CSP in browsers, prevent use of Function in this way. The globalThis property provides a standard way o...
Optional chaining (?.) - JavaScript
: { age: 82, location: "Paradise Falls" // detailed address is unknown } }; let customerCity = customer.details?.address?.city; // ... this also works with optional chaining function call let duration = vacations.trip?.getTime?.(); Combining with the nullish coalescing operator The nullish coalescing operator may be used after optional chaining in order to build a default value when none was found: let customer = { name: "Carl", details: { age: 82 } }; const customerCity = customer?.city ?? "Unknown city"; console.log(customerCity); // Unknown city Specifications Specification ECMAScript (ECMA-262)The definition of 'optional expression' in that specification. ...
for...of - JavaScript
e property is logged. Properties 0, 1, 2 and foo are logged because they are own properties (not inherited). Properties arrCustom and objCustom are not logged because they are inherited. for (const i of iterable) { console.log(i); // logs 3, 5, 7 } This loop iterates and logs values that iterable, as an iterable object, defines to be iterated over. The object's elements 3, 5, 7 are shown, but none of the object's properties. Specifications Specification ECMAScript (ECMA-262)The definition of 'for...of statement' in that specification. ...
switch - JavaScript
est. Syntax switch (expression) { case value1: //Statements executed when the //result of expression matches value1 [break;] case value2: //Statements executed when the //result of expression matches value2 [break;] ... case valueN: //Statements executed when the //result of expression matches valueN [break;] [default: //Statements executed when none of //the values match the value of the expression [break;]] } expression An expression whose result is matched against each case clause. case valueN Optional A case clause used to match against expression. If the expression matches the specified valueN, the statements inside the case clause are executed until either the end of the switch statement or a break. default Optional A de...
Transitioning to strict mode - JavaScript
rguments and function properties Accessing arguments.callee, arguments.caller, anyFunction.caller, or anyFunction.arguments throws an error in strict mode. The only legitimate use case would be to reuse a function as in: // example taken from vanillajs: http://vanilla-js.com/ var s = document.getElementById('thing').style; s.opacity = 1; (function() { if ((s.opacity-=.1) < 0) s.display = 'none'; else setTimeout(arguments.callee, 40); })(); which can be rewritten as: 'use strict'; var s = document.getElementById('thing').style; s.opacity = 1; (function fadeOut() { // name the function if((s.opacity-=.1) < 0) s.display = 'none'; else setTimeout(fadeOut, 40); // use the name of the function })(); Semantic differences These differences are very subtle differences. It'...
display - Web app manifests
ements such as a status bar. minimal-ui minimal-ui The application will look and feel like a standalone application, but will have a minimal set of UI elements for controlling navigation. The elements will vary by browser. browser browser The application opens in a conventional browser tab or new window, depending on the browser and platform. This is the default. (None) Example "display": "standalone" Specification Specification Status Comment Feedback Web App ManifestThe definition of 'display' in that specification. Working Draft Initial definition. Web App Manifest Working Group drafts ...
serviceworker - Web app manifests
Type Object Mandatory No The serviceworker member describes a service worker that the developer intends to install to control the PWA. Examples "serviceworker": { "src": "./serviceworker.js", "scope": "/app", "type": "", "update_via_cache": "none" } Values Service worker contain the following values (only src is required): Member Description src The URL to download the service worker script from. This is the only required member of the serviceworker member. scope A string representing a URL that defines a service worker's registration scope; that is, what range of URLs a service worker can control. This is usually a relative URL, relative to the base URL of the application. By default, the scope value for a...
MathML attribute reference - MathML
her to force all rows to have the same total height. fence <mo> A Boolean value specifying whether the operator is a fence (such as parentheses). There is no visual effect for this attribute. Unimplemented form <mo> Specifies the role of the operator in an enclosed expression. frame <mtable> Specifies borders of an entire <mtable>. Possible values are: none (default), solid and dashed. framespacing <mtable> Specifies additional space added between the table and frame. Unimplemented groupalign <maligngroup>, <mtable>, <mtd>, <mtr> height <mglyph>, <mpadded>, <mspace> Specifies the desired height. See lengths for possible values. href All Used to set a hyperlink to a specified URI. ...
Authoring MathML - MathML
lable, some of them are compatible with the classical LaTeX-to-pdf workflow. This gives access to advanced features of LaTeX like macros. cons: This may be harder to use: people must learn a syntax, typos in the code may easily lead to parsing or rendering errors etc The interface is not user-friendly: only code editor without immediate display of the mathematical expression. None of the syntax has been standardized, making cross-compatibility between converters difficult. Even the popular LaTeX language keeps having new packages added. Client-side Conversion In a Web environment, the most obvious method to convert a simple syntax into a DOM tree is to use Javascript and of course many libraries have been developed to perform that task. pros: This is very ...
MathML element reference - MathML
ations) MathML presentation elements by category Top-level elements <math> Token elements <mglyph> <mi> <mn> <mo> <ms> <mspace> <mtext> General layout <menclose> <merror> <mfenced> <mfrac> <mpadded> <mphantom> <mroot> <mrow> <msqrt> <mstyle> Script and limit elements <mmultiscripts> <mover> <mprescripts> <msub> <msubsup> <msup> <munder> <munderover> <none> Tabular math <maligngroup> <malignmark> <mlabeledtr> <mtable> <mtd> <mtr> Elementary math <mlongdiv> <mscarries> <mscarry> <msgroup> <msline> <msrow> <mstack> Uncategorized elements <maction> Semantic annotations <annotation> <annotation-xml> <semantics> ...
Web audio codec guide - Web media technologies
Supported bit rates 64 kbps Variable Bit Rate (VBR) support No Supported sample formats 14-bit signed integer (u-law) or 13-bit unsigned integer (A-law); encoded audio is 8 bits per sample Supported sample rates 8 kHz (+- 50 parts per million Recommended minimum bit rate for stereo sound n/a (stereo not supported) Compression None Maximum audio channels 1 Audio frequency bandwidth 300 Hz - 3400 Hz Latency 0.125 ms Browser compatibility Feature Chrome Edge Firefox Internet Explorer Opera Safari G.711 support 23[1] 15[1] 22[1] No 43[1] 11[1] ...
Critical rendering path - Web Performance
e styles: the DOM and CSSOM trees are combined into the render tree. To construct the render tree, the browser checks every node, starting from root of the DOM tree, and determine which CSS rules are attached. The render tree only captures visible content. The head section (generally) doesn't contain any visible information, and is therefore not included in the render tree. If there's a display: none; set on an element, neither it, nor any of its descendants, are in the render tree. Layout Once the render tree is built, layout becomes possible. Layout is dependent on the size of screen. The layout step determines where and how the elements are positioned on the page, determining the width and height of each element, and where they are in relation to each other. What is the width of an elem...
Populating the page: how browsers work - Web Performance
f the screen on the GPU instead of the CPU, freeing up the main thread. Style The third step in the critical rendering path is combining the DOM and CSSOM into a render tree.The computed style tree, or render tree, construction starts with the root of the DOM tree, traversing each visible node. Tags that aren't going to be displayed, like the <head> and its children and any nodes with display: none, such as the script { display: none; } you will find in user agent stylesheets, are not included in the render tree as they will not appear in the rendered output. Nodes with visibility: hidden applied are included in the render tree, as they do take up space. As we have not given any directives to override the user agent default, the script node in our code example above will not be included in ...
Graphic design for responsive sites - Progressive web apps (PWAs)
red in the CSS is the small screen/mobile layout, not the wide screen/desktop layout. So when the page is loaded on a mobile device, the mobile will only download the mobile assets, and not the desktop resource assets. Making HTML <img>s responsive is not as easy, as there is currently no native mechanism to serve different HTML images depending on context. There are a number of workarounds, but none of them are perfect right now. For an overview of what's available, read Choosing a responsive image solution. Coping with different resolutions In this section we'll review different strategies for dealing with getting images to work across devices with different resolutions. The issue here is that raster images, when rendered on high res devices, are in danger of appearing tiny because the sa...
accumulate - SVG: Scalable Vector Graphics
tion is cumulative. It is frequently useful for repeated animations to build upon the previous results, accumulating with each iteration. This attribute said to the animation if the value is added to the previous animated attribute's value on each iteration. Four elements are using this attribute: <animate>, <animateColor>, <animateMotion>, and <animateTransform> Usage notes Value none | sum Default value none Animatable No sum Specifies that each repeat iteration after the first builds upon the last value of the previous iteration. none Specifies that repeat iterations are not cumulative. This attribute is ignored if the target attribute value does not support addition, or if the animation element does not repeat. This attribute will be i...
attributeName - SVG: Scalable Vector Graphics
Specifications Specification Status Comment SVG Animations Level 2The definition of 'attributeName' in that specification. Editor's Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The defini...
attributeType - SVG: Scalable Vector Graphics
s animatable. XML This value specifies that the value of attributeName is the name of an XML attribute defined as animatable in the default XML namespace for the target element. auto This value specifies that the implementation should match the attributeName to an attribute for the target element. User agents first search through the list of CSS properties for a matching property name, and if none is found, search the default XML namespace for the element. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'attributeType' in that specification. Recommendation Initial definition ...
baseProfile - SVG: Scalable Vector Graphics
nsidered metadata. For example, the value of the attribute could be used by an authoring tool to warn the user when they are modifying the document beyond the scope of the specified base profile. Each SVG profile should define the text that is appropriate for this attribute. Only one element is using this attribute: <svg> Context notes Value Profile name Default value none Animatable No Example <svg width="120" height="120" version="1.1" xmlns="http://www.w3.org/2000/svg" baseProfile="full"> ... </svg> Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'baseProfile' in that specification. Recommendation Initial definition ...
bbox - SVG: Scalable Vector Graphics
Web › SVG › Attribute › bbox
The bbox attribute defines the maximal bounding box of a font. Only one element is using this attribute: <font-face> Usage notes Value <string> Default value None Animatable No <string> A comma-separated list of exactly four numbers specifying, in order, the lower left x, lower left y, upper right x, and upper right y of the bounding box for the complete font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'bbox' in that specification. Recommendation Initial definition ...
by - SVG: Scalable Vector Graphics
Web › SVG › Attribute › by
When a list of values is defined via the values attribute, the by attribute is ignored. Specifications Specification Status Comment SVG Animations Level 2The definition of 'by' in that specification. Editor's Draft No change ...
cap-height - SVG: Scalable Vector Graphics
The cap-height attribute defines the height of uppercase glyphs of the font within the font coordinate system. Note: It was specified to share the syntax and semantics of the obsolete cap-height descriptor of the @font-face at-rule defined in an early version of CSS 2. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'cap-height' in that specification. Recommendation Initial definition ...
class - SVG: Scalable Vector Graphics
Web › SVG › Attribute › class
same class name or names to any number of elements, however, multiple class names must be separated by whitespace characters. An element's class name serves two key roles: As a style sheet selector, for when an author assigns style information to a set of elements. For general use by the browser. You can use this class to style SVG content using CSS. Usage context Categories None Value <list-of-class-names> Animatable Yes Normative document SVG 1.1 (2nd Edition): The class attribute List-of-Ts <list-of-Ts> (Where T is some type.) A list consists of a separated sequence of values. Unless explicitly described differently, lists within SVG's XML attributes can be either comma-separated (with optional white space before or afte...
clip-path - SVG: Scalable Vector Graphics
p-path="circle() stroke-box" /> <!-- Bottom-right: Apply a CSS basic shape on a view-box geometry. This is the same as having a custom clipping path with a clipPathUnits set to userSpaceOnUse --> <rect x="11" y="11" width="8" height="8" stroke="green" clip-path="circle() view-box" /> </svg> Usage notes Value <url> | [ <basic-shape> || <geometry-box> ] | none Default value none Animatable Yes <geometry-box> An extra information to tell how a <basic-shape> is applied to an element: fill-box indicates to use the object bounding box; stroke-box indicates to use the object bounding box extended with the stroke; view-box indicates to use the nearest SVG viewport as the reference box. Note: For more details on the clip-pa...
color - SVG: Scalable Vector Graphics
Web › SVG › Attribute › color
on SVG elements. Usage notes Value <color> | inherit Default value Depends on user agent Animatable Yes Example html, body, svg { height: 100%; } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <g color="green"> <rect width="50" height="50" fill="currentcolor" /> <circle r="25" cx="70" cy="70" stroke="currentcolor" fill="none" stroke-width="5" /> </g> </svg> Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'color' in that specification. Candidate Recommendation Removed the restriction to which elements it applies. Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'color' in that specification. Recommend...
filter - SVG: Scalable Vector Graphics
Web › SVG › Attribute › filter
only has effect on container elements without the <defs> element, all graphics elements and the <use> element. html, body, svg { height: 100%; } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <filter id="blur"> <feGaussianBlur stdDeviation="2" /> </filter> <rect x="10" y="10" width="80" height="80" filter="url(#blur)" /> </svg> Usage notes Value none | <filter-function-list> Default value none Animatable Yes For a description of the values see the css filter property. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'filter' in that specification. Working Draft Extended the values by several special filter functions. Scalable ...
filterRes - SVG: Scalable Vector Graphics
ttribute. Too small of a value may result in unwanted pixelation in the result. Too large of a value may result in slow processing and large memory usage. Note that negative values or zero values disable the rendering of the element which referenced the filter. Only one element is using this attribute: <filter> Usage notes Value <number-optional-number> Default value None Animatable Yes <number-optional-number> This value takes one or two values, the first one outlining the resolution in horizontal direction, the second one in vertical direction. If only one value is specified, it is used for both directions. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The defin...
font-size-adjust - SVG: Scalable Vector Graphics
t> <text y="40" font-family="Verdana, sans-serif" font-size="10px"> This text uses the Verdana font (10px), which has relatively large lowercase letters. </text> <text y="60" font-family="Times, serif" font-size="10px" font-size-adjust="0.58"> This is the 10px Times, but now adjusted to the same aspect ratio as the Verdana. </text> </svg> Usage notes Default value none Value none | <number> Animatable Yes none Choose the size of the font based only on the font-size property. <number> Choose the size of the font so that its lowercase letters (as determined by the x-height of the font) are the specified number times the font-size. The number specified should generally be the aspect ratio (ratio of x-height to font size) of ...
font-variant - SVG: Scalable Vector Graphics
ment but it has effect only on the following eight elements: <altGlyph>, <text>, <textPath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewBox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-variant="normal">Normal text</text> <text x="100" y="20" font-variant="small-caps">Small-caps text</text> </svg> Usage notes Value normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-c...
format - SVG: Scalable Vector Graphics
Web › SVG › Attribute › format
The format attribute indicates the format of the given font. Two elements are using this attribute: <altGlyph> and <glyphRef> Context notes Value <string> Default value None Animatable No <string> This value specifies the format of the given font. Here is a list of font formats and their strings that can be used as values for this attribute: Format string Format truedoc-pfr TrueDoc(TM) Portable Font Resource embedded-opentype Embedded OpenType type-1 PostScript(TM) Type 1 truetype TrueType opentype OpenType, including TrueType Open truetype-gx TrueType with GX extensions speedo Speedo intellifont ...
fr - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fr
%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialGradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translateX(240px);" /> </svg> Usage notes Value <length> Default value 0 Animatable None Example <svg viewBox="0 0 120 120" width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialGradient id="Gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialGradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" ...
from - SVG: Scalable Vector Graphics
Web › SVG › Attribute › from
When a list of values is defined via the values attribute, the from attribute is ignored. Specifications Specification Status Comment SVG Animations Level 2The definition of 'from' in that specification. Editor's Draft No change...
fx - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fx
</radialGradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translateX(240px);" /> </svg> Usage notes Value <length> Default value Coincides with the presentational value of cx for the element whether the value for cx was inherited or not. ...
fy - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fy
</radialGradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translateX(240px);" /> </svg> Usage notes Value <length> Default value Coincides with the presentational value of cy for the element whether the value for cy was inherited or not. ...
g1 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › g1
list of glyph names which identify a set of possible first glyphs in the kerning pair. All glyphs with the given glyph name are included in the set. The total set of possible first glyphs in the kerning pair is the union of glyphs specified by the u1 and g1 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <name># Default value None Animatable No <name># This value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible first glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'g1' in t...
g2 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › g2
st of glyph names which identify a set of possible second glyphs in the kerning pair. All glyphs with the given glyph name are included in the set. The total set of possible second glyphs in the kerning pair is the union of glyphs specified by the u2 and g2 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <name># Default value None Animatable No <name># This value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible second glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'g2' in ...
glyph-name - SVG: Scalable Vector Graphics
e used in situations where Unicode character numbers do not provide sufficient information to access the correct glyph, such as when there are multiple glyphs per Unicode character. The glyph names can be referenced in kerning definitions created by <hkern> and <vkern> elements. Only one element is using this attribute: <glyph> Context notes Value <name># Default value None Animatable No <name># This value specifies a comma-separated list of names for the glyph. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'glyph-name' in that specification. Recommendation Initial definition ...
glyphRef - SVG: Scalable Vector Graphics
Its format depends on the format of the given font. ...
hanging - SVG: Scalable Vector Graphics
Web › SVG › Attribute › hanging
The hanging attribute indicates the alignment coordinate for glyphs to achieve hanging baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'hanging' in that specification. Recommendation Initial definition ...
horiz-adv-x - SVG: Scalable Vector Graphics
The horiz-adv-x attribute indicates the horizontal advance after rendering a glyph in horizontal orientation. Three elements are using this attribute: <font>, <glyph>, and <missing-glyph> font For <font> elements, horiz-adv-x specifies the default horizontal advance of a glyph in horizontal orientation. Value <number> Default value None Animatable No <number> This value indicates the horizontal advance of the glyph. glyph, missing-glyph For <glyph> and <missing-glyph> elements, horiz-adv-x specifies the horizontal advance of the glyph in horizontal orientation. Value <number> Default value <font>'s horiz-adv-x value Animatable No <number> This value indicates the horizontal advance of the glyp...
id - SVG: Scalable Vector Graphics
Web › SVG › Attribute › id
elements are using this attribute. <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> <![CDATA[ #smallRect { stroke: #000066; fill: #00cc00; } ]]> </style> <rect id="smallRect" x="10" y="10" width="100" height="100" /> </svg> Usage notes Value <id> Default value None Animatable No <id> Specifies the element's ID. The ID must be unique within the node tree, must not be an empty string, and must not contain any whitespace characters. Note: You should avoid the use of id values that would be parsed as an SVG view specification (e.g., MyDrawing.svg#svgView(viewBox(0,200,1000,1000))) or a basic media fragment when used as a URL target f...
ideographic - SVG: Scalable Vector Graphics
The ideographic attribute indicates the alignment coordinate for glyphs to achieve ideographic baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'ideographic' in that specification. Recommendation Initial definition ...
k - SVG: Scalable Vector Graphics
Web › SVG › Attribute › k
The k attribute specifies the amount for decreasing the spacing between the two glyphs in a kerning pair. The value is in the font coordinate system. This attribute is required. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <number> Default value None Animatable No <number> This value indicates the amount for decreasing the spacing between the two glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'k' in that specification. Recommendation Initial definition ...
kernelMatrix - SVG: Scalable Vector Graphics
Values are separated by space characters and/or a comma. The number of entries in the list must equal <orderX> times <orderY>. If the result of orderX * orderY is not equal to the the number of entries in the value list, the filter primitive acts as a pass through f...
keySplines - SVG: Scalable Vector Graphics
<control-point> Each control point description is a set of four values: x1 y1 x2 y2, describing the Bezier control points for one time segment. The keyTimes values that define the associated segment are the Bezier "anchor points", and the keySplines values are the control points. ...
keyTimes - SVG: Scalable Vector Graphics
There must be exactly as many values in the keyTimes list as in the values list. Each successive time value must be greater than or equal to the preceding time value. The keyTimes list semantics depends upon the interpolation mode: For linear and spline animation, the first time val...
lang - SVG: Scalable Vector Graphics
Web › SVG › Attribute › 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 "-". All elements are using this attribute. <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. The syntax of this value is defined in the BCP 47 specification. The most common syntax is a value formed by a lowercase two-character part for the language and an uppercase two-character part for the region or country, separated by a minus sign, e.g. en-US for US English or de-AT for Au...
local - SVG: Scalable Vector Graphics
Web › SVG › Attribute › local
specified by International Color Consortium. If both the xlink:href and the local attribute are specified, then the local file system is searched for the color profile first, and, if not available locally, then the resource identified by the xlink:href attribute is used. Only one element is using this attribute: <color-profile> Usage notes Value <string> Default value None Animatable No <string> This value specifies the unique ID for a locally stored color profile as specified by International Color Consortium. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'local' in that specification. Recommendation Initial definition ...
mask - SVG: Scalable Vector Graphics
Web › SVG › Attribute › mask
-composite. As a presentation attribute, it can be applied to any element but it has noticeable effects mostly on the following nineteen elements: <a>, <circle>, <clipPath>, <ellipse>, <g>, <glyph>, <image>, <line>, <marker>, <mask>, <path>, <pattern>, <polygon>, <polyline>, <rect>, <svg>, <symbol>, <text>, <use> Usage notes Value See the CSS property mask Default value none Animatable Yes Specifications Specification Status Comment CSS Masking Module Level 1The definition of 'mask' in that specification. Candidate Recommendation Extends its usage to HTML elements. Extends its syntax by making it a shorthand for the new mask-* properties defined in that specification. Scalable Vector Graphics (SVG) 1.
mathematical - SVG: Scalable Vector Graphics
The mathematical attribute indicates the alignment coordinate for glyphs to achieve mathematical baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'mathematical' in that specification. Recommendation Initial definition ...
max - SVG: Scalable Vector Graphics
Web › SVG › Attribute › max
The value must be greater than 0. Specifications Specification Status Comment SVG Animations Level 2The definition of 'max' in that specification. Editor's Draft No change Scalable Vector Graphics (SVG) 1.1 (S...
onclick - SVG: Scalable Vector Graphics
Web › SVG › Attribute › onclick
Candidate Recommendation No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'onclick' in that specification. Recommendation Initial definition ...
orient - SVG: Scalable Vector Graphics
Web › SVG › Attribute › orient
"5" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"> <path d="M 0 0 L 10 5 L 0 10 z" /> </marker> <marker id="dataArrow" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="6" markerHeight="6" orient="-65deg"> <path d="M 0 0 L 10 5 L 0 10 z" fill="red" /> </marker> </defs> <polyline points="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="url(#dataArrow)" marker-mid="url(#dataArrow)" marker-end="url(#dataArrow)" /> </svg> Usage notes Value auto | auto-start-reverse | <angle> | <number> Default value 0 Animatab...
orientation - SVG: Scalable Vector Graphics
The orientation attribute indicates that the given glyph is only to be used for a particular text direction, i.e. horizontal or vertical. Only one element is using this attribute: <glyph> Usage notes Value h | v Default value None (meaning glyph can be used for both text directions) Animatable Yes h This value indicates that the glyph is only used for a horizontal text direction. v This value indicates that the glyph is only used for a vertical text direction. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'orientation' in that specification. Recommendation Initial definition ...
overline-position - SVG: Scalable Vector Graphics
The overline-position attribute represents the ideal vertical position of the overline. The overline position is expressed in the font's coordinate system. ...
overline-thickness - SVG: Scalable Vector Graphics
The overline-thickness attribute represents the ideal thickness of the overline. The overline thickness is expressed in the font's coordinate system. ...
refX - SVG: Scalable Vector Graphics
Web › SVG › Attribute › refX
f the viewBox coordinate) is positioned at the x coordinate. For backwards compatibility, the behavior when refX is not specified on a <symbol> element is different from when it is specified with a value of 0, and therefore different from the behavior when an equivalent attribute is not specified on a <marker> element. Value <length> | left | center | right Default value None Animatable Yes <length-percentage> Lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and preserveAspectRatio attributes. Percentage values are interpreted as being a percentage of the viewBox width. <number> Numbers are interpreted as being in the coordinate system of the marker contents, after application...
refY - SVG: Scalable Vector Graphics
Web › SVG › Attribute › refY
f the viewBox coordinate) is positioned at the y coordinate. For backwards compatibility, the behavior when refY is not specified on a <symbol> element is different from when it is specified with a value of 0, and therefore different from the behavior when an equivalent attribute is not specified on a <marker> element. Value <length> | top | center | bottom Default value None Animatable Yes <length-percentage> Lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and preserveAspectRatio attributes. Percentage values are interpreted as being a percentage of the viewBox height. <number> Numbers are interpreted as being in the coordinate system of the marker contents, after applicatio...
repeatCount - SVG: Scalable Vector Graphics
It can include partial iterations expressed as fraction values. A fractional value describes a portion of the simple duration. Values must be greater than 0. indefinite This value indicates that the animation will be repeated indefinitely (i.e. until the document ends). Specifications Specifi...
repeatDur - SVG: Scalable Vector Graphics
indefinite This value indicates that the animation will be repeated indefinitely (i.e. until the document ends). Specifications Specification Status Comment SVG Animations Level 2The definition of 'repeatDur' in that specific...
result - SVG: Scalable Vector Graphics
Web › SVG › Attribute › result
It is only meaningful within a given <filter> element and thus has only local scope. It is legal for the same <filter-primitive-reference> to appear multiple times within the same <filter> element. When referenced, this value will use the closest precedin...
rotate - SVG: Scalable Vector Graphics
Web › SVG › Attribute › rotate
es not change with the animation. The default value of 0 keeps the animated element in its original orientation. ...
scale - SVG: Scalable Vector Graphics
Web › SVG › Attribute › scale
When the value of this attribute is 0, this operation has no effect on the source image. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'scale' in that specification. Working Draft No change Scalable...
startOffset - SVG: Scalable Vector Graphics
The startOffset attribute defines an offset from the start of the path for the initial current text position along the path after converting the path to the <textPath> element's coordinate system. Only one element is using this attribute: <textPath> html,body,svg { height:100% } <svg viewBox="0 0 220 100" xmlns="http://www.w3.org/2000/svg"> <path id="path1" fill="none" stroke="red" d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" /> <path id="path2" fill="none" stroke="red" d="M130,90 Q210,90 210,45 Q210,10 170,10 Q130,10 130,40 Q130,70 165,70 Q190,70 195,50" /> <text> <textPath href="#path1" startOffset="0"> Quick brown fox jumps over the lazy dog. </textPath> </text> <text> <textPath href="#path2" startOffset="40...
stemh - SVG: Scalable Vector Graphics
Web › SVG › Attribute › stemh
the thin stems on serifed "M" and "N", plus there may be different widths for uppercase and lowercase characters in the same font. Also, either by design or by error, all stems may have slightly different widths. If this attribute is used, the units-per-em must also be used. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the horizontal stem width of the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'stemh' in that specification. Recommendation Initial definition ...
stemv - SVG: Scalable Vector Graphics
Web › SVG › Attribute › stemv
ts. The measurement is meant for the dominant vertical stem in the font because there might be different groupings of vertical stems (e.g., one main one, and one lighter weight one as for an uppercase "M" or "N"). If this attribute is used, the units-per-em must also be used. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the vertical stem width of the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'stemv' in that specification. Recommendation Initial definition ...
strikethrough-position - SVG: Scalable Vector Graphics
<< SVG Attribute reference home The strikethrough-position attribute represents the ideal vertical position of the strikethrough. The strikethrough position is expressed in the font's coordinate system. ...
strikethrough-thickness - SVG: Scalable Vector Graphics
<< SVG Attribute reference home The strikethrough-thickness attribute represents the ideal thickness of the strikethrough. The strikethrough thickness is expressed in the font's coordinate system. ...
string - SVG: Scalable Vector Graphics
Web › SVG › Attribute › string
The string attribute is a hint to the user agent, and specifies a list of formats that the font referenced by the parent <font-face-uri> element supports. Only one element is using this attribute: <font-face-format> Usage notes Value <anything> Default value None Animatable No <anything> This value specifies a list of formats that are supported by the font referenced by the parent <font-face-uri> element. The available types are: "woff", "woff2", "truetype", "opentype", "embedded-opentype", and "svg". See the src descriptor of the @font-face at-rule for more information. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'string' in that specific...
style - SVG: Scalable Vector Graphics
Web › SVG › Attribute › style
S declarations. It functions identically to the style attribute in HTML. All elements are using this attribute. html,body,svg { height:100% } <svg viewbox="0 0 100 60" xmlns="http://www.w3.org/2000/svg"> <rect width="80" height="40" x="10" y="10" style="fill: skyblue; stroke: cadetblue; stroke-width: 2;"/> </svg> Usage notes Value <style> Default value None Animatable No <style> The syntax of style data depends on the style sheet language. By default, the style sheet language is CSS. Note: In theory, the contentStyleType attribute could be used to specify styling languages other than CSS, like XSL(T). However, this was never implemented satisfactorily in browsers, so you should not rely on it. Specifications Sp...
tabindex - SVG: Scalable Vector Graphics
Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'tabindex' in that specification. Candidate Recommendation Initial definition ...
u1 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › u1
cter; thus, to kern a comma, specify the comma as part of a range of Unicode characters or as a glyph name using the g1 attribute. The total set of possible first glyphs in the kerning pair is the union of glyphs specified by the u1 and g1 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value [ <character> | <urange> ]# Default value None Animatable No [ <character> | <urange> ]# This value indicates a comma-separated sequence of Unicode characters and/or ranges of Unicode characters, which identify a set of possible first glyphs in a kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'u1' in that sp...
u2 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › u2
ter; thus, to kern a comma, specify the comma as part of a range of Unicode characters or as a glyph name using the g2 attribute. The total set of possible second glyphs in the kerning pair is the union of glyphs specified by the u2 and g2 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value [ <character> | <urange> ]# Default value None Animatable No [ <character> | <urange> ]# This value indicates a comma-separated sequence of Unicode characters and/or ranges of Unicode characters, which identify a set of possible second glyphs in a kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'u2' in that s...
underline-position - SVG: Scalable Vector Graphics
<< SVG Attribute reference home The underline-position attribute represents the ideal vertical position of the underline. The underline position is expressed in the font's coordinate system. ...
underline-thickness - SVG: Scalable Vector Graphics
<< SVG Attribute reference home The underline-thickness attribute represents the ideal thickness of the underline. The underline thickness is expressed in the font's coordinate system. ...
unicode-range - SVG: Scalable Vector Graphics
The unicode-range attribute defines the range of ISO 10646 characters possibly covered by the glyphs in a font. Only one element is using this attribute: <font-face> Usage notes Value <urange># Default value None Animatable No <urange># This value is a comma-separated list of ISO 10646 characters possibly covered by the glyphs in the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'unicode-range' in that specification. Recommendation Initial definition ...
unicode - SVG: Scalable Vector Graphics
Web › SVG › Attribute › unicode
on as unicode="&#102;&#102;&#108;". The unicode attribute contributes to the process for deciding which glyph(s) are used to represent which character(s). If the attribute is not provided for a given <glyph>, then the only way to use this glyph is via an <altGlyph> reference. Only one element is using this attribute: <glyph> Context notes Value <string> Default value None Animatable No <string> This value specifies one or more Unicode characters corresponding to a glyph. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'unicode' in that specification. Recommendation Initial definition ...
v-alphabetic - SVG: Scalable Vector Graphics
The v-alphabetic attribute defines indicates the alignment coordinate for glyphs to achieve alphabetic baseline alignment. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-alphabetic' in that specification. Recommendation Initial definition ...
v-hanging - SVG: Scalable Vector Graphics
The v-hanging attribute indicates the alignment coordinate for glyphs to achieve hanging baseline alignment. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the glyphs to achieve hanging baseline alignment. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-hanging' in that specification. Recommendation Initial definition ...
v-ideographic - SVG: Scalable Vector Graphics
The v-ideographic attribute indicates the alignment coordinate for glyphs to achieve ideographic baseline alignment for vertically oriented glyph layouts. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-ideographic' in that specification. Recommendation Initial definition ...
v-mathematical - SVG: Scalable Vector Graphics
The v-mathematical attribute indicates the alignment coordinate for glyphs to achieve mathematical baseline alignment for vertically oriented glyph layouts. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-mathematical' in that specification. Recommendation Initial definition ...
values - SVG: Scalable Vector Graphics
Web › SVG › Attribute › values
eColorMatrix> animate, animateColor, animateMotion, animateTransform For <animate>, <animateColor>, <animateMotion>, and <animateTransform>, values is a list of values defining the sequence of values over the course of the animation. If this attribute is specified, any from, to, and by attribute values set on the element are ignored. Value <list-of-values> Default value None Animatable No <list-of-values> The value holds a semicolon-separated list of one or more values. The type of the values is defined by the href and attributeName attributes. feColorMatrix For the <feColorMatrix> element, values is a list of numbers interpreted differently depending on the value of the type attribute. Value <list-of-numbers> Default va...
version - SVG: Scalable Vector Graphics
Web › SVG › Attribute › version
wed on the root <svg> element. It is purely advisory and has no influence on rendering or processing. While it is specified to accept any number, the only two valid choices are currently 1.0 and 1.1. <svg version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" width="80" height="80"/> </svg> Usage notes Value <number> Default value None Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'version' in that specification. Recommendation Initial definition ...
viewTarget - SVG: Scalable Vector Graphics
The viewTarget attribute indicates the target object associated with the view. Only one element is using this attribute: <view> Usage notes Value <xml-name> Default value None Animatable No <xml-name> This value specifies the name of the object associated with the view. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'viewTarget' in that specification. Recommendation Initial definition ...
visibility - SVG: Scalable Vector Graphics
le The following example toggles the CSS visibility of the SVG image path. ...
widths - SVG: Scalable Vector Graphics
Web › SVG › Attribute › widths
If this attribute is used, the units-per-em attribute must also be used. If the range is omitted, a range of U+0-7FFFFFFF is assumed which covers all characters and their glyphs. ...
x-height - SVG: Scalable Vector Graphics
The x-height attribute indicates the height of lowercase glyphs in the font within the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the height of lowercase glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'x-height' in that specification. Recommendation Initial definition ...
xlink:arcrole - SVG: Scalable Vector Graphics
Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'xlink:arcrole' in that specification. Recommendation Initial definition ...
xlink:title - SVG: Scalable Vector Graphics
itle attribute. These elements are using this attribute: <a>, <altGlyph>, <animate>, <animateColor>, <animateMotion>, <animateTransform>, <color-profile>, <cursor>, <feImage>, <filter>, <font-face-uri>, <glyphRef>, <image>, <linearGradient>, <mpath>, <pattern>, <radialGradient>, <script>, <set>, <textPath>, <tref>, and <use> Usage context Value <anything> Default value None Animatable No <anything> This value specifies the title used to describe the meaning of the link or resource. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'seed' in that specification. Candidate Recommendation Deprecated the attribute and made it only apply to <a>, <image>, <linearGradient>...
xml:base - SVG: Scalable Vector Graphics
The xml:base attribute specifies a base IRI other than the base IRI of the document or external entity. All elements are using this attribute. Usage notes Value <iri> Default value None Animatable No <iri> This value specifies the base IRI of the element. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'xml:base' in that specification. Recommendation Initial definition ...
xml:lang - SVG: Scalable Vector Graphics
contains. There is also a lang attribute (without namespace). If both of them are defined, the one with namespace is used and the one without is ignored. All elements are using this attribute. <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. The syntax of this value is defined in the BCP 47 specification. The most common syntax is a value formed by a lowercase two-character part for the language and an uppercase two-character part for the region or country, separated by a minus sign, e.g. en-US for US English or de-AT for Au...
<altGlyphDef> - SVG: Scalable Vector Graphics
The <altGlyphDef> SVG element defines a substitution representation for glyphs. Usage context CategoriesText content elementPermitted contentEither: one or more <glyphRef> elements, or one or more <altGlyphItem> elements Attributes Global attributes Core attributes Specific attributes None DOM Interface This element implements the SVGAltGlyphDefElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<altGlyphDef>' in that specification. Recommendation Initial definition ...
<altGlyphItem> - SVG: Scalable Vector Graphics
The <altGlyphItem> element provides a set of candidates for glyph substitution by the <altGlyph> element. Usage context CategoriesText content elementPermitted contentOne or more <glyphRef> elements Example Attributes Global attributes Core attributes Specific attributes None DOM Interface This element implements the SVGAltGlyphItemElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<altGlyphItem>' in that specification. Recommendation Initial definition ...
<circle> - SVG: Scalable Vector Graphics
Web › SVG › Element › circle
yes cy The y-axis coordinate of the center of the circle. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes r The radius of the circle. A value lower or equal to zero disables rendering of the circle. Value type: <length> ; Default value: 0; Animatable: yes pathLength The total length for the circle's circumference, in user units. Value type: <number> ; Default value: none; Animatable: yes Note: Starting with SVG2, cx, cy, and r are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. Global attributes Core Attributes Most notably: id, tabindex Styling Attributes class, style Conditional Processing Attributes Most notably: requiredExtensions, systemLanguage Event Attributes Global event attributes, Graphi...
<clipPath> - SVG: Scalable Vector Graphics
Web › SVG › Element › clipPath
Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<...
<color-profile> - SVG: Scalable Vector Graphics
The <color-profile> element allows describing the color profile used for the image. Usage context CategoriesNonePermitted contentAny number of the following elements, in any order:Descriptive elements Attributes Global attributes Core attributes >> Xlink attributes >> Specific attributes local name rendering-intent xlink:href DOM Interface This element implements the SVGColorProfileElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<color-profile>' in that specification. Recommendation Initial definition ...
<cursor> - SVG: Scalable Vector Graphics
Web › SVG › Element › cursor
ency mask can be determined, the mask defines the shape of the cursor; otherwise, the cursor is an opaque rectangle. Typically, the other pixel information (e.g., the R, G and B channels) defines the colors for those parts of the cursor which are not masked out. Note that cursors usually contain at least two colors so that the cursor can be visible over most backgrounds. Usage context CategoriesNonePermitted contentAny number of the following elements, in any order:Descriptive elements Attributes Global attributes Conditional processing attributes Core attributes Xlink attributes externalResourcesRequired Specific attributes x y xlink:href DOM Interface This element implements the SVGCursorElement interface. Specifications Specification Status Comment ...
<ellipse> - SVG: Scalable Vector Graphics
Web › SVG › Element › ellipse
lue: 0; Animatable: yes rx The radius of the ellipse on the x axis. Value type: auto|<length>|<percentage> ; Default value: auto; Animatable: yes ry The radius of the ellipse on the y axis. Value type: auto|<length>|<percentage> ; Default value: auto; Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. Value type: <number> ; Default value: none; Animatable: yes Note: Starting with SVG2 cx, cy, rx and ry are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. Global attributes Core Attributes Most notably: id, tabindex Styling Attributes class, style Conditional Processing Attributes Most notably: requiredExtensions, systemLanguage Event Attributes Global event attributes, Gra...
<feComposite> - SVG: Scalable Vector Graphics
<use transform="translate(400,25)" xlink:href="#TwoBlueTriangles"/> <use transform="translate(525,25)" xlink:href="#TwoBlueTriangles"/> <use transform="translate(650,25)" xlink:href="#TwoBlueTriangles"/> <use transform="translate(775,25)" xlink:href="#TwoBlueTriangles"/> <use transform="translate(900,25)" xlink:href="#TwoBlueTriangles"/> </g> </defs> <rect fill="none" stroke="blue" x="1" y="1" width="1098" height="648"/> <g font-family="Verdana" font-size="40" shape-rendering="crispEdges"> <desc>Render the examples using the filters that draw on top of an opaque white surface, thus obliterating the background.</desc> <g enable-background="new"> <text x="15" y="75">opacity 1.0</text> <text x="15" y="115" font-size="27">(with feF...
<feMerge> - SVG: Scalable Vector Graphics
Web › SVG › Element › feMerge
Specifications Specification Status Comment Filter Effects Module Level 1The definition of '<feMerge>' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<feMerge>' in that specification. Recommendation Initia...
<feMergeNode> - SVG: Scalable Vector Graphics
The feMergeNode takes the result of another filter to be processed by its parent <feMerge>. ...
<filter> - SVG: Scalable Vector Graphics
Web › SVG › Element › filter
The <filter> SVG element defines a custom filter effect by grouping atomic filter primitives. It is never rendered itself, but must be used by the filter attribute on SVG elements, or the filter CSS property for SVG/HTML elements. Usage context CategoriesNonePermitted contentAny number of the following elements, in any order:Descriptive elementsFilter primitive elements<animate>, <set> Attributes Global attributes Core attributes Presentation attributes XLink attributes class style externalResourcesRequired Specific attributes x y width height filterRes filterUnits primitiveUnits xlink:href DOM Interface This element implements the SVGFilterElement interface. Example SVG <svg width="230" height="120" xmlns="http://www.w3.org/2000/svg"> <filter id="blurMe"> <f...
<font-face-name> - SVG: Scalable Vector Graphics
The <font-face-name> element points to a locally installed copy of this font, identified by its name. Usage context CategoriesNonePermitted contentEmpty Attributes Global attributes Core attributes >> Specific attributes name DOM Interface This element implements the SVGFontFaceNameElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face-name>' in that specification. Recommendation Initial definition ...
<font-face-src> - SVG: Scalable Vector Graphics
escriptor in CSS @font-face rules. It serves as container for <font-face-name>, pointing to locally installed copies of this font, and <font-face-uri>, utilizing remotely defined fonts. Usage context CategoriesFont elementPermitted contentOne or more of the following elements, in any order:<font-face-name>, <font-face-uri> Attributes Global attributes Core attributes Specific attributes None DOM Interface This element implements the SVGFontFaceSrcElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face-src>' in that specification. Recommendation Initial definition ...
<foreignObject> - SVG: Scalable Vector Graphics
Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<foreignObject>' in that specification. Recommendation Initial defini...
<hatchpath> - SVG: Scalable Vector Graphics
Web › SVG › Element › hatchpath
The <hatchpath> SVG element defines a hatch path used by the <hatch> element. Usage context CategoriesNonePermitted contentAny number of the following elements, in any order:Animation elementsDescriptive elements<script>, <style> Attributes Global attributes Core attributes Global event attributes Presentation attributes Style attributes Specific attributes d offset DOM Interface This element implements the SVGHatchpathElement interface. Example SVG <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <hatch id="hatch" hatchUnits="userSpaceOnUse" pitch="5" rotate="135"> <hatchpath stroke="#a080ff" stroke-width="2"/> </hatch> </defs> <rect fill="url(#hatch)" stroke="black" stroke-width="2" x="10%" y="10%" wid...
<line> - SVG: Scalable Vector Graphics
Web › SVG › Element › line
0; Animatable: yes y1 Defines the y-axis coordinate of the line starting point. Value type: <length>|<percentage>|<number> ; Default value: 0; Animatable: yes y2 Defines the y-axis coordinate of the line ending point. Value type: <length>|<percentage>|<number> ; Default value: 0; Animatable: yes pathLength Defines the total path length in user units. ...
<missing-glyph> - SVG: Scalable Vector Graphics
The <missing-glyph> SVG element's content is rendered, if for a given character the font doesn't define an appropriate <glyph>. Usage context CategoriesNonePermitted contentAny number of the following elements, in any order:Animation elementsDescriptive elementsShape elementsStructural elementsGradient elements<a>, <altGlyphDef>, <clipPath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignObject>, <image>, <marker>, <mask>, <pattern>, <script>, <style>, <switch>, <text>, <view> Attributes Global attributes Core attributes Presentation attributes class style Specific attributes d horiz-adv-x vert-origin-x vert-origin-y vert-adv-y DOM Interface This element implements the SVGMissingGlyphElement interface. Specifications Specification Statu...
<path> - SVG: Scalable Vector Graphics
Web › SVG › Element › path
path d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z"/> </svg> Attributes d This attribute defines the shape of the path. Value type: <string> ; Default value: ''; Animatable: yes pathLength This attribute lets authors specify the total length for the path, in user units. ...
<rect> - SVG: Scalable Vector Graphics
Web › SVG › Element › rect
of the rect. Defaults to ry if it is specified. Value type: auto|<length>|<percentage> ; Default value: auto; Animatable: yes ry The vertical corner radius of the rect. Defaults to rx if it is specified. Value type: auto|<length>|<percentage> ; Default value: auto; Animatable: yes pathLength The total length of the rectangle's perimeter, in user units. Value type: <number> ; Default value: none; Animatable: yes Note: Starting with SVG2, x, y, width, height, rx and ry are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. Global attributes Core Attributes Most notably: id, tabindex Styling Attributes class, style Conditional Processing Attributes Most notably: requiredExtensions, systemLanguage Event Attributes Global event a...
<set> - SVG: Scalable Vector Graphics
Web › SVG › Element › set
nd { rx: 5px; fill: green; } </style> <rect id="me" width="10" height="10"> <set attributeName="class" to="round" begin="me.click" dur="2s" /> </rect> </svg> Attributes to This attribute defines the value to be applied to the target attribute for the duration of the animation. The value must match the requirements of the target attribute. ...
<solidcolor> - SVG: Scalable Vector Graphics
an experimental technology, and not yet implemented in browsers. A workaround is to use a <linearGradient> with only one color stop. This is less elegant, and unlike <solidcolor>, cannot itself be used in the definition of gradients. Usage context missing Attributes Global attributes Core attributes Global event attributes Presentation attributes Style attributes Specific attributes None. DOM interface This element implements the SVGSolidcolorElement interface. Example SVG <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200" height="150"> <defs> <!-- solidColor is experimental. --> <solidcolor id="myColor" solid-color="gold" solid-opacity="0.8"/> <!-- linearGradient with a single color stop is a less elegant way to achieve the same effect, bu...
<tref> - SVG: Scalable Vector Graphics
Web › SVG › Element › tref
Recommendation Initial definition ...
<use> - SVG: Scalable Vector Graphics
Web › SVG › Element › use
set a cross-origin policy for use elements. Since SVG 2, the xlink:href attribute is deprecated in favor of href. See xlink:href page for more information. However, xlink:href can still be required in practice for cross-browser compatibility (see the compatibility table below). Attributes href The URL to an element/fragment that needs to be duplicated. Value type: <URL> ; Default value: none; Animatable: yes xlink:href An <IRI> reference to an element/fragment that needs to be duplicated. Value type: <IRI> ; Default value: none; Animatable: yes x The x coordinate of the use element. Value type: <coordinate> ; Default value: 0; Animatable: yes y The y coordinate of the use element. Value type: <coordinate> ; Default value: 0; Animatable: yes width The width of the use elem...
<view> - SVG: Scalable Vector Graphics
Web › SVG › Element › view
A view is a defined way to view the image, like a zoom level or a detail view. ...
Example - SVG: Scalable Vector Graphics
ulo) { return Math.round( Math.random() * (modulo-1)); } // Class Mote function Mote() { // Dimensions of drawing area. var dims = Dimensions(); var width = dims[0], height = dims[1]; // Choose a random coordinate to start at. this.x = Rand( width ); this.y = Rand( height ); // Nil initial velocity. this.vx = this.vy = 0; // A visual element---initially none this.elt = null; } // Turn this into a class. new Mote(); // Mote::applyForce() -- Adjust velocity // towards the given position. // Warning: Pseudo-physics -- not really // governed by any /real/ physical principles. Mote.prototype.applyForce = function(pos, mag) { if( pos[0] > this.x ) this.vx += mag; else if( pos[0] < this.x ) this.vx -= mag; if( pos[1]...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
instead of buffered-rendering Implementation status unknown context-fill and context-stroke paint values Implemented (bug 719286 (Firefox 18.0 / Thunderbird 18.0 / SeaMonkey 2.15) and bug 798843 (Firefox 26.0 / Thunderbird 26.0 / SeaMonkey 2.23)) child keyword for <paint> values and marker properties Implementation status unknown vector-effect property Only none and non-scaling-stroke values are supported (bug 528332 (Firefox 15 / Thunderbird 15 / SeaMonkey 2.12), bug 1318208) arcs value for stroke-linejoin Not implemented (bug 1239142) auto-start-reverse value for <marker>'s orient attribute Implemented (bug 879659) SVGPaint removed Implementation status unknown fill and stroke taking multiple paints Imple...
Clipping and masking - SVG: Scalable Vector Graphics
blue" /> <circle cx="100" cy="100" r="50" stroke="yellow" stroke-width="40" stroke-opacity=".5" fill="red" /> </svg> ScreenshotLive sample You see in this example the red circle on blue background. The yellow stroke is set to 50% opacity, which leads effectively to a double-color stroke. Using well-known CSS techniques One of the most powerful tools in a web developer's toolbox is display: none. It is therefore little surprise, that it was decided to take this CSS property into SVG as well, together with visibility and clip as defined by CSS 2. For reverting a previously set display: none it is important to know, that the initial value for all SVG elements is inline. << PreviousNext >> ...
Filter effects - SVG: Scalable Vector Graphics
t"/> <feComposite in="SourceGraphic" in2="specOut" operator="arithmetic" k1="0" k2="1" k3="1" k4="0" result="litPaint"/> <!-- merge offsetBlur + litPaint --> <feMerge> <feMergeNode in="offsetBlur"/> <feMergeNode in="litPaint"/> </feMerge> </filter> </defs> <!-- Graphic elements --> <g filter="url(#MyFilter)"> <path fill="none" stroke="#D90000" stroke-width="10" d="M50,66 c-50,0 -50,-60 0,-60 h100 c50,0 50,60 0,60z" /> <path fill="#D90000" d="M60,56 c-30,0 -30,-40 0,-40 h80 c30,0 30,40 0,40z" /> <g fill="#FFFFFF" stroke="black" font-size="45" font-family="Verdana" > <text x="52" y="52">SVG</text> </g> </g> </svg> Step 1 <feGaussianBlur in="SourceAlpha" ...
SVG In HTML Introduction - SVG: Scalable Vector Graphics
inline SVG to provide a background picture for a form. It shows how JavaScript and CSS can be used to manipulate the picture in the same way you would script regular HTML. ...
Using shadow DOM - Web Components
place where the shadow DOM ends, and the regular DOM begins. Shadow root: The root node of the shadow tree. You can affect the nodes in the shadow DOM in exactly the same way as non-shadow nodes -- for example appending children or setting attributes, styling individual nodes using element.style.foo, or adding style to the entire shadow DOM tree inside a <style> element. The difference is that none of the code inside a shadow DOM can affect anything outside it, allowing for handy encapsulation. Note that the shadow DOM is not a new thing by any means -- browsers have used it for a long time to encapsulate the inner structure of an element. Think for example of a <video> element, with the default browser controls exposed. All you see in the DOM is the <video> element, but it contains a seri...
sum - XPath
Web › XPath › Functions › sum
...
Introduction to using XPath in JavaScript - XPath
urally results from the evaluation of the expression. It could be any of the simple types (NUMBER_TYPE, STRING_TYPE, BOOLEAN_TYPE), but, if the returned result type is a node-set then it will only be an UNORDERED_NODE_ITERATOR_TYPE. To determine that type after evaluation, we use the resultType property of the XPathResult object. The constant values of this property are defined in the appendix. None Yet =====Any_Type Example===== <pre> </pre> Examples Within an HTML Document The following code is intended to be placed in any JavaScript fragment within or linked to the HTML document against which the XPath expression is to be evaluated. To extract all the <h2> heading elements in an HTML document using XPath, the xpathExpression is simply '//h2'. Where, // is the Recursive Descent Operato...
<xsl:apply-imports> - XSLT: Extensible Stylesheet Language Transformations
omplex stylesheets. Import precedence requires that template rules in main stylesheets have higher precedence than template rules in imported stylesheets. Sometimes, however, it is useful to be able to force the processor to use a template rule from the (lower precedence) imported stylesheet rather than an equivalent rule in the main stylesheet. Syntax <xsl:apply-imports/> Required Attributes None. Optional Attributes None. Type Instruction, appears within a template. Defined XSLT, section 5.6. Gecko support Supported. ...
<xsl:apply-templates> - XSLT: Extensible Stylesheet Language Transformations
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:apply-templates> element selects a set of nodes in the input tree and instructs the processor to apply the proper templates to them. Syntax <xsl:apply-templates select=EXPRESSION mode=NAME> <xsl:with-param> [optional] <xsl:sort> [optional] </xsl:apply-templates> Required Attributes None. Optional Attributes select Uses an XPath expression that specifies the nodes to be processed. An asterisk(*) selects the entire node-set. If this attribute is not set, all child nodes of the current node are selected. mode If there are multiple ways of processing defined for the same node, distinguishes among them. Type Instruction, appears within a template. Defined XSLT section 5.4. Ge...
<xsl:call-template> - XSLT: Extensible Stylesheet Language Transformations
Type Instruction, appears within a template. Defined XSLT, section 6. Gecko support Supported. ...
<xsl:choose> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › choose
ements, EXSLT functions, XPath functions, XPath axes The <xsl:choose> element defines a choice among a number of alternatives. It behaves like a switch statement in procedural languages. Syntax <xsl:choose> <xsl:when test="[whatever to test1]"></xsl:when> <xsl:when test="[whatever to test2]"></xsl:when> <xsl:otherwise></xsl:otherwise> [optional] </xsl:choose> Required Attributes None. Optional Attributes None. Type Instruction, appears with a template. It contains one or more <xsl:when> elements, and, optionally, a final <xsl:otherwise> element. Defined XSLT, section 9.2. Gecko support Supported. ...
<xsl:comment> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › comment
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:comment> element writes a comment to the output document. It must include only text. Syntax <xsl:comment> TEMPLATE </xsl:comment> Required Attributes None. Optional Attributes None. Type Instruction, appears within a template. Defined XSLT, section 7.4. Gecko support Supported. ...
<xsl:copy-of> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › copy-of
Type Instruction, appears within a template. Defined XSLT, section 11.3. Gecko support Supported. ...
<xsl:copy> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › copy
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:copy> element transfers a shallow copy (the node and any associated namespace node) of the current node to the output document. It does not copy any children or attributes of the current node. Syntax <xsl:copy use-attribute-sets=LIST-OF-NAMES> TEMPLATE </xsl:copy> Required Attributes None. Optional Attributes use-attribute-sets Lists attribute sets that should be applied to the output node, if it is an element. Names of the sets should be separated with whitespace characters. Type Instruction, appears within a template. Defined XSLT, section 7.5. Gecko support Supported. ...
<xsl:decimal-format> - XSLT: Extensible Stylesheet Language Transformations
the characters and symbols that are to be used in converting numbers into strings using theformat-number( ) function. Syntax <xsl:decimal-format name=NAME decimal-separator=CHARACTER grouping-separator=CHARACTER infinity=STRING minus-sign=CHARACTER NaN=STRING percent=CHARACTER per-mille=CHARATER zero-digit=CHARACTER digit=CHARACTER pattern-separator=CHARACTER /> Required Attributes None. Optional Attributes name Specifies a name for this format. decimal-separator Specifies the decimal point character. The default is (.). grouping-separator Specifies the thousands separator character. The default is (,). infinity Specifies the string used to represent infinity. The default is the string "Infinity". minus-sign Specifies the minus sign character. The defaul...
<xsl:for-each> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › for-each
nodes or to change the current node. If one or more <xsl:sort> elements appear as the children of this element, sorting occurs before processing. Otherwise, nodes are processed in document order. Syntax <xsl:for-each select=EXPRESSION> <xsl:sort> [optional] TEMPLATE </xsl:for-each> Required Attributes select Uses an XPath expression to select nodes to be processed. Optional Attributes None. Type Instruction, appears within a template. Defined XSLT, section 8. Gecko support Supported. ...
<xsl:if> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › if
, use the <xsl:choose> element with one <xsl:when> and one <xsl:otherwise> children. Syntax <xsl:if test=EXPRESSION> TEMPLATE </xsl:if> Required Attributes test Contains an XPath expression that can be evaluated (using the rules defined for boolean( ) if necessary) to a Boolean value. If the value is true, the template is processed; if it is not, no action is taken. Optional Attributes None. Type Instruction, appears within a template. Defined XSL section 9.1. Gecko support Supported ...
<xsl:import> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › import
ontents of the imported stylesheet have a lower import precedence than that of the importing stylesheet. This is in contrast to <xsl:include> where the contents of the included stylesheet have exactly the same precedence as the contents of the including stylesheet. Syntax <xsl:import href=URI /> Required Attributes href Specifies the URI of the stylesheet to import. Optional Attributes None. Type Top-level, must appear before any other child of <xsl:stylesheet> or <xsl:transform> in the importing stylesheet. Defined XSLT, section 2.6.2. Gecko support Mostly supported with a few issues with top level variables and parameters as of Mozilla 1.0. ...
<xsl:include> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › include
tions, XPath functions, XPath axes The <xsl:include> element merges the contents of one stylesheet with another. Unlike the case of <xsl:import>, the contents of an included stylesheet have exactly the same precedence as the contents of the including stylesheet. Syntax <xsl:include href=URI /> Required Attributes href Specifies the URI of the stylesheet to include. Optional Attributes None. Type Top-level, may appear in any order as a child of <xsl:stylesheet> or <xsl:transform>. Defined XSLT, section 2.6.1. Gecko support Supported. ...
<xsl:key> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › key
sewhere in the stylesheet with the key( ) function. Syntax <xsl:key name=NAME match=EXPRESSION use=EXPRESSION /> Required Attributes name Specifies a name for this key. Must be a QName. match Defines the nodes for which this key is applicable. use Specifies an XPath expression that will be used to determine the value of the key for each of the applicable nodes. Optional Attributes None. Type Top-level, must be the child of <xsl:stylesheet> or <xsl:transform>. Defined XSLT, section 12.2. Gecko support Supported. ...
<xsl:message> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › message
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:message> element outputs a message (to the JavaScript Console in NS) and optionally terminates execution of the stylesheet. It can be useful for debugging. Syntax <xsl:message terminate="yes" | "no" > TEMPLATE </xsl:message> Required Attributes None. Optional Attributes terminate Set to "yes", indicates that execution should be terminated. The default value is "no", in which case the message is output and execution continues. Type Instruction, appears within a template. Defined XSLT, section 13. Gecko support Supported. ...
<xsl:namespace-alias> - XSLT: Extensible Stylesheet Language Transformations
ng misunderstood by the processor, it is assigned a temporary namespace which is appropriately re-converted back to the XSLT namespace in the output tree. Syntax <xsl:namespace-alias stylesheet-prefix=NAME result-prefix=NAME /> Required Attributes stylesheet-prefix Specifies the temporary namespace. result-prefix Specifies the desired namespace for the output tree. Optional Attributes None. Type Top-level, must be the child of <xsl:stylesheet> or <xsl:transform>. Defined XSLT, section 7.1.1 Gecko support Not supported at this time. ...
<xsl:number> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › number
functions, XPath axes The <xsl:number> element counts things sequentially. It can also be used to quickly format a number. Syntax <xsl:number count=EXPRESSION level="single" | "multiple" | "any" from=EXPRESSION value=EXPRESSION format=FORMAT-STRING lang=XML:LANG-CODE letter-value="alphabetic" | "traditional" grouping-separator=CHARACTER grouping-size=NUMBER /> Required Attributes None. Optional Attributes count Specifies what in the source tree should be numbered sequentially. It uses an XPath expression. level Defines how levels of the source tree should be considered in generating sequential numbers. It has three valid values: single, multiple, and any. The default value is single: single Numbers sibling nodes sequentially, as in the items in a list. The...
<xsl:output> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › output
ape, this element, with the method attribute, must be used. As of 7.0, method="text" works as expected. Syntax <xsl:output method="xml" | "html" | "text" version=STRING encoding=STRING omit-xml-declaration="yes" | "no" standalone="yes" | "no" doctype-public=STRING doctype-system=STRING cdata-section-elements=LIST-OF-NAMES indent="yes" | "no" media-type=STRING /> Required Attributes None. Optional Attributes method Specifies output format. version Specifies the value of the version attribute of the XML or HTML declaration in the output document. This attribute is only used when method="html" or method="xml". encoding Specifies the value of the encoding attribute in the output document. omit-xml-declaration Indicates whether or not to include an XML declaration...
<xsl:param> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › param
eter is global . When used inside an <xsl:template> element, the parameter is local to that template. In this case it must be the first child element of the template. Syntax <xsl:param name=NAME select=EXPRESSION> TEMPLATE </xsl:param> Required Attributes name Names the parameter. This must be a QName. Optional Attributes select Uses an XPath expression to provide a default value if none is specified. Type Instruction, can appear as a top-level element or within a template. Defined XSLT, section 11. Gecko support Supported. ...
<xsl:preserve-space> - XSLT: Extensible Stylesheet Language Transformations
d. If there is more than one element, separate the names with a whitespace character. Preserving whitespace is the default setting, so this element only needs to be used to counteract an <xsl:strip-space> element. Syntax <xsl:preserve-space elements=LIST-OF-ELEMENT-NAMES /> Required Attributes elements Specifies the elements for which whitespace should be preserved. Optional Attributes None. Type Top-level, must be a child of <xsl:stylesheet> or <xsl:transform>. Defined XSLT, section 3.4 Gecko support Supported. ...
<xsl:processing-instruction> - XSLT: Extensible Stylesheet Language Transformations
Type Instruction, appears within a template. Defined XSLT, section 7.3 Gecko support Supported. ...
<xsl:sort> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › sort
ents, EXSLT functions, XPath functions, XPath axes The <xsl:sort> element defines a sort key for nodes selected by <xsl:apply-templates> or <xsl:for-each> and determines the order in which they are processed. Syntax <xsl:sort select=EXPRESSION order="ascending" | "descending" case-order="upper-first" | "lower-first" lang=XML:LANG-CODE data-type="text" | "number" /> Required Attributes None. Optional Attributes select Uses an XPath expression to specify the nodes to be sorted. order Specifies whether the nodes should be processed in "ascending" or "descending" order. The default is "ascending". case-order Indicates whether upper- or lowercase letters are to be ordered first. The allowable values are "upper-first" and "lower-first". lang Specifies which language i...
<xsl:strip-space> - XSLT: Extensible Stylesheet Language Transformations
Type Top-level, must be a child of <xsl:stylesheet> or <xsl:transform>. Defined XSLT, section 3.4 Gecko support Supported. ...
<xsl:template> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › template
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:template> element defines an output producing template. This element must have either the match attribute or the name attribute set. Syntax <xsl:template match=PATTERN name=NAME mode=NAME priority=NUMBER> <xsl:param> [optional] TEMPLATE </xsl:template> Required Attributes None. Optional Attributes match Specifies a pattern that determines the elements for which this template should be used. It is a required attribute if there is no name attribute. name Specifies a name for this template, by which it can be invoked through the <xsl:call-template> element. mode Specifies a particular mode for this template, which can be matched by an attribute of the <xsl:apply-templ...
<xsl:text> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › text
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:text> element writes literal text to the output tree. It may contain #PCDATA, literal text, and entity references. Syntax <xsl:text disable-output-escaping="yes" | "no"> TEXT </xsl:text> Required Attributes None. Optional Attributes disable-output-escaping (Netscape does not serialize the result of transformation - the "output" below - so this attribute is essentially irrelevant in context. To output html-entities, use numerical values instead, eg &#160; for &nbsp;) Specifies whether special characters are escaped when written to the output. The available values are "yes" or "no". If "yes" is set, for example, the character > is output as >, not as &gt;. Type Instruction, app...
<xsl:when> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › when
SLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:when> element always appears within an <xsl:choose> element, acting like a case statement. Syntax <xsl:when test=EXPRESSION> TEMPLATE </xsl:when> Required Attributes test Specifies a boolean expression to be evaluated. If true, the contents of the element are processed; if false, they are ignored. Optional Attributes None. Type Subinstruction, always appears within an <xsl:choose> element. Defined XSLT, section 9.2. Gecko support Supported. ...
Index - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Index
opriately re-converted back to the XSLT namespace in the output tree. 39 <xsl:number> Element, Number, Reference, XSLT The <xsl:number> element counts things sequentially. It can also be used to quickly format a number. 40 <xsl:otherwise> Element, Reference, XSLT, otherwise The <xsl:otherwise> element is used to define the action that should be taken when none of the <xsl:when> conditions apply. It is similar to the else or default case in other programing languages. 41 <xsl:output> Element, Reference, XSLT, output The <xsl:output> element controls the characteristics of the output document. To function correctly in Netscape, this element, with the method attribute, must be used. As of 7.0, method="text" works as expected. 4...